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-14 15:06+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:42 ../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:92
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:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
291 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
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:48 ../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:50 ../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:52 ../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:54
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:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
341 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
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:59 ../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:61 ../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:63 ../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:66 ../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:69 ../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:71 ../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:73 ../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:95 ../df/virt-df.pod:101
420 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
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:97 ../df/virt-df.pod:103
429 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
430 #: ../fuse/guestmount.pod:144 ../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:99 ../df/virt-df.pod:105
439 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
440 #: ../fuse/guestmount.pod:146 ../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:104 ../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:108 ../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:112 ../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:115 ../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:138 ../df/virt-df.pod:173
540 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
541 #: ../fuse/guestmount.pod:266 ../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:140 ../df/virt-df.pod:175
550 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
551 #: ../fuse/guestmount.pod:268 ../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:142 ../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:144 ../df/virt-df.pod:179
569 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
570 #: ../fuse/guestmount.pod:272 ../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:146 ../df/virt-df.pod:181
580 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
581 #: ../fuse/guestmount.pod:274 ../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:148 ../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:150 ../df/virt-df.pod:185
605 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
606 #: ../fuse/guestmount.pod:287 ../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:152 ../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:475 ../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:477 ../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:482 ../df/virt-df.pod:222
908 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
909 #: ../fuse/guestmount.pod:312 ../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:283 ../clone/virt-sysprep.pod:287
924 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
925 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
926 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
927 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
928 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
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:2013 ../fish/guestfish-actions.pod:2019
951 #: ../fish/guestfish-actions.pod:2027 ../fish/guestfish-actions.pod:2034
952 #: ../fish/guestfish-actions.pod:2041 ../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:3020 ../src/guestfs-actions.pod:3026
975 #: ../src/guestfs-actions.pod:3034 ../src/guestfs-actions.pod:3041
976 #: ../src/guestfs-actions.pod:3048 ../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:486 ../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:1268 ../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:317
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:501 ../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:503 ../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:505 ../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:1300 ../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:332
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:507
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:509 ../df/virt-df.pod:243
1143 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
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:337 ../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:514 ../df/virt-df.pod:248
1163 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
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:342 ../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:519 ../df/virt-df.pod:253
1187 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
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:347 ../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:1051 ../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:135 ../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:172 ../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:174 ../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:314 ../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:4258
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 "You do I<not> need to run virt-sysprep as root. In fact we'd generally "
3233 "recommend that you don't. The time you might want to run it as root is when "
3234 "you need root in order to access the disk image, but even in this case it "
3235 "would be better to change the permissions on the disk image to be writable "
3236 "as the non-root user running virt-sysprep."
3240 #: ../clone/virt-sysprep.pod:35
3242 "\"Sysprep\" stands for \"system preparation\" tool. The name comes from the "
3243 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3244 "machines in preparation for cloning them. Having said that, virt-sysprep "
3245 "does I<not> currently work on Microsoft Windows guests. We plan to support "
3246 "Windows sysprepping in a future version, and we already have code to do it."
3250 #: ../clone/virt-sysprep.pod:76
3252 #| msgid "B<--help>"
3253 msgid "B<--enable=...>"
3257 #: ../clone/virt-sysprep.pod:78
3259 "Choose which sysprep operations to perform. Give a comma-separated list of "
3260 "operations, for example:"
3264 #: ../clone/virt-sysprep.pod:81
3267 " --enable=ssh-hostkeys,udev-persistent-net\n"
3272 #: ../clone/virt-sysprep.pod:83
3274 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3278 #: ../clone/virt-sysprep.pod:85
3280 "If the I<--enable> option is not given, then we default to trying all "
3281 "possible sysprep operations. But some sysprep operations are skipped for "
3286 #: ../clone/virt-sysprep.pod:89
3288 "Use I<--list-operations> to list operations supported by a particular "
3289 "version of virt-sysprep."
3293 #: ../clone/virt-sysprep.pod:92
3295 "See L</OPERATIONS> below for a list and an explanation of each operation."
3299 #: ../clone/virt-sysprep.pod:106
3302 #| " guestfish --format=raw -a disk.img\n"
3305 " virt-sysprep --format=raw -a disk.img\n"
3308 " guestfish --format=raw -a disk.img\n"
3312 #: ../clone/virt-sysprep.pod:110
3315 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3318 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3321 " guestfish --format=raw -a disk.img --format -a another.img\n"
3325 #: ../clone/virt-sysprep.pod:119
3326 msgid "B<--hostname> newhostname"
3330 #: ../clone/virt-sysprep.pod:121
3332 "Change the hostname. See the L</hostname> operation below. If not given, "
3333 "defaults to C<localhost.localdomain>."
3337 #: ../clone/virt-sysprep.pod:124
3339 #| msgid "B<--listen>"
3340 msgid "B<--list-operations>"
3341 msgstr "B<--listen>"
3344 #: ../clone/virt-sysprep.pod:126
3345 msgid "List the operations supported by the virt-sysprep program."
3349 #: ../clone/virt-sysprep.pod:128
3351 #| msgid "B<--selinux>"
3352 msgid "B<--selinux-relabel>"
3353 msgstr "B<--selinux>"
3356 #: ../clone/virt-sysprep.pod:130
3358 #| msgid "B<--selinux>"
3359 msgid "B<--no-selinux-relabel>"
3360 msgstr "B<--selinux>"
3363 #: ../clone/virt-sysprep.pod:132
3365 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots. "
3366 "I<--no-selinux-relabel> disables relabelling."
3370 #: ../clone/virt-sysprep.pod:135
3372 "The default is to try to detect if SELinux relabelling is required. See L</"
3373 "SELINUX RELABELLING> below for more details."
3377 #: ../clone/virt-sysprep.pod:156
3384 #: ../clone/virt-sysprep.pod:158
3386 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3387 "enabled>, although some are skipped depending on the type of guest."
3391 #: ../clone/virt-sysprep.pod:162
3393 "Operations can be individually enabled using the I<--enable> option. Use a "
3394 "comma-separated list, for example:"
3398 #: ../clone/virt-sysprep.pod:165
3401 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3406 #: ../clone/virt-sysprep.pod:167
3408 "To list the operations supported by the current version of virt-sysprep, use "
3409 "I<--list-operations>."
3413 #: ../clone/virt-sysprep.pod:170
3415 "Future versions of virt-sysprep may add more operations. If you are using "
3416 "virt-sysprep and want predictable behaviour, specify only the operations "
3417 "that you want to have enabled."
3421 #: ../clone/virt-sysprep.pod:174
3426 #: ../clone/virt-sysprep.pod:176
3427 msgid "Remove user at-jobs and cron-jobs."
3431 #: ../clone/virt-sysprep.pod:178
3433 #| msgid "get-state"
3434 msgid "dhcp-client-state"
3438 #: ../clone/virt-sysprep.pod:180
3439 msgid "Remove DHCP client leases."
3443 #: ../clone/virt-sysprep.pod:182
3444 msgid "dhcp-server-state"
3448 #: ../clone/virt-sysprep.pod:184
3449 msgid "Remove DHCP server leases."
3453 #: ../clone/virt-sysprep.pod:186
3458 #: ../clone/virt-sysprep.pod:188
3460 "Changes the hostname of the guest to the value given in the I<--hostname> "
3465 #: ../clone/virt-sysprep.pod:191
3467 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3468 "C<localhost.localdomain>."
3472 #: ../clone/virt-sysprep.pod:194
3479 #: ../clone/virt-sysprep.pod:196
3480 msgid "Remove many log files."
3484 #: ../clone/virt-sysprep.pod:198
3489 #: ../clone/virt-sysprep.pod:200
3490 msgid "Remove email from the local mail spool directory."
3494 #: ../clone/virt-sysprep.pod:202
3499 #: ../clone/virt-sysprep.pod:204
3501 "Remove HWADDR (hard-coded MAC address) configuration. For Fedora and Red "
3502 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3506 #: ../clone/virt-sysprep.pod:207
3511 #: ../clone/virt-sysprep.pod:209
3513 "Write some random bytes from the host into the random seed file of the guest."
3517 #: ../clone/virt-sysprep.pod:212
3518 msgid "See C</RANDOM SEED> below."
3522 #: ../clone/virt-sysprep.pod:214
3523 msgid "rhn-systemid"
3527 #: ../clone/virt-sysprep.pod:216
3528 msgid "Remove the RHN system ID."
3532 #: ../clone/virt-sysprep.pod:218
3534 #| msgid "set-e2uuid"
3539 #: ../clone/virt-sysprep.pod:220
3540 msgid "Remove the Smolt hardware UUID."
3544 #: ../clone/virt-sysprep.pod:222
3545 msgid "ssh-hostkeys"
3549 #: ../clone/virt-sysprep.pod:224
3550 msgid "Remove the SSH host keys in the guest."
3554 #: ../clone/virt-sysprep.pod:226
3556 "The SSH host keys are regenerated (differently) next time the guest is "
3561 #: ../clone/virt-sysprep.pod:229
3563 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3564 "stark warning about the host key changing:"
3568 #: ../clone/virt-sysprep.pod:232
3571 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3572 " @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\n"
3573 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3574 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3579 #: ../clone/virt-sysprep.pod:237
3580 msgid "udev-persistent-net"
3584 #: ../clone/virt-sysprep.pod:239
3586 "Remove udev persistent net rules which map the guest's existing MAC address "
3587 "to a fixed ethernet device (eg. eth0)."
3591 #: ../clone/virt-sysprep.pod:242
3593 "After a guest is cloned, the MAC address usually changes. Since the old MAC "
3594 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3595 "is assigned to a new name (eg. eth1) and this is usually undesirable. "
3596 "Erasing the udev persistent net rules avoids this."
3600 #: ../clone/virt-sysprep.pod:247
3605 #: ../clone/virt-sysprep.pod:249
3606 msgid "Remove the utmp file."
3610 #: ../clone/virt-sysprep.pod:251
3612 "This records who is currently logged in on a machine. In modern Linux "
3613 "distros it is stored in a ramdisk and hence not part of the virtual "
3614 "machine's disk, but it was stored on disk in older distros."
3618 #: ../clone/virt-sysprep.pod:255
3625 #: ../clone/virt-sysprep.pod:257
3626 msgid "Remove the yum UUID."
3630 #: ../clone/virt-sysprep.pod:259
3632 "Yum creates a fresh UUID the next time it runs when it notices that the "
3633 "original UUID has been erased."
3637 #: ../clone/virt-sysprep.pod:262
3638 msgid "COPYING AND CLONING"
3642 #: ../clone/virt-sysprep.pod:264
3644 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3645 "prepare a template from which guests can be cloned. There are many "
3646 "different ways to achieve this using the virt tools, and this section is "
3647 "just an introduction."
3651 #: ../clone/virt-sysprep.pod:269
3652 msgid "A virtual machine (when switched off) consists of two parts:"
3656 #: ../clone/virt-sysprep.pod:273
3657 msgid "I<configuration>"
3661 #: ../clone/virt-sysprep.pod:275
3663 "The configuration or description of the guest. eg. The libvirt XML (see "
3664 "C<virsh dumpxml>), the running configuration of the guest, or another "
3665 "external format like OVF."
3669 #: ../clone/virt-sysprep.pod:279
3670 msgid "Some configuration items that might need to be changed:"
3674 #: ../clone/virt-sysprep.pod:285
3681 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3686 #: ../clone/virt-sysprep.pod:293
3688 #| msgid "is-blockdev"
3689 msgid "path to block device(s)"
3690 msgstr "is-blockdev"
3693 #: ../clone/virt-sysprep.pod:297
3694 msgid "network card MAC address"
3698 #: ../clone/virt-sysprep.pod:301
3700 #| msgid "is-blockdev"
3701 msgid "I<block device(s)>"
3702 msgstr "is-blockdev"
3705 #: ../clone/virt-sysprep.pod:303
3707 "One or more hard disk images, themselves containing files, directories, "
3708 "applications, kernels, configuration, etc."
3712 #: ../clone/virt-sysprep.pod:306
3713 msgid "Some things inside the block devices that might need to be changed:"
3717 #: ../clone/virt-sysprep.pod:312
3718 msgid "hostname and other net configuration"
3722 #: ../clone/virt-sysprep.pod:320
3723 msgid "SSH host keys"
3727 #: ../clone/virt-sysprep.pod:324
3728 msgid "Windows unique security ID (SID)"
3732 #: ../clone/virt-sysprep.pod:328
3733 msgid "Puppet registration"
3737 #: ../clone/virt-sysprep.pod:334
3738 msgid "COPYING THE BLOCK DEVICE"
3742 #: ../clone/virt-sysprep.pod:336
3744 "Starting with an original guest, you probably wish to copy the guest block "
3745 "device and its configuration to make a template. Then once you are happy "
3746 "with the template, you will want to make many clones from it."
3750 #: ../clone/virt-sysprep.pod:341
3756 " original guest --------> template ---------->\n"
3757 " \\------> cloned\n"
3758 " \\-----> guests\n"
3764 #: ../clone/virt-sysprep.pod:349
3766 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3771 #: ../clone/virt-sysprep.pod:352
3775 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
3776 #| " const char *device,\n"
3777 #| " const char *key,\n"
3778 #| " int keyslot,\n"
3779 #| " const char *cipher);\n"
3783 " original guest --------> template ---------->\n"
3784 " \\------> cloned\n"
3785 " \\-----> guests\n"
3790 " guestfs_luks_format_cipher (guestfs_h *g,\n"
3791 " const char *device,\n"
3792 " const char *key,\n"
3794 " const char *cipher);\n"
3798 #: ../clone/virt-sysprep.pod:358
3799 msgid "There are some smarter (and faster) ways too:"
3803 #: ../clone/virt-sysprep.pod:364
3807 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
3808 #| " const char *device,\n"
3809 #| " const char *key,\n"
3810 #| " int keyslot,\n"
3811 #| " const char *cipher);\n"
3815 " template ---------->\n"
3816 " \\------> cloned\n"
3817 " \\-----> guests\n"
3822 " guestfs_luks_format_cipher (guestfs_h *g,\n"
3823 " const char *device,\n"
3824 " const char *key,\n"
3826 " const char *cipher);\n"
3830 #: ../clone/virt-sysprep.pod:370
3832 "Use the block device as a backing file and create a snapshot on top for each "
3833 "guest. The advantage is that you don't need to copy the block device (very "
3834 "fast) and only changes are stored (less storage required)."
3838 #: ../clone/virt-sysprep.pod:375
3840 "Note that writing to the backing file once you have created guests on top of "
3841 "it is not possible: you will corrupt the guests."
3845 #: ../clone/virt-sysprep.pod:378
3847 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3848 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option). Some "
3849 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3850 "also create cheap snapshots from files or LUNs."
3854 #: ../clone/virt-sysprep.pod:386
3855 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3859 #: ../clone/virt-sysprep.pod:390
3860 msgid "Prepare your template using L<virt-sparsify(1)>. See below."
3864 #: ../clone/virt-sysprep.pod:394
3869 #: ../clone/virt-sysprep.pod:396
3871 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3872 "and/or modify the external libvirt configuration of a guest. It will reset "
3873 "the name, UUID and MAC address of the guest in the libvirt XML."
3877 #: ../clone/virt-sysprep.pod:401
3879 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3880 "image. This was the original motivation to write virt-sysprep."
3884 #: ../clone/virt-sysprep.pod:404
3889 #: ../clone/virt-sysprep.pod:406
3893 " original guest --------> template\n"
3898 #: ../clone/virt-sysprep.pod:409
3900 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3901 "it easier to compress and/or faster to copy."
3905 #: ../clone/virt-sysprep.pod:412
3907 "Notice that since virt-sparsify also copies the image, you can use it to "
3908 "make the initial copy (instead of C<dd>)."
3912 #: ../clone/virt-sysprep.pod:415
3917 #: ../clone/virt-sysprep.pod:417
3921 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
3922 #| " const char *device,\n"
3923 #| " const char *key,\n"
3924 #| " int keyslot,\n"
3925 #| " const char *cipher);\n"
3929 " template ---------->\n"
3930 " \\------> cloned\n"
3931 " \\-----> guests\n"
3936 " guestfs_luks_format_cipher (guestfs_h *g,\n"
3937 " const char *device,\n"
3938 " const char *key,\n"
3940 " const char *cipher);\n"
3944 #: ../clone/virt-sysprep.pod:423
3946 "If you want to give people cloned guests, but let them pick the size of the "
3947 "guest themselves (eg. depending on how much they are prepared to pay for "
3948 "disk space), then instead of copying the template, you can run L<virt-resize"
3949 "(1)>. Virt-resize performs a copy and resize, and thus is ideal for cloning "
3950 "guests from a template."
3954 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1149
3959 #: ../clone/virt-sysprep.pod:431
3961 "Although virt-sysprep removes some sensitive information from the guest, it "
3962 "does not pretend to remove all of it. You should examine the L</OPERATIONS> "
3963 "above, and the implementation of the operations in the shell script. You "
3964 "should also examine the guest afterwards."
3968 #: ../clone/virt-sysprep.pod:436
3970 "Sensitive files are simply removed. The data they contained may still exist "
3971 "on the disk, easily recovered with a hex editor or undelete tool. Use "
3972 "L<virt-sparsify(1)> as one way to remove this content. See also the L<scrub"
3973 "(1)> command to get rid of deleted content in directory entries and inodes."
3977 #: ../clone/virt-sysprep.pod:442
3982 #: ../clone/virt-sysprep.pod:444
3983 msgid "I<(This section applies to Linux guests only)>"
3987 #: ../clone/virt-sysprep.pod:446
3989 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3990 "from the host into the guest's random seed file."
3994 #: ../clone/virt-sysprep.pod:449
3996 "If this is just done once and the guest is cloned from the same template, "
3997 "then each guest will start with the same entropy, and things like SSH host "
3998 "keys and TCP sequence numbers may be predictable."
4002 #: ../clone/virt-sysprep.pod:453
4004 "Therefore you should arrange to add more randomness I<after> cloning from a "
4005 "template too, which can be done by just enabling the C<random-seed> "
4010 #: ../clone/virt-sysprep.pod:457
4013 " cp template.img newguest.img\n"
4014 " virt-sysprep --enable=random-seed -a newguest.img\n"
4019 #: ../clone/virt-sysprep.pod:460
4020 msgid "SELINUX RELABELLING"
4024 #: ../clone/virt-sysprep.pod:462
4025 msgid "I<(This section applies to Linux guests using SELinux only)>"
4029 #: ../clone/virt-sysprep.pod:464
4031 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
4032 "autorelabel> so that these will be correctly labelled by SELinux the next "
4033 "time the guest is booted. This process interrupts boot and can take some "
4038 #: ../clone/virt-sysprep.pod:469
4040 "You can force relabelling for all guests by supplying the I<--selinux-"
4045 #: ../clone/virt-sysprep.pod:472
4047 "You can disable relabelling entirely by supplying the I<--no-selinux-"
4052 #: ../clone/virt-sysprep.pod:484
4053 msgid "This program returns 0 on success, or 1 if there was an error."
4057 #: ../clone/virt-sysprep.pod:488
4060 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
4061 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
4062 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4064 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
4065 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
4066 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
4068 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
4069 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
4070 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4073 #: ../df/virt-df.pod:5
4074 msgid "virt-df - Display free space on virtual filesystems"
4078 #: ../df/virt-df.pod:9
4081 #| " virt-list-partitions [--options] domname\n"
4084 " virt-df [--options]\n"
4087 " virt-list-partitions [--параметри] назва_домену\n"
4091 #: ../df/virt-df.pod:11
4094 #| " virt-list-partitions [--options] domname\n"
4097 " virt-df [--options] -d domname\n"
4100 " virt-list-partitions [--параметри] назва_домену\n"
4104 #: ../df/virt-df.pod:13
4107 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
4110 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
4113 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
4117 #: ../df/virt-df.pod:17
4120 #| " virt-list-partitions [--options] domname\n"
4123 " virt-df [--options] domname\n"
4126 " virt-list-partitions [--параметри] назва_домену\n"
4130 #: ../df/virt-df.pod:19
4133 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
4136 " virt-df [--options] disk.img [disk.img ...]\n"
4139 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
4143 #: ../df/virt-df.pod:23
4145 "C<virt-df> is a command line tool to display free space on virtual machine "
4146 "filesystems. Unlike other tools, it doesn't just display the size of disk "
4147 "allocated to a virtual machine, but can look inside disk images to see how "
4148 "much space is really being used."
4152 #: ../df/virt-df.pod:28
4154 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
4155 "to get a list of all active and inactive guests, and performs a C<df>-type "
4156 "operation on each one in turn, printing out the results."
4160 #: ../df/virt-df.pod:32
4162 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
4163 "type operation on either the single named libvirt domain, or on the disk "
4164 "image(s) listed on the command line (which must all belong to a single VM). "
4165 "In this mode (with arguments), C<virt-df> will I<only work for a single "
4166 "guest>. If you want to run on multiple guests, then you have to invoke "
4167 "C<virt-df> multiple times."
4171 #: ../df/virt-df.pod:39
4173 "Use the I<--csv> option to get a format which can be easily parsed by other "
4174 "programs. Other options are similar to the standard L<df(1)> command."
4178 #: ../df/virt-df.pod:45
4180 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
4181 "output human-readable:"
4185 #: ../df/virt-df.pod:48
4188 " # virt-df -d F14x64 -h\n"
4189 " Filesystem Size Used Available Use%\n"
4190 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
4191 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
4196 #: ../df/virt-df.pod:53
4197 msgid "Show disk usage for a disk image file called C<test.img>:"
4201 #: ../df/virt-df.pod:55
4204 " $ virt-df -a test1.img\n"
4205 " Filesystem 1K-blocks Used Available Use%\n"
4206 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
4211 #: ../df/virt-df.pod:112
4214 #| " guestfish --format=raw -a disk.img\n"
4217 " virt-df --format=raw -a disk.img\n"
4220 " guestfish --format=raw -a disk.img\n"
4224 #: ../df/virt-df.pod:116
4227 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4230 " virt-df --format=raw -a disk.img --format -a another.img\n"
4233 " guestfish --format=raw -a disk.img --format -a another.img\n"
4237 #: ../df/virt-df.pod:129
4238 msgid "Print sizes in human-readable format."
4242 #: ../df/virt-df.pod:131
4243 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
4247 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
4252 #: ../df/virt-df.pod:135
4254 #| msgid "B<--live>"
4259 #: ../df/virt-df.pod:137
4260 msgid "Print inodes instead of blocks."
4264 #: ../df/virt-df.pod:139
4266 #| msgid "B<--merge>"
4267 msgid "B<--one-per-guest>"
4271 #: ../df/virt-df.pod:141
4273 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
4274 "disks from several guests to a single libguestfs appliance."
4278 #: ../df/virt-df.pod:144
4279 msgid "You might use this option in the following circumstances:"
4283 #: ../df/virt-df.pod:150
4285 "If you think an untrusted guest might actively try to exploit the libguestfs "
4286 "appliance kernel, then this prevents one guest from interfering with the "
4287 "stats printed for another guest."
4291 #: ../df/virt-df.pod:156
4293 "If the kernel has a bug which stops it from accessing a filesystem in one "
4294 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
4295 "and report stats for further guests."
4299 #: ../df/virt-df.pod:165
4301 "Print UUIDs instead of names. This is useful for following a guest even "
4302 "when the guest is migrated or renamed, or when two guests happen to have the "
4307 #: ../df/virt-df.pod:169
4309 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
4310 "images, we still print the disk image name even when this option is "
4315 #: ../df/virt-df.pod:229
4317 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4322 #: ../edit/virt-edit.pod:5
4323 msgid "virt-edit - Edit a file in a virtual machine"
4327 #: ../edit/virt-edit.pod:9
4330 #| " virt-list-partitions [--options] domname\n"
4333 " virt-edit [--options] -d domname file [file ...]\n"
4336 " virt-list-partitions [--параметри] назва_домену\n"
4340 #: ../edit/virt-edit.pod:11
4343 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
4346 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4349 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
4353 #: ../edit/virt-edit.pod:13
4356 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4361 #: ../edit/virt-edit.pod:17
4364 " virt-edit domname file\n"
4369 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4372 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
4375 " virt-edit disk.img [disk.img ...] file\n"
4378 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
4382 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4383 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4384 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4385 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4387 msgstr "ПОПЕРЕДЖЕННЯ"
4390 #: ../edit/virt-edit.pod:23
4392 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
4393 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
4394 "doing this, but doesn't catch all cases."
4398 #: ../edit/virt-edit.pod:29
4400 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4401 "exists in the named virtual machine (or disk image)."
4405 #: ../edit/virt-edit.pod:32
4407 "Multiple filenames can be given, in which case they are each edited in "
4408 "turn. Each filename must be a full path, starting at the root directory "
4409 "(starting with '/')."
4413 #: ../edit/virt-edit.pod:36
4414 msgid "If you want to just view a file, use L<virt-cat(1)>."
4418 #: ../edit/virt-edit.pod:38
4420 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4421 "USING GUESTFISH> below)."
4425 #: ../edit/virt-edit.pod:41
4427 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
4428 "that and much more."
4432 #: ../edit/virt-edit.pod:46
4433 msgid "Edit the named files interactively:"
4437 #: ../edit/virt-edit.pod:48
4440 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4445 #: ../edit/virt-edit.pod:50
4448 " virt-edit -d mydomain /etc/passwd\n"
4453 #: ../edit/virt-edit.pod:52
4454 msgid "For Windows guests, some Windows paths are understood:"
4458 #: ../edit/virt-edit.pod:54
4461 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4466 #: ../edit/virt-edit.pod:56
4468 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4469 "INTERACTIVE EDITING> below). To change the init default level to 5:"
4473 #: ../edit/virt-edit.pod:60
4476 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4481 #: ../edit/virt-edit.pod:81
4482 msgid "B<-b> extension"
4486 #: ../edit/virt-edit.pod:83
4487 msgid "B<--backup> extension"
4491 #: ../edit/virt-edit.pod:85
4493 "Create a backup of the original file I<in the guest disk image>. The backup "
4494 "has the original filename with C<extension> added."
4498 #: ../edit/virt-edit.pod:88
4500 "Usually the first character of C<extension> would be a dot C<.> so you would "
4505 #: ../edit/virt-edit.pod:91
4508 " virt-edit -b .orig [etc]\n"
4513 #: ../edit/virt-edit.pod:93
4514 msgid "By default, no backup file is made."
4518 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4519 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4520 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4521 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4523 msgstr "B<-c адреса>"
4526 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4527 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4528 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4529 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4530 msgid "B<--connect URI>"
4531 msgstr "B<--connect адреса>"
4534 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4535 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4536 #: ../tools/virt-win-reg.pl:135
4538 "If you specify guest block devices directly, then libvirt is not used at all."
4542 #: ../edit/virt-edit.pod:114
4544 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4545 "off so you cannot see what you are typing. If you are not worried about "
4546 "Tempest attacks and there is no one else in the room you can specify this "
4547 "flag to see what you are typing."
4551 #: ../edit/virt-edit.pod:119
4556 #: ../edit/virt-edit.pod:121
4558 #| msgid "B<--help>"
4559 msgid "B<--expr> EXPR"
4563 #: ../edit/virt-edit.pod:123
4565 "Instead of launching the external editor, non-interactively apply the Perl "
4566 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
4571 #: ../edit/virt-edit.pod:127
4573 "Be careful to properly quote the expression to prevent it from being altered "
4578 #: ../edit/virt-edit.pod:130
4579 msgid "Note that this option is only available when Perl 5 is installed."
4583 #: ../edit/virt-edit.pod:132
4585 #| msgid "B<--format=raw|qcow2|..>"
4586 msgid "B<--format> raw|qcow2|..."
4587 msgstr "B<--format=raw|qcow2|..>"
4590 #: ../edit/virt-edit.pod:143
4593 #| " guestfish --format=raw -a disk.img\n"
4596 " virt-edit --format=raw -a disk.img file\n"
4599 " guestfish --format=raw -a disk.img\n"
4603 #: ../edit/virt-edit.pod:147
4606 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4609 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4612 " guestfish --format=raw -a disk.img --format -a another.img\n"
4616 #: ../edit/virt-edit.pod:181
4617 msgid "Previous versions of virt-edit allowed you to write either:"
4621 #: ../edit/virt-edit.pod:187
4624 #| " edit filename\n"
4627 " virt-edit guestname file\n"
4630 " edit назва_файла\n"
4634 #: ../edit/virt-edit.pod:195
4635 msgid "NON-INTERACTIVE EDITING"
4639 #: ../edit/virt-edit.pod:197
4641 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4642 "administrator can interactively edit the file."
4646 #: ../edit/virt-edit.pod:200
4648 "There are two ways also to use C<virt-edit> from scripts in order to make "
4649 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
4650 "like this, it's less error-prone to write scripts directly using the "
4651 "libguestfs API and Augeas for configuration file editing.)"
4655 #: ../edit/virt-edit.pod:206
4657 "The first method is to temporarily set C<$EDITOR> to any script or program "
4658 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
4659 "update C<tmpfile> in place however it likes."
4663 #: ../edit/virt-edit.pod:210
4665 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4666 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
4667 "instances of C<foo> with C<bar> in a file:"
4671 #: ../edit/virt-edit.pod:214
4674 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4679 #: ../edit/virt-edit.pod:216
4681 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
4682 "For example to delete root's password you could do:"
4686 #: ../edit/virt-edit.pod:219
4689 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4694 #: ../edit/virt-edit.pod:221
4696 "What really happens is that the snippet is evaluated as a Perl expression "
4697 "for each line of the file. The line, including the final C<\\n>, is passed "
4698 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4702 #: ../edit/virt-edit.pod:226
4704 "To delete a line, set C<$_> to the empty string. For example, to delete the "
4705 "C<apache> user account from the password file you can do:"
4709 #: ../edit/virt-edit.pod:229
4712 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4717 #: ../edit/virt-edit.pod:231
4719 "To insert a line, prepend or append it to C<$_>. However appending lines to "
4720 "the end of the file is rather difficult this way since there is no concept "
4721 "of \"last line of the file\" - your expression just doesn't get called "
4722 "again. You might want to use the first method (setting C<$EDITOR>) if you "
4727 #: ../edit/virt-edit.pod:237
4729 "The variable C<$lineno> contains the current line number. As is "
4730 "traditional, the first line in the file is number C<1>."
4734 #: ../edit/virt-edit.pod:240
4736 "The return value from the expression is ignored, but the expression may call "
4737 "C<die> in order to abort the whole program, leaving the original file "
4742 #: ../edit/virt-edit.pod:244
4744 "Remember when matching the end of a line that C<$_> may contain the final C<"
4745 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4746 "newline then neither of these. Thus to match or substitute some text at the "
4747 "end of a line, use this regular expression:"
4751 #: ../edit/virt-edit.pod:249
4754 " /some text(\\r?\\n)?$/\n"
4759 #: ../edit/virt-edit.pod:251
4761 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4762 "$_> itself (since that would remove all newlines from the file):"
4766 #: ../edit/virt-edit.pod:255
4769 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4774 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
4775 msgid "WINDOWS PATHS"
4779 #: ../edit/virt-edit.pod:259
4781 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4782 "paths (eg. C<E:\\foo\\bar.txt>)."
4786 #: ../edit/virt-edit.pod:262
4787 msgid "If and only if the guest is running Windows then:"
4791 #: ../edit/virt-edit.pod:268
4793 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
4794 "to the correct filesystem."
4798 #: ../edit/virt-edit.pod:273
4800 "Any backslash (C<\\>) characters in the path are replaced with forward "
4801 "slashes so that libguestfs can process it."
4805 #: ../edit/virt-edit.pod:278
4807 "The path is resolved case insensitively to locate the file that should be "
4812 #: ../edit/virt-edit.pod:283
4813 msgid "There are some known shortcomings:"
4817 #: ../edit/virt-edit.pod:289
4818 msgid "Some NTFS symbolic links may not be followed correctly."
4822 #: ../edit/virt-edit.pod:293
4823 msgid "NTFS junction points that cross filesystems are not followed."
4827 #: ../edit/virt-edit.pod:299
4829 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4830 "C<virt-edit> doesn't work."
4834 #: ../edit/virt-edit.pod:302
4835 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4839 #: ../edit/virt-edit.pod:304
4842 #| " guestfish --ro -d myguest -i\n"
4845 " guestfish --rw -i -d domname edit /file\n"
4848 " guestfish --ro -d myguest -i\n"
4852 #: ../edit/virt-edit.pod:306
4854 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4859 #: ../edit/virt-edit.pod:309
4861 "The command above uses libguestfs's guest inspection feature and so does not "
4862 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4863 "disk images that don't contain guests. To edit a file on a disk image "
4868 #: ../edit/virt-edit.pod:314
4871 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4874 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4877 " guestfish --format=raw -a disk.img --format -a another.img\n"
4881 #: ../edit/virt-edit.pod:316
4883 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4884 "the disk image to edit, and C</file> is the full path to the file."
4888 #: ../edit/virt-edit.pod:320
4890 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
4891 "C<write> or C<upload> instead:"
4895 #: ../edit/virt-edit.pod:323
4898 #| " guestfish --ro -d myguest -i\n"
4901 " guestfish --rw -i -d domname touch /newfile\n"
4904 " guestfish --ro -d myguest -i\n"
4908 #: ../edit/virt-edit.pod:325
4911 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4916 #: ../edit/virt-edit.pod:327
4919 " guestfish --rw -i -d domname upload localfile /newfile\n"
4924 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4925 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4926 #: ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
4927 msgid "ENVIRONMENT VARIABLES"
4928 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4931 #: ../edit/virt-edit.pod:333
4938 #: ../edit/virt-edit.pod:335
4940 "If set, this string is used as the editor. It may contain arguments, eg. C<"
4945 #: ../edit/virt-edit.pod:338
4946 msgid "If not set, C<vi> is used."
4950 #: ../edit/virt-edit.pod:356
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::"
4955 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4957 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4958 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4959 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4961 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4962 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4963 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4966 #: ../erlang/examples/guestfs-erlang.pod:5
4967 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4971 #: ../erlang/examples/guestfs-erlang.pod:9
4974 " {ok, G} = guestfs:create(),\n"
4975 " ok = guestfs:add_drive_opts(G, Disk,\n"
4976 " [{format, \"raw\"}, {readonly, true}]),\n"
4977 " ok = guestfs:launch(G),\n"
4978 " [Device] = guestfs:list_devices(G),\n"
4979 " ok = guestfs:close(G).\n"
4984 #: ../erlang/examples/guestfs-erlang.pod:18
4986 "This manual page documents how to call libguestfs from the Erlang "
4987 "programming language. This page just documents the differences from the C "
4988 "API and gives some examples. If you are not familiar with using libguestfs, "
4989 "you also need to read L<guestfs(3)>."
4993 #: ../erlang/examples/guestfs-erlang.pod:23
4994 msgid "OPENING AND CLOSING THE HANDLE"
4998 #: ../erlang/examples/guestfs-erlang.pod:25
5000 "The Erlang bindings are implemented using an external program called C<erl-"
5001 "guestfs>. This program must be on the current PATH, or else you should "
5002 "specify the full path to the program:"
5006 #: ../erlang/examples/guestfs-erlang.pod:29
5009 #| " g = guestfs_create ();\n"
5012 " {ok, G} = guestfs:create().\n"
5015 " g = guestfs_create ();\n"
5019 #: ../erlang/examples/guestfs-erlang.pod:31
5022 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
5027 #: ../erlang/examples/guestfs-erlang.pod:33
5028 msgid "C<G> is the libguestfs handle which you should pass to other functions."
5032 #: ../erlang/examples/guestfs-erlang.pod:36
5033 msgid "To close the handle:"
5037 #: ../erlang/examples/guestfs-erlang.pod:38
5040 #| " g = guestfs_create ();\n"
5043 " ok = guestfs:close(G).\n"
5046 " g = guestfs_create ();\n"
5050 #: ../erlang/examples/guestfs-erlang.pod:40
5052 #| msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
5053 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
5054 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
5057 #: ../erlang/examples/guestfs-erlang.pod:42
5059 "For functions that take optional arguments, the first arguments are the non-"
5060 "optional ones. The last argument is a list of tuples supplying the "
5061 "remaining optional arguments."
5065 #: ../erlang/examples/guestfs-erlang.pod:46
5068 #| " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
5069 #| " va_list args);\n"
5072 " ok = guestfs:add_drive_opts(G, Disk,\n"
5073 " [{format, \"raw\"}, {readonly, true}]).\n"
5076 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
5081 #: ../erlang/examples/guestfs-erlang.pod:49
5082 msgid "If the last argument would be an empty list, you can also omit it:"
5086 #: ../erlang/examples/guestfs-erlang.pod:51
5089 #| " guestfs_add_drive_opts (g, filename, -1);\n"
5092 " ok = guestfs:add_drive_opts(G, Disk).\n"
5095 " guestfs_add_drive_opts (g, filename, -1);\n"
5099 #: ../erlang/examples/guestfs-erlang.pod:53
5100 msgid "RETURN VALUES AND ERRORS"
5104 #: ../erlang/examples/guestfs-erlang.pod:55
5106 "On success, most functions return a C<Result> term (which could be a list, "
5107 "string, tuple etc.). If there is nothing for the function to return, then "
5108 "the atom C<ok> is returned."
5112 #: ../erlang/examples/guestfs-erlang.pod:59
5113 msgid "On error, you would see one of the following tuples:"
5117 #: ../erlang/examples/guestfs-erlang.pod:63
5118 msgid "C<{error, Msg, Errno}>"
5122 #: ../erlang/examples/guestfs-erlang.pod:65
5123 msgid "This indicates an ordinary error from the function."
5127 #: ../erlang/examples/guestfs-erlang.pod:67
5129 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
5134 #: ../erlang/examples/guestfs-erlang.pod:70
5135 msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
5139 #: ../erlang/examples/guestfs-erlang.pod:72
5140 msgid "C<{unknown, Function}>"
5144 #: ../erlang/examples/guestfs-erlang.pod:74
5146 "This indicates that the function you called is not known. Generally this "
5147 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
5148 "which you should not do."
5152 #: ../erlang/examples/guestfs-erlang.pod:78
5153 msgid "C<Function> is the name of the unknown function."
5157 #: ../erlang/examples/guestfs-erlang.pod:80
5158 msgid "C<{unknownarg, Arg}>"
5162 #: ../erlang/examples/guestfs-erlang.pod:82
5164 "This indicates that you called a function with optional arguments, with an "
5165 "unknown argument name."
5169 #: ../erlang/examples/guestfs-erlang.pod:85
5170 msgid "C<Arg> is the name of the unknown argument."
5174 #: ../erlang/examples/guestfs-erlang.pod:89
5175 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
5176 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
5177 #: ../python/examples/guestfs-python.pod:34
5178 #: ../ruby/examples/guestfs-ruby.pod:28
5179 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
5183 #: ../erlang/examples/guestfs-erlang.pod:91
5184 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
5185 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
5186 #: ../python/examples/guestfs-python.pod:36
5187 #: ../ruby/examples/guestfs-ruby.pod:30
5194 #: ../erlang/examples/guestfs-erlang.pod:93
5195 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
5196 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
5197 #: ../python/examples/guestfs-python.pod:38
5198 #: ../ruby/examples/guestfs-ruby.pod:32
5199 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
5203 #: ../erlang/examples/guestfs-erlang.pod:95
5204 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
5205 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
5206 #: ../python/examples/guestfs-python.pod:40
5207 #: ../ruby/examples/guestfs-ruby.pod:34
5214 #: ../erlang/examples/guestfs-erlang.pod:99
5217 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5218 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
5219 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5221 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5222 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5223 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
5225 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5226 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
5227 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5230 #: ../erlang/examples/guestfs-erlang.pod:110
5231 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
5232 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
5233 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
5234 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
5235 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
5236 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
5237 #: ../python/examples/guestfs-python.pod:54
5238 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333
5239 #: ../test-tool/libguestfs-test-tool.pod:106
5244 #: ../erlang/examples/guestfs-erlang.pod:112
5245 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
5246 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
5247 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
5248 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
5249 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
5250 #: ../perl/examples/guestfs-perl.pod:54
5251 #: ../python/examples/guestfs-python.pod:56
5252 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3335
5253 #: ../test-tool/libguestfs-test-tool.pod:108
5254 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
5258 #: ../erlang/examples/guestfs-erlang.pod:116
5259 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
5261 #| msgid "Copyright (C) 2009 Red Hat Inc."
5262 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
5263 msgstr "© Red Hat Inc., 2009"
5266 #: ../erlang/examples/guestfs-erlang.pod:118
5267 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
5268 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
5269 #: ../perl/examples/guestfs-perl.pod:60
5270 #: ../python/examples/guestfs-python.pod:62
5271 #: ../ruby/examples/guestfs-ruby.pod:56
5273 "The examples in this manual page may be freely copied, modified and "
5274 "distributed without any restrictions."
5278 #: ../erlang/examples/guestfs-erlang.pod:121
5279 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
5280 #: ../java/examples/guestfs-java.pod:69
5281 #: ../ocaml/examples/guestfs-ocaml.pod:102
5282 #: ../perl/examples/guestfs-perl.pod:63
5283 #: ../python/examples/guestfs-python.pod:65
5284 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
5286 "This library is free software; you can redistribute it and/or modify it "
5287 "under the terms of the GNU Lesser General Public License as published by the "
5288 "Free Software Foundation; either version 2 of the License, or (at your "
5289 "option) any later version."
5293 #: ../erlang/examples/guestfs-erlang.pod:126
5294 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
5295 #: ../java/examples/guestfs-java.pod:74
5296 #: ../ocaml/examples/guestfs-ocaml.pod:107
5297 #: ../perl/examples/guestfs-perl.pod:68
5298 #: ../python/examples/guestfs-python.pod:70
5299 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
5301 "This library is distributed in the hope that it will be useful, but WITHOUT "
5302 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5303 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
5308 #: ../erlang/examples/guestfs-erlang.pod:131
5309 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
5310 #: ../java/examples/guestfs-java.pod:79
5311 #: ../ocaml/examples/guestfs-ocaml.pod:112
5312 #: ../perl/examples/guestfs-perl.pod:73
5313 #: ../python/examples/guestfs-python.pod:75
5314 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
5316 "You should have received a copy of the GNU Lesser General Public License "
5317 "along with this library; if not, write to the Free Software Foundation, "
5318 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5322 #: ../examples/guestfs-examples.pod:5
5323 msgid "guestfs-examples - Examples of using libguestfs from C"
5327 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
5330 " #include <guestfs.h>\n"
5333 " #include <guestfs.h>\n"
5337 #: ../examples/guestfs-examples.pod:11
5340 " guestfs_h *g = guestfs_create ();\n"
5341 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5342 " guestfs_launch (g);\n"
5347 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
5350 " cc prog.c -o prog -lguestfs\n"
5352 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5355 " cc prog.c -o prog -lguestfs\n"
5357 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5361 #: ../examples/guestfs-examples.pod:21
5363 "This manual page contains examples of calling libguestfs from the C "
5364 "programming language. If you are not familiar with using libguestfs, you "
5365 "also need to read L<guestfs(3)>."
5369 #: ../examples/guestfs-examples.pod:35
5372 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5373 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
5374 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5376 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5377 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5378 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5380 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5381 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
5382 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5385 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
5386 #: ../python/examples/guestfs-python.pod:60
5387 #: ../ruby/examples/guestfs-ruby.pod:54
5389 #| msgid "Copyright (C) 2009 Red Hat Inc."
5390 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5391 msgstr "© Red Hat Inc., 2009"
5394 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5399 #: ../examples/guestfs-recipes.pod:5
5401 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5402 "here. The only way which works for both sorts of output is to just write "
5403 "the URL directly. Do NOT use L<...> for URLs."
5407 #: ../examples/guestfs-recipes.pod:9
5409 "We break with tradition here and don't use ALL CAPS for the section "
5410 "headings, as this makes them much easier to read."
5414 #: ../examples/guestfs-recipes.pod:16
5415 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5419 #: ../examples/guestfs-recipes.pod:20
5421 "This page contains recipes for and links to things you can do using "
5422 "libguestfs, L<guestfish(1)> and the virt tools."
5426 #: ../examples/guestfs-recipes.pod:23
5427 msgid "Audit a virtual machine for setuid files"
5431 #: ../examples/guestfs-recipes.pod:25
5433 "The link below contains a small program which can be used to audit a Linux "
5434 "virtual machine to see what setuid and setgid files it contains."
5438 #: ../examples/guestfs-recipes.pod:28
5440 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5445 #: ../examples/guestfs-recipes.pod:30
5446 msgid "Change the background image in a Windows XP VM"
5450 #: ../examples/guestfs-recipes.pod:32
5452 "The links below explain how to use L<guestfish(1)> to change the background "
5453 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
5454 "be substantially different for each version of Windows."
5458 #: ../examples/guestfs-recipes.pod:37
5460 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5461 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5465 #: ../examples/guestfs-recipes.pod:40
5466 msgid "Cloning a virtual machine (Linux)"
5470 #: ../examples/guestfs-recipes.pod:42
5472 "The guestfish technique described in the link below works well for most "
5473 "Linux VMs. Depending on the Linux distro you may need to change the paths "
5478 #: ../examples/guestfs-recipes.pod:46
5480 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5485 #: ../examples/guestfs-recipes.pod:48
5487 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
5492 #: ../examples/guestfs-recipes.pod:51
5493 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5497 #: ../examples/guestfs-recipes.pod:53
5498 msgid "Cloning a virtual machine (Windows)"
5502 #: ../examples/guestfs-recipes.pod:55
5504 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5505 "straightforward. Currently there is code in the Aeolus Oz project which "
5506 "does this (using libguestfs). As part of our review of the virt-clone tool, "
5507 "we may add sysprepping ability."
5511 #: ../examples/guestfs-recipes.pod:60
5513 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5514 "list/2011-May/msg00019.html"
5518 #: ../examples/guestfs-recipes.pod:63
5519 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5523 #: ../examples/guestfs-recipes.pod:65
5524 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5528 #: ../examples/guestfs-recipes.pod:67
5531 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5536 #: ../examples/guestfs-recipes.pod:69
5537 msgid "To export just a subdirectory, eg. C</files>, do:"
5541 #: ../examples/guestfs-recipes.pod:71
5544 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5549 #: ../examples/guestfs-recipes.pod:73
5550 msgid "Create empty disk images"
5554 #: ../examples/guestfs-recipes.pod:75
5556 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
5557 "The useful guide below explains the options available."
5561 #: ../examples/guestfs-recipes.pod:78
5563 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5568 #: ../examples/guestfs-recipes.pod:80
5569 msgid "Dump raw filesystem content from inside a disk image or VM"
5573 #: ../examples/guestfs-recipes.pod:82
5575 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5576 "filesystem content from any filesystem in a disk image or a VM (even one "
5577 "which is encrypted or buried inside an LV):"
5581 #: ../examples/guestfs-recipes.pod:86
5584 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
5587 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5590 " guestfish --format=raw -a disk.img --format -a another.img\n"
5594 #: ../examples/guestfs-recipes.pod:88
5597 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5602 #: ../examples/guestfs-recipes.pod:90
5603 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5607 #: ../examples/guestfs-recipes.pod:92
5608 msgid "Edit grub configuration in a VM"
5612 #: ../examples/guestfs-recipes.pod:94
5613 msgid "You can use this to:"
5617 #: ../examples/guestfs-recipes.pod:100
5618 msgid "Fix a virtual machine that does not boot."
5622 #: ../examples/guestfs-recipes.pod:104
5623 msgid "Change which kernel is used to boot the VM."
5627 #: ../examples/guestfs-recipes.pod:108
5628 msgid "Change kernel command line options."
5632 #: ../examples/guestfs-recipes.pod:112
5633 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5637 #: ../examples/guestfs-recipes.pod:114
5640 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5645 #: ../examples/guestfs-recipes.pod:116
5647 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5652 #: ../examples/guestfs-recipes.pod:119
5655 " virt-rescue -d BrokenGuest\n"
5660 #: ../examples/guestfs-recipes.pod:121
5661 msgid "Export any directory from a VM"
5665 #: ../examples/guestfs-recipes.pod:123
5667 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5671 #: ../examples/guestfs-recipes.pod:126
5674 #| " copy-out /home .\n"
5677 " virt-copy-out -d Guest /home .\n"
5680 " copy-out /home .\n"
5684 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5685 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
5686 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:18
5687 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457
5688 #: ../src/guestfs-actions.pod:3016 ../src/guestfs.pod:1670
5689 #: ../tools/virt-win-reg.pl:706
5694 #: ../examples/guestfs-recipes.pod:134
5696 "The final dot of the command is not a printing error. It means we want to "
5697 "copy out to the current directory."
5701 #: ../examples/guestfs-recipes.pod:139
5702 msgid "This creates a directory called C<home> under the current directory."
5706 #: ../examples/guestfs-recipes.pod:143
5708 "If the guest is a Windows guest then you can use drive letters and "
5709 "backslashes, but you must prefix the path with C<win:> and quote it to "
5710 "protect it from the shell, like this:"
5714 #: ../examples/guestfs-recipes.pod:147
5717 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5722 #: ../examples/guestfs-recipes.pod:149
5723 msgid "To get the output as a compressed tarball, do:"
5727 #: ../examples/guestfs-recipes.pod:151
5730 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5735 #: ../examples/guestfs-recipes.pod:153
5737 "Although it sounds tempting, this is usually not a reliable way to get a "
5738 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
5739 "org/FAQ.html#backup"
5743 #: ../examples/guestfs-recipes.pod:157
5744 msgid "Find out which user is using the most space"
5748 #: ../examples/guestfs-recipes.pod:159
5750 "This simple script examines a Linux guest to find out which user is using "
5751 "the most space in their home directory:"
5755 #: ../examples/guestfs-recipes.pod:162
5758 #| " #!/usr/bin/guestfish -f\n"
5764 " #!/usr/bin/guestfish -f\n"
5768 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5771 #| " set-qemu qemu\n"
5781 #: ../examples/guestfs-recipes.pod:166
5790 #: ../examples/guestfs-recipes.pod:169
5793 #| " guestfish --ro -d myguest -i\n"
5796 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5799 " guestfish --ro -d myguest -i\n"
5803 #: ../examples/guestfs-recipes.pod:171
5806 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5807 " echo -n \"$dir/$d\"\n"
5809 " guestfish --remote du \"$dir/$d\";\n"
5810 " done | sort -nr -k 2\n"
5815 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5818 " guestfish --remote exit\n"
5823 #: ../examples/guestfs-recipes.pod:179
5824 msgid "Get DHCP address from a VM"
5828 #: ../examples/guestfs-recipes.pod:181
5830 "The link below explains the many different possible techniques for getting "
5831 "the last assigned DHCP address of a virtual machine."
5835 #: ../examples/guestfs-recipes.pod:184
5837 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5838 "a-virtual-machine-disk-image/#content"
5842 #: ../examples/guestfs-recipes.pod:186
5844 "In the libguestfs source examples directory you will find the latest version "
5845 "of the C<virt-dhcp-address.c> program."
5849 #: ../examples/guestfs-recipes.pod:189
5850 msgid "Get the operating system product name string"
5854 #: ../examples/guestfs-recipes.pod:191
5855 msgid "Save the following script into a file called C<product-name.sh>:"
5859 #: ../examples/guestfs-recipes.pod:193
5862 #| " eval \"`guestfish --listen`\"\n"
5863 #| " guestfish --remote add-ro disk.img\n"
5864 #| " guestfish --remote run\n"
5865 #| " guestfish --remote lvs\n"
5870 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5871 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5872 " guestfish --remote inspect-get-product-name \"$root\"\n"
5873 " guestfish --remote exit\n"
5876 " eval \"`guestfish --listen`\"\n"
5877 " guestfish --remote add-ro disk.img\n"
5878 " guestfish --remote run\n"
5879 " guestfish --remote lvs\n"
5883 #: ../examples/guestfs-recipes.pod:200
5884 msgid "Make the script executable and run it on a named guest:"
5888 #: ../examples/guestfs-recipes.pod:202
5891 " # product-name.sh RHEL60x64\n"
5892 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5897 #: ../examples/guestfs-recipes.pod:205
5899 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5900 "C<xpath> command line tool or from your favourite programming language:"
5904 #: ../examples/guestfs-recipes.pod:209
5907 " # virt-inspector RHEL60x64 > xml\n"
5908 " # xpath '//product_name' < xml\n"
5911 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5916 #: ../examples/guestfs-recipes.pod:215
5917 msgid "Get the default boot kernel for a Linux VM"
5921 #: ../examples/guestfs-recipes.pod:217
5923 "The link below contains a program to print the default boot kernel for a "
5928 #: ../examples/guestfs-recipes.pod:220
5930 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5931 "kernel-for-a-vm/#content"
5935 #: ../examples/guestfs-recipes.pod:222
5937 "It uses Augeas, and the technique is generally applicable for many different "
5942 #: ../examples/guestfs-recipes.pod:229
5943 msgid "listing the user accounts in the guest"
5947 #: ../examples/guestfs-recipes.pod:233
5948 msgid "what repositories is it configured to use"
5952 #: ../examples/guestfs-recipes.pod:237
5953 msgid "what NTP servers does it connect to"
5957 #: ../examples/guestfs-recipes.pod:241
5958 msgid "what were the boot messages last time it booted"
5962 #: ../examples/guestfs-recipes.pod:245
5963 msgid "listing who was logged in recently"
5967 #: ../examples/guestfs-recipes.pod:249
5968 msgid "http://augeas.net/"
5972 #: ../examples/guestfs-recipes.pod:251
5973 msgid "Install RPMs in a guest"
5977 #: ../examples/guestfs-recipes.pod:253
5979 "The link below contains a method to install RPMs in a guest. In fact the "
5980 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5981 "installs them next time the guest is booted. You could use this technique "
5982 "to install vital security updates in an offline guest."
5986 #: ../examples/guestfs-recipes.pod:259
5988 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5992 #: ../examples/guestfs-recipes.pod:261
5993 msgid "List applications installed in a VM"
5997 #: ../examples/guestfs-recipes.pod:263
5998 msgid "Save the following to a file C<list-apps.sh>:"
6002 #: ../examples/guestfs-recipes.pod:265
6005 #| " eval \"`guestfish --listen`\"\n"
6006 #| " guestfish --remote add-ro disk.img\n"
6007 #| " guestfish --remote run\n"
6008 #| " guestfish --remote lvs\n"
6013 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
6014 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
6015 " guestfish --remote inspect-list-applications \"$root\"\n"
6016 " guestfish --remote exit\n"
6019 " eval \"`guestfish --listen`\"\n"
6020 " guestfish --remote add-ro disk.img\n"
6021 " guestfish --remote run\n"
6022 " guestfish --remote lvs\n"
6026 #: ../examples/guestfs-recipes.pod:272
6028 "Make the file executable and then you can run it on any named virtual "
6033 #: ../examples/guestfs-recipes.pod:275
6036 " # list-apps.sh WinGuest\n"
6038 " app_name: Mozilla Firefox (3.6.12)\n"
6039 " app_display_name: Mozilla Firefox (3.6.12)\n"
6041 " app_version: 3.6.12 (en-GB)\n"
6043 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
6044 " app_trans_path:\n"
6045 " app_publisher: Mozilla\n"
6046 " app_url: http://www.mozilla.com/en-GB/\n"
6047 " app_source_package:\n"
6049 " app_description: Mozilla Firefox\n"
6052 " app_name: VLC media player\n"
6053 " app_display_name: VLC media player 1.1.5\n"
6055 " app_version: 1.1.5\n"
6057 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
6058 " app_trans_path:\n"
6059 " app_publisher: VideoLAN\n"
6060 " app_url: http://www.videolan.org/\n"
6061 " app_source_package:\n"
6063 " app_description:\n"
6069 #: ../examples/guestfs-recipes.pod:305
6071 "If you want to run the script on disk images (instead of libvirt virtual "
6072 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
6077 #: ../examples/guestfs-recipes.pod:309
6078 msgid "List files and directories in a VM"
6082 #: ../examples/guestfs-recipes.pod:311
6083 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
6087 #: ../examples/guestfs-recipes.pod:313
6090 #| " guestfish --ro -d myguest -i\n"
6093 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
6096 " guestfish --ro -d myguest -i\n"
6100 #: ../examples/guestfs-recipes.pod:315
6101 msgid "List services in a Windows VM"
6105 #: ../examples/guestfs-recipes.pod:317
6107 "The link below contains a script that can be used to list out the services "
6108 "from a Windows VM, and whether those services run at boot time or are loaded "
6113 #: ../examples/guestfs-recipes.pod:321
6115 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
6120 #: ../examples/guestfs-recipes.pod:323
6121 msgid "Make a disk image sparse"
6125 #: ../examples/guestfs-recipes.pod:325
6127 "The link below contains some guides for making a disk image sparse (or "
6128 "reintroducing sparseness)."
6132 #: ../examples/guestfs-recipes.pod:328
6134 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
6138 #: ../examples/guestfs-recipes.pod:330
6139 msgid "Monitor disk usage over time"
6143 #: ../examples/guestfs-recipes.pod:332
6145 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
6146 "The link below contains a guide."
6150 #: ../examples/guestfs-recipes.pod:335
6151 msgid "http://virt-tools.org/learning/advanced-virt-df/"
6155 #: ../examples/guestfs-recipes.pod:337
6156 msgid "Reading the Windows Event Log from Windows Vista (or later)"
6160 #: ../examples/guestfs-recipes.pod:339
6162 "L<guestfish(1)> plus the tools described in the link below can be used to "
6163 "read out the Windows Event Log from any virtual machine running Windows "
6164 "Vista or a later version."
6168 #: ../examples/guestfs-recipes.pod:343
6170 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
6171 "guestfish/#content"
6175 #: ../examples/guestfs-recipes.pod:345
6176 msgid "Remove root password (Linux)"
6180 #: ../examples/guestfs-recipes.pod:347
6182 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
6183 "files. One use is to remove the root password from a Linux guest:"
6187 #: ../examples/guestfs-recipes.pod:350
6190 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
6195 #: ../examples/guestfs-recipes.pod:352
6196 msgid "Remove Administrator password (Windows)"
6200 #: ../examples/guestfs-recipes.pod:354
6202 "The link below contains one technique for removing the Administrator "
6203 "password from a Windows VM, or to be more precise, it gives you a command "
6204 "prompt the next time you log in which you can use to bypass any security:"
6208 #: ../examples/guestfs-recipes.pod:359
6210 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
6211 "administrator-password-with-guestfish/"
6215 #: ../examples/guestfs-recipes.pod:361
6216 msgid "Unpack a live CD"
6220 #: ../examples/guestfs-recipes.pod:363
6222 "Linux live CDs often contain multiple layers of disk images wrapped like a "
6223 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
6224 "layers, as outlined in the guide below."
6228 #: ../examples/guestfs-recipes.pod:367
6230 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
6235 #: ../examples/guestfs-recipes.pod:369
6236 msgid "Uploading and downloading files"
6240 #: ../examples/guestfs-recipes.pod:371
6242 "The link below contains general tips on uploading (copying in) and "
6243 "downloading (copying out) files from VMs."
6247 #: ../examples/guestfs-recipes.pod:374
6249 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
6253 #: ../examples/guestfs-recipes.pod:376
6254 msgid "Use libguestfs tools on VMware ESX guests"
6258 #: ../examples/guestfs-recipes.pod:378
6260 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
6261 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
6265 #: ../examples/guestfs-recipes.pod:382
6267 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
6272 #: ../examples/guestfs-recipes.pod:386
6275 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
6276 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
6277 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
6279 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
6280 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
6281 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
6283 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
6284 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
6285 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
6288 #: ../examples/guestfs-recipes.pod:403
6290 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
6291 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
6292 msgstr "© Red Hat Inc., 2009–2010"
6295 #: ../fish/guestfish-actions.pod:1
6300 #: ../fish/guestfish-actions.pod:3
6303 " add-cdrom filename\n"
6308 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6309 msgid "This function adds a virtual CD-ROM disk image to the guest."
6313 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6314 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6318 #: ../fish/guestfish-actions.pod:15
6320 "This call checks for the existence of C<filename>. This stops you from "
6321 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6322 "and C<http:> URLs. To specify those, use the general L</config> call "
6327 #: ../fish/guestfish-actions.pod:22
6329 "If you just want to add an ISO file (often you use this as an efficient way "
6330 "to transfer large files into the guest), then you should probably use L</add-"
6331 "drive-ro> instead."
6335 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
6336 #: ../fish/guestfish-actions.pod:177
6338 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6343 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
6344 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
6345 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
6346 #: ../fish/guestfish-actions.pod:3170 ../fish/guestfish-actions.pod:3481
6347 #: ../fish/guestfish-actions.pod:3529 ../fish/guestfish-actions.pod:4442
6348 #: ../fish/guestfish-actions.pod:4465 ../fish/guestfish-actions.pod:4487
6349 #: ../fish/guestfish-actions.pod:4525 ../fish/guestfish-actions.pod:5174
6350 #: ../fish/guestfish-actions.pod:5280 ../src/guestfs-actions.pod:10
6351 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
6352 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118
6353 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4784
6354 #: ../src/guestfs-actions.pod:5306 ../src/guestfs-actions.pod:5406
6355 #: ../src/guestfs-actions.pod:6688 ../src/guestfs-actions.pod:6732
6356 #: ../src/guestfs-actions.pod:6766 ../src/guestfs-actions.pod:6829
6357 #: ../src/guestfs-actions.pod:7761 ../src/guestfs-actions.pod:7870
6358 #: ../src/guestfs-actions.pod:8053
6360 "Deprecated functions will not be removed from the API, but the fact that "
6361 "they are deprecated indicates that there are problems with correct use of "
6366 #: ../fish/guestfish-actions.pod:35
6371 #: ../fish/guestfish-actions.pod:37
6376 #: ../fish/guestfish-actions.pod:39
6379 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
6384 #: ../fish/guestfish-actions.pod:41
6386 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
6387 "It works by connecting to libvirt, requesting the domain and domain XML from "
6388 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6392 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
6394 "The number of disks added is returned. This operation is atomic: if an "
6395 "error is returned, then no disks are added."
6399 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
6401 "This function does some minimal checks to make sure the libvirt domain is "
6402 "not running (unless C<readonly> is true). In a future version we will try "
6403 "to acquire the libvirt lock on each disk."
6407 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
6409 "Disks must be accessible locally. This often means that adding disks from a "
6410 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
6411 "unless those disks are accessible via the same device path locally too."
6415 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
6417 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6418 "libvirt.org/uri.html>). If this is not set then we connect to the default "
6419 "libvirt URI (or one set through an environment variable, see the libvirt "
6420 "documentation for full details)."
6424 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
6426 "The optional C<live> flag controls whether this call will try to connect to "
6427 "a running virtual machine C<guestfsd> process if it sees a suitable "
6428 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
6429 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
6430 "DAEMONS> for more information."
6434 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
6436 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6437 "passed instead of the domain name. The C<dom> string is treated as a UUID "
6438 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6443 #: ../fish/guestfish-actions.pod:76
6445 "The other optional parameters are passed directly through to L</add-drive-"
6450 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
6451 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
6452 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2048
6453 #: ../fish/guestfish-actions.pod:3219 ../fish/guestfish-actions.pod:3382
6454 #: ../fish/guestfish-actions.pod:3517
6456 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
6460 #: ../fish/guestfish-actions.pod:81
6465 #: ../fish/guestfish-actions.pod:83
6468 " add-drive filename\n"
6471 " add-drive назва_файла\n"
6475 #: ../fish/guestfish-actions.pod:85
6477 "This function is the equivalent of calling L</add-drive-opts> with no "
6478 "optional parameters, so the disk is added writable, with the format being "
6479 "detected automatically."
6483 #: ../fish/guestfish-actions.pod:89
6485 "Automatic detection of the format opens you up to a potential security hole "
6486 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6487 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
6488 "you should think about replacing calls to this function with calls to L</add-"
6489 "drive-opts>, and specifying the format."
6493 #: ../fish/guestfish-actions.pod:96
6494 msgid "add-drive-opts"
6495 msgstr "add-drive-opts"
6498 #: ../fish/guestfish-actions.pod:98
6503 #: ../fish/guestfish-actions.pod:100
6506 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
6511 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
6513 "This function adds a virtual machine disk image C<filename> to libguestfs. "
6514 "The first time you call this function, the disk appears as C</dev/sda>, the "
6515 "second time as C</dev/sdb>, and so on."
6519 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
6521 "You don't necessarily need to be root when using libguestfs. However you "
6522 "obviously do need sufficient permissions to access the filename for whatever "
6523 "operations you want to perform (ie. read access if you just want to read the "
6524 "image or write access if you want to modify the image)."
6528 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
6529 msgid "This call checks that C<filename> exists."
6533 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3181
6534 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4821
6535 msgid "The optional arguments are:"
6539 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
6541 msgstr "C<readonly>"
6544 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
6546 "If true then the image is treated as read-only. Writes are still allowed, "
6547 "but they are stored in a temporary snapshot overlay which is discarded at "
6548 "the end. The disk that you add is not modified."
6552 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
6557 #: ../fish/guestfish-actions.pod:127
6559 "This forces the image format. If you omit this (or use L</add-drive> or L</"
6560 "add-drive-ro>) then the format is automatically detected. Possible formats "
6561 "include C<raw> and C<qcow2>."
6565 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
6567 "Automatic detection of the format opens you up to a potential security hole "
6568 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6569 "RHBZ#642934. Specifying the format closes this security hole."
6573 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
6578 #: ../fish/guestfish-actions.pod:138
6580 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6581 "add-drive-with-if> call (q.v.)"
6585 #: ../fish/guestfish-actions.pod:145
6586 msgid "add-drive-ro"
6587 msgstr "add-drive-ro"
6590 #: ../fish/guestfish-actions.pod:147
6595 #: ../fish/guestfish-actions.pod:149
6598 " add-drive-ro filename\n"
6603 #: ../fish/guestfish-actions.pod:151
6605 "This function is the equivalent of calling L</add-drive-opts> with the "
6606 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6607 "is added read-only, with the format being detected automatically."
6611 #: ../fish/guestfish-actions.pod:156
6612 msgid "add-drive-ro-with-if"
6616 #: ../fish/guestfish-actions.pod:158
6619 " add-drive-ro-with-if filename iface\n"
6624 #: ../fish/guestfish-actions.pod:160
6626 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6627 "interface emulation to use at run time."
6631 #: ../fish/guestfish-actions.pod:170
6632 msgid "add-drive-with-if"
6636 #: ../fish/guestfish-actions.pod:172
6639 " add-drive-with-if filename iface\n"
6644 #: ../fish/guestfish-actions.pod:174
6646 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6647 "interface emulation to use at run time."
6651 #: ../fish/guestfish-actions.pod:184
6656 #: ../fish/guestfish-actions.pod:186
6659 " aug-clear augpath\n"
6664 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
6666 "Set the value associated with C<path> to C<NULL>. This is the same as the "
6667 "L<augtool(1)> C<clear> command."
6671 #: ../fish/guestfish-actions.pod:191
6676 #: ../fish/guestfish-actions.pod:193
6684 #: ../fish/guestfish-actions.pod:195
6686 "Close the current Augeas handle and free up any resources used by it. After "
6687 "calling this, you have to call L</aug-init> again before you can use any "
6688 "other Augeas functions."
6692 #: ../fish/guestfish-actions.pod:200
6697 #: ../fish/guestfish-actions.pod:202
6700 " aug-defnode name expr val\n"
6705 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
6707 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6711 #: ../fish/guestfish-actions.pod:207
6713 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6714 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
6715 "containing that single node."
6719 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
6721 "On success this returns a pair containing the number of nodes in the "
6722 "nodeset, and a boolean flag if a node was created."
6726 #: ../fish/guestfish-actions.pod:215
6731 #: ../fish/guestfish-actions.pod:217
6734 " aug-defvar name expr\n"
6739 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
6741 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6742 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
6746 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
6748 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6749 "evaluates to something which is not a nodeset."
6753 #: ../fish/guestfish-actions.pod:226
6758 #: ../fish/guestfish-actions.pod:228
6761 " aug-get augpath\n"
6766 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
6768 "Look up the value associated with C<path>. If C<path> matches exactly one "
6769 "node, the C<value> is returned."
6773 #: ../fish/guestfish-actions.pod:233
6778 #: ../fish/guestfish-actions.pod:235
6781 " aug-init root flags\n"
6786 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
6788 "Create a new Augeas handle for editing configuration files. If there was "
6789 "any previous Augeas handle associated with this guestfs session, then it is "
6794 #: ../fish/guestfish-actions.pod:241
6795 msgid "You must call this before using any other L</aug-*> commands."
6799 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
6801 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
6805 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
6807 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6808 "logical I<or> of the following integers:"
6812 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
6813 msgid "C<AUG_SAVE_BACKUP> = 1"
6814 msgstr "C<AUG_SAVE_BACKUP> = 1"
6817 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
6818 msgid "Keep the original file with a C<.augsave> extension."
6822 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
6823 msgid "C<AUG_SAVE_NEWFILE> = 2"
6824 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6827 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
6829 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6830 "original. Overrides C<AUG_SAVE_BACKUP>."
6834 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
6835 msgid "C<AUG_TYPE_CHECK> = 4"
6836 msgstr "C<AUG_TYPE_CHECK> = 4"
6839 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
6840 msgid "Typecheck lenses."
6844 #: ../fish/guestfish-actions.pod:266
6846 "This option is only useful when debugging Augeas lenses. Use of this option "
6847 "may require additional memory for the libguestfs appliance. You may need to "
6848 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6852 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
6853 msgid "C<AUG_NO_STDINC> = 8"
6854 msgstr "C<AUG_NO_STDINC> = 8"
6857 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
6858 msgid "Do not use standard load path for modules."
6862 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
6863 msgid "C<AUG_SAVE_NOOP> = 16"
6864 msgstr "C<AUG_SAVE_NOOP> = 16"
6867 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
6868 msgid "Make save a no-op, just record what would have been changed."
6872 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
6873 msgid "C<AUG_NO_LOAD> = 32"
6874 msgstr "C<AUG_NO_LOAD> = 32"
6877 #: ../fish/guestfish-actions.pod:281
6878 msgid "Do not load the tree in L</aug-init>."
6882 #: ../fish/guestfish-actions.pod:285
6883 msgid "To close the handle, you can call L</aug-close>."
6887 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
6888 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6892 #: ../fish/guestfish-actions.pod:289
6897 #: ../fish/guestfish-actions.pod:291
6900 " aug-insert augpath label true|false\n"
6905 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
6907 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6908 "or after C<path> (depending on the boolean flag C<before>)."
6912 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
6914 "C<path> must match exactly one existing node in the tree, and C<label> must "
6915 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6919 #: ../fish/guestfish-actions.pod:301
6924 #: ../fish/guestfish-actions.pod:303
6932 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
6933 msgid "Load files into the tree."
6934 msgstr "Завантажити файли до ієрархії."
6937 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
6938 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6942 #: ../fish/guestfish-actions.pod:310
6947 #: ../fish/guestfish-actions.pod:312
6955 #: ../fish/guestfish-actions.pod:314
6957 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6958 "resulting nodes into alphabetical order."
6962 #: ../fish/guestfish-actions.pod:317
6967 #: ../fish/guestfish-actions.pod:319
6970 " aug-match augpath\n"
6975 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
6977 "Returns a list of paths which match the path expression C<path>. The "
6978 "returned paths are sufficiently qualified so that they match exactly one "
6979 "node in the current tree."
6983 #: ../fish/guestfish-actions.pod:325
6988 #: ../fish/guestfish-actions.pod:327
6991 " aug-mv src dest\n"
6996 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
6998 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
6999 "C<dest> is overwritten if it exists."
7003 #: ../fish/guestfish-actions.pod:332
7008 #: ../fish/guestfish-actions.pod:334
7016 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
7017 msgid "Remove C<path> and all of its children."
7021 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
7022 msgid "On success this returns the number of entries which were removed."
7026 #: ../fish/guestfish-actions.pod:340
7031 #: ../fish/guestfish-actions.pod:342
7039 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
7040 msgid "This writes all pending changes to disk."
7044 #: ../fish/guestfish-actions.pod:346
7046 "The flags which were passed to L</aug-init> affect exactly how files are "
7051 #: ../fish/guestfish-actions.pod:349
7056 #: ../fish/guestfish-actions.pod:351
7059 " aug-set augpath val\n"
7064 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
7065 msgid "Set the value associated with C<path> to C<val>."
7069 #: ../fish/guestfish-actions.pod:355
7071 "In the Augeas API, it is possible to clear a node by setting the value to "
7072 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
7073 "this call. Instead you must use the L</aug-clear> call."
7077 #: ../fish/guestfish-actions.pod:360
7082 #: ../fish/guestfish-actions.pod:362
7085 " available 'groups ...'\n"
7090 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
7092 "This command is used to check the availability of some groups of "
7093 "functionality in the appliance, which not all builds of the libguestfs "
7094 "appliance will be able to provide."
7098 #: ../fish/guestfish-actions.pod:368
7100 "The libguestfs groups, and the functions that those groups correspond to, "
7101 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
7102 "runtime by calling L</available-all-groups>."
7106 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
7108 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7109 "\"]> would check for the availability of the Linux inotify functions and "
7110 "Augeas (configuration file editing) functions."
7114 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
7115 msgid "The command returns no error if I<all> requested groups are available."
7119 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
7121 "It fails with an error if one or more of the requested groups is unavailable "
7126 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
7128 "If an unknown group name is included in the list of groups then an error is "
7133 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
7135 msgstr "I<Нотатки:>"
7138 #: ../fish/guestfish-actions.pod:392
7139 msgid "You must call L</launch> before calling this function."
7143 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
7145 "The reason is because we don't know what groups are supported by the "
7146 "appliance/daemon until it is running and can be queried."
7150 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
7152 "If a group of functions is available, this does not necessarily mean that "
7153 "they will work. You still have to check for errors when calling individual "
7154 "API functions even if they are available."
7158 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
7160 "It is usually the job of distro packagers to build complete functionality "
7161 "into the libguestfs appliance. Upstream libguestfs, if built from source "
7162 "with all requirements satisfied, will support everything."
7166 #: ../fish/guestfish-actions.pod:414
7168 "This call was added in version C<1.0.80>. In previous versions of "
7169 "libguestfs all you could do would be to speculatively execute a command to "
7170 "find out if the daemon implemented it. See also L</version>."
7174 #: ../fish/guestfish-actions.pod:421
7175 msgid "available-all-groups"
7179 #: ../fish/guestfish-actions.pod:423
7182 " available-all-groups\n"
7187 #: ../fish/guestfish-actions.pod:425
7189 "This command returns a list of all optional groups that this daemon knows "
7190 "about. Note this returns both supported and unsupported groups. To find "
7191 "out which ones the daemon can actually support you have to call L</"
7192 "available> on each member of the returned list."
7196 #: ../fish/guestfish-actions.pod:431
7197 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
7201 #: ../fish/guestfish-actions.pod:433
7206 #: ../fish/guestfish-actions.pod:435
7209 " base64-in (base64file|-) filename\n"
7214 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
7216 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7220 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
7221 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
7222 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
7223 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
7224 #: ../fish/guestfish-actions.pod:4745 ../fish/guestfish-actions.pod:4757
7225 #: ../fish/guestfish-actions.pod:4768 ../fish/guestfish-actions.pod:4779
7226 #: ../fish/guestfish-actions.pod:4831 ../fish/guestfish-actions.pod:4840
7227 #: ../fish/guestfish-actions.pod:4894 ../fish/guestfish-actions.pod:4917
7228 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
7232 #: ../fish/guestfish-actions.pod:442
7237 #: ../fish/guestfish-actions.pod:444
7240 " base64-out filename (base64file|-)\n"
7245 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
7247 "This command downloads the contents of C<filename>, writing it out to local "
7248 "file C<base64file> encoded as base64."
7252 #: ../fish/guestfish-actions.pod:451
7253 msgid "blockdev-flushbufs"
7257 #: ../fish/guestfish-actions.pod:453
7260 " blockdev-flushbufs device\n"
7265 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
7267 "This tells the kernel to flush internal buffers associated with C<device>."
7271 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
7272 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
7273 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
7274 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
7275 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
7276 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
7277 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
7278 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
7279 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
7280 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
7281 msgid "This uses the L<blockdev(8)> command."
7285 #: ../fish/guestfish-actions.pod:460
7286 msgid "blockdev-getbsz"
7290 #: ../fish/guestfish-actions.pod:462
7293 " blockdev-getbsz device\n"
7298 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
7299 msgid "This returns the block size of a device."
7303 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
7304 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
7306 "(Note this is different from both I<size in blocks> and I<filesystem block "
7311 #: ../fish/guestfish-actions.pod:471
7312 msgid "blockdev-getro"
7316 #: ../fish/guestfish-actions.pod:473
7319 " blockdev-getro device\n"
7324 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
7326 "Returns a boolean indicating if the block device is read-only (true if read-"
7327 "only, false if not)."
7331 #: ../fish/guestfish-actions.pod:480
7332 msgid "blockdev-getsize64"
7336 #: ../fish/guestfish-actions.pod:482
7339 " blockdev-getsize64 device\n"
7344 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
7345 msgid "This returns the size of the device in bytes."
7349 #: ../fish/guestfish-actions.pod:486
7350 msgid "See also L</blockdev-getsz>."
7354 #: ../fish/guestfish-actions.pod:490
7355 msgid "blockdev-getss"
7359 #: ../fish/guestfish-actions.pod:492
7362 " blockdev-getss device\n"
7367 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
7369 "This returns the size of sectors on a block device. Usually 512, but can be "
7370 "larger for modern devices."
7374 #: ../fish/guestfish-actions.pod:497
7376 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7380 #: ../fish/guestfish-actions.pod:502
7381 msgid "blockdev-getsz"
7385 #: ../fish/guestfish-actions.pod:504
7388 " blockdev-getsz device\n"
7393 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
7395 "This returns the size of the device in units of 512-byte sectors (even if "
7396 "the sectorsize isn't 512 bytes ... weird)."
7400 #: ../fish/guestfish-actions.pod:509
7402 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7403 "blockdev-getsize64> for the more useful I<size in bytes>."
7407 #: ../fish/guestfish-actions.pod:515
7408 msgid "blockdev-rereadpt"
7412 #: ../fish/guestfish-actions.pod:517
7415 " blockdev-rereadpt device\n"
7420 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
7421 msgid "Reread the partition table on C<device>."
7425 #: ../fish/guestfish-actions.pod:523
7426 msgid "blockdev-setbsz"
7430 #: ../fish/guestfish-actions.pod:525
7433 " blockdev-setbsz device blocksize\n"
7438 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
7439 msgid "This sets the block size of a device."
7443 #: ../fish/guestfish-actions.pod:534
7444 msgid "blockdev-setro"
7448 #: ../fish/guestfish-actions.pod:536
7451 " blockdev-setro device\n"
7456 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
7457 msgid "Sets the block device named C<device> to read-only."
7461 #: ../fish/guestfish-actions.pod:542
7462 msgid "blockdev-setrw"
7466 #: ../fish/guestfish-actions.pod:544
7469 " blockdev-setrw device\n"
7474 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
7475 msgid "Sets the block device named C<device> to read-write."
7479 #: ../fish/guestfish-actions.pod:550
7480 msgid "btrfs-filesystem-resize"
7484 #: ../fish/guestfish-actions.pod:552
7487 " btrfs-filesystem-resize mountpoint [size:..]\n"
7492 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
7493 msgid "This command resizes a btrfs filesystem."
7497 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
7499 "Note that unlike other resize calls, the filesystem has to be mounted and "
7500 "the parameter is the mountpoint not the device (this is a requirement of "
7505 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3492
7506 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5345
7507 msgid "The optional parameters are:"
7511 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3496
7512 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5349
7517 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
7519 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
7520 "resized to the maximum size."
7524 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
7525 msgid "See also L<btrfs(8)>."
7529 #: ../fish/guestfish-actions.pod:575
7530 msgid "case-sensitive-path"
7534 #: ../fish/guestfish-actions.pod:577
7537 " case-sensitive-path path\n"
7542 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
7544 "This can be used to resolve case insensitive paths on a filesystem which is "
7545 "case sensitive. The use case is to resolve paths which you have read from "
7546 "Windows configuration files or the Windows Registry, to the true path."
7550 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
7552 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7553 "(and probably others), which is that although the underlying filesystem is "
7554 "case-insensitive, the driver exports the filesystem to Linux as case-"
7559 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
7561 "One consequence of this is that special directories such as C<c:\\windows> "
7562 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7563 "precise details of how they were created. In Windows itself this would not "
7568 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
7570 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7575 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
7577 "This function resolves the true case of each element in the path and returns "
7578 "the case-sensitive path."
7582 #: ../fish/guestfish-actions.pod:601
7584 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
7585 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7586 "the directories were originally created under Windows)."
7590 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
7591 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7595 #: ../fish/guestfish-actions.pod:609
7596 msgid "See also L</realpath>."
7600 #: ../fish/guestfish-actions.pod:611
7605 #: ../fish/guestfish-actions.pod:613
7615 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3912
7616 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5988
7617 msgid "Return the contents of the file named C<path>."
7621 #: ../fish/guestfish-actions.pod:617
7623 "Note that this function cannot correctly handle binary files (specifically, "
7624 "files containing C<\\0> character which is treated as end of string). For "
7625 "those you need to use the L</read-file> or L</download> functions which have "
7626 "a more complex interface."
7630 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
7631 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
7632 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
7633 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
7634 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
7635 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
7636 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
7637 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:3797
7638 #: ../fish/guestfish-actions.pod:3873 ../fish/guestfish-actions.pod:3890
7639 #: ../fish/guestfish-actions.pod:3905 ../fish/guestfish-actions.pod:4586
7640 #: ../fish/guestfish-actions.pod:4632 ../fish/guestfish-actions.pod:4717
7641 #: ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:5138
7642 #: ../fish/guestfish-actions.pod:5150 ../fish/guestfish-actions.pod:5168
7643 #: ../fish/guestfish-actions.pod:5185 ../fish/guestfish-actions.pod:5195
7644 #: ../fish/guestfish-actions.pod:5252 ../fish/guestfish-actions.pod:5262
7645 #: ../fish/guestfish-actions.pod:5291 ../fish/guestfish-actions.pod:5301
7646 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
7647 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1554
7648 #: ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1676
7649 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1941
7650 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2442
7651 #: ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2531
7652 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2577
7653 #: ../src/guestfs-actions.pod:5770 ../src/guestfs-actions.pod:5796
7654 #: ../src/guestfs-actions.pod:5927 ../src/guestfs-actions.pod:5953
7655 #: ../src/guestfs-actions.pod:5977 ../src/guestfs-actions.pod:6944
7656 #: ../src/guestfs-actions.pod:6999 ../src/guestfs-actions.pod:7145
7657 #: ../src/guestfs-actions.pod:7169 ../src/guestfs-actions.pod:7834
7658 #: ../src/guestfs-actions.pod:7854 ../src/guestfs-actions.pod:7887
7659 #: ../src/guestfs-actions.pod:7906 ../src/guestfs-actions.pod:7925
7660 #: ../src/guestfs-actions.pod:8019 ../src/guestfs-actions.pod:8038
7661 #: ../src/guestfs-actions.pod:8084 ../src/guestfs-actions.pod:8103
7663 "Because of the message protocol, there is a transfer limit of somewhere "
7664 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
7668 #: ../fish/guestfish-actions.pod:625
7673 #: ../fish/guestfish-actions.pod:627
7676 " checksum csumtype path\n"
7681 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
7683 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7687 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
7689 "The type of checksum to compute is given by the C<csumtype> parameter which "
7690 "must have one of the following values:"
7694 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
7699 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
7701 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7706 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
7711 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
7712 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7716 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
7721 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
7722 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7726 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
7731 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
7732 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7736 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
7741 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
7742 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7746 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
7751 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
7752 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7756 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
7761 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
7762 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7766 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
7767 msgid "The checksum is returned as a printable string."
7771 #: ../fish/guestfish-actions.pod:670
7772 msgid "To get the checksum for a device, use L</checksum-device>."
7776 #: ../fish/guestfish-actions.pod:672
7777 msgid "To get the checksums for many files, use L</checksums-out>."
7781 #: ../fish/guestfish-actions.pod:674
7782 msgid "checksum-device"
7783 msgstr "checksum-device"
7786 #: ../fish/guestfish-actions.pod:676
7789 " checksum-device csumtype device\n"
7794 #: ../fish/guestfish-actions.pod:678
7796 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7797 "device named C<device>. For the types of checksums supported see the L</"
7798 "checksum> command."
7802 #: ../fish/guestfish-actions.pod:682
7803 msgid "checksums-out"
7807 #: ../fish/guestfish-actions.pod:684
7810 " checksums-out csumtype directory (sumsfile|-)\n"
7815 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
7817 "This command computes the checksums of all regular files in C<directory> and "
7818 "then emits a list of those checksums to the local output file C<sumsfile>."
7822 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
7824 "This can be used for verifying the integrity of a virtual machine. However "
7825 "to be properly secure you should pay attention to the output of the checksum "
7826 "command (it uses the ones from GNU coreutils). In particular when the "
7827 "filename is not printable, coreutils uses a special backslash syntax. For "
7828 "more information, see the GNU coreutils info file."
7832 #: ../fish/guestfish-actions.pod:700
7837 #: ../fish/guestfish-actions.pod:702
7840 " chmod mode path\n"
7845 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
7847 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
7852 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
7854 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7855 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7860 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3145
7861 #: ../fish/guestfish-actions.pod:3284 ../fish/guestfish-actions.pod:3294
7862 #: ../fish/guestfish-actions.pod:3304 ../src/guestfs-actions.pod:1064
7863 #: ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:4961
7864 #: ../src/guestfs-actions.pod:4980 ../src/guestfs-actions.pod:4999
7865 msgid "The mode actually set is affected by the umask."
7869 #: ../fish/guestfish-actions.pod:713
7874 #: ../fish/guestfish-actions.pod:715
7877 " chown owner group path\n"
7882 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
7883 msgid "Change the file owner to C<owner> and group to C<group>."
7887 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2580
7888 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3823
7890 "Only numeric uid and gid are supported. If you want to use names, you will "
7891 "need to locate and parse the password file yourself (Augeas support makes "
7892 "this relatively easy)."
7896 #: ../fish/guestfish-actions.pod:723
7901 #: ../fish/guestfish-actions.pod:725
7904 " command 'arguments ...'\n"
7909 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
7911 "This call runs a command from the guest filesystem. The filesystem must be "
7912 "mounted, and must contain a compatible operating system (ie. something "
7913 "Linux, with the same or compatible processor architecture)."
7917 #: ../fish/guestfish-actions.pod:732
7919 "The single parameter is an argv-style list of arguments. The first element "
7920 "is the name of the program to run. Subsequent elements are parameters. The "
7921 "list must be non-empty (ie. must contain a program name). Note that the "
7922 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7926 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
7927 msgid "The return value is anything printed to I<stdout> by the command."
7931 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
7933 "If the command returns a non-zero exit status, then this function returns an "
7934 "error message. The error message string is the content of I<stderr> from "
7939 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
7941 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7942 "bin>. If you require a program from another location, you should provide "
7943 "the full path in the first parameter."
7947 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
7949 "Shared libraries and data files required by the program must be available on "
7950 "filesystems which are mounted in the correct places. It is the caller's "
7951 "responsibility to ensure all filesystems that are needed are mounted at the "
7956 #: ../fish/guestfish-actions.pod:760
7957 msgid "command-lines"
7961 #: ../fish/guestfish-actions.pod:762
7964 " command-lines 'arguments ...'\n"
7969 #: ../fish/guestfish-actions.pod:764
7971 "This is the same as L</command>, but splits the result into a list of lines."
7975 #: ../fish/guestfish-actions.pod:767
7976 msgid "See also: L</sh-lines>"
7980 #: ../fish/guestfish-actions.pod:772
7982 #| msgid "pread-device"
7983 msgid "compress-device-out"
7984 msgstr "pread-device"
7987 #: ../fish/guestfish-actions.pod:774
7990 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7995 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
7997 "This command compresses C<device> and writes it out to the local file "
8002 #: ../fish/guestfish-actions.pod:779
8004 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
8009 #: ../fish/guestfish-actions.pod:786
8012 msgid "compress-out"
8016 #: ../fish/guestfish-actions.pod:788
8019 " compress-out ctype file (zfile|-) [level:..]\n"
8024 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1220
8026 "This command compresses C<file> and writes it out to the local file C<zfile>."
8030 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1223
8032 "The compression program used is controlled by the C<ctype> parameter. "
8033 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
8034 "Some compression types may not be supported by particular builds of "
8035 "libguestfs, in which case you will get an error containing the substring "
8036 "\"not supported\"."
8040 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1229
8042 "The optional C<level> parameter controls compression level. The meaning and "
8043 "default for this parameter depends on the compression program being used."
8047 #: ../fish/guestfish-actions.pod:807
8052 #: ../fish/guestfish-actions.pod:809
8055 " config qemuparam qemuvalue\n"
8060 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1270
8062 "This can be used to add arbitrary qemu command line parameters of the form "
8063 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
8064 "setting some parameters which would interfere with parameters that we use."
8068 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1275
8069 msgid "The first character of C<param> string must be a C<-> (dash)."
8073 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1277
8074 msgid "C<value> can be NULL."
8078 #: ../fish/guestfish-actions.pod:820
8083 #: ../fish/guestfish-actions.pod:822
8086 " copy-size src dest size\n"
8091 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1291
8093 "This command copies exactly C<size> bytes from one source device or file "
8094 "C<src> to another destination device or file C<dest>."
8098 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1294
8100 "Note this will fail if the source is too short or if the destination is not "
8105 #: ../fish/guestfish-actions.pod:830
8110 #: ../fish/guestfish-actions.pod:832
8118 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1313
8120 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8121 "destination filename or destination directory."
8125 #: ../fish/guestfish-actions.pod:837
8130 #: ../fish/guestfish-actions.pod:839
8138 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1327
8140 "This copies a file or directory from C<src> to C<dest> recursively using the "
8145 #: ../fish/guestfish-actions.pod:844
8150 #: ../fish/guestfish-actions.pod:846
8158 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1341
8160 "This command copies from one source device or file C<src> to another "
8161 "destination device or file C<dest>. Normally you would use this to copy to "
8162 "or from a device or partition, for example to duplicate a filesystem."
8166 #: ../fish/guestfish-actions.pod:853
8168 "If the destination is a device, it must be as large or larger than the "
8169 "source file or device, otherwise the copy will fail. This command cannot do "
8170 "partial copies (see L</copy-size>)."
8174 #: ../fish/guestfish-actions.pod:857
8179 #: ../fish/guestfish-actions.pod:859
8189 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1359
8190 msgid "This command runs the C<df> command to report disk space used."
8194 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
8196 "This command is mostly useful for interactive sessions. It is I<not> "
8197 "intended that you try to parse the output string. Use L</statvfs> from "
8202 #: ../fish/guestfish-actions.pod:867
8207 #: ../fish/guestfish-actions.pod:869
8217 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1375
8219 "This command runs the C<df -h> command to report disk space used in human-"
8224 #: ../fish/guestfish-actions.pod:878
8229 #: ../fish/guestfish-actions.pod:880
8239 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1392
8241 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
8242 "This is sometimes useful for extended debugging of problems."
8246 #: ../fish/guestfish-actions.pod:886
8248 "Another way to get the same information is to enable verbose messages with "
8249 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8250 "before running the program."
8254 #: ../fish/guestfish-actions.pod:891
8259 #: ../fish/guestfish-actions.pod:893
8262 " download remotefilename (filename|-)\n"
8267 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
8268 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1438
8270 "Download file C<remotefilename> and save it as C<filename> on the local "
8275 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4890
8276 #: ../src/guestfs-actions.pod:1416 ../src/guestfs-actions.pod:7404
8277 msgid "C<filename> can also be a named pipe."
8281 #: ../fish/guestfish-actions.pod:900
8282 msgid "See also L</upload>, L</cat>."
8286 #: ../fish/guestfish-actions.pod:904
8287 msgid "download-offset"
8288 msgstr "download-offset"
8291 #: ../fish/guestfish-actions.pod:906
8294 " download-offset remotefilename (filename|-) offset size\n"
8299 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1441
8301 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8302 "region must be within the file or device)."
8306 #: ../fish/guestfish-actions.pod:914
8308 "Note that there is no limit on the amount of data that can be downloaded "
8309 "with this call, unlike with L</pread>, and this call always reads the full "
8310 "amount unless an error occurs."
8314 #: ../fish/guestfish-actions.pod:919
8315 msgid "See also L</download>, L</pread>."
8319 #: ../fish/guestfish-actions.pod:923
8324 #: ../fish/guestfish-actions.pod:925
8327 " drop-caches whattodrop\n"
8332 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1466
8334 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8335 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
8336 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8340 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1471
8341 msgid "Setting C<whattodrop> to 3 should drop everything."
8345 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1473
8347 "This automatically calls L<sync(2)> before the operation, so that the "
8348 "maximum guest memory is freed."
8352 #: ../fish/guestfish-actions.pod:937
8357 #: ../fish/guestfish-actions.pod:939
8367 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1486
8369 "This command runs the C<du -s> command to estimate file space usage for "
8374 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1489
8376 "C<path> can be a file or a directory. If C<path> is a directory then the "
8377 "estimate includes the contents of the directory and all subdirectories "
8382 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1493
8384 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8388 #: ../fish/guestfish-actions.pod:951
8393 #: ../fish/guestfish-actions.pod:953
8396 " e2fsck-f device\n"
8401 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1511
8403 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8404 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8409 #: ../fish/guestfish-actions.pod:959
8411 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
8412 "should use L</fsck>."
8416 #: ../fish/guestfish-actions.pod:962
8421 #: ../fish/guestfish-actions.pod:964
8424 " echo-daemon 'words ...'\n"
8429 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1528
8431 "This command concatenates the list of C<words> passed with single spaces "
8432 "between them and returns the resulting string."
8436 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1531
8437 msgid "You can use this command to test the connection through to the daemon."
8441 #: ../fish/guestfish-actions.pod:971
8442 msgid "See also L</ping-daemon>."
8446 #: ../fish/guestfish-actions.pod:973
8451 #: ../fish/guestfish-actions.pod:975
8454 " egrep regex path\n"
8459 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1547
8461 "This calls the external C<egrep> program and returns the matching lines."
8465 #: ../fish/guestfish-actions.pod:983
8470 #: ../fish/guestfish-actions.pod:985
8473 " egrepi regex path\n"
8478 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1566
8480 "This calls the external C<egrep -i> program and returns the matching lines."
8484 #: ../fish/guestfish-actions.pod:993
8489 #: ../fish/guestfish-actions.pod:995
8492 " equal file1 file2\n"
8495 " equal файл1 файл2\n"
8499 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1585
8501 "This compares the two files C<file1> and C<file2> and returns true if their "
8502 "content is exactly equal, or false otherwise."
8506 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1588
8507 msgid "The external L<cmp(1)> program is used for the comparison."
8511 #: ../fish/guestfish-actions.pod:1002
8516 #: ../fish/guestfish-actions.pod:1004
8526 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1600
8528 "This returns C<true> if and only if there is a file, directory (or anything) "
8529 "with the given C<path> name."
8533 #: ../fish/guestfish-actions.pod:1009
8534 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8535 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8538 #: ../fish/guestfish-actions.pod:1011
8543 #: ../fish/guestfish-actions.pod:1013
8546 " fallocate path len\n"
8549 " fallocate шлях довжина\n"
8553 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
8554 #: ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1642
8556 "This command preallocates a file (containing zero bytes) named C<path> of "
8557 "size C<len> bytes. If the file exists already, it is overwritten."
8561 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1627
8563 "Do not confuse this with the guestfish-specific C<alloc> command which "
8564 "allocates a file in the host and attaches it as a device."
8568 #: ../fish/guestfish-actions.pod:1023
8570 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8575 #: ../fish/guestfish-actions.pod:1030
8577 msgstr "fallocate64"
8580 #: ../fish/guestfish-actions.pod:1032
8583 " fallocate64 path len\n"
8586 " fallocate64 шлях довжина\n"
8590 #: ../fish/guestfish-actions.pod:1038
8592 "Note that this call allocates disk blocks for the file. To create a sparse "
8593 "file use L</truncate-size> instead."
8597 #: ../fish/guestfish-actions.pod:1041
8599 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8600 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8601 "maximum size of files created through that call to 1GB."
8605 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1654
8607 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8608 "commands which create a file in the host and attach it as a device."
8612 #: ../fish/guestfish-actions.pod:1050
8617 #: ../fish/guestfish-actions.pod:1052
8620 " fgrep pattern path\n"
8623 " fgrep шаблон шлях\n"
8627 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1669
8629 "This calls the external C<fgrep> program and returns the matching lines."
8633 #: ../fish/guestfish-actions.pod:1060
8638 #: ../fish/guestfish-actions.pod:1062
8641 " fgrepi pattern path\n"
8644 " fgrepi шаблон шлях\n"
8648 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1688
8650 "This calls the external C<fgrep -i> program and returns the matching lines."
8654 #: ../fish/guestfish-actions.pod:1070
8659 #: ../fish/guestfish-actions.pod:1072
8669 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1706
8671 "This call uses the standard L<file(1)> command to determine the type or "
8672 "contents of the file."
8676 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1709
8678 "This call will also transparently look inside various types of compressed "
8683 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1712
8685 "The exact command which runs is C<file -zb path>. Note in particular that "
8686 "the filename is not prepended to the output (the I<-b> option)."
8690 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1716
8692 "The output depends on the output of the underlying L<file(1)> command and it "
8693 "can change in future in ways beyond our control. In other words, the output "
8694 "is not guaranteed by the ABI."
8698 #: ../fish/guestfish-actions.pod:1088
8700 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8701 "(etc), L</is-zero>."
8705 #: ../fish/guestfish-actions.pod:1091
8706 msgid "file-architecture"
8707 msgstr "file-architecture"
8710 #: ../fish/guestfish-actions.pod:1093
8713 " file-architecture filename\n"
8716 " file-architecture назва_файла\n"
8720 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1734
8722 "This detects the architecture of the binary C<filename>, and returns it if "
8727 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1737
8728 msgid "Currently defined architectures are:"
8732 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1741
8737 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1743
8739 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8740 "irrespective of the precise processor requirements of the binary."
8744 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1746
8749 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1748
8750 msgid "64 bit x86-64."
8754 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1750
8759 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1752
8760 msgid "32 bit SPARC."
8764 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1754
8769 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1756
8770 msgid "64 bit SPARC V9 and above."
8774 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1758
8779 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1760
8780 msgid "Intel Itanium."
8781 msgstr "Intel Itanium."
8784 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1762
8789 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1764
8790 msgid "32 bit Power PC."
8794 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1766
8799 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1768
8800 msgid "64 bit Power PC."
8804 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1772
8805 msgid "Libguestfs may return other architecture strings in future."
8809 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1774
8810 msgid "The function works on at least the following types of files:"
8814 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1780
8815 msgid "many types of Un*x and Linux binary"
8819 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1784
8820 msgid "many types of Un*x and Linux shared library"
8824 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1788
8825 msgid "Windows Win32 and Win64 binaries"
8829 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1792
8830 msgid "Windows Win32 and Win64 DLLs"
8834 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1794
8835 msgid "Win32 binaries and DLLs return C<i386>."
8839 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1796
8840 msgid "Win64 binaries and DLLs return C<x86_64>."
8844 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1800
8845 msgid "Linux kernel modules"
8849 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1804
8850 msgid "Linux new-style initrd images"
8854 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1808
8855 msgid "some non-x86 Linux vmlinuz kernels"
8859 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1812
8860 msgid "What it can't do currently:"
8864 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1818
8865 msgid "static libraries (libfoo.a)"
8869 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1822
8870 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8874 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1826
8875 msgid "x86 Linux vmlinuz kernels"
8879 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1828
8881 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8882 "compressed code, and are horribly hard to unpack. If you want to find the "
8883 "architecture of a kernel, use the architecture of the associated initrd or "
8884 "kernel module(s) instead."
8888 #: ../fish/guestfish-actions.pod:1196
8893 #: ../fish/guestfish-actions.pod:1198
8903 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1846
8904 msgid "This command returns the size of C<file> in bytes."
8908 #: ../fish/guestfish-actions.pod:1202
8910 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8911 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
8915 #: ../fish/guestfish-actions.pod:1206
8920 #: ../fish/guestfish-actions.pod:1208
8923 " fill c len path\n"
8928 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1864
8930 "This command creates a new file called C<path>. The initial content of the "
8931 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8936 #: ../fish/guestfish-actions.pod:1214
8938 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8939 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
8944 #: ../fish/guestfish-actions.pod:1219
8945 msgid "fill-pattern"
8946 msgstr "fill-pattern"
8949 #: ../fish/guestfish-actions.pod:1221
8952 " fill-pattern pattern len path\n"
8957 #: ../fish/guestfish-actions.pod:1223
8959 "This function is like L</fill> except that it creates a new file of length "
8960 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
8961 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8966 #: ../fish/guestfish-actions.pod:1228
8971 #: ../fish/guestfish-actions.pod:1230
8981 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1910
8983 "This command lists out all files and directories, recursively, starting at "
8984 "C<directory>. It is essentially equivalent to running the shell command "
8985 "C<find directory -print> but some post-processing happens on the output, "
8990 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1915
8992 "This returns a list of strings I<without any prefix>. Thus if the directory "
8997 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1918
9007 #: ../fish/guestfish-actions.pod:1244
9008 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
9012 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1925
9023 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1930
9024 msgid "If C<directory> is not a directory, then this command returns an error."
9028 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1933
9029 msgid "The returned list is sorted."
9033 #: ../fish/guestfish-actions.pod:1257
9034 msgid "See also L</find0>."
9035 msgstr "Див. також L</find0>."
9038 #: ../fish/guestfish-actions.pod:1262
9043 #: ../fish/guestfish-actions.pod:1264
9046 " find0 directory (files|-)\n"
9049 " find0 каталог (файли|-)\n"
9053 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1953
9055 "This command lists out all files and directories, recursively, starting at "
9056 "C<directory>, placing the resulting list in the external file called "
9061 #: ../fish/guestfish-actions.pod:1270
9063 "This command works the same way as L</find> with the following exceptions:"
9067 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1964
9068 msgid "The resulting list is written to an external file."
9072 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1968
9074 "Items (filenames) in the result are separated by C<\\0> characters. See "
9075 "L<find(1)> option I<-print0>."
9079 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1973
9080 msgid "This command is not limited in the number of names that it can return."
9084 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1978
9085 msgid "The result list is not sorted."
9089 #: ../fish/guestfish-actions.pod:1297
9090 msgid "findfs-label"
9091 msgstr "findfs-label"
9094 #: ../fish/guestfish-actions.pod:1299
9097 " findfs-label label\n"
9100 " findfs-label мітка\n"
9104 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1992
9106 "This command searches the filesystems and returns the one which has the "
9107 "given label. An error is returned if no such filesystem can be found."
9111 #: ../fish/guestfish-actions.pod:1305
9112 msgid "To find the label of a filesystem, use L</vfs-label>."
9113 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
9116 #: ../fish/guestfish-actions.pod:1307
9118 msgstr "findfs-uuid"
9121 #: ../fish/guestfish-actions.pod:1309
9124 " findfs-uuid uuid\n"
9127 " findfs-uuid uuid\n"
9131 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2009
9133 "This command searches the filesystems and returns the one which has the "
9134 "given UUID. An error is returned if no such filesystem can be found."
9138 #: ../fish/guestfish-actions.pod:1315
9139 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
9140 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
9143 #: ../fish/guestfish-actions.pod:1317
9148 #: ../fish/guestfish-actions.pod:1319
9151 " fsck fstype device\n"
9154 " fsck тип_файлової_системи пристрій\n"
9158 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2027
9160 "This runs the filesystem checker (fsck) on C<device> which should have "
9161 "filesystem type C<fstype>."
9165 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2030
9167 "The returned integer is the status. See L<fsck(8)> for the list of status "
9168 "codes from C<fsck>."
9172 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2039
9173 msgid "Multiple status codes can be summed together."
9177 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2043
9179 "A non-zero return code can mean \"success\", for example if errors have been "
9180 "corrected on the filesystem."
9184 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2048
9185 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9189 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2053
9191 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9195 #: ../fish/guestfish-actions.pod:1349
9200 #: ../fish/guestfish-actions.pod:1351
9210 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2064
9212 "Return the additional kernel options which are added to the guest kernel "
9217 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2067
9218 msgid "If C<NULL> then no options are added."
9222 #: ../fish/guestfish-actions.pod:1358
9223 msgid "get-attach-method"
9224 msgstr "get-attach-method"
9227 #: ../fish/guestfish-actions.pod:1360
9230 " get-attach-method\n"
9233 " get-attach-method\n"
9237 #: ../fish/guestfish-actions.pod:1362
9238 msgid "Return the current attach method. See L</set-attach-method>."
9242 #: ../fish/guestfish-actions.pod:1364
9243 msgid "get-autosync"
9244 msgstr "get-autosync"
9247 #: ../fish/guestfish-actions.pod:1366
9257 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2092
9258 msgid "Get the autosync flag."
9262 #: ../fish/guestfish-actions.pod:1370
9267 #: ../fish/guestfish-actions.pod:1372
9277 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2103
9278 msgid "Return the direct appliance mode flag."
9282 #: ../fish/guestfish-actions.pod:1376
9284 msgstr "get-e2label"
9287 #: ../fish/guestfish-actions.pod:1378
9290 " get-e2label device\n"
9293 " get-e2label пристрій\n"
9297 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2122
9299 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9303 #: ../fish/guestfish-actions.pod:1383
9305 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9310 #: ../fish/guestfish-actions.pod:1390
9315 #: ../fish/guestfish-actions.pod:1392
9318 " get-e2uuid device\n"
9321 " get-e2uuid пристрій\n"
9325 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2143
9327 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9331 #: ../fish/guestfish-actions.pod:1397
9333 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9338 #: ../fish/guestfish-actions.pod:1404
9340 msgstr "get-memsize"
9343 #: ../fish/guestfish-actions.pod:1406
9353 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2156
9355 "This gets the memory size in megabytes allocated to the qemu subprocess."
9359 #: ../fish/guestfish-actions.pod:1411
9361 "If L</set-memsize> was not called on this handle, and if "
9362 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9363 "value for memsize."
9367 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
9368 #: ../fish/guestfish-actions.pod:4238 ../fish/guestfish-actions.pod:4340
9369 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2255
9370 #: ../src/guestfs-actions.pod:6449 ../src/guestfs-actions.pod:6575
9372 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9376 #: ../fish/guestfish-actions.pod:1418
9378 msgstr "get-network"
9381 #: ../fish/guestfish-actions.pod:1420
9391 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2175
9392 msgid "This returns the enable network flag."
9396 #: ../fish/guestfish-actions.pod:1424
9401 #: ../fish/guestfish-actions.pod:1426
9411 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2186
9412 msgid "Return the current search path."
9416 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2188
9418 "This is always non-NULL. If it wasn't set already, then this will return "
9423 #: ../fish/guestfish-actions.pod:1433
9428 #: ../fish/guestfish-actions.pod:1435
9436 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2201
9437 msgid "This returns the process group flag."
9441 #: ../fish/guestfish-actions.pod:1439
9446 #: ../fish/guestfish-actions.pod:1441
9451 #: ../fish/guestfish-actions.pod:1443
9461 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2212
9463 "Return the process ID of the qemu subprocess. If there is no qemu "
9464 "subprocess, then this will return an error."
9468 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2215
9469 msgid "This is an internal call used for debugging and testing."
9473 #: ../fish/guestfish-actions.pod:1450
9478 #: ../fish/guestfish-actions.pod:1452
9488 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2226
9489 msgid "Return the current qemu binary."
9493 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2228
9495 "This is always non-NULL. If it wasn't set already, then this will return "
9496 "the default qemu binary name."
9500 #: ../fish/guestfish-actions.pod:1459
9501 msgid "get-recovery-proc"
9502 msgstr "get-recovery-proc"
9505 #: ../fish/guestfish-actions.pod:1461
9508 " get-recovery-proc\n"
9511 " get-recovery-proc\n"
9515 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2241
9516 msgid "Return the recovery process enabled flag."
9520 #: ../fish/guestfish-actions.pod:1465
9522 msgstr "get-selinux"
9525 #: ../fish/guestfish-actions.pod:1467
9535 #: ../fish/guestfish-actions.pod:1469
9537 "This returns the current setting of the selinux flag which is passed to the "
9538 "appliance at boot time. See L</set-selinux>."
9542 #: ../fish/guestfish-actions.pod:1475
9549 #: ../fish/guestfish-actions.pod:1477
9562 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2267
9563 msgid "This returns the number of virtual CPUs assigned to the appliance."
9567 #: ../fish/guestfish-actions.pod:1481
9572 #: ../fish/guestfish-actions.pod:1483
9582 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2278
9584 "This returns the current state as an opaque integer. This is only useful "
9585 "for printing debug and internal error messages."
9589 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2447
9590 #: ../fish/guestfish-actions.pod:2465 ../fish/guestfish-actions.pod:2503
9591 #: ../fish/guestfish-actions.pod:2519 ../src/guestfs-actions.pod:2281
9592 #: ../src/guestfs-actions.pod:3600 ../src/guestfs-actions.pod:3629
9593 #: ../src/guestfs-actions.pod:3690 ../src/guestfs-actions.pod:3717
9594 msgid "For more information on states, see L<guestfs(3)>."
9598 #: ../fish/guestfish-actions.pod:1490
9603 #: ../fish/guestfish-actions.pod:1492
9613 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2292
9614 msgid "Return the command trace flag."
9618 #: ../fish/guestfish-actions.pod:1496
9623 #: ../fish/guestfish-actions.pod:1498
9633 #: ../fish/guestfish-actions.pod:1500
9635 "Return the current umask. By default the umask is C<022> unless it has been "
9636 "set by calling L</umask>."
9640 #: ../fish/guestfish-actions.pod:1503
9642 msgstr "get-verbose"
9645 #: ../fish/guestfish-actions.pod:1505
9655 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2315
9656 msgid "This returns the verbose messages flag."
9660 #: ../fish/guestfish-actions.pod:1509
9665 #: ../fish/guestfish-actions.pod:1511
9675 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2326
9676 msgid "This gets the SELinux security context of the daemon."
9680 #: ../fish/guestfish-actions.pod:1515
9681 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9685 #: ../fish/guestfish-actions.pod:1518
9690 #: ../fish/guestfish-actions.pod:1520
9693 " getxattr path name\n"
9696 " getxattr шлях назва\n"
9700 #: ../fish/guestfish-actions.pod:1522
9702 "Get a single extended attribute from file C<path> named C<name>. This call "
9703 "follows symlinks. If you want to lookup an extended attribute for the "
9704 "symlink itself, use L</lgetxattr>."
9708 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2592
9710 "Normally it is better to get all extended attributes from a file in one go "
9711 "by calling L</getxattrs>. However some Linux filesystem implementations are "
9712 "buggy and do not provide a way to list out attributes. For these "
9713 "filesystems (notably ntfs-3g) you have to know the names of the extended "
9714 "attributes you want in advance and call this function."
9718 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2599
9719 #: ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:3850
9721 "Extended attribute values are blobs of binary data. If there is no extended "
9722 "attribute named C<name>, this returns an error."
9726 #: ../fish/guestfish-actions.pod:1536
9727 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9728 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9731 #: ../fish/guestfish-actions.pod:1538
9736 #: ../fish/guestfish-actions.pod:1540
9746 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2372
9748 "This call lists the extended attributes of the file or directory C<path>."
9752 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2375
9754 "At the system call level, this is a combination of the L<listxattr(2)> and "
9755 "L<getxattr(2)> calls."
9759 #: ../fish/guestfish-actions.pod:1548
9760 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9761 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9764 #: ../fish/guestfish-actions.pod:1550
9766 msgstr "glob-expand"
9769 #: ../fish/guestfish-actions.pod:1552
9772 " glob-expand pattern\n"
9775 " glob-expand шаблон\n"
9779 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2392
9781 "This command searches for all the pathnames matching C<pattern> according to "
9782 "the wildcard expansion rules used by the shell."
9786 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2396
9788 "If no paths match, then this returns an empty list (note: not an error)."
9792 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2399
9794 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9795 "GLOB_BRACE>. See that manual page for more details."
9799 #: ../fish/guestfish-actions.pod:1565
9804 #: ../fish/guestfish-actions.pod:1567
9807 " grep regex path\n"
9810 " grepi формальний_вираз шлях\n"
9814 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2416
9815 msgid "This calls the external C<grep> program and returns the matching lines."
9819 #: ../fish/guestfish-actions.pod:1575
9824 #: ../fish/guestfish-actions.pod:1577
9827 " grepi regex path\n"
9830 " grepi формальний_вираз шлях\n"
9834 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2435
9836 "This calls the external C<grep -i> program and returns the matching lines."
9840 #: ../fish/guestfish-actions.pod:1585
9841 msgid "grub-install"
9842 msgstr "grub-install"
9845 #: ../fish/guestfish-actions.pod:1587
9848 " grub-install root device\n"
9851 " grub-install кореневий пристрій\n"
9855 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2454
9857 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9858 "with the root directory being C<root>."
9862 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2463
9864 "There is currently no way in the API to install grub2, which is used by most "
9865 "modern Linux guests. It is possible to run the grub2 command from the "
9866 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9870 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2470
9872 "This uses C<grub-install> from the host. Unfortunately grub is not always "
9873 "compatible with itself, so this only works in rather narrow circumstances. "
9874 "Careful testing with each guest version is advisable."
9878 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2477
9880 "If grub-install reports the error \"No suitable drive was found in the "
9881 "generated device map.\" it may be that you need to create a C</boot/grub/"
9882 "device.map> file first that contains the mapping between grub device names "
9883 "and Linux device names. It is usually sufficient to create a file "
9888 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2484
9896 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2486
9897 msgid "replacing C</dev/vda> with the name of the installation device."
9901 #: ../fish/guestfish-actions.pod:1625
9906 #: ../fish/guestfish-actions.pod:1627
9916 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2500
9918 "This command returns up to the first 10 lines of a file as a list of strings."
9922 #: ../fish/guestfish-actions.pod:1635
9927 #: ../fish/guestfish-actions.pod:1637
9930 " head-n nrlines path\n"
9935 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2519
9937 "If the parameter C<nrlines> is a positive number, this returns the first "
9938 "C<nrlines> lines of the file C<path>."
9942 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2522
9944 "If the parameter C<nrlines> is a negative number, this returns lines from "
9945 "the file C<path>, excluding the last C<nrlines> lines."
9949 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4730
9950 #: ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:7163
9951 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9955 #: ../fish/guestfish-actions.pod:1650
9960 #: ../fish/guestfish-actions.pod:1652
9970 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2542
9972 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
9973 "readable, canonical hex dump of the file."
9977 #: ../fish/guestfish-actions.pod:1660
9982 #: ../fish/guestfish-actions.pod:1662
9985 " initrd-cat initrdpath filename\n"
9988 " initrd-cat шлях_initrd назва_файла\n"
9992 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2561
9994 "This command unpacks the file C<filename> from the initrd file called "
9995 "C<initrdpath>. The filename must be given I<without> the initial C</> "
10000 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2565
10002 "For example, in guestfish you could use the following command to examine the "
10003 "boot script (usually called C</init>) contained in a Linux initrd or "
10008 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2569
10011 " initrd-cat /boot/initrd-<version>.img init\n"
10016 #: ../fish/guestfish-actions.pod:1674
10017 msgid "See also L</initrd-list>."
10018 msgstr "Див. також L</initrd-list>."
10021 #: ../fish/guestfish-actions.pod:1679
10022 msgid "initrd-list"
10023 msgstr "initrd-list"
10026 #: ../fish/guestfish-actions.pod:1681
10029 " initrd-list path\n"
10032 " initrd-list шлях\n"
10036 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2588
10037 msgid "This command lists out files contained in an initrd."
10041 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2590
10043 "The files are listed without any initial C</> character. The files are "
10044 "listed in the order they appear (not necessarily alphabetical). Directory "
10045 "names are listed as separate items."
10049 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2594
10051 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10052 "initrd. We I<only> support the newer initramfs format (compressed cpio "
10057 #: ../fish/guestfish-actions.pod:1693
10058 msgid "inotify-add-watch"
10059 msgstr "inotify-add-watch"
10062 #: ../fish/guestfish-actions.pod:1695
10065 " inotify-add-watch path mask\n"
10068 " inotify-add-watch шлях маска\n"
10072 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2611
10073 msgid "Watch C<path> for the events listed in C<mask>."
10077 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2613
10079 "Note that if C<path> is a directory then events within that directory are "
10080 "watched, but this does I<not> happen recursively (in subdirectories)."
10084 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2617
10086 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10087 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10091 #: ../fish/guestfish-actions.pod:1707
10092 msgid "inotify-close"
10093 msgstr "inotify-close"
10096 #: ../fish/guestfish-actions.pod:1709
10106 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2630
10108 "This closes the inotify handle which was previously opened by inotify_init. "
10109 "It removes all watches, throws away any pending events, and deallocates all "
10114 #: ../fish/guestfish-actions.pod:1715
10115 msgid "inotify-files"
10116 msgstr "inotify-files"
10119 #: ../fish/guestfish-actions.pod:1717
10129 #: ../fish/guestfish-actions.pod:1719
10131 "This function is a helpful wrapper around L</inotify-read> which just "
10132 "returns a list of pathnames of objects that were touched. The returned "
10133 "pathnames are sorted and deduplicated."
10137 #: ../fish/guestfish-actions.pod:1723
10138 msgid "inotify-init"
10139 msgstr "inotify-init"
10142 #: ../fish/guestfish-actions.pod:1725
10145 " inotify-init maxevents\n"
10150 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2659
10152 "This command creates a new inotify handle. The inotify subsystem can be "
10153 "used to notify events which happen to objects in the guest filesystem."
10157 #: ../fish/guestfish-actions.pod:1731
10159 "C<maxevents> is the maximum number of events which will be queued up between "
10160 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
10161 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
10162 "default was 16384 events. Beyond this limit, the kernel throws away events, "
10163 "but records the fact that it threw them away by setting a flag "
10164 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
10168 #: ../fish/guestfish-actions.pod:1741
10170 "Before any events are generated, you have to add some watches to the "
10171 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
10172 "L</inotify-watch-all>."
10176 #: ../fish/guestfish-actions.pod:1747
10178 "Queued up events should be read periodically by calling L</inotify-read> (or "
10179 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
10180 "If you don't read the events out often enough then you risk the internal "
10181 "queue overflowing."
10185 #: ../fish/guestfish-actions.pod:1754
10187 "The handle should be closed after use by calling L</inotify-close>. This "
10188 "also removes any watches automatically."
10192 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2690
10194 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10195 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
10196 "that there is one global inotify handle per libguestfs instance."
10200 #: ../fish/guestfish-actions.pod:1763
10201 msgid "inotify-read"
10202 msgstr "inotify-read"
10205 #: ../fish/guestfish-actions.pod:1765
10215 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2704
10217 "Return the complete queue of events that have happened since the previous "
10222 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2707
10223 msgid "If no events have happened, this returns an empty list."
10227 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2709
10229 "I<Note>: In order to make sure that all events have been read, you must call "
10230 "this function repeatedly until it returns an empty list. The reason is that "
10231 "the call will read events up to the maximum appliance-to-host message size "
10232 "and leave remaining events in the queue."
10236 #: ../fish/guestfish-actions.pod:1778
10237 msgid "inotify-rm-watch"
10238 msgstr "inotify-rm-watch"
10241 #: ../fish/guestfish-actions.pod:1780
10244 " inotify-rm-watch wd\n"
10249 #: ../fish/guestfish-actions.pod:1782
10250 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
10254 #: ../fish/guestfish-actions.pod:1785
10255 msgid "inspect-get-arch"
10256 msgstr "inspect-get-arch"
10259 #: ../fish/guestfish-actions.pod:1787
10262 " inspect-get-arch root\n"
10265 " inspect-get-arch корінь\n"
10269 #: ../fish/guestfish-actions.pod:1789
10271 "This returns the architecture of the inspected operating system. The "
10272 "possible return values are listed under L</file-architecture>."
10276 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2744
10278 "If the architecture could not be determined, then the string C<unknown> is "
10283 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1891
10284 #: ../fish/guestfish-actions.pod:1970 ../fish/guestfish-actions.pod:1982
10285 #: ../fish/guestfish-actions.pod:2066 ../fish/guestfish-actions.pod:2128
10286 #: ../fish/guestfish-actions.pod:2149 ../fish/guestfish-actions.pod:2163
10287 #: ../fish/guestfish-actions.pod:2203 ../fish/guestfish-actions.pod:2239
10288 #: ../fish/guestfish-actions.pod:2252 ../fish/guestfish-actions.pod:2265
10289 #: ../fish/guestfish-actions.pod:2275 ../fish/guestfish-actions.pod:2285
10290 #: ../fish/guestfish-actions.pod:2297 ../fish/guestfish-actions.pod:2393
10291 #: ../fish/guestfish-actions.pod:2427 ../src/guestfs-actions.pod:2747
10292 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2953
10293 #: ../src/guestfs-actions.pod:2972 ../src/guestfs-actions.pod:3103
10294 #: ../src/guestfs-actions.pod:3187 ../src/guestfs-actions.pod:3215
10295 #: ../src/guestfs-actions.pod:3236 ../src/guestfs-actions.pod:3289
10296 #: ../src/guestfs-actions.pod:3333 ../src/guestfs-actions.pod:3353
10297 #: ../src/guestfs-actions.pod:3373 ../src/guestfs-actions.pod:3390
10298 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
10299 #: ../src/guestfs-actions.pod:3526 ../src/guestfs-actions.pod:3567
10300 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10304 #: ../fish/guestfish-actions.pod:1798
10305 msgid "inspect-get-distro"
10306 msgstr "inspect-get-distro"
10309 #: ../fish/guestfish-actions.pod:1800
10312 " inspect-get-distro root\n"
10315 " inspect-get-distro корінь\n"
10319 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2760
10321 "This returns the distro (distribution) of the inspected operating system."
10325 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2763
10326 msgid "Currently defined distros are:"
10330 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2767
10331 msgid "\"archlinux\""
10332 msgstr "\"archlinux\""
10335 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2769
10336 msgid "Arch Linux."
10337 msgstr "Arch Linux."
10340 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2771
10345 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2773
10350 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2775
10352 msgstr "\"debian\""
10355 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2777
10360 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2779
10362 msgstr "\"fedora\""
10365 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2781
10370 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2783
10372 msgstr "\"gentoo\""
10375 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2785
10380 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2787
10381 msgid "\"linuxmint\""
10382 msgstr "\"linuxmint\""
10385 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2789
10386 msgid "Linux Mint."
10387 msgstr "Linux Mint."
10390 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2791
10395 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2793
10400 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2795
10401 msgid "\"mandriva\""
10402 msgstr "\"mandriva\""
10405 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2797
10410 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2799
10415 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2801
10420 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2803
10421 msgid "\"opensuse\""
10425 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2805
10430 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2807
10432 msgstr "\"pardus\""
10435 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2809
10440 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2811
10441 msgid "\"redhat-based\""
10442 msgstr "\"redhat-based\""
10445 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2813
10446 msgid "Some Red Hat-derived distro."
10447 msgstr "Дистрибутив, що походить від Red Hat."
10450 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2815
10455 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2817
10456 msgid "Red Hat Enterprise Linux."
10460 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2819
10461 msgid "\"scientificlinux\""
10465 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2821
10466 msgid "Scientific Linux."
10470 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2823
10471 msgid "\"slackware\""
10475 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2825
10480 #: ../fish/guestfish-actions.pod:1869 ../src/guestfs-actions.pod:2827
10482 #| msgid "\"linux\""
10483 msgid "\"ttylinux\""
10487 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2829
10489 #| msgid "\"linux\""
10494 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2831
10496 msgstr "\"ubuntu\""
10499 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2833
10504 #: ../fish/guestfish-actions.pod:1877 ../fish/guestfish-actions.pod:1961
10505 #: ../fish/guestfish-actions.pod:2230 ../src/guestfs-actions.pod:2835
10506 #: ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:3324
10507 msgid "\"unknown\""
10508 msgstr "\"unknown\""
10511 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2837
10512 msgid "The distro could not be determined."
10513 msgstr "Дистрибутив, тип якого не вдалося визначити."
10516 #: ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:2218
10517 #: ../src/guestfs-actions.pod:2839 ../src/guestfs-actions.pod:3312
10518 msgid "\"windows\""
10519 msgstr "\"windows\""
10522 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2841
10524 "Windows does not have distributions. This string is returned if the OS type "
10529 #: ../fish/guestfish-actions.pod:1888 ../fish/guestfish-actions.pod:1967
10530 #: ../fish/guestfish-actions.pod:2236 ../src/guestfs-actions.pod:2846
10531 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3330
10533 "Future versions of libguestfs may return other strings here. The caller "
10534 "should be prepared to handle any string."
10538 #: ../fish/guestfish-actions.pod:1893
10539 msgid "inspect-get-drive-mappings"
10543 #: ../fish/guestfish-actions.pod:1895
10546 " inspect-get-drive-mappings root\n"
10551 #: ../fish/guestfish-actions.pod:1897 ../src/guestfs-actions.pod:2862
10553 "This call is useful for Windows which uses a primitive system of assigning "
10554 "drive letters (like \"C:\") to partitions. This inspection API examines the "
10555 "Windows Registry to find out how disks/partitions are mapped to drive "
10556 "letters, and returns a hash table as in the example below:"
10560 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2868
10563 " C => /dev/vda2\n"
10564 " E => /dev/vdb1\n"
10565 " F => /dev/vdc1\n"
10570 #: ../fish/guestfish-actions.pod:1907 ../src/guestfs-actions.pod:2872
10572 "Note that keys are drive letters. For Windows, the key is case insensitive "
10573 "and just contains the drive letter, without the customary colon separator "
10578 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2876
10580 "In future we may support other operating systems that also used drive "
10581 "letters, but the keys for those might not be case insensitive and might be "
10582 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
10587 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:2881
10589 "For Windows guests, currently only hard drive mappings are returned. "
10590 "Removable disks (eg. DVD-ROMs) are ignored."
10594 #: ../fish/guestfish-actions.pod:1919 ../src/guestfs-actions.pod:2884
10596 "For guests that do not use drive mappings, or if the drive mappings could "
10597 "not be determined, this returns an empty hash table."
10601 #: ../fish/guestfish-actions.pod:1922
10603 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10604 "get-mountpoints>, L</inspect-get-filesystems>."
10608 #: ../fish/guestfish-actions.pod:1926
10609 msgid "inspect-get-filesystems"
10610 msgstr "inspect-get-filesystems"
10613 #: ../fish/guestfish-actions.pod:1928
10616 " inspect-get-filesystems root\n"
10619 " inspect-get-filesystems корінь\n"
10623 #: ../fish/guestfish-actions.pod:1930 ../src/guestfs-actions.pod:2905
10625 "This returns a list of all the filesystems that we think are associated with "
10626 "this operating system. This includes the root filesystem, other ordinary "
10627 "filesystems, and non-mounted devices like swap partitions."
10631 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2910
10633 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10634 "to be shared between operating systems."
10638 #: ../fish/guestfish-actions.pod:1938
10640 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10641 "get-mountpoints>."
10645 #: ../fish/guestfish-actions.pod:1941
10646 msgid "inspect-get-format"
10647 msgstr "inspect-get-format"
10650 #: ../fish/guestfish-actions.pod:1943
10653 " inspect-get-format root\n"
10656 " inspect-get-format корінь\n"
10660 #: ../fish/guestfish-actions.pod:1945 ../src/guestfs-actions.pod:2928
10662 "This returns the format of the inspected operating system. You can use it "
10663 "to detect install images, live CDs and similar."
10667 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2931
10668 msgid "Currently defined formats are:"
10672 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:2935
10673 msgid "\"installed\""
10674 msgstr "\"installed\""
10677 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2937
10678 msgid "This is an installed operating system."
10679 msgstr "Це встановлена операційна система."
10682 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:2939
10683 msgid "\"installer\""
10687 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:2941
10689 "The disk image being inspected is not an installed operating system, but a "
10690 "I<bootable> install disk, live CD, or similar."
10694 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2946
10695 msgid "The format of this disk image is not known."
10699 #: ../fish/guestfish-actions.pod:1972
10700 msgid "inspect-get-hostname"
10701 msgstr "inspect-get-hostname"
10704 #: ../fish/guestfish-actions.pod:1974
10707 " inspect-get-hostname root\n"
10710 " inspect-get-hostname корінь\n"
10714 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:2966
10716 "This function returns the hostname of the operating system as found by "
10717 "inspection of the guest's configuration files."
10721 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2969
10723 "If the hostname could not be determined, then the string C<unknown> is "
10728 #: ../fish/guestfish-actions.pod:1984
10729 msgid "inspect-get-icon"
10733 #: ../fish/guestfish-actions.pod:1986
10736 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10741 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:2995
10743 "This function returns an icon corresponding to the inspected operating "
10744 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
10745 "to PNG if necessary)."
10749 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:2999
10751 "If it was not possible to get an icon this function returns a zero-length "
10752 "(non-NULL) buffer. I<Callers must check for this case>."
10756 #: ../fish/guestfish-actions.pod:1995 ../src/guestfs-actions.pod:3002
10758 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10759 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10760 "this file will be returned. You can disable favicons by passing the "
10761 "optional C<favicon> boolean as false (default is true)."
10765 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:3008
10767 "If finding the favicon fails, then we look in other places in the guest for "
10772 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:3011
10774 "If the optional C<highquality> boolean is true then only high quality icons "
10775 "are returned, which means only icons of high resolution with an alpha "
10776 "channel. The default (false) is to return any icon we can, even if it is of "
10777 "substandard quality."
10781 #: ../fish/guestfish-actions.pod:2015 ../src/guestfs-actions.pod:3022
10783 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10784 "before you call this, since it needs to read information from the guest "
10785 "filesystem during the call."
10789 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3028
10791 "B<Security:> The icon data comes from the untrusted guest, and should be "
10792 "treated with caution. PNG files have been known to contain exploits. "
10793 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10794 "trying to process or display the icon."
10798 #: ../fish/guestfish-actions.pod:2029 ../src/guestfs-actions.pod:3036
10800 "The PNG image returned can be any size. It might not be square. Libguestfs "
10801 "tries to return the largest, highest quality icon available. The "
10802 "application must scale the icon to the required size."
10806 #: ../fish/guestfish-actions.pod:2036 ../src/guestfs-actions.pod:3043
10808 "Extracting icons from Windows guests requires the external C<wrestool> "
10809 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10810 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
10811 "installed separately."
10815 #: ../fish/guestfish-actions.pod:2043 ../src/guestfs-actions.pod:3050
10817 "Operating system icons are usually trademarks. Seek legal advice before "
10818 "using trademarks in applications."
10822 #: ../fish/guestfish-actions.pod:2050
10823 msgid "inspect-get-major-version"
10824 msgstr "inspect-get-major-version"
10827 #: ../fish/guestfish-actions.pod:2052
10830 " inspect-get-major-version root\n"
10833 " inspect-get-major-version корінь\n"
10837 #: ../fish/guestfish-actions.pod:2054 ../src/guestfs-actions.pod:3091
10839 "This returns the major version number of the inspected operating system."
10843 #: ../fish/guestfish-actions.pod:2057 ../src/guestfs-actions.pod:3094
10845 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10846 "popular public names used by the operating system. Notably the operating "
10847 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10848 "1). You can find out the real versions corresponding to releases of Windows "
10849 "by consulting Wikipedia or MSDN."
10853 #: ../fish/guestfish-actions.pod:2064 ../fish/guestfish-actions.pod:2075
10854 #: ../src/guestfs-actions.pod:3101 ../src/guestfs-actions.pod:3118
10855 msgid "If the version could not be determined, then C<0> is returned."
10859 #: ../fish/guestfish-actions.pod:2068
10860 msgid "inspect-get-minor-version"
10861 msgstr "inspect-get-minor-version"
10864 #: ../fish/guestfish-actions.pod:2070
10867 " inspect-get-minor-version root\n"
10870 " inspect-get-minor-version корінь\n"
10874 #: ../fish/guestfish-actions.pod:2072 ../src/guestfs-actions.pod:3115
10876 "This returns the minor version number of the inspected operating system."
10880 #: ../fish/guestfish-actions.pod:2077
10882 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10883 "get-major-version>."
10887 #: ../fish/guestfish-actions.pod:2080
10888 msgid "inspect-get-mountpoints"
10889 msgstr "inspect-get-mountpoints"
10892 #: ../fish/guestfish-actions.pod:2082
10895 " inspect-get-mountpoints root\n"
10898 " inspect-get-mountpoints корінь\n"
10902 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3133
10904 "This returns a hash of where we think the filesystems associated with this "
10905 "operating system should be mounted. Callers should note that this is at "
10906 "best an educated guess made by reading configuration files such as C</etc/"
10907 "fstab>. I<In particular note> that this may return filesystems which are "
10908 "non-existent or not mountable and callers should be prepared to handle or "
10909 "ignore failures if they try to mount them."
10913 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3142
10915 "Each element in the returned hashtable has a key which is the path of the "
10916 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10917 "mounted there (eg. C</dev/sda1>)."
10921 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3147
10923 "Non-mounted devices such as swap devices are I<not> returned in this list."
10927 #: ../fish/guestfish-actions.pod:2101
10929 "For operating systems like Windows which still use drive letters, this call "
10930 "will only return an entry for the first drive \"mounted on\" C</>. For "
10931 "information about the mapping of drive letters to partitions, see L</inspect-"
10932 "get-drive-mappings>."
10936 #: ../fish/guestfish-actions.pod:2107
10938 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10939 "get-filesystems>."
10943 #: ../fish/guestfish-actions.pod:2110
10944 msgid "inspect-get-package-format"
10945 msgstr "inspect-get-package-format"
10948 #: ../fish/guestfish-actions.pod:2112
10951 " inspect-get-package-format root\n"
10954 " inspect-get-package-format корінь\n"
10958 #: ../fish/guestfish-actions.pod:2114
10960 "This function and L</inspect-get-package-management> return the package "
10961 "format and package management tool used by the inspected operating system. "
10962 "For example for Fedora these functions would return C<rpm> (package format) "
10963 "and C<yum> (package management)."
10967 #: ../fish/guestfish-actions.pod:2120 ../src/guestfs-actions.pod:3179
10969 "This returns the string C<unknown> if we could not determine the package "
10970 "format I<or> if the operating system does not have a real packaging system "
10975 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3183
10977 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10978 "C<pkgsrc>. Future versions of libguestfs may return other strings."
10982 #: ../fish/guestfish-actions.pod:2130
10983 msgid "inspect-get-package-management"
10984 msgstr "inspect-get-package-management"
10987 #: ../fish/guestfish-actions.pod:2132
10990 " inspect-get-package-management root\n"
10993 " inspect-get-package-management корінь\n"
10997 #: ../fish/guestfish-actions.pod:2134
10999 "L</inspect-get-package-format> and this function return the package format "
11000 "and package management tool used by the inspected operating system. For "
11001 "example for Fedora these functions would return C<rpm> (package format) and "
11002 "C<yum> (package management)."
11006 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3206
11008 "This returns the string C<unknown> if we could not determine the package "
11009 "management tool I<or> if the operating system does not have a real packaging "
11010 "system (eg. Windows)."
11014 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3210
11016 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11017 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>. Future "
11018 "versions of libguestfs may return other strings."
11022 #: ../fish/guestfish-actions.pod:2151
11023 msgid "inspect-get-product-name"
11024 msgstr "inspect-get-product-name"
11027 #: ../fish/guestfish-actions.pod:2153
11030 " inspect-get-product-name root\n"
11033 " inspect-get-product-name корінь\n"
11037 #: ../fish/guestfish-actions.pod:2155 ../src/guestfs-actions.pod:3228
11039 "This returns the product name of the inspected operating system. The "
11040 "product name is generally some freeform string which can be displayed to the "
11041 "user, but should not be parsed by programs."
11045 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3233
11047 "If the product name could not be determined, then the string C<unknown> is "
11052 #: ../fish/guestfish-actions.pod:2165
11053 msgid "inspect-get-product-variant"
11057 #: ../fish/guestfish-actions.pod:2167
11060 " inspect-get-product-variant root\n"
11065 #: ../fish/guestfish-actions.pod:2169 ../src/guestfs-actions.pod:3249
11066 msgid "This returns the product variant of the inspected operating system."
11070 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3252
11072 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11073 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11074 "is usually a string such as C<Client> or C<Server> (other values are "
11075 "possible). This can be used to distinguish consumer and enterprise versions "
11076 "of Windows that have the same version number (for example, Windows 7 and "
11077 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11078 "the latter is C<Server>)."
11082 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3261
11084 "For enterprise Linux guests, in future we intend this to return the product "
11085 "variant such as C<Desktop>, C<Server> and so on. But this is not "
11086 "implemented at present."
11090 #: ../fish/guestfish-actions.pod:2185 ../src/guestfs-actions.pod:3265
11092 "If the product variant could not be determined, then the string C<unknown> "
11097 #: ../fish/guestfish-actions.pod:2188
11099 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11100 "get-product-name>, L</inspect-get-major-version>."
11104 #: ../fish/guestfish-actions.pod:2192
11105 msgid "inspect-get-roots"
11106 msgstr "inspect-get-roots"
11109 #: ../fish/guestfish-actions.pod:2194
11112 " inspect-get-roots\n"
11115 " inspect-get-roots\n"
11119 #: ../fish/guestfish-actions.pod:2196
11121 "This function is a convenient way to get the list of root devices, as "
11122 "returned from a previous call to L</inspect-os>, but without redoing the "
11123 "whole inspection process."
11127 #: ../fish/guestfish-actions.pod:2200
11129 "This returns an empty list if either no root devices were found or the "
11130 "caller has not called L</inspect-os>."
11134 #: ../fish/guestfish-actions.pod:2205
11135 msgid "inspect-get-type"
11136 msgstr "inspect-get-type"
11139 #: ../fish/guestfish-actions.pod:2207
11142 " inspect-get-type root\n"
11145 " inspect-get-type корінь\n"
11149 #: ../fish/guestfish-actions.pod:2209 ../src/guestfs-actions.pod:3303
11151 "This returns the type of the inspected operating system. Currently defined "
11156 #: ../fish/guestfish-actions.pod:2214 ../src/guestfs-actions.pod:3308
11161 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3310
11162 msgid "Any Linux-based operating system."
11166 #: ../fish/guestfish-actions.pod:2220 ../src/guestfs-actions.pod:3314
11167 msgid "Any Microsoft Windows operating system."
11171 #: ../fish/guestfish-actions.pod:2222 ../src/guestfs-actions.pod:3316
11172 msgid "\"freebsd\""
11173 msgstr "\"freebsd\""
11176 #: ../fish/guestfish-actions.pod:2224 ../src/guestfs-actions.pod:3318
11181 #: ../fish/guestfish-actions.pod:2226 ../src/guestfs-actions.pod:3320
11183 #| msgid "\"freebsd\""
11185 msgstr "\"freebsd\""
11188 #: ../fish/guestfish-actions.pod:2228 ../src/guestfs-actions.pod:3322
11190 #| msgid "FreeBSD."
11195 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3326
11196 msgid "The operating system type could not be determined."
11200 #: ../fish/guestfish-actions.pod:2241
11201 msgid "inspect-get-windows-current-control-set"
11205 #: ../fish/guestfish-actions.pod:2243
11208 " inspect-get-windows-current-control-set root\n"
11213 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3346
11215 "This returns the Windows CurrentControlSet of the inspected guest. The "
11216 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11220 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3349
11222 "This call assumes that the guest is Windows and that the Registry could be "
11223 "examined by inspection. If this is not the case then an error is returned."
11227 #: ../fish/guestfish-actions.pod:2254
11228 msgid "inspect-get-windows-systemroot"
11229 msgstr "inspect-get-windows-systemroot"
11232 #: ../fish/guestfish-actions.pod:2256
11235 " inspect-get-windows-systemroot root\n"
11238 " inspect-get-windows-systemroot корінь\n"
11242 #: ../fish/guestfish-actions.pod:2258 ../src/guestfs-actions.pod:3366
11244 "This returns the Windows systemroot of the inspected guest. The systemroot "
11245 "is a directory path such as C</WINDOWS>."
11249 #: ../fish/guestfish-actions.pod:2261 ../src/guestfs-actions.pod:3369
11251 "This call assumes that the guest is Windows and that the systemroot could be "
11252 "determined by inspection. If this is not the case then an error is returned."
11256 #: ../fish/guestfish-actions.pod:2267
11257 msgid "inspect-is-live"
11258 msgstr "inspect-is-live"
11261 #: ../fish/guestfish-actions.pod:2269
11264 " inspect-is-live root\n"
11267 " inspect-is-live корінь\n"
11271 #: ../fish/guestfish-actions.pod:2271
11273 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11274 "then this returns true if a live image was detected on the disk."
11278 #: ../fish/guestfish-actions.pod:2277
11279 msgid "inspect-is-multipart"
11280 msgstr "inspect-is-multipart"
11283 #: ../fish/guestfish-actions.pod:2279
11286 " inspect-is-multipart root\n"
11289 " inspect-is-multipart корінь\n"
11293 #: ../fish/guestfish-actions.pod:2281
11295 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11296 "then this returns true if the disk is part of a set."
11300 #: ../fish/guestfish-actions.pod:2287
11301 msgid "inspect-is-netinst"
11302 msgstr "inspect-is-netinst"
11305 #: ../fish/guestfish-actions.pod:2289
11308 " inspect-is-netinst root\n"
11311 " inspect-is-netinst корінь\n"
11315 #: ../fish/guestfish-actions.pod:2291
11317 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11318 "then this returns true if the disk is a network installer, ie. not a self-"
11319 "contained install CD but one which is likely to require network access to "
11320 "complete the install."
11324 #: ../fish/guestfish-actions.pod:2299
11325 msgid "inspect-list-applications"
11326 msgstr "inspect-list-applications"
11329 #: ../fish/guestfish-actions.pod:2301
11332 " inspect-list-applications root\n"
11335 " inspect-list-applications кореневий_каталог\n"
11339 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3436
11340 msgid "Return the list of applications installed in the operating system."
11344 #: ../fish/guestfish-actions.pod:2305
11346 "I<Note:> This call works differently from other parts of the inspection "
11347 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11348 "then mount up the disks, before calling this. Listing applications is a "
11349 "significantly more difficult operation which requires access to the full "
11350 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
11351 "are just returning data cached in the libguestfs handle, this call actually "
11352 "reads parts of the mounted filesystems during the call."
11356 #: ../fish/guestfish-actions.pod:2315 ../src/guestfs-actions.pod:3448
11358 "This returns an empty list if the inspection code was not able to determine "
11359 "the list of applications."
11363 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3451
11364 msgid "The application structure contains the following fields:"
11368 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3455
11369 msgid "C<app_name>"
11370 msgstr "C<app_name>"
11373 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3457
11375 "The name of the application. For Red Hat-derived and Debian-derived Linux "
11376 "guests, this is the package name."
11380 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3460
11381 msgid "C<app_display_name>"
11382 msgstr "C<app_display_name>"
11385 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3462
11387 "The display name of the application, sometimes localized to the install "
11388 "language of the guest operating system."
11392 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3465
11394 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
11395 "to display something can use C<app_name> instead."
11399 #: ../fish/guestfish-actions.pod:2335 ../src/guestfs-actions.pod:3468
11400 msgid "C<app_epoch>"
11401 msgstr "C<app_epoch>"
11404 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3470
11406 "For package managers which use epochs, this contains the epoch of the "
11407 "package (an integer). If unavailable, this is returned as C<0>."
11411 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3473
11412 msgid "C<app_version>"
11413 msgstr "C<app_version>"
11416 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:3475
11418 "The version string of the application or package. If unavailable this is "
11419 "returned as an empty string C<\"\">."
11423 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3478
11424 msgid "C<app_release>"
11425 msgstr "C<app_release>"
11428 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3480
11430 "The release string of the application or package, for package managers that "
11431 "use this. If unavailable this is returned as an empty string C<\"\">."
11435 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3484
11436 msgid "C<app_install_path>"
11437 msgstr "C<app_install_path>"
11440 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3486
11442 "The installation path of the application (on operating systems such as "
11443 "Windows which use installation paths). This path is in the format used by "
11444 "the guest operating system, it is not a libguestfs path."
11448 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3491
11449 msgid "If unavailable this is returned as an empty string C<\"\">."
11453 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3493
11454 msgid "C<app_trans_path>"
11455 msgstr "C<app_trans_path>"
11458 #: ../fish/guestfish-actions.pod:2362 ../src/guestfs-actions.pod:3495
11460 "The install path translated into a libguestfs path. If unavailable this is "
11461 "returned as an empty string C<\"\">."
11465 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3498
11466 msgid "C<app_publisher>"
11467 msgstr "C<app_publisher>"
11470 #: ../fish/guestfish-actions.pod:2367 ../src/guestfs-actions.pod:3500
11472 "The name of the publisher of the application, for package managers that use "
11473 "this. If unavailable this is returned as an empty string C<\"\">."
11477 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3504
11479 msgstr "C<app_url>"
11482 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3506
11484 "The URL (eg. upstream URL) of the application. If unavailable this is "
11485 "returned as an empty string C<\"\">."
11489 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3509
11490 msgid "C<app_source_package>"
11491 msgstr "C<app_source_package>"
11494 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3511
11496 "For packaging systems which support this, the name of the source package. "
11497 "If unavailable this is returned as an empty string C<\"\">."
11501 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3514
11502 msgid "C<app_summary>"
11503 msgstr "C<app_summary>"
11506 #: ../fish/guestfish-actions.pod:2383 ../src/guestfs-actions.pod:3516
11508 "A short (usually one line) description of the application or package. If "
11509 "unavailable this is returned as an empty string C<\"\">."
11513 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3519
11514 msgid "C<app_description>"
11515 msgstr "C<app_description>"
11518 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3521
11520 "A longer description of the application or package. If unavailable this is "
11521 "returned as an empty string C<\"\">."
11525 #: ../fish/guestfish-actions.pod:2395
11527 msgstr "inspect-os"
11530 #: ../fish/guestfish-actions.pod:2397
11540 #: ../fish/guestfish-actions.pod:2399 ../src/guestfs-actions.pod:3539
11542 "This function uses other libguestfs functions and certain heuristics to "
11543 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11544 "for operating systems."
11548 #: ../fish/guestfish-actions.pod:2403 ../src/guestfs-actions.pod:3543
11549 msgid "The list returned is empty if no operating systems were found."
11553 #: ../fish/guestfish-actions.pod:2405 ../src/guestfs-actions.pod:3545
11555 "If one operating system was found, then this returns a list with a single "
11556 "element, which is the name of the root filesystem of this operating system. "
11557 "It is also possible for this function to return a list containing more than "
11558 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11559 "element being the root filesystem of one of the operating systems."
11563 #: ../fish/guestfish-actions.pod:2412
11565 "You can pass the root string(s) returned to other L</inspect-get-*> "
11566 "functions in order to query further information about each operating system, "
11567 "such as the name and version."
11571 #: ../fish/guestfish-actions.pod:2417
11573 "This function uses other libguestfs features such as L</mount-ro> and L</"
11574 "umount-all> in order to mount and unmount filesystems and look at the "
11575 "contents. This should be called with no disks currently mounted. The "
11576 "function may also use Augeas, so any existing Augeas handle will be closed."
11580 #: ../fish/guestfish-actions.pod:2423 ../src/guestfs-actions.pod:3563
11582 "This function cannot decrypt encrypted disks. The caller must do that first "
11583 "(supplying the necessary keys) if the disk is encrypted."
11587 #: ../fish/guestfish-actions.pod:2429 ../fish/guestfish-actions.pod:2627
11588 #: ../fish/guestfish-actions.pod:2686
11589 msgid "See also L</list-filesystems>."
11590 msgstr "Див. також L</list-filesystems>."
11593 #: ../fish/guestfish-actions.pod:2431
11594 msgid "is-blockdev"
11595 msgstr "is-blockdev"
11598 #: ../fish/guestfish-actions.pod:2433
11601 " is-blockdev path\n"
11604 " is-blockdev шлях\n"
11608 #: ../fish/guestfish-actions.pod:2435 ../src/guestfs-actions.pod:3583
11610 "This returns C<true> if and only if there is a block device with the given "
11615 #: ../fish/guestfish-actions.pod:2438 ../fish/guestfish-actions.pod:2456
11616 #: ../fish/guestfish-actions.pod:2475 ../fish/guestfish-actions.pod:2484
11617 #: ../fish/guestfish-actions.pod:2494 ../fish/guestfish-actions.pod:2528
11618 #: ../fish/guestfish-actions.pod:2537
11619 msgid "See also L</stat>."
11620 msgstr "Див. також L</stat>."
11623 #: ../fish/guestfish-actions.pod:2440
11628 #: ../fish/guestfish-actions.pod:2442
11638 #: ../fish/guestfish-actions.pod:2444 ../src/guestfs-actions.pod:3597
11640 "This returns true iff this handle is busy processing a command (in the "
11645 #: ../fish/guestfish-actions.pod:2449
11647 msgstr "is-chardev"
11650 #: ../fish/guestfish-actions.pod:2451
11653 " is-chardev path\n"
11656 " is-chardev шлях\n"
11660 #: ../fish/guestfish-actions.pod:2453 ../src/guestfs-actions.pod:3612
11662 "This returns C<true> if and only if there is a character device with the "
11663 "given C<path> name."
11667 #: ../fish/guestfish-actions.pod:2458
11672 #: ../fish/guestfish-actions.pod:2460
11682 #: ../fish/guestfish-actions.pod:2462 ../src/guestfs-actions.pod:3626
11684 "This returns true iff this handle is being configured (in the C<CONFIG> "
11689 #: ../fish/guestfish-actions.pod:2467
11694 #: ../fish/guestfish-actions.pod:2469
11704 #: ../fish/guestfish-actions.pod:2471 ../src/guestfs-actions.pod:3641
11706 "This returns C<true> if and only if there is a directory with the given "
11707 "C<path> name. Note that it returns false for other objects like files."
11711 #: ../fish/guestfish-actions.pod:2477
11716 #: ../fish/guestfish-actions.pod:2479
11726 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3657
11728 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
11729 "given C<path> name."
11733 #: ../fish/guestfish-actions.pod:2486
11738 #: ../fish/guestfish-actions.pod:2488
11748 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3672
11750 "This returns C<true> if and only if there is a regular file with the given "
11751 "C<path> name. Note that it returns false for other objects like directories."
11755 #: ../fish/guestfish-actions.pod:2496
11756 msgid "is-launching"
11757 msgstr "is-launching"
11760 #: ../fish/guestfish-actions.pod:2498
11770 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3687
11772 "This returns true iff this handle is launching the subprocess (in the "
11773 "C<LAUNCHING> state)."
11777 #: ../fish/guestfish-actions.pod:2505
11782 #: ../fish/guestfish-actions.pod:2507
11788 " is-lv пристрій\n"
11792 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3702
11794 "This command tests whether C<device> is a logical volume, and returns true "
11795 "iff this is the case."
11799 #: ../fish/guestfish-actions.pod:2512
11804 #: ../fish/guestfish-actions.pod:2514
11814 #: ../fish/guestfish-actions.pod:2516 ../src/guestfs-actions.pod:3714
11816 "This returns true iff this handle is ready to accept commands (in the "
11821 #: ../fish/guestfish-actions.pod:2521
11826 #: ../fish/guestfish-actions.pod:2523
11829 " is-socket path\n"
11832 " is-socket шлях\n"
11836 #: ../fish/guestfish-actions.pod:2525 ../src/guestfs-actions.pod:3729
11838 "This returns C<true> if and only if there is a Unix domain socket with the "
11839 "given C<path> name."
11843 #: ../fish/guestfish-actions.pod:2530
11845 msgstr "is-symlink"
11848 #: ../fish/guestfish-actions.pod:2532
11851 " is-symlink path\n"
11854 " is-symlink шлях\n"
11858 #: ../fish/guestfish-actions.pod:2534 ../src/guestfs-actions.pod:3744
11860 "This returns C<true> if and only if there is a symbolic link with the given "
11865 #: ../fish/guestfish-actions.pod:2539
11870 #: ../fish/guestfish-actions.pod:2541
11878 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3759
11880 "This returns true iff the file exists and the file is empty or it contains "
11885 #: ../fish/guestfish-actions.pod:2546
11886 msgid "is-zero-device"
11890 #: ../fish/guestfish-actions.pod:2548
11893 " is-zero-device device\n"
11898 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3772
11899 msgid "This returns true iff the device exists and contains all zero bytes."
11903 #: ../fish/guestfish-actions.pod:2552 ../src/guestfs-actions.pod:3774
11904 msgid "Note that for large devices this can take a long time to run."
11908 #: ../fish/guestfish-actions.pod:2554
11909 msgid "kill-subprocess"
11910 msgstr "kill-subprocess"
11913 #: ../fish/guestfish-actions.pod:2556
11916 " kill-subprocess\n"
11919 " kill-subprocess\n"
11923 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3785
11924 msgid "This kills the qemu subprocess. You should never need to call this."
11928 #: ../fish/guestfish-actions.pod:2560
11933 #: ../fish/guestfish-actions.pod:2562
11938 #: ../fish/guestfish-actions.pod:2564
11948 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3796
11950 "Internally libguestfs is implemented by running a virtual machine using "
11955 #: ../fish/guestfish-actions.pod:2569 ../src/guestfs-actions.pod:3799
11957 "You should call this after configuring the handle (eg. adding drives) but "
11958 "before performing any actions."
11962 #: ../fish/guestfish-actions.pod:2572
11967 #: ../fish/guestfish-actions.pod:2574
11970 " lchown owner group path\n"
11973 " lchown власник група шлях\n"
11977 #: ../fish/guestfish-actions.pod:2576
11979 "Change the file owner to C<owner> and group to C<group>. This is like L</"
11980 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11985 #: ../fish/guestfish-actions.pod:2584
11990 #: ../fish/guestfish-actions.pod:2586
11993 " lgetxattr path name\n"
11996 " lgetxattr шлях назва\n"
12000 #: ../fish/guestfish-actions.pod:2588 ../src/guestfs-actions.pod:3839
12002 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
12003 "is a symlink, then this call returns an extended attribute from the symlink."
12007 #: ../fish/guestfish-actions.pod:2602
12008 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12009 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12012 #: ../fish/guestfish-actions.pod:2604
12014 msgstr "lgetxattrs"
12017 #: ../fish/guestfish-actions.pod:2606
12020 " lgetxattrs path\n"
12023 " lgetxattrs шлях\n"
12027 #: ../fish/guestfish-actions.pod:2608
12029 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
12030 "it returns the extended attributes of the link itself."
12034 #: ../fish/guestfish-actions.pod:2612
12039 #: ../fish/guestfish-actions.pod:2614
12047 #: ../fish/guestfish-actions.pod:2616 ../src/guestfs-actions.pod:3882
12049 "List all 9p filesystems attached to the guest. A list of mount tags is "
12054 #: ../fish/guestfish-actions.pod:2619
12055 msgid "list-devices"
12056 msgstr "list-devices"
12059 #: ../fish/guestfish-actions.pod:2621
12069 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3896
12070 msgid "List all the block devices."
12074 #: ../fish/guestfish-actions.pod:2625 ../src/guestfs-actions.pod:3898
12075 msgid "The full block device names are returned, eg. C</dev/sda>."
12079 #: ../fish/guestfish-actions.pod:2629
12080 msgid "list-dm-devices"
12084 #: ../fish/guestfish-actions.pod:2631
12087 " list-dm-devices\n"
12092 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3913
12093 msgid "List all device mapper devices."
12097 #: ../fish/guestfish-actions.pod:2635
12099 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12100 "previous call to L</luks-open>."
12104 #: ../fish/guestfish-actions.pod:2638
12106 "Device mapper devices which correspond to logical volumes are I<not> "
12107 "returned in this list. Call L</lvs> if you want to list logical volumes."
12111 #: ../fish/guestfish-actions.pod:2642
12112 msgid "list-filesystems"
12113 msgstr "list-filesystems"
12116 #: ../fish/guestfish-actions.pod:2644
12119 " list-filesystems\n"
12122 " list-filesystems\n"
12126 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3933
12128 "This inspection command looks for filesystems on partitions, block devices "
12129 "and logical volumes, returning a list of devices containing filesystems and "
12134 #: ../fish/guestfish-actions.pod:2650 ../src/guestfs-actions.pod:3937
12136 "The return value is a hash, where the keys are the devices containing "
12137 "filesystems, and the values are the filesystem types. For example:"
12141 #: ../fish/guestfish-actions.pod:2654 ../src/guestfs-actions.pod:3941
12144 " \"/dev/sda1\" => \"ntfs\"\n"
12145 " \"/dev/sda2\" => \"ext2\"\n"
12146 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12147 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12152 #: ../fish/guestfish-actions.pod:2659 ../src/guestfs-actions.pod:3946
12154 "The value can have the special value \"unknown\", meaning the content of the "
12155 "device is undetermined or empty. \"swap\" means a Linux swap partition."
12159 #: ../fish/guestfish-actions.pod:2663
12161 "This command runs other libguestfs commands, which might include L</mount> "
12162 "and L</umount>, and therefore you should use this soon after launch and only "
12163 "when nothing is mounted."
12167 #: ../fish/guestfish-actions.pod:2667
12169 "Not all of the filesystems returned will be mountable. In particular, swap "
12170 "partitions are returned in the list. Also this command does not check that "
12171 "each filesystem found is valid and mountable, and some filesystems might be "
12172 "mountable but require special options. Filesystems may not all belong to a "
12173 "single logical operating system (use L</inspect-os> to look for OSes)."
12177 #: ../fish/guestfish-actions.pod:2675
12178 msgid "list-partitions"
12179 msgstr "list-partitions"
12182 #: ../fish/guestfish-actions.pod:2677
12185 " list-partitions\n"
12188 " list-partitions\n"
12192 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3975
12193 msgid "List all the partitions detected on all block devices."
12197 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3977
12198 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12202 #: ../fish/guestfish-actions.pod:2683
12204 "This does not return logical volumes. For that you will need to call L</"
12209 #: ../fish/guestfish-actions.pod:2688
12214 #: ../fish/guestfish-actions.pod:2690
12224 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:3996
12226 "List the files in C<directory> (relative to the root directory, there is no "
12227 "cwd) in the format of 'ls -la'."
12231 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:3999
12233 "This command is mostly useful for interactive sessions. It is I<not> "
12234 "intended that you try to parse the output string."
12238 #: ../fish/guestfish-actions.pod:2698
12243 #: ../fish/guestfish-actions.pod:2700
12246 " ln target linkname\n"
12249 " ln призначення назва_посилання\n"
12253 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4014
12254 msgid "This command creates a hard link using the C<ln> command."
12258 #: ../fish/guestfish-actions.pod:2704
12263 #: ../fish/guestfish-actions.pod:2706
12266 " ln-f target linkname\n"
12269 " ln-f призначення назва_посилання\n"
12273 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4027
12275 "This command creates a hard link using the C<ln -f> command. The I<-f> "
12276 "option removes the link (C<linkname>) if it exists already."
12280 #: ../fish/guestfish-actions.pod:2711
12285 #: ../fish/guestfish-actions.pod:2713
12288 " ln-s target linkname\n"
12291 " ln-s призначення назва_посилання\n"
12295 #: ../fish/guestfish-actions.pod:2715 ../src/guestfs-actions.pod:4041
12296 msgid "This command creates a symbolic link using the C<ln -s> command."
12300 #: ../fish/guestfish-actions.pod:2717
12305 #: ../fish/guestfish-actions.pod:2719
12308 " ln-sf target linkname\n"
12311 " ln-sf призначення назва_посилання\n"
12315 #: ../fish/guestfish-actions.pod:2721 ../src/guestfs-actions.pod:4054
12317 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12318 "option removes the link (C<linkname>) if it exists already."
12322 #: ../fish/guestfish-actions.pod:2724
12323 msgid "lremovexattr"
12324 msgstr "lremovexattr"
12327 #: ../fish/guestfish-actions.pod:2726
12330 " lremovexattr xattr path\n"
12335 #: ../fish/guestfish-actions.pod:2728
12337 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12338 "it removes an extended attribute of the link itself."
12342 #: ../fish/guestfish-actions.pod:2732
12347 #: ../fish/guestfish-actions.pod:2734
12357 #: ../fish/guestfish-actions.pod:2736 ../src/guestfs-actions.pod:4082
12359 "List the files in C<directory> (relative to the root directory, there is no "
12360 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
12364 #: ../fish/guestfish-actions.pod:2740
12366 "This command is mostly useful for interactive sessions. Programs should "
12367 "probably use L</readdir> instead."
12371 #: ../fish/guestfish-actions.pod:2743
12376 #: ../fish/guestfish-actions.pod:2745
12379 " lsetxattr xattr val vallen path\n"
12384 #: ../fish/guestfish-actions.pod:2747
12386 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12387 "sets an extended attribute of the link itself."
12391 #: ../fish/guestfish-actions.pod:2751
12396 #: ../fish/guestfish-actions.pod:2753
12406 #: ../fish/guestfish-actions.pod:2755 ../fish/guestfish-actions.pod:4565
12407 #: ../src/guestfs-actions.pod:4118 ../src/guestfs-actions.pod:6903
12408 msgid "Returns file information for the given C<path>."
12412 #: ../fish/guestfish-actions.pod:2757
12414 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12415 "the link is stat-ed, not the file it refers to."
12419 #: ../fish/guestfish-actions.pod:2761 ../src/guestfs-actions.pod:4124
12420 msgid "This is the same as the C<lstat(2)> system call."
12424 #: ../fish/guestfish-actions.pod:2763
12429 #: ../fish/guestfish-actions.pod:2765
12432 " lstatlist path 'names ...'\n"
12437 #: ../fish/guestfish-actions.pod:2767
12439 "This call allows you to perform the L</lstat> operation on multiple files, "
12440 "where all files are in the directory C<path>. C<names> is the list of files "
12441 "from this directory."
12445 #: ../fish/guestfish-actions.pod:2771 ../src/guestfs-actions.pod:4143
12447 "On return you get a list of stat structs, with a one-to-one correspondence "
12448 "to the C<names> list. If any name did not exist or could not be lstat'd, "
12449 "then the C<ino> field of that structure is set to C<-1>."
12453 #: ../fish/guestfish-actions.pod:2776
12455 "This call is intended for programs that want to efficiently list a directory "
12456 "contents without making many round-trips. See also L</lxattrlist> for a "
12457 "similarly efficient call for getting extended attributes. Very long "
12458 "directory listings might cause the protocol message size to be exceeded, "
12459 "causing this call to fail. The caller must split up such requests into "
12460 "smaller groups of names."
12464 #: ../fish/guestfish-actions.pod:2784
12465 msgid "luks-add-key"
12466 msgstr "luks-add-key"
12469 #: ../fish/guestfish-actions.pod:2786
12472 " luks-add-key device keyslot\n"
12477 #: ../fish/guestfish-actions.pod:2788 ../src/guestfs-actions.pod:4171
12479 "This command adds a new key on LUKS device C<device>. C<key> is any "
12480 "existing key, and is used to access the device. C<newkey> is the new key to "
12481 "add. C<keyslot> is the key slot that will be replaced."
12485 #: ../fish/guestfish-actions.pod:2793
12487 "Note that if C<keyslot> already contains a key, then this command will "
12488 "fail. You have to use L</luks-kill-slot> first to remove that key."
12492 #: ../fish/guestfish-actions.pod:2797 ../fish/guestfish-actions.pod:2819
12493 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2846
12494 #: ../fish/guestfish-actions.pod:2872 ../fish/guestfish-actions.pod:2882
12496 "This command has one or more key or passphrase parameters. Guestfish will "
12497 "prompt for these separately."
12501 #: ../fish/guestfish-actions.pod:2800
12503 msgstr "luks-close"
12506 #: ../fish/guestfish-actions.pod:2802
12509 " luks-close device\n"
12512 " luks-close пристрій\n"
12516 #: ../fish/guestfish-actions.pod:2804
12518 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12519 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
12520 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12525 #: ../fish/guestfish-actions.pod:2810
12526 msgid "luks-format"
12527 msgstr "luks-format"
12530 #: ../fish/guestfish-actions.pod:2812
12533 " luks-format device keyslot\n"
12538 #: ../fish/guestfish-actions.pod:2814 ../src/guestfs-actions.pod:4212
12540 "This command erases existing data on C<device> and formats the device as a "
12541 "LUKS encrypted device. C<key> is the initial key, which is added to key "
12542 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
12546 #: ../fish/guestfish-actions.pod:2822 ../fish/guestfish-actions.pod:2835
12547 #: ../fish/guestfish-actions.pod:2922 ../fish/guestfish-actions.pod:3573
12548 #: ../fish/guestfish-actions.pod:4099 ../fish/guestfish-actions.pod:4436
12549 #: ../fish/guestfish-actions.pod:4459 ../fish/guestfish-actions.pod:4481
12550 #: ../fish/guestfish-actions.pod:5227 ../src/guestfs-actions.pod:4219
12551 #: ../src/guestfs-actions.pod:4242 ../src/guestfs-actions.pod:4385
12552 #: ../src/guestfs-actions.pod:5478 ../src/guestfs-actions.pod:6266
12553 #: ../src/guestfs-actions.pod:6717 ../src/guestfs-actions.pod:6747
12554 #: ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:7979
12556 "B<This command is dangerous. Without careful use you can easily destroy all "
12561 #: ../fish/guestfish-actions.pod:2825
12562 msgid "luks-format-cipher"
12563 msgstr "luks-format-cipher"
12566 #: ../fish/guestfish-actions.pod:2827
12569 " luks-format-cipher device keyslot cipher\n"
12574 #: ../fish/guestfish-actions.pod:2829
12576 "This command is the same as L</luks-format> but it also allows you to set "
12577 "the C<cipher> used."
12581 #: ../fish/guestfish-actions.pod:2838
12582 msgid "luks-kill-slot"
12583 msgstr "luks-kill-slot"
12586 #: ../fish/guestfish-actions.pod:2840
12589 " luks-kill-slot device keyslot\n"
12594 #: ../fish/guestfish-actions.pod:2842 ../src/guestfs-actions.pod:4259
12596 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12597 "device C<device>. C<key> must be one of the I<other> keys."
12601 #: ../fish/guestfish-actions.pod:2849
12606 #: ../fish/guestfish-actions.pod:2851
12609 " luks-open device mapname\n"
12614 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4279
12616 "This command opens a block device which has been encrypted according to the "
12617 "Linux Unified Key Setup (LUKS) standard."
12621 #: ../fish/guestfish-actions.pod:2856 ../src/guestfs-actions.pod:4282
12622 msgid "C<device> is the encrypted block device or partition."
12626 #: ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4284
12628 "The caller must supply one of the keys associated with the LUKS block "
12629 "device, in the C<key> parameter."
12633 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4287
12635 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
12636 "writes to this block device are decrypted from and encrypted to the "
12637 "underlying C<device> respectively."
12641 #: ../fish/guestfish-actions.pod:2865
12643 "If this block device contains LVM volume groups, then calling L</vgscan> "
12644 "followed by L</vg-activate-all> will make them visible."
12648 #: ../fish/guestfish-actions.pod:2869
12649 msgid "Use L</list-dm-devices> to list all device mapper devices."
12653 #: ../fish/guestfish-actions.pod:2875
12654 msgid "luks-open-ro"
12655 msgstr "luks-open-ro"
12658 #: ../fish/guestfish-actions.pod:2877
12661 " luks-open-ro device mapname\n"
12666 #: ../fish/guestfish-actions.pod:2879
12668 "This is the same as L</luks-open> except that a read-only mapping is created."
12672 #: ../fish/guestfish-actions.pod:2885
12677 #: ../fish/guestfish-actions.pod:2887
12680 " lvcreate logvol volgroup mbytes\n"
12685 #: ../fish/guestfish-actions.pod:2889 ../src/guestfs-actions.pod:4333
12687 "This creates an LVM logical volume called C<logvol> on the volume group "
12688 "C<volgroup>, with C<size> megabytes."
12692 #: ../fish/guestfish-actions.pod:2892
12693 msgid "lvm-canonical-lv-name"
12694 msgstr "lvm-canonical-lv-name"
12697 #: ../fish/guestfish-actions.pod:2894
12700 " lvm-canonical-lv-name lvname\n"
12705 #: ../fish/guestfish-actions.pod:2896 ../src/guestfs-actions.pod:4346
12707 "This converts alternative naming schemes for LVs that you might find to the "
12708 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12713 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4350
12715 "This command returns an error if the C<lvname> parameter does not refer to a "
12720 #: ../fish/guestfish-actions.pod:2903
12721 msgid "See also L</is-lv>."
12722 msgstr "Див. також L</is-lv>."
12725 #: ../fish/guestfish-actions.pod:2905
12726 msgid "lvm-clear-filter"
12727 msgstr "lvm-clear-filter"
12730 #: ../fish/guestfish-actions.pod:2907
12733 " lvm-clear-filter\n"
12736 " lvm-clear-filter\n"
12740 #: ../fish/guestfish-actions.pod:2909
12742 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
12747 #: ../fish/guestfish-actions.pod:2912 ../fish/guestfish-actions.pod:2943
12748 #: ../src/guestfs-actions.pod:4368 ../src/guestfs-actions.pod:4410
12750 "This command also clears the LVM cache and performs a volume group scan."
12754 #: ../fish/guestfish-actions.pod:2915
12755 msgid "lvm-remove-all"
12756 msgstr "lvm-remove-all"
12759 #: ../fish/guestfish-actions.pod:2917
12762 " lvm-remove-all\n"
12765 " lvm-remove-all\n"
12769 #: ../fish/guestfish-actions.pod:2919 ../src/guestfs-actions.pod:4380
12771 "This command removes all LVM logical volumes, volume groups and physical "
12776 #: ../fish/guestfish-actions.pod:2925
12777 msgid "lvm-set-filter"
12778 msgstr "lvm-set-filter"
12781 #: ../fish/guestfish-actions.pod:2927
12784 " lvm-set-filter 'devices ...'\n"
12787 " lvm-set-filter 'пристрої...'\n"
12791 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4396
12793 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12794 "block devices in the list C<devices>, and will ignore all other attached "
12799 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4400
12801 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12802 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
12803 "there are two types of duplication possible: either cloned PVs/VGs which "
12804 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12805 "same name. In normal operation you cannot create this situation, but you "
12806 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
12807 "inside the LVM metadata."
12811 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4413
12812 msgid "You can filter whole block devices or individual partitions."
12816 #: ../fish/guestfish-actions.pod:2948 ../src/guestfs-actions.pod:4415
12818 "You cannot use this if any VG is currently in use (eg. contains a mounted "
12819 "filesystem), even if you are not filtering out that VG."
12823 #: ../fish/guestfish-actions.pod:2952
12828 #: ../fish/guestfish-actions.pod:2954
12831 " lvremove device\n"
12834 " lvremove пристрій\n"
12838 #: ../fish/guestfish-actions.pod:2956 ../src/guestfs-actions.pod:4429
12840 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12841 "LV, such as C</dev/VG/LV>."
12845 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4432
12847 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12852 #: ../fish/guestfish-actions.pod:2962
12857 #: ../fish/guestfish-actions.pod:2964
12860 " lvrename logvol newlogvol\n"
12865 #: ../fish/guestfish-actions.pod:2966 ../src/guestfs-actions.pod:4446
12866 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12870 #: ../fish/guestfish-actions.pod:2968
12875 #: ../fish/guestfish-actions.pod:2970
12878 " lvresize device mbytes\n"
12883 #: ../fish/guestfish-actions.pod:2972 ../src/guestfs-actions.pod:4459
12885 "This resizes (expands or shrinks) an existing LVM logical volume to "
12886 "C<mbytes>. When reducing, data in the reduced part is lost."
12890 #: ../fish/guestfish-actions.pod:2976
12891 msgid "lvresize-free"
12892 msgstr "lvresize-free"
12895 #: ../fish/guestfish-actions.pod:2978
12898 " lvresize-free lv percent\n"
12903 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4474
12905 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12906 "remaining free space in the volume group. Commonly you would call this with "
12907 "pc = 100 which expands the logical volume as much as possible, using all "
12908 "remaining free space in the volume group."
12912 #: ../fish/guestfish-actions.pod:2986
12917 #: ../fish/guestfish-actions.pod:2988
12927 #: ../fish/guestfish-actions.pod:2990 ../src/guestfs-actions.pod:4489
12929 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12934 #: ../fish/guestfish-actions.pod:2993 ../src/guestfs-actions.pod:4492
12936 "This returns a list of the logical volume device names (eg. C</dev/"
12937 "VolGroup00/LogVol00>)."
12941 #: ../fish/guestfish-actions.pod:2996
12942 msgid "See also L</lvs-full>, L</list-filesystems>."
12943 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12946 #: ../fish/guestfish-actions.pod:2998
12951 #: ../fish/guestfish-actions.pod:3000
12961 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4508
12963 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12964 "(8)> command. The \"full\" version includes all fields."
12968 #: ../fish/guestfish-actions.pod:3005
12973 #: ../fish/guestfish-actions.pod:3007
12979 " lvuuid пристрій\n"
12983 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4523
12984 msgid "This command returns the UUID of the LVM LV C<device>."
12988 #: ../fish/guestfish-actions.pod:3011
12990 msgstr "lxattrlist"
12993 #: ../fish/guestfish-actions.pod:3013
12996 " lxattrlist path 'names ...'\n"
13001 #: ../fish/guestfish-actions.pod:3015 ../src/guestfs-actions.pod:4537
13003 "This call allows you to get the extended attributes of multiple files, where "
13004 "all files are in the directory C<path>. C<names> is the list of files from "
13009 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4541
13011 "On return you get a flat list of xattr structs which must be interpreted "
13012 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
13013 "C<attrval> in this struct is zero-length to indicate there was an error "
13014 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13015 "number (the number of following attributes for this file, which could be C<"
13016 "\"0\">). Then after the first xattr struct are the zero or more attributes "
13017 "for the first named file. This repeats for the second and subsequent files."
13021 #: ../fish/guestfish-actions.pod:3029
13023 "This call is intended for programs that want to efficiently list a directory "
13024 "contents without making many round-trips. See also L</lstatlist> for a "
13025 "similarly efficient call for getting standard stats. Very long directory "
13026 "listings might cause the protocol message size to be exceeded, causing this "
13027 "call to fail. The caller must split up such requests into smaller groups of "
13032 #: ../fish/guestfish-actions.pod:3037
13037 #: ../fish/guestfish-actions.pod:3039
13047 #: ../fish/guestfish-actions.pod:3041 ../src/guestfs-actions.pod:4571
13048 msgid "Create a directory named C<path>."
13052 #: ../fish/guestfish-actions.pod:3043
13054 msgstr "mkdir-mode"
13057 #: ../fish/guestfish-actions.pod:3045
13060 " mkdir-mode path mode\n"
13063 " mkdir-mode шлях режим\n"
13067 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4584
13069 "This command creates a directory, setting the initial permissions of the "
13070 "directory to C<mode>."
13074 #: ../fish/guestfish-actions.pod:3050 ../src/guestfs-actions.pod:4587
13076 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13077 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
13082 #: ../fish/guestfish-actions.pod:3054
13083 msgid "See also L</mkdir>, L</umask>"
13084 msgstr "Див. також L</mkdir>, L</umask>"
13087 #: ../fish/guestfish-actions.pod:3056
13092 #: ../fish/guestfish-actions.pod:3058
13102 #: ../fish/guestfish-actions.pod:3060 ../src/guestfs-actions.pod:4603
13104 "Create a directory named C<path>, creating any parent directories as "
13105 "necessary. This is like the C<mkdir -p> shell command."
13109 #: ../fish/guestfish-actions.pod:3063
13114 #: ../fish/guestfish-actions.pod:3065
13117 " mkdtemp template\n"
13120 " mkdtemp шаблон\n"
13124 #: ../fish/guestfish-actions.pod:3067 ../src/guestfs-actions.pod:4616
13126 "This command creates a temporary directory. The C<template> parameter "
13127 "should be a full pathname for the temporary directory name with the final "
13128 "six characters being \"XXXXXX\"."
13132 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4621
13134 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13135 "being suitable for Windows filesystems."
13139 #: ../fish/guestfish-actions.pod:3075 ../src/guestfs-actions.pod:4624
13140 msgid "The name of the temporary directory that was created is returned."
13144 #: ../fish/guestfish-actions.pod:3078 ../src/guestfs-actions.pod:4627
13145 msgid "The temporary directory is created with mode 0700 and is owned by root."
13149 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4630
13151 "The caller is responsible for deleting the temporary directory and its "
13152 "contents after use."
13156 #: ../fish/guestfish-actions.pod:3084 ../src/guestfs-actions.pod:4633
13157 msgid "See also: L<mkdtemp(3)>"
13161 #: ../fish/guestfish-actions.pod:3086
13166 #: ../fish/guestfish-actions.pod:3088
13169 " mke2fs-J fstype blocksize device journal\n"
13174 #: ../fish/guestfish-actions.pod:3090 ../src/guestfs-actions.pod:4649
13176 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13177 "C<journal>. It is equivalent to the command:"
13181 #: ../fish/guestfish-actions.pod:3094 ../src/guestfs-actions.pod:4653
13184 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13187 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
13191 #: ../fish/guestfish-actions.pod:3096
13192 msgid "See also L</mke2journal>."
13193 msgstr "Див. також L</mke2journal>."
13196 #: ../fish/guestfish-actions.pod:3098
13201 #: ../fish/guestfish-actions.pod:3100
13204 " mke2fs-JL fstype blocksize device label\n"
13209 #: ../fish/guestfish-actions.pod:3102 ../src/guestfs-actions.pod:4670
13211 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13212 "the journal labeled C<label>."
13216 #: ../fish/guestfish-actions.pod:3105
13217 msgid "See also L</mke2journal-L>."
13218 msgstr "Див. також L</mke2journal-L>."
13221 #: ../fish/guestfish-actions.pod:3107
13226 #: ../fish/guestfish-actions.pod:3109
13229 " mke2fs-JU fstype blocksize device uuid\n"
13234 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4688
13236 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13237 "the journal with UUID C<uuid>."
13241 #: ../fish/guestfish-actions.pod:3114
13242 msgid "See also L</mke2journal-U>."
13243 msgstr "Див. також L</mke2journal-U>."
13246 #: ../fish/guestfish-actions.pod:3116
13247 msgid "mke2journal"
13248 msgstr "mke2journal"
13251 #: ../fish/guestfish-actions.pod:3118
13254 " mke2journal blocksize device\n"
13259 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4704
13261 "This creates an ext2 external journal on C<device>. It is equivalent to the "
13266 #: ../fish/guestfish-actions.pod:3123 ../src/guestfs-actions.pod:4707
13269 " mke2fs -O journal_dev -b blocksize device\n"
13274 #: ../fish/guestfish-actions.pod:3125
13275 msgid "mke2journal-L"
13276 msgstr "mke2journal-L"
13279 #: ../fish/guestfish-actions.pod:3127
13282 " mke2journal-L blocksize label device\n"
13287 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4721
13288 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13292 #: ../fish/guestfish-actions.pod:3131
13293 msgid "mke2journal-U"
13294 msgstr "mke2journal-U"
13297 #: ../fish/guestfish-actions.pod:3133
13300 " mke2journal-U blocksize uuid device\n"
13305 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4735
13306 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13310 #: ../fish/guestfish-actions.pod:3137
13315 #: ../fish/guestfish-actions.pod:3139
13318 " mkfifo mode path\n"
13321 " mkfifo режим шлях\n"
13325 #: ../fish/guestfish-actions.pod:3141
13327 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
13328 "is just a convenient wrapper around L</mknod>."
13332 #: ../fish/guestfish-actions.pod:3147
13337 #: ../fish/guestfish-actions.pod:3149
13340 " mkfs fstype device\n"
13343 " mkfs тип_файлової_системи пристрій\n"
13347 #: ../fish/guestfish-actions.pod:3151 ../src/guestfs-actions.pod:4765
13349 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13350 "volume). The filesystem type is C<fstype>, for example C<ext3>."
13354 #: ../fish/guestfish-actions.pod:3155
13359 #: ../fish/guestfish-actions.pod:3157
13362 " mkfs-b fstype blocksize device\n"
13367 #: ../fish/guestfish-actions.pod:3159
13369 "This call is similar to L</mkfs>, but it allows you to control the block "
13370 "size of the resulting filesystem. Supported block sizes depend on the "
13371 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13375 #: ../fish/guestfish-actions.pod:3164 ../fish/guestfish-actions.pod:3191
13376 #: ../src/guestfs-actions.pod:4793 ../src/guestfs-actions.pod:4831
13378 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13383 #: ../fish/guestfish-actions.pod:3167
13385 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13390 #: ../fish/guestfish-actions.pod:3174
13395 #: ../fish/guestfish-actions.pod:3176
13398 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
13403 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4818
13405 "This function creates a filesystem on C<device>. The filesystem type is "
13406 "C<fstype>, for example C<ext3>."
13410 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4825
13411 msgid "C<blocksize>"
13412 msgstr "C<blocksize>"
13415 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4827
13417 "The filesystem block size. Supported block sizes depend on the filesystem "
13418 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13423 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4834
13424 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13428 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4836
13429 msgid "C<features>"
13430 msgstr "C<features>"
13433 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4838
13434 msgid "This passes the I<-O> parameter to the external mkfs program."
13438 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4840
13440 "For certain filesystem types, this allows extra filesystem features to be "
13441 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13445 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4844
13447 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13452 #: ../fish/guestfish-actions.pod:3207 ../src/guestfs-actions.pod:4847
13457 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4849
13459 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13460 "sets the inode size (only for ext2/3/4 filesystems at present)."
13464 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4852
13465 msgid "C<sectorsize>"
13469 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4854
13471 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13472 "sets sector size for ufs filesystem."
13476 #: ../fish/guestfish-actions.pod:3221
13477 msgid "mkmountpoint"
13478 msgstr "mkmountpoint"
13481 #: ../fish/guestfish-actions.pod:3223
13484 " mkmountpoint exemptpath\n"
13489 #: ../fish/guestfish-actions.pod:3225
13491 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13492 "to create extra mountpoints before mounting the first filesystem."
13496 #: ../fish/guestfish-actions.pod:3229 ../src/guestfs-actions.pod:4897
13498 "These calls are I<only> necessary in some very limited circumstances, mainly "
13499 "the case where you want to mount a mix of unrelated and/or read-only "
13500 "filesystems together."
13504 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4901
13506 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13507 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13508 "inside that. You can unpack this as follows in guestfish:"
13512 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4906
13515 " add-ro Fedora-11-i686-Live.iso\n"
13517 " mkmountpoint /cd\n"
13518 " mkmountpoint /sqsh\n"
13519 " mkmountpoint /ext3fs\n"
13520 " mount /dev/sda /cd\n"
13521 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13522 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13525 " add-ro Fedora-11-i686-Live.iso\n"
13527 " mkmountpoint /cd\n"
13528 " mkmountpoint /sqsh\n"
13529 " mkmountpoint /ext3fs\n"
13530 " mount /dev/sda /cd\n"
13531 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13532 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13536 #: ../fish/guestfish-actions.pod:3247 ../src/guestfs-actions.pod:4915
13537 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13541 #: ../fish/guestfish-actions.pod:3249
13543 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
13544 "unexpected errors if you try to mix these calls. It is safest to manually "
13545 "unmount filesystems and remove mountpoints after use."
13549 #: ../fish/guestfish-actions.pod:3253
13551 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13552 "for this to work for manual mountpoints, you must ensure that the innermost "
13553 "mountpoints have the longest pathnames, as in the example code above."
13557 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4926
13559 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13563 #: ../fish/guestfish-actions.pod:3260
13565 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13566 "L</umount-all> to be called when the handle is closed which can also trigger "
13571 #: ../fish/guestfish-actions.pod:3264
13576 #: ../fish/guestfish-actions.pod:3266
13579 " mknod mode devmajor devminor path\n"
13584 #: ../fish/guestfish-actions.pod:3268 ../src/guestfs-actions.pod:4945
13586 "This call creates block or character special devices, or named pipes (FIFOs)."
13590 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:4948
13592 "The C<mode> parameter should be the mode, using the standard constants. "
13593 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13594 "used when creating block and character special devices."
13598 #: ../fish/guestfish-actions.pod:3276
13600 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13601 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13602 "regular file). These constants are available in the standard Linux header "
13603 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13604 "wrappers around this command which bitwise OR in the appropriate constant "
13609 #: ../fish/guestfish-actions.pod:3286
13614 #: ../fish/guestfish-actions.pod:3288
13617 " mknod-b mode devmajor devminor path\n"
13622 #: ../fish/guestfish-actions.pod:3290
13624 "This call creates a block device node called C<path> with mode C<mode> and "
13625 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13626 "wrapper around L</mknod>."
13630 #: ../fish/guestfish-actions.pod:3296
13635 #: ../fish/guestfish-actions.pod:3298
13638 " mknod-c mode devmajor devminor path\n"
13643 #: ../fish/guestfish-actions.pod:3300
13645 "This call creates a char device node called C<path> with mode C<mode> and "
13646 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13647 "wrapper around L</mknod>."
13651 #: ../fish/guestfish-actions.pod:3306
13656 #: ../fish/guestfish-actions.pod:3308
13662 " mkswap пристрій\n"
13666 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5011
13667 msgid "Create a swap partition on C<device>."
13671 #: ../fish/guestfish-actions.pod:3312
13676 #: ../fish/guestfish-actions.pod:3314
13679 " mkswap-L label device\n"
13682 " mkswap-L мітка пристрій\n"
13686 #: ../fish/guestfish-actions.pod:3316 ../src/guestfs-actions.pod:5024
13687 msgid "Create a swap partition on C<device> with label C<label>."
13691 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5026
13693 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13694 "sda>), just to a partition. This appears to be a limitation of the kernel "
13699 #: ../fish/guestfish-actions.pod:3322
13704 #: ../fish/guestfish-actions.pod:3324
13707 " mkswap-U uuid device\n"
13710 " mkswap-U uuid пристрій\n"
13714 #: ../fish/guestfish-actions.pod:3326 ../src/guestfs-actions.pod:5041
13715 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13719 #: ../fish/guestfish-actions.pod:3328
13720 msgid "mkswap-file"
13721 msgstr "mkswap-file"
13724 #: ../fish/guestfish-actions.pod:3330
13727 " mkswap-file path\n"
13730 " mkswap-file шлях\n"
13734 #: ../fish/guestfish-actions.pod:3332 ../src/guestfs-actions.pod:5053
13735 msgid "Create a swap file."
13736 msgstr "Створити файл резервної пам’яті."
13739 #: ../fish/guestfish-actions.pod:3334
13741 "This command just writes a swap file signature to an existing file. To "
13742 "create the file itself, use something like L</fallocate>."
13746 #: ../fish/guestfish-actions.pod:3337
13751 #: ../fish/guestfish-actions.pod:3339
13754 " modprobe modulename\n"
13757 " modprobe назва_модуля\n"
13761 #: ../fish/guestfish-actions.pod:3341 ../src/guestfs-actions.pod:5068
13762 msgid "This loads a kernel module in the appliance."
13766 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5070
13768 "The kernel module must have been whitelisted when libguestfs was built (see "
13769 "C<appliance/kmod.whitelist.in> in the source)."
13773 #: ../fish/guestfish-actions.pod:3346
13778 #: ../fish/guestfish-actions.pod:3348
13781 " mount device mountpoint\n"
13784 " mount пристрій точка_монтування\n"
13788 #: ../fish/guestfish-actions.pod:3350 ../src/guestfs-actions.pod:5084
13790 "Mount a guest disk at a position in the filesystem. Block devices are named "
13791 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
13792 "those block devices contain partitions, they will have the usual names (eg. "
13793 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
13797 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5090
13799 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13800 "mounted on C</> before others can be mounted. Other filesystems can only be "
13801 "mounted on directories which already exist."
13805 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5095
13807 "The mounted filesystem is writable, if we have sufficient permissions on the "
13808 "underlying device."
13812 #: ../fish/guestfish-actions.pod:3364
13814 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13815 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
13816 "problems for users. If your program might need to work with older versions "
13817 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13818 "first parameter if you don't want any options)."
13822 #: ../fish/guestfish-actions.pod:3371
13827 #: ../fish/guestfish-actions.pod:3373
13830 " mount-9p mounttag mountpoint [options:..]\n"
13835 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5124
13837 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13842 #: ../fish/guestfish-actions.pod:3378 ../src/guestfs-actions.pod:5127
13844 "If required, C<trans=virtio> will be automatically added to the options. "
13845 "Any other options required can be passed in the optional C<options> "
13850 #: ../fish/guestfish-actions.pod:3384
13852 msgstr "mount-loop"
13855 #: ../fish/guestfish-actions.pod:3386
13858 " mount-loop file mountpoint\n"
13863 #: ../fish/guestfish-actions.pod:3388 ../src/guestfs-actions.pod:5166
13865 "This command lets you mount C<file> (a filesystem image in a file) on a "
13866 "mount point. It is entirely equivalent to the command C<mount -o loop file "
13871 #: ../fish/guestfish-actions.pod:3392
13872 msgid "mount-options"
13873 msgstr "mount-options"
13876 #: ../fish/guestfish-actions.pod:3394
13879 " mount-options options device mountpoint\n"
13884 #: ../fish/guestfish-actions.pod:3396
13886 "This is the same as the L</mount> command, but it allows you to set the "
13887 "mount options as for the L<mount(8)> I<-o> flag."
13891 #: ../fish/guestfish-actions.pod:3400 ../src/guestfs-actions.pod:5186
13893 "If the C<options> parameter is an empty string, then no options are passed "
13894 "(all options default to whatever the filesystem uses)."
13898 #: ../fish/guestfish-actions.pod:3404
13903 #: ../fish/guestfish-actions.pod:3406
13906 " mount-ro device mountpoint\n"
13909 " mount-ro пристрій точка_монтування\n"
13913 #: ../fish/guestfish-actions.pod:3408
13915 "This is the same as the L</mount> command, but it mounts the filesystem with "
13916 "the read-only (I<-o ro>) flag."
13920 #: ../fish/guestfish-actions.pod:3411
13925 #: ../fish/guestfish-actions.pod:3413
13928 " mount-vfs options vfstype device mountpoint\n"
13933 #: ../fish/guestfish-actions.pod:3415
13935 "This is the same as the L</mount> command, but it allows you to set both the "
13936 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13940 #: ../fish/guestfish-actions.pod:3419
13941 msgid "mountpoints"
13942 msgstr "mountpoints"
13945 #: ../fish/guestfish-actions.pod:3421
13955 #: ../fish/guestfish-actions.pod:3423
13957 "This call is similar to L</mounts>. That call returns a list of devices. "
13958 "This one returns a hash table (map) of device name to directory where the "
13959 "device is mounted."
13963 #: ../fish/guestfish-actions.pod:3427
13968 #: ../fish/guestfish-actions.pod:3429
13978 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5247
13980 "This returns the list of currently mounted filesystems. It returns the list "
13981 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13985 #: ../fish/guestfish-actions.pod:3434 ../src/guestfs-actions.pod:5250
13986 msgid "Some internal mounts are not shown."
13990 #: ../fish/guestfish-actions.pod:3436
13991 msgid "See also: L</mountpoints>"
13992 msgstr "Див. також L</mountpoints>"
13995 #: ../fish/guestfish-actions.pod:3438
14000 #: ../fish/guestfish-actions.pod:3440
14006 " mv джерело призначення\n"
14010 #: ../fish/guestfish-actions.pod:3442 ../src/guestfs-actions.pod:5267
14012 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14013 "destination filename or destination directory."
14017 #: ../fish/guestfish-actions.pod:3445
14018 msgid "ntfs-3g-probe"
14019 msgstr "ntfs-3g-probe"
14022 #: ../fish/guestfish-actions.pod:3447
14025 " ntfs-3g-probe true|false device\n"
14030 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5281
14032 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14033 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
14034 "write, and some cannot be mounted at all)."
14038 #: ../fish/guestfish-actions.pod:3453 ../src/guestfs-actions.pod:5285
14040 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
14041 "can be mounted read-write. Set it to false if you want to test if the "
14042 "volume can be mounted read-only."
14046 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5289
14048 "The return value is an integer which C<0> if the operation would succeed, or "
14049 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14053 #: ../fish/guestfish-actions.pod:3461
14055 msgstr "ntfsresize"
14058 #: ../fish/guestfish-actions.pod:3463
14061 " ntfsresize device\n"
14064 " ntfsresize пристрій\n"
14068 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3489
14069 #: ../src/guestfs-actions.pod:5310 ../src/guestfs-actions.pod:5342
14071 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14072 "size of the underlying device."
14076 #: ../fish/guestfish-actions.pod:3468 ../src/guestfs-actions.pod:5313
14078 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
14079 "consistency check (for safety). You have to boot into Windows to perform "
14080 "this check and clear this condition. Furthermore, ntfsresize refuses to "
14081 "resize filesystems which have been marked in this way. So in effect it is "
14082 "not possible to call ntfsresize multiple times on a single filesystem "
14083 "without booting into Windows between each resize."
14087 #: ../fish/guestfish-actions.pod:3476 ../fish/guestfish-actions.pod:3515
14088 #: ../src/guestfs-actions.pod:5321 ../src/guestfs-actions.pod:5368
14089 msgid "See also L<ntfsresize(8)>."
14093 #: ../fish/guestfish-actions.pod:3478 ../fish/guestfish-actions.pod:3526
14095 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
14100 #: ../fish/guestfish-actions.pod:3485
14101 msgid "ntfsresize-opts"
14105 #: ../fish/guestfish-actions.pod:3487
14108 " ntfsresize-opts device [size:..] [force:..]\n"
14113 #: ../fish/guestfish-actions.pod:3498 ../src/guestfs-actions.pod:5351
14115 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
14116 "resized to fit the container (eg. partition)."
14120 #: ../fish/guestfish-actions.pod:3501 ../src/guestfs-actions.pod:5354
14125 #: ../fish/guestfish-actions.pod:3503 ../src/guestfs-actions.pod:5356
14127 "If this option is true, then force the resize of the filesystem even if the "
14128 "filesystem is marked as requiring a consistency check."
14132 #: ../fish/guestfish-actions.pod:3506
14134 "After the resize operation, the filesystem is always marked as requiring a "
14135 "consistency check (for safety). You have to boot into Windows to perform "
14136 "this check and clear this condition. If you I<don't> set the C<force> "
14137 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
14138 "a single filesystem without booting into Windows between each resize."
14142 #: ../fish/guestfish-actions.pod:3519
14143 msgid "ntfsresize-size"
14144 msgstr "ntfsresize-size"
14147 #: ../fish/guestfish-actions.pod:3521
14150 " ntfsresize-size device size\n"
14155 #: ../fish/guestfish-actions.pod:3523
14157 "This command is the same as L</ntfsresize> except that it allows you to "
14158 "specify the new size (in bytes) explicitly."
14162 #: ../fish/guestfish-actions.pod:3533
14167 #: ../fish/guestfish-actions.pod:3535
14170 " part-add device prlogex startsect endsect\n"
14175 #: ../fish/guestfish-actions.pod:3537
14177 "This command adds a partition to C<device>. If there is no partition table "
14178 "on the device, call L</part-init> first."
14182 #: ../fish/guestfish-actions.pod:3540 ../src/guestfs-actions.pod:5429
14184 "The C<prlogex> parameter is the type of partition. Normally you should pass "
14185 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14186 "C<logical>) and C<e> (or C<extended>) partition types."
14190 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5434
14192 "C<startsect> and C<endsect> are the start and end of the partition in "
14193 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
14194 "from the end of the disk (C<-1> is the last sector)."
14198 #: ../fish/guestfish-actions.pod:3549
14200 "Creating a partition which covers the whole disk is not so easy. Use L</"
14201 "part-disk> to do that."
14205 #: ../fish/guestfish-actions.pod:3552
14210 #: ../fish/guestfish-actions.pod:3554
14213 " part-del device partnum\n"
14218 #: ../fish/guestfish-actions.pod:3556 ../src/guestfs-actions.pod:5452
14219 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14223 #: ../fish/guestfish-actions.pod:3558 ../src/guestfs-actions.pod:5454
14225 "Note that in the case of MBR partitioning, deleting an extended partition "
14226 "also deletes any logical partitions it contains."
14230 #: ../fish/guestfish-actions.pod:3562
14235 #: ../fish/guestfish-actions.pod:3564
14238 " part-disk device parttype\n"
14241 " part-disk пристрій тип_розділу\n"
14245 #: ../fish/guestfish-actions.pod:3566
14247 "This command is simply a combination of L</part-init> followed by L</part-"
14248 "add> to create a single primary partition covering the whole disk."
14252 #: ../fish/guestfish-actions.pod:3570
14254 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14255 "possible values are described in L</part-init>."
14259 #: ../fish/guestfish-actions.pod:3576
14260 msgid "part-get-bootable"
14261 msgstr "part-get-bootable"
14264 #: ../fish/guestfish-actions.pod:3578
14267 " part-get-bootable device partnum\n"
14272 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5490
14274 "This command returns true if the partition C<partnum> on C<device> has the "
14275 "bootable flag set."
14279 #: ../fish/guestfish-actions.pod:3583
14280 msgid "See also L</part-set-bootable>."
14281 msgstr "Див. також L</part-set-bootable>."
14284 #: ../fish/guestfish-actions.pod:3585
14285 msgid "part-get-mbr-id"
14286 msgstr "part-get-mbr-id"
14289 #: ../fish/guestfish-actions.pod:3587
14292 " part-get-mbr-id device partnum\n"
14297 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5506
14299 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14300 "partition C<partnum>."
14304 #: ../fish/guestfish-actions.pod:3592 ../fish/guestfish-actions.pod:3736
14306 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
14307 "undefined results for other partition table types (see L</part-get-"
14312 #: ../fish/guestfish-actions.pod:3596
14313 msgid "part-get-parttype"
14314 msgstr "part-get-parttype"
14317 #: ../fish/guestfish-actions.pod:3598
14320 " part-get-parttype device\n"
14323 " part-get-parttype пристрій\n"
14327 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5523
14329 "This command examines the partition table on C<device> and returns the "
14330 "partition table type (format) being used."
14334 #: ../fish/guestfish-actions.pod:3603
14336 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14337 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
14338 "possible, although unusual. See L</part-init> for a full list."
14342 #: ../fish/guestfish-actions.pod:3608
14347 #: ../fish/guestfish-actions.pod:3610
14350 " part-init device parttype\n"
14355 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5543
14357 "This creates an empty partition table on C<device> of one of the partition "
14358 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
14359 "(for large disks)."
14363 #: ../fish/guestfish-actions.pod:3616
14365 "Initially there are no partitions. Following this, you should call L</part-"
14366 "add> for each partition required."
14370 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5550
14371 msgid "Possible values for C<parttype> are:"
14375 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5554
14380 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5556
14385 #: ../fish/guestfish-actions.pod:3627 ../src/guestfs-actions.pod:5558
14386 msgid "Intel EFI / GPT partition table."
14390 #: ../fish/guestfish-actions.pod:3629 ../src/guestfs-actions.pod:5560
14392 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14393 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
14394 "the C<mbr> format."
14398 #: ../fish/guestfish-actions.pod:3633 ../src/guestfs-actions.pod:5564
14403 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5566
14408 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5568
14410 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14411 "Windows. This partition type will B<only> work for device sizes up to 2 "
14412 "TB. For large disks we recommend using C<gpt>."
14416 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5575
14418 "Other partition table types that may work but are not supported include:"
14422 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5580
14427 #: ../fish/guestfish-actions.pod:3651 ../src/guestfs-actions.pod:5582
14428 msgid "AIX disk labels."
14429 msgstr "Мітки дисків AIX."
14432 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5584
14434 #| msgid "B<amiga> | B<rdb>"
14436 msgstr "B<amiga> | B<rdb>"
14439 #: ../fish/guestfish-actions.pod:3655 ../src/guestfs-actions.pod:5586
14444 #: ../fish/guestfish-actions.pod:3657 ../src/guestfs-actions.pod:5588
14445 msgid "Amiga \"Rigid Disk Block\" format."
14446 msgstr "Формат \"Rigid Disk Block\" Amiga."
14449 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5590
14454 #: ../fish/guestfish-actions.pod:3661 ../src/guestfs-actions.pod:5592
14455 msgid "BSD disk labels."
14456 msgstr "Мітки дисків BSD."
14459 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5594
14464 #: ../fish/guestfish-actions.pod:3665 ../src/guestfs-actions.pod:5596
14465 msgid "DASD, used on IBM mainframes."
14466 msgstr "DASD, використовувалися у мейнфреймах IBM."
14469 #: ../fish/guestfish-actions.pod:3667 ../src/guestfs-actions.pod:5598
14474 #: ../fish/guestfish-actions.pod:3669 ../src/guestfs-actions.pod:5600
14475 msgid "MIPS/SGI volumes."
14476 msgstr "Томи MIPS/SGI."
14479 #: ../fish/guestfish-actions.pod:3671 ../src/guestfs-actions.pod:5602
14484 #: ../fish/guestfish-actions.pod:3673 ../src/guestfs-actions.pod:5604
14485 msgid "Old Mac partition format. Modern Macs use C<gpt>."
14486 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14489 #: ../fish/guestfish-actions.pod:3675 ../src/guestfs-actions.pod:5606
14494 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5608
14495 msgid "NEC PC-98 format, common in Japan apparently."
14496 msgstr "Формат NEC PC-98, поширений у Японії."
14499 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5610
14504 #: ../fish/guestfish-actions.pod:3681 ../src/guestfs-actions.pod:5612
14505 msgid "Sun disk labels."
14506 msgstr "Мітки дисків Sun."
14509 #: ../fish/guestfish-actions.pod:3685
14514 #: ../fish/guestfish-actions.pod:3687
14517 " part-list device\n"
14520 " part-list device\n"
14524 #: ../fish/guestfish-actions.pod:3689 ../src/guestfs-actions.pod:5626
14526 "This command parses the partition table on C<device> and returns the list of "
14527 "partitions found."
14531 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5629
14532 msgid "The fields in the returned structure are:"
14536 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5633
14537 msgid "B<part_num>"
14538 msgstr "B<part_num>"
14541 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5635
14542 msgid "Partition number, counting from 1."
14546 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5637
14547 msgid "B<part_start>"
14548 msgstr "B<part_start>"
14551 #: ../fish/guestfish-actions.pod:3702
14553 "Start of the partition I<in bytes>. To get sectors you have to divide by "
14554 "the device's sector size, see L</blockdev-getss>."
14558 #: ../fish/guestfish-actions.pod:3705 ../src/guestfs-actions.pod:5642
14559 msgid "B<part_end>"
14560 msgstr "B<part_end>"
14563 #: ../fish/guestfish-actions.pod:3707 ../src/guestfs-actions.pod:5644
14564 msgid "End of the partition in bytes."
14568 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5646
14569 msgid "B<part_size>"
14570 msgstr "B<part_size>"
14573 #: ../fish/guestfish-actions.pod:3711 ../src/guestfs-actions.pod:5648
14574 msgid "Size of the partition in bytes."
14578 #: ../fish/guestfish-actions.pod:3715
14579 msgid "part-set-bootable"
14580 msgstr "part-set-bootable"
14583 #: ../fish/guestfish-actions.pod:3717
14586 " part-set-bootable device partnum true|false\n"
14591 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5666
14593 "This sets the bootable flag on partition numbered C<partnum> on device "
14594 "C<device>. Note that partitions are numbered from 1."
14598 #: ../fish/guestfish-actions.pod:3722 ../src/guestfs-actions.pod:5669
14600 "The bootable flag is used by some operating systems (notably Windows) to "
14601 "determine which partition to boot from. It is by no means universally "
14606 #: ../fish/guestfish-actions.pod:3726
14607 msgid "part-set-mbr-id"
14608 msgstr "part-set-mbr-id"
14611 #: ../fish/guestfish-actions.pod:3728
14614 " part-set-mbr-id device partnum idbyte\n"
14619 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5685
14621 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14622 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
14623 "documentation are in fact hexadecimal numbers, but usually documented "
14624 "without any leading \"0x\" which might be confusing."
14628 #: ../fish/guestfish-actions.pod:3740
14629 msgid "part-set-name"
14630 msgstr "part-set-name"
14633 #: ../fish/guestfish-actions.pod:3742
14636 " part-set-name device partnum name\n"
14641 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5707
14643 "This sets the partition name on partition numbered C<partnum> on device "
14644 "C<device>. Note that partitions are numbered from 1."
14648 #: ../fish/guestfish-actions.pod:3747 ../src/guestfs-actions.pod:5710
14650 "The partition name can only be set on certain types of partition table. "
14651 "This works on C<gpt> but not on C<mbr> partitions."
14655 #: ../fish/guestfish-actions.pod:3750
14656 msgid "part-to-dev"
14657 msgstr "part-to-dev"
14660 #: ../fish/guestfish-actions.pod:3752
14663 " part-to-dev partition\n"
14666 " part-to-dev розділ\n"
14670 #: ../fish/guestfish-actions.pod:3754 ../src/guestfs-actions.pod:5723
14672 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14673 "partition number, returning the device name (eg. \"/dev/sdb\")."
14677 #: ../fish/guestfish-actions.pod:3758
14679 "The named partition must exist, for example as a string returned from L</"
14680 "list-partitions>."
14684 #: ../fish/guestfish-actions.pod:3761
14685 msgid "ping-daemon"
14686 msgstr "ping-daemon"
14689 #: ../fish/guestfish-actions.pod:3763
14699 #: ../fish/guestfish-actions.pod:3765 ../src/guestfs-actions.pod:5740
14701 "This is a test probe into the guestfs daemon running inside the qemu "
14702 "subprocess. Calling this function checks that the daemon responds to the "
14703 "ping message, without affecting the daemon or attached block device(s) in "
14708 #: ../fish/guestfish-actions.pod:3770
14713 #: ../fish/guestfish-actions.pod:3772
14716 " pread path count offset\n"
14721 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5758
14723 "This command lets you read part of a file. It reads C<count> bytes of the "
14724 "file, starting at C<offset>, from file C<path>."
14728 #: ../fish/guestfish-actions.pod:3777 ../fish/guestfish-actions.pod:3792
14729 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5787
14731 "This may read fewer bytes than requested. For further details see the "
14732 "L<pread(2)> system call."
14736 #: ../fish/guestfish-actions.pod:3780
14737 msgid "See also L</pwrite>, L</pread-device>."
14738 msgstr "Див. також L</pwrite>, L</pread-device>."
14741 #: ../fish/guestfish-actions.pod:3785
14742 msgid "pread-device"
14743 msgstr "pread-device"
14746 #: ../fish/guestfish-actions.pod:3787
14749 " pread-device device count offset\n"
14754 #: ../fish/guestfish-actions.pod:3789 ../src/guestfs-actions.pod:5784
14756 "This command lets you read part of a file. It reads C<count> bytes of "
14757 "C<device>, starting at C<offset>."
14761 #: ../fish/guestfish-actions.pod:3795
14762 msgid "See also L</pread>."
14763 msgstr "Див. також L</pread>."
14766 #: ../fish/guestfish-actions.pod:3800
14771 #: ../fish/guestfish-actions.pod:3802
14774 " pvcreate device\n"
14777 " pvcreate пристрій\n"
14781 #: ../fish/guestfish-actions.pod:3804 ../src/guestfs-actions.pod:5807
14783 "This creates an LVM physical volume on the named C<device>, where C<device> "
14784 "should usually be a partition name such as C</dev/sda1>."
14788 #: ../fish/guestfish-actions.pod:3808
14793 #: ../fish/guestfish-actions.pod:3810
14796 " pvremove device\n"
14799 " pvremove пристрій\n"
14803 #: ../fish/guestfish-actions.pod:3812 ../src/guestfs-actions.pod:5821
14805 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14810 #: ../fish/guestfish-actions.pod:3815 ../src/guestfs-actions.pod:5824
14812 "The implementation uses the C<pvremove> command which refuses to wipe "
14813 "physical volumes that contain any volume groups, so you have to remove those "
14818 #: ../fish/guestfish-actions.pod:3819
14823 #: ../fish/guestfish-actions.pod:3821
14826 " pvresize device\n"
14829 " pvresize пристрій\n"
14833 #: ../fish/guestfish-actions.pod:3823 ../src/guestfs-actions.pod:5838
14835 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14836 "the new size of the underlying device."
14840 #: ../fish/guestfish-actions.pod:3826
14841 msgid "pvresize-size"
14842 msgstr "pvresize-size"
14845 #: ../fish/guestfish-actions.pod:3828
14848 " pvresize-size device size\n"
14853 #: ../fish/guestfish-actions.pod:3830
14855 "This command is the same as L</pvresize> except that it allows you to "
14856 "specify the new size (in bytes) explicitly."
14860 #: ../fish/guestfish-actions.pod:3833
14865 #: ../fish/guestfish-actions.pod:3835
14875 #: ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:5864
14877 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14882 #: ../fish/guestfish-actions.pod:3840 ../src/guestfs-actions.pod:5867
14884 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14889 #: ../fish/guestfish-actions.pod:3843
14890 msgid "See also L</pvs-full>."
14891 msgstr "Див. також L</pvs-full>."
14894 #: ../fish/guestfish-actions.pod:3845
14899 #: ../fish/guestfish-actions.pod:3847
14909 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5883
14911 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14912 "(8)> command. The \"full\" version includes all fields."
14916 #: ../fish/guestfish-actions.pod:3852
14921 #: ../fish/guestfish-actions.pod:3854
14927 " pvuuid пристрій\n"
14931 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5898
14932 msgid "This command returns the UUID of the LVM PV C<device>."
14936 #: ../fish/guestfish-actions.pod:3858
14941 #: ../fish/guestfish-actions.pod:3860
14944 " pwrite path content offset\n"
14949 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5914
14951 "This command writes to part of a file. It writes the data buffer C<content> "
14952 "to the file C<path> starting at offset C<offset>."
14956 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:5917
14958 "This command implements the L<pwrite(2)> system call, and like that system "
14959 "call it may not write the full data requested. The return value is the "
14960 "number of bytes that were actually written to the file. This could even be "
14961 "0, although short writes are unlikely for regular files in ordinary "
14966 #: ../fish/guestfish-actions.pod:3871
14967 msgid "See also L</pread>, L</pwrite-device>."
14968 msgstr "Див. також L</pread>, L</pwrite-device>."
14971 #: ../fish/guestfish-actions.pod:3876
14972 msgid "pwrite-device"
14973 msgstr "pwrite-device"
14976 #: ../fish/guestfish-actions.pod:3878
14979 " pwrite-device device content offset\n"
14984 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5941
14986 "This command writes to part of a device. It writes the data buffer "
14987 "C<content> to C<device> starting at offset C<offset>."
14991 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5944
14993 "This command implements the L<pwrite(2)> system call, and like that system "
14994 "call it may not write the full data requested (although short writes to disk "
14995 "devices and partitions are probably impossible with standard Linux kernels)."
14999 #: ../fish/guestfish-actions.pod:3888
15000 msgid "See also L</pwrite>."
15001 msgstr "Див. також L</pwrite>."
15004 #: ../fish/guestfish-actions.pod:3893
15009 #: ../fish/guestfish-actions.pod:3895
15012 " read-file path\n"
15015 " read-file шлях\n"
15019 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5965
15020 msgid "This calls returns the contents of the file C<path> as a buffer."
15024 #: ../fish/guestfish-actions.pod:3900
15026 "Unlike L</cat>, this function can correctly handle files that contain "
15027 "embedded ASCII NUL characters. However unlike L</download>, this function "
15028 "is limited in the total size of file that can be handled."
15032 #: ../fish/guestfish-actions.pod:3908
15034 msgstr "read-lines"
15037 #: ../fish/guestfish-actions.pod:3910
15040 " read-lines path\n"
15043 " read-lines шлях\n"
15047 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5990
15049 "The file contents are returned as a list of lines. Trailing C<LF> and "
15050 "C<CRLF> character sequences are I<not> returned."
15054 #: ../fish/guestfish-actions.pod:3917
15056 "Note that this function cannot correctly handle binary files (specifically, "
15057 "files containing C<\\0> character which is treated as end of line). For "
15058 "those you need to use the L</read-file> function which has a more complex "
15063 #: ../fish/guestfish-actions.pod:3922
15068 #: ../fish/guestfish-actions.pod:3924
15074 " readdir каталог\n"
15078 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6010
15079 msgid "This returns the list of directory entries in directory C<dir>."
15083 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6012
15085 "All entries in the directory are returned, including C<.> and C<..>. The "
15086 "entries are I<not> sorted, but returned in the same order as the underlying "
15091 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6016
15093 "Also this call returns basic file type information about each file. The "
15094 "C<ftyp> field will contain one of the following characters:"
15098 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6021
15103 #: ../fish/guestfish-actions.pod:3939 ../src/guestfs-actions.pod:6023
15104 msgid "Block special"
15105 msgstr "Блоковий особливий"
15108 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:6025
15113 #: ../fish/guestfish-actions.pod:3943 ../src/guestfs-actions.pod:6027
15114 msgid "Char special"
15115 msgstr "Символьний особливий"
15118 #: ../fish/guestfish-actions.pod:3945 ../src/guestfs-actions.pod:6029
15123 #: ../fish/guestfish-actions.pod:3947 ../src/guestfs-actions.pod:6031
15128 #: ../fish/guestfish-actions.pod:3949 ../src/guestfs-actions.pod:6033
15133 #: ../fish/guestfish-actions.pod:3951 ../src/guestfs-actions.pod:6035
15134 msgid "FIFO (named pipe)"
15135 msgstr "FIFO (іменований канал)"
15138 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:6037
15143 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6039
15144 msgid "Symbolic link"
15145 msgstr "Символічне посилання"
15148 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:6041
15153 #: ../fish/guestfish-actions.pod:3959 ../src/guestfs-actions.pod:6043
15154 msgid "Regular file"
15155 msgstr "Звичайний файл"
15158 #: ../fish/guestfish-actions.pod:3961 ../src/guestfs-actions.pod:6045
15163 #: ../fish/guestfish-actions.pod:3963 ../src/guestfs-actions.pod:6047
15168 #: ../fish/guestfish-actions.pod:3965 ../src/guestfs-actions.pod:6049
15173 #: ../fish/guestfish-actions.pod:3967 ../src/guestfs-actions.pod:6051
15174 msgid "Unknown file type"
15175 msgstr "Невідомий тип файла"
15178 #: ../fish/guestfish-actions.pod:3969 ../src/guestfs-actions.pod:6053
15183 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6055
15185 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15189 #: ../fish/guestfish-actions.pod:3976
15191 "This function is primarily intended for use by programs. To get a simple "
15192 "list of names, use L</ls>. To get a printable directory for human "
15193 "consumption, use L</ll>."
15197 #: ../fish/guestfish-actions.pod:3980
15202 #: ../fish/guestfish-actions.pod:3982
15212 #: ../fish/guestfish-actions.pod:3984 ../src/guestfs-actions.pod:6076
15213 msgid "This command reads the target of a symbolic link."
15217 #: ../fish/guestfish-actions.pod:3986
15218 msgid "readlinklist"
15219 msgstr "readlinklist"
15222 #: ../fish/guestfish-actions.pod:3988
15225 " readlinklist path 'names ...'\n"
15230 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6090
15232 "This call allows you to do a C<readlink> operation on multiple files, where "
15233 "all files are in the directory C<path>. C<names> is the list of files from "
15238 #: ../fish/guestfish-actions.pod:3994 ../src/guestfs-actions.pod:6094
15240 "On return you get a list of strings, with a one-to-one correspondence to the "
15241 "C<names> list. Each string is the value of the symbolic link."
15245 #: ../fish/guestfish-actions.pod:3998 ../src/guestfs-actions.pod:6098
15247 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15248 "result string is the empty string C<\"\">. However the whole operation is "
15249 "completed even if there were C<readlink(2)> errors, and so you can call this "
15250 "function with names where you don't know if they are symbolic links already "
15251 "(albeit slightly less efficient)."
15255 #: ../fish/guestfish-actions.pod:4005 ../src/guestfs-actions.pod:6105
15257 "This call is intended for programs that want to efficiently list a directory "
15258 "contents without making many round-trips. Very long directory listings "
15259 "might cause the protocol message size to be exceeded, causing this call to "
15260 "fail. The caller must split up such requests into smaller groups of names."
15264 #: ../fish/guestfish-actions.pod:4012
15269 #: ../fish/guestfish-actions.pod:4014
15279 #: ../fish/guestfish-actions.pod:4016 ../src/guestfs-actions.pod:6124
15281 "Return the canonicalized absolute pathname of C<path>. The returned path "
15282 "has no C<.>, C<..> or symbolic link path elements."
15286 #: ../fish/guestfish-actions.pod:4019
15287 msgid "removexattr"
15288 msgstr "removexattr"
15291 #: ../fish/guestfish-actions.pod:4021
15294 " removexattr xattr path\n"
15299 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6139
15301 "This call removes the extended attribute named C<xattr> of the file C<path>."
15305 #: ../fish/guestfish-actions.pod:4026
15306 msgid "See also: L</lremovexattr>, L<attr(5)>."
15307 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
15310 #: ../fish/guestfish-actions.pod:4028
15315 #: ../fish/guestfish-actions.pod:4030
15318 " resize2fs device\n"
15321 " resize2fs пристрій\n"
15325 #: ../fish/guestfish-actions.pod:4032 ../src/guestfs-actions.pod:6154
15327 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15328 "underlying device."
15332 #: ../fish/guestfish-actions.pod:4035
15334 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15335 "before calling this command. For unknown reasons C<resize2fs> sometimes "
15336 "gives an error about this and sometimes not. In any case, it is always safe "
15337 "to call L</e2fsck-f> before calling this function."
15341 #: ../fish/guestfish-actions.pod:4041
15342 msgid "resize2fs-M"
15343 msgstr "resize2fs-M"
15346 #: ../fish/guestfish-actions.pod:4043
15349 " resize2fs-M device\n"
15352 " resize2fs-M пристрій\n"
15356 #: ../fish/guestfish-actions.pod:4045
15358 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15359 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
15364 #: ../fish/guestfish-actions.pod:4049
15366 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15367 "and read the C<Block size> and C<Block count> values. These two numbers, "
15368 "multiplied together, give the resulting size of the minimal filesystem in "
15373 #: ../fish/guestfish-actions.pod:4054
15374 msgid "resize2fs-size"
15375 msgstr "resize2fs-size"
15378 #: ../fish/guestfish-actions.pod:4056
15381 " resize2fs-size device size\n"
15386 #: ../fish/guestfish-actions.pod:4058
15388 "This command is the same as L</resize2fs> except that it allows you to "
15389 "specify the new size (in bytes) explicitly."
15393 #: ../fish/guestfish-actions.pod:4061
15398 #: ../fish/guestfish-actions.pod:4063
15408 #: ../fish/guestfish-actions.pod:4065 ../src/guestfs-actions.pod:6206
15409 msgid "Remove the single file C<path>."
15413 #: ../fish/guestfish-actions.pod:4067
15418 #: ../fish/guestfish-actions.pod:4069
15428 #: ../fish/guestfish-actions.pod:4071 ../src/guestfs-actions.pod:6218
15430 "Remove the file or directory C<path>, recursively removing the contents if "
15431 "its a directory. This is like the C<rm -rf> shell command."
15435 #: ../fish/guestfish-actions.pod:4075
15440 #: ../fish/guestfish-actions.pod:4077
15450 #: ../fish/guestfish-actions.pod:4079 ../src/guestfs-actions.pod:6232
15451 msgid "Remove the single directory C<path>."
15455 #: ../fish/guestfish-actions.pod:4081
15456 msgid "rmmountpoint"
15457 msgstr "rmmountpoint"
15460 #: ../fish/guestfish-actions.pod:4083
15463 " rmmountpoint exemptpath\n"
15468 #: ../fish/guestfish-actions.pod:4085
15470 "This calls removes a mountpoint that was previously created with L</"
15471 "mkmountpoint>. See L</mkmountpoint> for full details."
15475 #: ../fish/guestfish-actions.pod:4089
15476 msgid "scrub-device"
15477 msgstr "scrub-device"
15480 #: ../fish/guestfish-actions.pod:4091
15483 " scrub-device device\n"
15486 " scrub-device пристрій\n"
15490 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6258
15492 "This command writes patterns over C<device> to make data retrieval more "
15497 #: ../fish/guestfish-actions.pod:4096 ../fish/guestfish-actions.pod:4111
15498 #: ../fish/guestfish-actions.pod:4124 ../src/guestfs-actions.pod:6261
15499 #: ../src/guestfs-actions.pod:6282 ../src/guestfs-actions.pod:6301
15501 "It is an interface to the L<scrub(1)> program. See that manual page for "
15506 #: ../fish/guestfish-actions.pod:4102
15508 msgstr "scrub-file"
15511 #: ../fish/guestfish-actions.pod:4104
15514 " scrub-file file\n"
15517 " scrub-file файл\n"
15521 #: ../fish/guestfish-actions.pod:4106 ../src/guestfs-actions.pod:6277
15523 "This command writes patterns over a file to make data retrieval more "
15528 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6280
15529 msgid "The file is I<removed> after scrubbing."
15533 #: ../fish/guestfish-actions.pod:4114
15534 msgid "scrub-freespace"
15535 msgstr "scrub-freespace"
15538 #: ../fish/guestfish-actions.pod:4116
15541 " scrub-freespace dir\n"
15544 " scrub-freespace каталог\n"
15548 #: ../fish/guestfish-actions.pod:4118
15550 "This command creates the directory C<dir> and then fills it with files until "
15551 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15552 "deletes them. The intention is to scrub any free space on the partition "
15553 "containing C<dir>."
15557 #: ../fish/guestfish-actions.pod:4127
15559 msgstr "set-append"
15562 #: ../fish/guestfish-actions.pod:4129
15567 #: ../fish/guestfish-actions.pod:4131
15570 " set-append append\n"
15575 #: ../fish/guestfish-actions.pod:4133 ../src/guestfs-actions.pod:6314
15577 "This function is used to add additional options to the guest kernel command "
15582 #: ../fish/guestfish-actions.pod:4136 ../src/guestfs-actions.pod:6317
15584 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15585 "environment variable."
15589 #: ../fish/guestfish-actions.pod:4139 ../src/guestfs-actions.pod:6320
15591 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15592 "(libguestfs always adds a few of its own)."
15596 #: ../fish/guestfish-actions.pod:4142
15597 msgid "set-attach-method"
15598 msgstr "set-attach-method"
15601 #: ../fish/guestfish-actions.pod:4144
15602 msgid "attach-method"
15606 #: ../fish/guestfish-actions.pod:4146
15609 " set-attach-method attachmethod\n"
15614 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6333
15616 "Set the method that libguestfs uses to connect to the back end guestfsd "
15617 "daemon. Possible methods are:"
15621 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6338
15622 #: ../src/guestfs.pod:2901
15623 msgid "C<appliance>"
15624 msgstr "C<appliance>"
15627 #: ../fish/guestfish-actions.pod:4155 ../src/guestfs-actions.pod:6340
15629 "Launch an appliance and connect to it. This is the ordinary method and the "
15634 #: ../fish/guestfish-actions.pod:4158 ../src/guestfs-actions.pod:6343
15635 msgid "C<unix:I<path>>"
15636 msgstr "C<unix:I<шлях>>"
15639 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6345
15640 msgid "Connect to the Unix domain socket I<path>."
15641 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15644 #: ../fish/guestfish-actions.pod:4162 ../src/guestfs-actions.pod:6347
15646 "This method lets you connect to an existing daemon or (using virtio-serial) "
15647 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
15648 "RUNNING DAEMONS>."
15652 #: ../fish/guestfish-actions.pod:4168
15653 msgid "set-autosync"
15654 msgstr "set-autosync"
15657 #: ../fish/guestfish-actions.pod:4170
15662 #: ../fish/guestfish-actions.pod:4172
15665 " set-autosync true|false\n"
15668 " set-autosync true|false\n"
15672 #: ../fish/guestfish-actions.pod:4174 ../src/guestfs-actions.pod:6363
15674 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
15675 "effort attempt to make filesystems consistent and synchronized when the "
15676 "handle is closed (also if the program exits without closing handles)."
15680 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6368
15682 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15683 "disabled by default)."
15687 #: ../fish/guestfish-actions.pod:4182
15689 msgstr "set-direct"
15692 #: ../fish/guestfish-actions.pod:4184
15697 #: ../fish/guestfish-actions.pod:4186
15700 " set-direct true|false\n"
15703 " set-direct true|false\n"
15707 #: ../fish/guestfish-actions.pod:4188 ../src/guestfs-actions.pod:6381
15709 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15710 "passed directly through to the appliance once it is launched."
15714 #: ../fish/guestfish-actions.pod:4192
15716 "One consequence of this is that log messages aren't caught by the library "
15717 "and handled by L</set-log-message-callback>, but go straight to stdout."
15721 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6389
15722 msgid "You probably don't want to use this unless you know what you are doing."
15726 #: ../fish/guestfish-actions.pod:4199 ../src/guestfs-actions.pod:6392
15727 msgid "The default is disabled."
15731 #: ../fish/guestfish-actions.pod:4201
15732 msgid "set-e2label"
15733 msgstr "set-e2label"
15736 #: ../fish/guestfish-actions.pod:4203
15739 " set-e2label device label\n"
15744 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6405
15746 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15747 "C<label>. Filesystem labels are limited to 16 characters."
15751 #: ../fish/guestfish-actions.pod:4209
15753 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15754 "label on a filesystem."
15758 #: ../fish/guestfish-actions.pod:4212
15760 msgstr "set-e2uuid"
15763 #: ../fish/guestfish-actions.pod:4214
15766 " set-e2uuid device uuid\n"
15771 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6423
15773 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15774 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
15775 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15779 #: ../fish/guestfish-actions.pod:4221
15781 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15782 "UUID of a filesystem."
15786 #: ../fish/guestfish-actions.pod:4224
15787 msgid "set-memsize"
15788 msgstr "set-memsize"
15791 #: ../fish/guestfish-actions.pod:4226
15796 #: ../fish/guestfish-actions.pod:4228
15799 " set-memsize memsize\n"
15804 #: ../fish/guestfish-actions.pod:4230
15806 "This sets the memory size in megabytes allocated to the qemu subprocess. "
15807 "This only has any effect if called before L</launch>."
15811 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6445
15813 "You can also change this by setting the environment variable "
15814 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15818 #: ../fish/guestfish-actions.pod:4241
15819 msgid "set-network"
15820 msgstr "set-network"
15823 #: ../fish/guestfish-actions.pod:4243
15828 #: ../fish/guestfish-actions.pod:4245
15831 " set-network true|false\n"
15834 " set-network true|false\n"
15838 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6462
15840 "If C<network> is true, then the network is enabled in the libguestfs "
15841 "appliance. The default is false."
15845 #: ../fish/guestfish-actions.pod:4250 ../src/guestfs-actions.pod:6465
15847 "This affects whether commands are able to access the network (see L<guestfs"
15848 "(3)/RUNNING COMMANDS>)."
15852 #: ../fish/guestfish-actions.pod:4253
15854 "You must call this before calling L</launch>, otherwise it has no effect."
15858 #: ../fish/guestfish-actions.pod:4256
15863 #: ../fish/guestfish-actions.pod:4260
15866 " set-path searchpath\n"
15871 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6481
15872 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15876 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6483
15878 "The default is C<$libdir/guestfs> unless overridden by setting "
15879 "C<LIBGUESTFS_PATH> environment variable."
15883 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6486
15884 msgid "Setting C<path> to C<NULL> restores the default path."
15888 #: ../fish/guestfish-actions.pod:4269
15893 #: ../fish/guestfish-actions.pod:4271
15898 #: ../fish/guestfish-actions.pod:4273
15901 " set-pgroup true|false\n"
15906 #: ../fish/guestfish-actions.pod:4275 ../src/guestfs-actions.pod:6498
15908 "If C<pgroup> is true, child processes are placed into their own process "
15913 #: ../fish/guestfish-actions.pod:4278 ../src/guestfs-actions.pod:6501
15915 "The practical upshot of this is that signals like C<SIGINT> (from users "
15916 "pressing C<^C>) won't be received by the child process."
15920 #: ../fish/guestfish-actions.pod:4281 ../src/guestfs-actions.pod:6504
15922 "The default for this flag is false, because usually you want C<^C> to kill "
15927 #: ../fish/guestfish-actions.pod:4284
15932 #: ../fish/guestfish-actions.pod:4286
15937 #: ../fish/guestfish-actions.pod:4288
15947 #: ../fish/guestfish-actions.pod:4290 ../src/guestfs-actions.pod:6517
15948 msgid "Set the qemu binary that we will use."
15952 #: ../fish/guestfish-actions.pod:4292 ../src/guestfs-actions.pod:6519
15954 "The default is chosen when the library was compiled by the configure script."
15958 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6522
15960 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15965 #: ../fish/guestfish-actions.pod:4298 ../src/guestfs-actions.pod:6525
15966 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15970 #: ../fish/guestfish-actions.pod:4300 ../src/guestfs-actions.pod:6527
15972 "Note that you should call this function as early as possible after creating "
15973 "the handle. This is because some pre-launch operations depend on testing "
15974 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
15975 "don't retest features, and so you might see inconsistent results. Using the "
15976 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15977 "the qemu binary at the same time as the handle is created."
15981 #: ../fish/guestfish-actions.pod:4308
15982 msgid "set-recovery-proc"
15983 msgstr "set-recovery-proc"
15986 #: ../fish/guestfish-actions.pod:4310
15987 msgid "recovery-proc"
15988 msgstr "recovery-proc"
15991 #: ../fish/guestfish-actions.pod:4312
15994 " set-recovery-proc true|false\n"
15997 " set-recovery-proc true|false\n"
16001 #: ../fish/guestfish-actions.pod:4314
16003 "If this is called with the parameter C<false> then L</launch> does not "
16004 "create a recovery process. The purpose of the recovery process is to stop "
16005 "runaway qemu processes in the case where the main program aborts abruptly."
16009 #: ../fish/guestfish-actions.pod:4319
16011 "This only has any effect if called before L</launch>, and the default is "
16016 #: ../fish/guestfish-actions.pod:4322 ../src/guestfs-actions.pod:6553
16018 "About the only time when you would want to disable this is if the main "
16019 "process will fork itself into the background (\"daemonize\" itself). In "
16020 "this case the recovery process thinks that the main program has disappeared "
16021 "and so kills qemu, which is not very helpful."
16025 #: ../fish/guestfish-actions.pod:4328
16026 msgid "set-selinux"
16027 msgstr "set-selinux"
16030 #: ../fish/guestfish-actions.pod:4330
16035 #: ../fish/guestfish-actions.pod:4332
16038 " set-selinux true|false\n"
16041 " set-selinux true|false\n"
16045 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6569
16047 "This sets the selinux flag that is passed to the appliance at boot time. "
16048 "The default is C<selinux=0> (disabled)."
16052 #: ../fish/guestfish-actions.pod:4337 ../src/guestfs-actions.pod:6572
16054 "Note that if SELinux is enabled, it is always in Permissive mode "
16055 "(C<enforcing=0>)."
16059 #: ../fish/guestfish-actions.pod:4343
16061 #| msgid "set-path"
16066 #: ../fish/guestfish-actions.pod:4345
16071 #: ../fish/guestfish-actions.pod:4347
16074 #| " set-qemu qemu\n"
16084 #: ../fish/guestfish-actions.pod:4349 ../src/guestfs-actions.pod:6588
16086 "Change the number of virtual CPUs assigned to the appliance. The default is "
16087 "C<1>. Increasing this may improve performance, though often it has no "
16092 #: ../fish/guestfish-actions.pod:4353
16093 msgid "This function must be called before L</launch>."
16097 #: ../fish/guestfish-actions.pod:4355
16102 #: ../fish/guestfish-actions.pod:4357
16107 #: ../fish/guestfish-actions.pod:4359
16110 " set-trace true|false\n"
16113 " set-trace true|false\n"
16117 #: ../fish/guestfish-actions.pod:4361 ../src/guestfs-actions.pod:6604
16119 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16120 "return values are traced."
16124 #: ../fish/guestfish-actions.pod:4364 ../src/guestfs-actions.pod:6607
16126 "If you want to trace C API calls into libguestfs (and other libraries) then "
16127 "possibly a better way is to use the external ltrace(1) command."
16131 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6611
16133 "Command traces are disabled unless the environment variable "
16134 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16138 #: ../fish/guestfish-actions.pod:4371
16140 "Trace messages are normally sent to C<stderr>, unless you register a "
16141 "callback to send them somewhere else (see L</set-event-callback>)."
16145 #: ../fish/guestfish-actions.pod:4375
16146 msgid "set-verbose"
16147 msgstr "set-verbose"
16150 #: ../fish/guestfish-actions.pod:4377
16155 #: ../fish/guestfish-actions.pod:4379
16158 " set-verbose true|false\n"
16161 " set-verbose true|false\n"
16165 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6628
16166 msgid "If C<verbose> is true, this turns on verbose messages."
16170 #: ../fish/guestfish-actions.pod:4383 ../src/guestfs-actions.pod:6630
16172 "Verbose messages are disabled unless the environment variable "
16173 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16177 #: ../fish/guestfish-actions.pod:4386
16179 "Verbose messages are normally sent to C<stderr>, unless you register a "
16180 "callback to send them somewhere else (see L</set-event-callback>)."
16184 #: ../fish/guestfish-actions.pod:4390
16189 #: ../fish/guestfish-actions.pod:4392
16192 " setcon context\n"
16195 " setcon контекст\n"
16199 #: ../fish/guestfish-actions.pod:4394 ../src/guestfs-actions.pod:6647
16201 "This sets the SELinux security context of the daemon to the string "
16206 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6650
16207 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16211 #: ../fish/guestfish-actions.pod:4399
16216 #: ../fish/guestfish-actions.pod:4401
16219 " setxattr xattr val vallen path\n"
16224 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6665
16226 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16227 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
16231 #: ../fish/guestfish-actions.pod:4407
16232 msgid "See also: L</lsetxattr>, L<attr(5)>."
16233 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
16236 #: ../fish/guestfish-actions.pod:4409
16241 #: ../fish/guestfish-actions.pod:4411
16244 " sfdisk device cyls heads sectors 'lines ...'\n"
16249 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6692
16251 "This is a direct interface to the L<sfdisk(8)> program for creating "
16252 "partitions on block devices."
16256 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6695
16257 msgid "C<device> should be a block device, for example C</dev/sda>."
16261 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6697
16263 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16264 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16265 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
16266 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
16267 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16268 "the kernel) cannot work out the right geometry and you will need to tell it."
16272 #: ../fish/guestfish-actions.pod:4426 ../src/guestfs-actions.pod:6705
16274 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
16275 "refer to the L<sfdisk(8)> manpage."
16279 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6708
16281 "To create a single partition occupying the whole disk, you would pass "
16282 "C<lines> as a single element list, when the single element being the string "
16287 #: ../fish/guestfish-actions.pod:4433
16288 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16289 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16292 #: ../fish/guestfish-actions.pod:4439 ../fish/guestfish-actions.pod:4462
16293 #: ../fish/guestfish-actions.pod:4484
16295 "I<This function is deprecated.> In new code, use the L</part_add> call "
16300 #: ../fish/guestfish-actions.pod:4446
16305 #: ../fish/guestfish-actions.pod:4448
16308 " sfdiskM device 'lines ...'\n"
16313 #: ../fish/guestfish-actions.pod:4450
16315 "This is a simplified interface to the L</sfdisk> command, where partition "
16316 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16317 "you don't need to specify the cyls, heads and sectors parameters which were "
16318 "rarely if ever used anyway."
16322 #: ../fish/guestfish-actions.pod:4456
16323 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16325 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
16328 #: ../fish/guestfish-actions.pod:4469
16333 #: ../fish/guestfish-actions.pod:4471
16336 " sfdisk-N device partnum cyls heads sectors line\n"
16341 #: ../fish/guestfish-actions.pod:4473 ../src/guestfs-actions.pod:6770
16343 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16344 "(note: C<n> counts from 1)."
16348 #: ../fish/guestfish-actions.pod:4476
16350 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
16351 "cyls/heads/sectors parameters."
16355 #: ../fish/guestfish-actions.pod:4479
16356 msgid "See also: L</part-add>"
16357 msgstr "Див. також L</part-add>"
16360 #: ../fish/guestfish-actions.pod:4491
16361 msgid "sfdisk-disk-geometry"
16362 msgstr "sfdisk-disk-geometry"
16365 #: ../fish/guestfish-actions.pod:4493
16368 " sfdisk-disk-geometry device\n"
16371 " sfdisk-disk-geometry пристрій\n"
16375 #: ../fish/guestfish-actions.pod:4495
16377 "This displays the disk geometry of C<device> read from the partition table. "
16378 "Especially in the case where the underlying block device has been resized, "
16379 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16380 "kernel-geometry>)."
16384 #: ../fish/guestfish-actions.pod:4500 ../fish/guestfish-actions.pod:4509
16385 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6812
16386 msgid "The result is in human-readable format, and not designed to be parsed."
16390 #: ../fish/guestfish-actions.pod:4503
16391 msgid "sfdisk-kernel-geometry"
16392 msgstr "sfdisk-kernel-geometry"
16395 #: ../fish/guestfish-actions.pod:4505
16398 " sfdisk-kernel-geometry device\n"
16401 " sfdisk-kernel-geometry пристрій\n"
16405 #: ../fish/guestfish-actions.pod:4507 ../src/guestfs-actions.pod:6810
16406 msgid "This displays the kernel's idea of the geometry of C<device>."
16410 #: ../fish/guestfish-actions.pod:4512
16415 #: ../fish/guestfish-actions.pod:4514
16418 " sfdisk-l device\n"
16421 " sfdisk-l пристрій\n"
16425 #: ../fish/guestfish-actions.pod:4516 ../src/guestfs-actions.pod:6833
16427 "This displays the partition table on C<device>, in the human-readable output "
16428 "of the L<sfdisk(8)> command. It is not intended to be parsed."
16432 #: ../fish/guestfish-actions.pod:4520
16433 msgid "See also: L</part-list>"
16434 msgstr "Див. також L</part-list>"
16437 #: ../fish/guestfish-actions.pod:4522
16439 "I<This function is deprecated.> In new code, use the L</part_list> call "
16444 #: ../fish/guestfish-actions.pod:4529
16449 #: ../fish/guestfish-actions.pod:4531
16459 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6850
16461 "This call runs a command from the guest filesystem via the guest's C</bin/"
16466 #: ../fish/guestfish-actions.pod:4536
16467 msgid "This is like L</command>, but passes the command to:"
16471 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6855
16474 " /bin/sh -c \"command\"\n"
16479 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6857
16481 "Depending on the guest's shell, this usually results in wildcards being "
16482 "expanded, shell expressions being interpolated and so on."
16486 #: ../fish/guestfish-actions.pod:4544
16487 msgid "All the provisos about L</command> apply to this call."
16491 #: ../fish/guestfish-actions.pod:4546
16496 #: ../fish/guestfish-actions.pod:4548
16499 " sh-lines command\n"
16502 " sh-lines команда\n"
16506 #: ../fish/guestfish-actions.pod:4550
16507 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16511 #: ../fish/guestfish-actions.pod:4553
16512 msgid "See also: L</command-lines>"
16513 msgstr "Див. також L</command-lines>"
16516 #: ../fish/guestfish-actions.pod:4555
16521 #: ../fish/guestfish-actions.pod:4557
16527 " sleep час_у_секундах\n"
16531 #: ../fish/guestfish-actions.pod:4559 ../src/guestfs-actions.pod:6891
16532 msgid "Sleep for C<secs> seconds."
16536 #: ../fish/guestfish-actions.pod:4561
16541 #: ../fish/guestfish-actions.pod:4563
16551 #: ../fish/guestfish-actions.pod:4567 ../src/guestfs-actions.pod:6905
16552 msgid "This is the same as the C<stat(2)> system call."
16556 #: ../fish/guestfish-actions.pod:4569
16561 #: ../fish/guestfish-actions.pod:4571
16571 #: ../fish/guestfish-actions.pod:4573 ../src/guestfs-actions.pod:6919
16573 "Returns file system statistics for any mounted file system. C<path> should "
16574 "be a file or directory in the mounted file system (typically it is the mount "
16575 "point itself, but it doesn't need to be)."
16579 #: ../fish/guestfish-actions.pod:4577 ../src/guestfs-actions.pod:6923
16580 msgid "This is the same as the C<statvfs(2)> system call."
16584 #: ../fish/guestfish-actions.pod:4579
16589 #: ../fish/guestfish-actions.pod:4581
16599 #: ../fish/guestfish-actions.pod:4583 ../src/guestfs-actions.pod:6937
16601 "This runs the L<strings(1)> command on a file and returns the list of "
16602 "printable strings found."
16606 #: ../fish/guestfish-actions.pod:4589
16611 #: ../fish/guestfish-actions.pod:4591
16614 " strings-e encoding path\n"
16617 " strings-e кодування шлях\n"
16621 #: ../fish/guestfish-actions.pod:4593
16623 "This is like the L</strings> command, but allows you to specify the encoding "
16624 "of strings that are looked for in the source file C<path>."
16628 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6960
16629 msgid "Allowed encodings are:"
16630 msgstr "Можливими кодуваннями є:"
16633 #: ../fish/guestfish-actions.pod:4601 ../src/guestfs-actions.pod:6964
16638 #: ../fish/guestfish-actions.pod:4603
16640 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16641 "ISO-8859-X (this is what L</strings> uses)."
16645 #: ../fish/guestfish-actions.pod:4606 ../src/guestfs-actions.pod:6969
16650 #: ../fish/guestfish-actions.pod:4608 ../src/guestfs-actions.pod:6971
16651 msgid "Single 8-bit-byte characters."
16652 msgstr "Окремі 8-бітові-байтові символи."
16655 #: ../fish/guestfish-actions.pod:4610 ../src/guestfs-actions.pod:6973
16660 #: ../fish/guestfish-actions.pod:4612 ../src/guestfs-actions.pod:6975
16661 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16665 #: ../fish/guestfish-actions.pod:4615 ../src/guestfs-actions.pod:6978
16666 msgid "l (lower case letter L)"
16670 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6980
16672 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
16673 "examining binaries in Windows guests."
16677 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6983
16682 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6985
16683 msgid "32-bit big endian such as UCS-4BE."
16687 #: ../fish/guestfish-actions.pod:4624 ../src/guestfs-actions.pod:6987
16692 #: ../fish/guestfish-actions.pod:4626 ../src/guestfs-actions.pod:6989
16693 msgid "32-bit little endian such as UCS-4LE."
16697 #: ../fish/guestfish-actions.pod:4630 ../src/guestfs-actions.pod:6993
16698 msgid "The returned strings are transcoded to UTF-8."
16702 #: ../fish/guestfish-actions.pod:4635
16703 msgid "swapoff-device"
16704 msgstr "swapoff-device"
16707 #: ../fish/guestfish-actions.pod:4637
16710 " swapoff-device device\n"
16713 " swapoff-device пристрій\n"
16717 #: ../fish/guestfish-actions.pod:4639
16719 "This command disables the libguestfs appliance swap device or partition "
16720 "named C<device>. See L</swapon-device>."
16724 #: ../fish/guestfish-actions.pod:4643
16725 msgid "swapoff-file"
16726 msgstr "swapoff-file"
16729 #: ../fish/guestfish-actions.pod:4645
16732 " swapoff-file file\n"
16735 " swapoff-file файл\n"
16739 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7024
16740 msgid "This command disables the libguestfs appliance swap on file."
16744 #: ../fish/guestfish-actions.pod:4649
16745 msgid "swapoff-label"
16746 msgstr "swapoff-label"
16749 #: ../fish/guestfish-actions.pod:4651
16752 " swapoff-label label\n"
16755 " swapoff-label мітка\n"
16759 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7036
16761 "This command disables the libguestfs appliance swap on labeled swap "
16766 #: ../fish/guestfish-actions.pod:4656
16767 msgid "swapoff-uuid"
16768 msgstr "swapoff-uuid"
16771 #: ../fish/guestfish-actions.pod:4658
16774 " swapoff-uuid uuid\n"
16777 " swapoff-uuid uuid\n"
16781 #: ../fish/guestfish-actions.pod:4660 ../src/guestfs-actions.pod:7049
16783 "This command disables the libguestfs appliance swap partition with the given "
16788 #: ../fish/guestfish-actions.pod:4663
16789 msgid "swapon-device"
16790 msgstr "swapon-device"
16793 #: ../fish/guestfish-actions.pod:4665
16796 " swapon-device device\n"
16799 " swapon-device пристрій\n"
16803 #: ../fish/guestfish-actions.pod:4667
16805 "This command enables the libguestfs appliance to use the swap device or "
16806 "partition named C<device>. The increased memory is made available for all "
16807 "commands, for example those run using L</command> or L</sh>."
16811 #: ../fish/guestfish-actions.pod:4672 ../src/guestfs-actions.pod:7067
16813 "Note that you should not swap to existing guest swap partitions unless you "
16814 "know what you are doing. They may contain hibernation information, or other "
16815 "information that the guest doesn't want you to trash. You also risk leaking "
16816 "information about the host to the guest this way. Instead, attach a new "
16817 "host device to the guest and swap on that."
16821 #: ../fish/guestfish-actions.pod:4679
16822 msgid "swapon-file"
16823 msgstr "swapon-file"
16826 #: ../fish/guestfish-actions.pod:4681
16829 " swapon-file file\n"
16832 " swapon-file файл\n"
16836 #: ../fish/guestfish-actions.pod:4683
16838 "This command enables swap to a file. See L</swapon-device> for other notes."
16842 #: ../fish/guestfish-actions.pod:4686
16843 msgid "swapon-label"
16844 msgstr "swapon-label"
16847 #: ../fish/guestfish-actions.pod:4688
16850 " swapon-label label\n"
16853 " swapon-label мітка\n"
16857 #: ../fish/guestfish-actions.pod:4690
16859 "This command enables swap to a labeled swap partition. See L</swapon-"
16860 "device> for other notes."
16864 #: ../fish/guestfish-actions.pod:4693
16865 msgid "swapon-uuid"
16866 msgstr "swapon-uuid"
16869 #: ../fish/guestfish-actions.pod:4695
16872 " swapon-uuid uuid\n"
16875 " swapon-uuid uuid\n"
16879 #: ../fish/guestfish-actions.pod:4697
16881 "This command enables swap to a swap partition with the given UUID. See L</"
16882 "swapon-device> for other notes."
16886 #: ../fish/guestfish-actions.pod:4700
16891 #: ../fish/guestfish-actions.pod:4702
16901 #: ../fish/guestfish-actions.pod:4704 ../src/guestfs-actions.pod:7122
16903 "This syncs the disk, so that any writes are flushed through to the "
16904 "underlying disk image."
16908 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7125
16910 "You should always call this if you have modified a disk image, before "
16911 "closing the handle."
16915 #: ../fish/guestfish-actions.pod:4710
16920 #: ../fish/guestfish-actions.pod:4712
16930 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7138
16932 "This command returns up to the last 10 lines of a file as a list of strings."
16936 #: ../fish/guestfish-actions.pod:4720
16941 #: ../fish/guestfish-actions.pod:4722
16944 " tail-n nrlines path\n"
16949 #: ../fish/guestfish-actions.pod:4724 ../src/guestfs-actions.pod:7157
16951 "If the parameter C<nrlines> is a positive number, this returns the last "
16952 "C<nrlines> lines of the file C<path>."
16956 #: ../fish/guestfish-actions.pod:4727 ../src/guestfs-actions.pod:7160
16958 "If the parameter C<nrlines> is a negative number, this returns lines from "
16959 "the file C<path>, starting with the C<-nrlines>th line."
16963 #: ../fish/guestfish-actions.pod:4735
16968 #: ../fish/guestfish-actions.pod:4737
16971 " tar-in (tarfile|-) directory\n"
16974 " tar-in (файл_tar|-) каталог\n"
16978 #: ../fish/guestfish-actions.pod:4739 ../src/guestfs-actions.pod:7181
16980 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16981 "tar file) into C<directory>."
16985 #: ../fish/guestfish-actions.pod:4742
16986 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16990 #: ../fish/guestfish-actions.pod:4747
16995 #: ../fish/guestfish-actions.pod:4749
16998 " tar-out directory (tarfile|-)\n"
17001 " tar-out каталог (файл tar|-)\n"
17005 #: ../fish/guestfish-actions.pod:4751 ../src/guestfs-actions.pod:7198
17007 "This command packs the contents of C<directory> and downloads it to local "
17012 #: ../fish/guestfish-actions.pod:4754
17013 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
17017 #: ../fish/guestfish-actions.pod:4759
17022 #: ../fish/guestfish-actions.pod:4761
17025 " tgz-in (tarball|-) directory\n"
17028 " tgz-in (архів tar|-) каталог\n"
17032 #: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7215
17034 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17035 "tar file) into C<directory>."
17039 #: ../fish/guestfish-actions.pod:4766
17040 msgid "To upload an uncompressed tarball, use L</tar-in>."
17044 #: ../fish/guestfish-actions.pod:4770
17049 #: ../fish/guestfish-actions.pod:4772
17052 " tgz-out directory (tarball|-)\n"
17055 " tgz-out каталог (архів tar|-)\n"
17059 #: ../fish/guestfish-actions.pod:4774 ../src/guestfs-actions.pod:7231
17061 "This command packs the contents of C<directory> and downloads it to local "
17066 #: ../fish/guestfish-actions.pod:4777
17067 msgid "To download an uncompressed tarball, use L</tar-out>."
17071 #: ../fish/guestfish-actions.pod:4781
17076 #: ../fish/guestfish-actions.pod:4783
17086 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7246
17088 "Touch acts like the L<touch(1)> command. It can be used to update the "
17089 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17094 #: ../fish/guestfish-actions.pod:4789 ../src/guestfs-actions.pod:7250
17096 "This command only works on regular files, and will fail on other file types "
17097 "such as directories, symbolic links, block special etc."
17101 #: ../fish/guestfish-actions.pod:4792
17106 #: ../fish/guestfish-actions.pod:4794
17116 #: ../fish/guestfish-actions.pod:4796 ../src/guestfs-actions.pod:7263
17118 "This command truncates C<path> to a zero-length file. The file must exist "
17123 #: ../fish/guestfish-actions.pod:4799
17124 msgid "truncate-size"
17125 msgstr "truncate-size"
17128 #: ../fish/guestfish-actions.pod:4801
17131 " truncate-size path size\n"
17134 " truncate-size шлях розмір\n"
17138 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7277
17140 "This command truncates C<path> to size C<size> bytes. The file must exist "
17145 #: ../fish/guestfish-actions.pod:4806
17147 "If the current file size is less than C<size> then the file is extended to "
17148 "the required size with zero bytes. This creates a sparse file (ie. disk "
17149 "blocks are not allocated for the file until you write to it). To create a "
17150 "non-sparse file of zeroes, use L</fallocate64> instead."
17154 #: ../fish/guestfish-actions.pod:4812
17159 #: ../fish/guestfish-actions.pod:4814
17162 " tune2fs-l device\n"
17165 " tune2fs-l пристрій\n"
17169 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7296
17171 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17176 #: ../fish/guestfish-actions.pod:4819 ../src/guestfs-actions.pod:7299
17178 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
17179 "for more details. The list of fields returned isn't clearly defined, and "
17180 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17181 "and the filesystem itself."
17185 #: ../fish/guestfish-actions.pod:4824
17190 #: ../fish/guestfish-actions.pod:4826
17193 " txz-in (tarball|-) directory\n"
17196 " txz-in (архів tar|-) каталог\n"
17200 #: ../fish/guestfish-actions.pod:4828 ../src/guestfs-actions.pod:7319
17202 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17203 "tar file) into C<directory>."
17207 #: ../fish/guestfish-actions.pod:4833
17212 #: ../fish/guestfish-actions.pod:4835
17215 " txz-out directory (tarball|-)\n"
17218 " txz-out каталог (архів tar|-)\n"
17222 #: ../fish/guestfish-actions.pod:4837 ../src/guestfs-actions.pod:7333
17224 "This command packs the contents of C<directory> and downloads it to local "
17225 "file C<tarball> (as an xz compressed tar archive)."
17229 #: ../fish/guestfish-actions.pod:4842
17234 #: ../fish/guestfish-actions.pod:4844
17244 #: ../fish/guestfish-actions.pod:4846 ../src/guestfs-actions.pod:7346
17246 "This function sets the mask used for creating new files and device nodes to "
17251 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7349
17253 "Typical umask values would be C<022> which creates new files with "
17254 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17255 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17259 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7354
17261 "The default umask is C<022>. This is important because it means that "
17262 "directories and device nodes will be created with C<0644> or C<0755> mode "
17263 "even if you specify C<0777>."
17267 #: ../fish/guestfish-actions.pod:4858
17268 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17269 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17272 #: ../fish/guestfish-actions.pod:4861 ../src/guestfs-actions.pod:7361
17273 msgid "This call returns the previous umask."
17277 #: ../fish/guestfish-actions.pod:4863
17282 #: ../fish/guestfish-actions.pod:4865
17287 #: ../fish/guestfish-actions.pod:4867
17290 " umount pathordevice\n"
17293 " umount шлях_або_пристрій\n"
17297 #: ../fish/guestfish-actions.pod:4869 ../src/guestfs-actions.pod:7373
17299 "This unmounts the given filesystem. The filesystem may be specified either "
17300 "by its mountpoint (path) or the device which contains the filesystem."
17304 #: ../fish/guestfish-actions.pod:4873
17306 msgstr "umount-all"
17309 #: ../fish/guestfish-actions.pod:4875
17310 msgid "unmount-all"
17311 msgstr "unmount-all"
17314 #: ../fish/guestfish-actions.pod:4877
17324 #: ../fish/guestfish-actions.pod:4879 ../src/guestfs-actions.pod:7386
17325 msgid "This unmounts all mounted filesystems."
17329 #: ../fish/guestfish-actions.pod:4881 ../src/guestfs-actions.pod:7388
17330 msgid "Some internal mounts are not unmounted by this call."
17334 #: ../fish/guestfish-actions.pod:4883
17339 #: ../fish/guestfish-actions.pod:4885
17342 " upload (filename|-) remotefilename\n"
17345 " upload (назва_файла|-) назва_віддаленого_файла\n"
17349 #: ../fish/guestfish-actions.pod:4887 ../fish/guestfish-actions.pod:4900
17350 #: ../src/guestfs-actions.pod:7401 ../src/guestfs-actions.pod:7425
17351 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17355 #: ../fish/guestfish-actions.pod:4892
17356 msgid "See also L</download>."
17357 msgstr "Див. також L</download>."
17360 #: ../fish/guestfish-actions.pod:4896
17361 msgid "upload-offset"
17362 msgstr "upload-offset"
17365 #: ../fish/guestfish-actions.pod:4898
17368 " upload-offset (filename|-) remotefilename offset\n"
17371 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
17375 #: ../fish/guestfish-actions.pod:4903 ../src/guestfs-actions.pod:7428
17377 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
17378 "The intention is to overwrite parts of existing files or devices, although "
17379 "if a non-existant file is specified then it is created with a \"hole\" "
17380 "before C<offset>. The size of the data written is implicit in the size of "
17381 "the source C<filename>."
17385 #: ../fish/guestfish-actions.pod:4910
17387 "Note that there is no limit on the amount of data that can be uploaded with "
17388 "this call, unlike with L</pwrite>, and this call always writes the full "
17389 "amount unless an error occurs."
17393 #: ../fish/guestfish-actions.pod:4915
17394 msgid "See also L</upload>, L</pwrite>."
17395 msgstr "Див. також L</upload>, L</pwrite>."
17398 #: ../fish/guestfish-actions.pod:4919
17403 #: ../fish/guestfish-actions.pod:4921
17406 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17411 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7461
17412 msgid "This command sets the timestamps of a file with nanosecond precision."
17416 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7464
17418 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17423 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7467
17425 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17426 "nanoseconds from the epoch."
17430 #: ../fish/guestfish-actions.pod:4932 ../src/guestfs-actions.pod:7470
17432 "If the C<*nsecs> field contains the special value C<-1> then the "
17433 "corresponding timestamp is set to the current time. (The C<*secs> field is "
17434 "ignored in this case)."
17438 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7474
17440 "If the C<*nsecs> field contains the special value C<-2> then the "
17441 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
17446 #: ../fish/guestfish-actions.pod:4940
17451 #: ../fish/guestfish-actions.pod:4942
17461 #: ../fish/guestfish-actions.pod:4944 ../src/guestfs-actions.pod:7487
17463 "Return the libguestfs version number that the program is linked against."
17467 #: ../fish/guestfish-actions.pod:4947 ../src/guestfs-actions.pod:7490
17469 "Note that because of dynamic linking this is not necessarily the version of "
17470 "libguestfs that you compiled against. You can compile the program, and then "
17471 "at runtime dynamically link against a completely different C<libguestfs.so> "
17476 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7495
17478 "This call was added in version C<1.0.58>. In previous versions of "
17479 "libguestfs there was no way to get the version number. From C code you can "
17480 "use dynamic linker functions to find out if this symbol exists (if it "
17481 "doesn't, then it's an earlier version)."
17485 #: ../fish/guestfish-actions.pod:4958 ../src/guestfs-actions.pod:7501
17487 "The call returns a structure with four elements. The first three (C<major>, "
17488 "C<minor> and C<release>) are numbers and correspond to the usual version "
17489 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
17490 "but may be used for distro-specific information."
17494 #: ../fish/guestfish-actions.pod:4964 ../src/guestfs-actions.pod:7507
17496 "To construct the original version string: C<$major.$minor.$release$extra>"
17500 #: ../fish/guestfish-actions.pod:4967 ../src/guestfs-actions.pod:7510
17501 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17505 #: ../fish/guestfish-actions.pod:4969
17507 "I<Note:> Don't use this call to test for availability of features. In "
17508 "enterprise distributions we backport features from later versions into "
17509 "earlier versions, making this an unreliable way to test for features. Use "
17510 "L</available> instead."
17514 #: ../fish/guestfish-actions.pod:4975
17519 #: ../fish/guestfish-actions.pod:4977
17522 " vfs-label device\n"
17525 " vfs-label пристрій\n"
17529 #: ../fish/guestfish-actions.pod:4979 ../src/guestfs-actions.pod:7530
17530 msgid "This returns the filesystem label of the filesystem on C<device>."
17534 #: ../fish/guestfish-actions.pod:4982 ../src/guestfs-actions.pod:7533
17535 msgid "If the filesystem is unlabeled, this returns the empty string."
17539 #: ../fish/guestfish-actions.pod:4984
17540 msgid "To find a filesystem from the label, use L</findfs-label>."
17544 #: ../fish/guestfish-actions.pod:4986
17549 #: ../fish/guestfish-actions.pod:4988
17552 " vfs-type device\n"
17555 " vfs-type пристрій\n"
17559 #: ../fish/guestfish-actions.pod:4990 ../src/guestfs-actions.pod:7548
17561 "This command gets the filesystem type corresponding to the filesystem on "
17566 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7551
17568 "For most filesystems, the result is the name of the Linux VFS module which "
17569 "would be used to mount this filesystem if you mounted it without specifying "
17570 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
17574 #: ../fish/guestfish-actions.pod:4998
17579 #: ../fish/guestfish-actions.pod:5000
17582 " vfs-uuid device\n"
17585 " vfs-uuid пристрій\n"
17589 #: ../fish/guestfish-actions.pod:5002 ../src/guestfs-actions.pod:7567
17590 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17594 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7570
17595 msgid "If the filesystem does not have a UUID, this returns the empty string."
17599 #: ../fish/guestfish-actions.pod:5007
17600 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17604 #: ../fish/guestfish-actions.pod:5009
17605 msgid "vg-activate"
17606 msgstr "vg-activate"
17609 #: ../fish/guestfish-actions.pod:5011
17612 " vg-activate true|false 'volgroups ...'\n"
17617 #: ../fish/guestfish-actions.pod:5013 ../src/guestfs-actions.pod:7586
17619 "This command activates or (if C<activate> is false) deactivates all logical "
17620 "volumes in the listed volume groups C<volgroups>."
17624 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7589
17625 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17629 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7591
17631 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17632 "activated or deactivated."
17636 #: ../fish/guestfish-actions.pod:5021
17637 msgid "vg-activate-all"
17638 msgstr "vg-activate-all"
17641 #: ../fish/guestfish-actions.pod:5023
17644 " vg-activate-all true|false\n"
17647 " vg-activate-all true|false\n"
17651 #: ../fish/guestfish-actions.pod:5025 ../src/guestfs-actions.pod:7604
17653 "This command activates or (if C<activate> is false) deactivates all logical "
17654 "volumes in all volume groups."
17658 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7607
17659 msgid "This command is the same as running C<vgchange -a y|n>"
17663 #: ../fish/guestfish-actions.pod:5030
17668 #: ../fish/guestfish-actions.pod:5032
17671 " vgcreate volgroup 'physvols ...'\n"
17676 #: ../fish/guestfish-actions.pod:5034 ../src/guestfs-actions.pod:7620
17678 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17679 "of physical volumes C<physvols>."
17683 #: ../fish/guestfish-actions.pod:5037
17688 #: ../fish/guestfish-actions.pod:5039
17691 " vglvuuids vgname\n"
17696 #: ../fish/guestfish-actions.pod:5041 ../src/guestfs-actions.pod:7633
17698 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17699 "volumes created in this volume group."
17703 #: ../fish/guestfish-actions.pod:5044
17705 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17706 "logical volumes and volume groups."
17710 #: ../fish/guestfish-actions.pod:5047
17711 msgid "See also L</vgpvuuids>."
17712 msgstr "Див. також L</vgpvuuids>."
17715 #: ../fish/guestfish-actions.pod:5049
17720 #: ../fish/guestfish-actions.pod:5051
17723 " vgpvuuids vgname\n"
17728 #: ../fish/guestfish-actions.pod:5053 ../src/guestfs-actions.pod:7653
17730 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17731 "volumes that this volume group resides on."
17735 #: ../fish/guestfish-actions.pod:5056
17737 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17738 "physical volumes and volume groups."
17742 #: ../fish/guestfish-actions.pod:5059
17743 msgid "See also L</vglvuuids>."
17744 msgstr "Див. також L</vglvuuids>."
17747 #: ../fish/guestfish-actions.pod:5061
17752 #: ../fish/guestfish-actions.pod:5063
17755 " vgremove vgname\n"
17760 #: ../fish/guestfish-actions.pod:5065 ../src/guestfs-actions.pod:7673
17761 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17765 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7675
17767 "This also forcibly removes all logical volumes in the volume group (if any)."
17771 #: ../fish/guestfish-actions.pod:5070
17776 #: ../fish/guestfish-actions.pod:5072
17779 " vgrename volgroup newvolgroup\n"
17784 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7689
17785 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17789 #: ../fish/guestfish-actions.pod:5076
17794 #: ../fish/guestfish-actions.pod:5078
17804 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7700
17806 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17811 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7703
17813 "This returns a list of just the volume group names that were detected (eg. "
17818 #: ../fish/guestfish-actions.pod:5086
17819 msgid "See also L</vgs-full>."
17820 msgstr "Див. також L</vgs-full>."
17823 #: ../fish/guestfish-actions.pod:5088
17828 #: ../fish/guestfish-actions.pod:5090
17838 #: ../fish/guestfish-actions.pod:5092 ../src/guestfs-actions.pod:7719
17840 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17841 "> command. The \"full\" version includes all fields."
17845 #: ../fish/guestfish-actions.pod:5095
17850 #: ../fish/guestfish-actions.pod:5097
17860 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7733
17862 "This rescans all block devices and rebuilds the list of LVM physical "
17863 "volumes, volume groups and logical volumes."
17867 #: ../fish/guestfish-actions.pod:5102
17872 #: ../fish/guestfish-actions.pod:5104
17880 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7746
17881 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17885 #: ../fish/guestfish-actions.pod:5108
17890 #: ../fish/guestfish-actions.pod:5110
17900 #: ../fish/guestfish-actions.pod:5112 ../src/guestfs-actions.pod:7786
17902 "This command counts the characters in a file, using the C<wc -c> external "
17907 #: ../fish/guestfish-actions.pod:5115
17912 #: ../fish/guestfish-actions.pod:5117
17922 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7799
17924 "This command counts the lines in a file, using the C<wc -l> external command."
17928 #: ../fish/guestfish-actions.pod:5122
17933 #: ../fish/guestfish-actions.pod:5124
17943 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7812
17945 "This command counts the words in a file, using the C<wc -w> external command."
17949 #: ../fish/guestfish-actions.pod:5129
17954 #: ../fish/guestfish-actions.pod:5131
17957 " write path content\n"
17960 " write шлях дані\n"
17964 #: ../fish/guestfish-actions.pod:5133 ../src/guestfs-actions.pod:7827
17966 "This call creates a file called C<path>. The content of the file is the "
17967 "string C<content> (which can contain any 8 bit data)."
17971 #: ../fish/guestfish-actions.pod:5136
17972 msgid "See also L</write-append>."
17976 #: ../fish/guestfish-actions.pod:5141
17977 msgid "write-append"
17981 #: ../fish/guestfish-actions.pod:5143
17984 " write-append path content\n"
17989 #: ../fish/guestfish-actions.pod:5145 ../src/guestfs-actions.pod:7847
17991 "This call appends C<content> to the end of file C<path>. If C<path> does "
17992 "not exist, then a new file is created."
17996 #: ../fish/guestfish-actions.pod:5148
17997 msgid "See also L</write>."
18001 #: ../fish/guestfish-actions.pod:5153
18003 msgstr "write-file"
18006 #: ../fish/guestfish-actions.pod:5155
18009 " write-file path content size\n"
18014 #: ../fish/guestfish-actions.pod:5157 ../src/guestfs-actions.pod:7874
18016 "This call creates a file called C<path>. The contents of the file is the "
18017 "string C<content> (which can contain any 8 bit data), with length C<size>."
18021 #: ../fish/guestfish-actions.pod:5161 ../src/guestfs-actions.pod:7878
18023 "As a special case, if C<size> is C<0> then the length is calculated using "
18024 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18028 #: ../fish/guestfish-actions.pod:5165 ../src/guestfs-actions.pod:7882
18030 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18031 "I<not> work, even if the length is specified."
18035 #: ../fish/guestfish-actions.pod:5171
18037 "I<This function is deprecated.> In new code, use the L</write> call instead."
18041 #: ../fish/guestfish-actions.pod:5178
18046 #: ../fish/guestfish-actions.pod:5180
18049 " zegrep regex path\n"
18052 " zegrep формальний_вираз шлях\n"
18056 #: ../fish/guestfish-actions.pod:5182 ../src/guestfs-actions.pod:7899
18058 "This calls the external C<zegrep> program and returns the matching lines."
18062 #: ../fish/guestfish-actions.pod:5188
18067 #: ../fish/guestfish-actions.pod:5190
18070 " zegrepi regex path\n"
18075 #: ../fish/guestfish-actions.pod:5192 ../src/guestfs-actions.pod:7918
18077 "This calls the external C<zegrep -i> program and returns the matching lines."
18081 #: ../fish/guestfish-actions.pod:5198
18086 #: ../fish/guestfish-actions.pod:5200
18096 #: ../fish/guestfish-actions.pod:5202 ../src/guestfs-actions.pod:7936
18097 msgid "This command writes zeroes over the first few blocks of C<device>."
18101 #: ../fish/guestfish-actions.pod:5204 ../src/guestfs-actions.pod:7938
18103 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18104 "securely wipe the device). It should be sufficient to remove any partition "
18105 "tables, filesystem superblocks and so on."
18109 #: ../fish/guestfish-actions.pod:5208 ../fish/guestfish-actions.pod:5223
18110 #: ../src/guestfs-actions.pod:7942 ../src/guestfs-actions.pod:7968
18112 "If blocks are already zero, then this command avoids writing zeroes. This "
18113 "prevents the underlying device from becoming non-sparse or growing "
18118 #: ../fish/guestfish-actions.pod:5212
18119 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
18123 #: ../fish/guestfish-actions.pod:5215
18124 msgid "zero-device"
18125 msgstr "zero-device"
18128 #: ../fish/guestfish-actions.pod:5217
18131 " zero-device device\n"
18134 " zero-device пристрій\n"
18138 #: ../fish/guestfish-actions.pod:5219
18140 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
18141 "which just zeroes the first few blocks of a device."
18145 #: ../fish/guestfish-actions.pod:5230
18150 #: ../fish/guestfish-actions.pod:5232
18153 " zerofree device\n"
18156 " zerofree пристрій\n"
18160 #: ../fish/guestfish-actions.pod:5234 ../src/guestfs-actions.pod:7990
18162 "This runs the I<zerofree> program on C<device>. This program claims to zero "
18163 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18164 "possible to compress the filesystem more effectively."
18168 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7995
18169 msgid "You should B<not> run this program if the filesystem is mounted."
18173 #: ../fish/guestfish-actions.pod:5242 ../src/guestfs-actions.pod:7998
18175 "It is possible that using this program can damage the filesystem or data on "
18180 #: ../fish/guestfish-actions.pod:5245
18185 #: ../fish/guestfish-actions.pod:5247
18188 " zfgrep pattern path\n"
18191 " zfgrep шаблон шлях\n"
18195 #: ../fish/guestfish-actions.pod:5249 ../src/guestfs-actions.pod:8012
18197 "This calls the external C<zfgrep> program and returns the matching lines."
18201 #: ../fish/guestfish-actions.pod:5255
18206 #: ../fish/guestfish-actions.pod:5257
18209 " zfgrepi pattern path\n"
18212 " zfgrepi шаблон шлях\n"
18216 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8031
18218 "This calls the external C<zfgrep -i> program and returns the matching lines."
18222 #: ../fish/guestfish-actions.pod:5265
18227 #: ../fish/guestfish-actions.pod:5267
18230 " zfile meth path\n"
18233 " zfile метод шлях\n"
18237 #: ../fish/guestfish-actions.pod:5269 ../src/guestfs-actions.pod:8057
18239 "This command runs C<file> after first decompressing C<path> using C<method>."
18243 #: ../fish/guestfish-actions.pod:5272 ../src/guestfs-actions.pod:8060
18244 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18248 #: ../fish/guestfish-actions.pod:5274
18250 "Since 1.0.63, use L</file> instead which can now process compressed files."
18254 #: ../fish/guestfish-actions.pod:5277
18256 "I<This function is deprecated.> In new code, use the L</file> call instead."
18260 #: ../fish/guestfish-actions.pod:5284
18265 #: ../fish/guestfish-actions.pod:5286
18268 " zgrep regex path\n"
18271 " zgrep формальний_вираз шлях\n"
18275 #: ../fish/guestfish-actions.pod:5288 ../src/guestfs-actions.pod:8077
18277 "This calls the external C<zgrep> program and returns the matching lines."
18281 #: ../fish/guestfish-actions.pod:5294
18286 #: ../fish/guestfish-actions.pod:5296
18289 " zgrepi regex path\n"
18292 " zgrepi формальний_вираз шлях\n"
18296 #: ../fish/guestfish-actions.pod:5298 ../src/guestfs-actions.pod:8096
18298 "This calls the external C<zgrep -i> program and returns the matching lines."
18302 #: ../fish/guestfish-commands.pod:1
18307 #: ../fish/guestfish-commands.pod:3
18312 #: ../fish/guestfish-commands.pod:5
18315 " alloc filename size\n"
18320 #: ../fish/guestfish-commands.pod:7
18322 "This creates an empty (zeroed) file of the given size, and then adds so it "
18323 "can be further examined."
18327 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18328 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18332 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18333 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18337 #: ../fish/guestfish-commands.pod:14
18339 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
18340 "image, see L</PREPARED DISK IMAGES>."
18344 #: ../fish/guestfish-commands.pod:17
18349 #: ../fish/guestfish-commands.pod:19
18352 " copy-in local [local ...] /remotedir\n"
18357 #: ../fish/guestfish-commands.pod:21
18359 "C<copy-in> copies local files or directories recursively into the disk "
18360 "image, placing them in the directory called C</remotedir> (which must "
18361 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
18362 "other commands as necessary."
18366 #: ../fish/guestfish-commands.pod:26
18368 "Multiple local files and directories can be specified, but the last "
18369 "parameter must always be a remote directory. Wildcards cannot be used."
18373 #: ../fish/guestfish-commands.pod:30
18378 #: ../fish/guestfish-commands.pod:32
18381 " copy-out remote [remote ...] localdir\n"
18386 #: ../fish/guestfish-commands.pod:34
18388 "C<copy-out> copies remote files or directories recursively out of the disk "
18389 "image, placing them on the host disk in a local directory called C<localdir> "
18390 "(which must exist). This guestfish meta-command turns into a sequence of L</"
18391 "download>, L</tar-out> and other commands as necessary."
18395 #: ../fish/guestfish-commands.pod:40
18397 "Multiple remote files and directories can be specified, but the last "
18398 "parameter must always be a local directory. To download to the current "
18399 "directory, use C<.> as in:"
18403 #: ../fish/guestfish-commands.pod:44
18406 " copy-out /home .\n"
18409 " copy-out /home .\n"
18413 #: ../fish/guestfish-commands.pod:46
18415 "Wildcards cannot be used in the ordinary command, but you can use them with "
18416 "the help of L</glob> like this:"
18420 #: ../fish/guestfish-commands.pod:49
18423 " glob copy-out /home/* .\n"
18426 " glob copy-out /home/* .\n"
18430 #: ../fish/guestfish-commands.pod:51
18435 #: ../fish/guestfish-commands.pod:53
18438 " display filename\n"
18443 #: ../fish/guestfish-commands.pod:55
18445 "Use C<display> (a graphical display program) to display an image file. It "
18446 "downloads the file, and runs C<display> on it."
18450 #: ../fish/guestfish-commands.pod:58
18452 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18453 "environment variable. For example to use the GNOME display program:"
18457 #: ../fish/guestfish-commands.pod:61
18460 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18465 #: ../fish/guestfish-commands.pod:63
18466 msgid "See also L<display(1)>."
18470 #: ../fish/guestfish-commands.pod:65
18475 #: ../fish/guestfish-commands.pod:67
18478 " echo [params ...]\n"
18481 " echo [параметри...]\n"
18485 #: ../fish/guestfish-commands.pod:69
18486 msgid "This echos the parameters to the terminal."
18490 #: ../fish/guestfish-commands.pod:71
18495 #: ../fish/guestfish-commands.pod:73
18500 #: ../fish/guestfish-commands.pod:75
18505 #: ../fish/guestfish-commands.pod:77
18511 " edit назва_файла\n"
18515 #: ../fish/guestfish-commands.pod:79
18517 "This is used to edit a file. It downloads the file, edits it locally using "
18518 "your editor, then uploads the result."
18522 #: ../fish/guestfish-commands.pod:82
18524 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
18525 "or C<emacs> you will get those corresponding editors."
18529 #: ../fish/guestfish-commands.pod:86
18534 #: ../fish/guestfish-commands.pod:88
18537 " glob command args...\n"
18540 " glob команда параметри...\n"
18544 #: ../fish/guestfish-commands.pod:90
18546 "Expand wildcards in any paths in the args list, and run C<command> "
18547 "repeatedly on each matching path."
18551 #: ../fish/guestfish-commands.pod:93
18552 msgid "See L</WILDCARDS AND GLOBBING>."
18553 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18556 #: ../fish/guestfish-commands.pod:95
18561 #: ../fish/guestfish-commands.pod:97
18564 " hexedit <filename|device>\n"
18565 " hexedit <filename|device> <max>\n"
18566 " hexedit <filename|device> <start> <max>\n"
18571 #: ../fish/guestfish-commands.pod:101
18573 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18578 #: ../fish/guestfish-commands.pod:104
18580 "This command works by downloading potentially the whole file or device, "
18581 "editing it locally, then uploading it. If the file or device is large, you "
18582 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18583 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
18584 "usual modifiers allowed such as C<1M> (1 megabyte)."
18588 #: ../fish/guestfish-commands.pod:111
18589 msgid "For example to edit the first few sectors of a disk you might do:"
18593 #: ../fish/guestfish-commands.pod:114
18596 " hexedit /dev/sda 1M\n"
18599 " hexedit /dev/sda 1M\n"
18603 #: ../fish/guestfish-commands.pod:116
18605 "which would allow you to edit anywhere within the first megabyte of the disk."
18609 #: ../fish/guestfish-commands.pod:119
18610 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18614 #: ../fish/guestfish-commands.pod:121
18617 " hexedit /dev/sda1 0x400 0x400\n"
18620 " hexedit /dev/sda1 0x400 0x400\n"
18624 #: ../fish/guestfish-commands.pod:123
18625 msgid "(assuming the superblock is in the standard location)."
18629 #: ../fish/guestfish-commands.pod:125
18631 "This command requires the external L<hexedit(1)> program. You can specify "
18632 "another program to use by setting the C<HEXEDITOR> environment variable."
18636 #: ../fish/guestfish-commands.pod:129
18637 msgid "See also L</hexdump>."
18638 msgstr "Див. також L</hexdump>."
18641 #: ../fish/guestfish-commands.pod:131
18646 #: ../fish/guestfish-commands.pod:133
18654 #: ../fish/guestfish-commands.pod:135
18656 "Change the local directory, ie. the current directory of guestfish itself."
18660 #: ../fish/guestfish-commands.pod:138
18661 msgid "Note that C<!cd> won't do what you might expect."
18665 #: ../fish/guestfish-commands.pod:140
18670 #: ../fish/guestfish-commands.pod:142
18675 #: ../fish/guestfish-commands.pod:144
18685 #: ../fish/guestfish-commands.pod:146
18686 msgid "Opens the manual page for guestfish."
18690 #: ../fish/guestfish-commands.pod:148
18695 #: ../fish/guestfish-commands.pod:150
18700 #: ../fish/guestfish-commands.pod:152
18708 #: ../fish/guestfish-commands.pod:154
18716 #: ../fish/guestfish-commands.pod:156
18717 msgid "This is used to view a file."
18721 #: ../fish/guestfish-commands.pod:158
18723 "The default viewer is C<$PAGER>. However if you use the alternate command "
18724 "C<less> you will get the C<less> command specifically."
18728 #: ../fish/guestfish-commands.pod:161
18733 #: ../fish/guestfish-commands.pod:163
18741 #: ../fish/guestfish-commands.pod:165
18743 "Close and reopen the libguestfs handle. It is not necessary to use this "
18744 "normally, because the handle is closed properly when guestfish exits. "
18745 "However this is occasionally useful for testing."
18749 #: ../fish/guestfish-commands.pod:169
18754 #: ../fish/guestfish-commands.pod:171
18757 " setenv VAR value\n"
18762 #: ../fish/guestfish-commands.pod:173
18763 msgid "Set the environment variable C<VAR> to the string C<value>."
18767 #: ../fish/guestfish-commands.pod:175
18769 "To print the value of an environment variable use a shell command such as:"
18773 #: ../fish/guestfish-commands.pod:178
18781 #: ../fish/guestfish-commands.pod:180
18786 #: ../fish/guestfish-commands.pod:182
18789 " sparse filename size\n"
18794 #: ../fish/guestfish-commands.pod:184
18796 "This creates an empty sparse file of the given size, and then adds so it can "
18797 "be further examined."
18801 #: ../fish/guestfish-commands.pod:187
18803 "In all respects it works the same as the L</alloc> command, except that the "
18804 "image file is allocated sparsely, which means that disk blocks are not "
18805 "assigned to the file until they are needed. Sparse disk files only use "
18806 "space when written to, but they are slower and there is a danger you could "
18807 "run out of real disk space during a write operation."
18811 #: ../fish/guestfish-commands.pod:197
18816 #: ../fish/guestfish-commands.pod:199
18826 #: ../fish/guestfish-commands.pod:201
18828 "This command returns a list of the optional groups known to the daemon, and "
18829 "indicates which ones are supported by this build of the libguestfs appliance."
18833 #: ../fish/guestfish-commands.pod:205
18834 msgid "See also L<guestfs(3)/AVAILABILITY>."
18838 #: ../fish/guestfish-commands.pod:207
18843 #: ../fish/guestfish-commands.pod:209
18846 " time command args...\n"
18851 #: ../fish/guestfish-commands.pod:211
18853 "Run the command as usual, but print the elapsed time afterwards. This can "
18854 "be useful for benchmarking operations."
18858 #: ../fish/guestfish-commands.pod:214
18863 #: ../fish/guestfish-commands.pod:216
18871 #: ../fish/guestfish-commands.pod:218
18872 msgid "Remove C<VAR> from the environment."
18876 #: ../fish/guestfish.pod:5
18877 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18881 #: ../fish/guestfish.pod:9
18884 " guestfish [--options] [commands]\n"
18889 #: ../fish/guestfish.pod:11
18897 #: ../fish/guestfish.pod:13
18900 " guestfish [--ro|--rw] -a disk.img\n"
18905 #: ../fish/guestfish.pod:15
18908 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18913 #: ../fish/guestfish.pod:17
18916 " guestfish -d libvirt-domain\n"
18921 #: ../fish/guestfish.pod:19
18924 " guestfish [--ro|--rw] -a disk.img -i\n"
18929 #: ../fish/guestfish.pod:21
18932 " guestfish -d libvirt-domain -i\n"
18937 #: ../fish/guestfish.pod:25
18939 "Using guestfish in read/write mode on live virtual machines can be "
18940 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
18941 "option to use guestfish safely if the disk image or virtual machine might be "
18946 #: ../fish/guestfish.pod:32
18948 "Guestfish is a shell and command-line tool for examining and modifying "
18949 "virtual machine filesystems. It uses libguestfs and exposes all of the "
18950 "functionality of the guestfs API, see L<guestfs(3)>."
18954 #: ../fish/guestfish.pod:36
18956 "Guestfish gives you structured access to the libguestfs API, from shell "
18957 "scripts or the command line or interactively. If you want to rescue a "
18958 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18963 #: ../fish/guestfish.pod:43
18964 msgid "As an interactive shell"
18968 #: ../fish/guestfish.pod:45
18976 #: ../fish/guestfish.pod:47
18979 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18980 " editing virtual machine filesystems.\n"
18985 #: ../fish/guestfish.pod:50
18988 " Type: 'help' for a list of commands\n"
18989 " 'man' to read the manual\n"
18990 " 'quit' to quit the shell\n"
18995 #: ../fish/guestfish.pod:54
18998 " ><fs> add-ro disk.img\n"
19000 " ><fs> list-filesystems\n"
19001 " /dev/sda1: ext4\n"
19002 " /dev/vg_guest/lv_root: ext4\n"
19003 " /dev/vg_guest/lv_swap: swap\n"
19004 " ><fs> mount /dev/vg_guest/lv_root /\n"
19005 " ><fs> cat /etc/fstab\n"
19007 " # Created by anaconda\n"
19014 #: ../fish/guestfish.pod:67
19015 msgid "From shell scripts"
19019 #: ../fish/guestfish.pod:69
19020 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19024 #: ../fish/guestfish.pod:71
19027 " guestfish <<_EOF_\n"
19030 " mount /dev/vg_guest/lv_root /\n"
19031 " write /etc/motd \"Welcome, new users\"\n"
19037 #: ../fish/guestfish.pod:78
19038 msgid "List the LVM logical volumes in a disk image:"
19042 #: ../fish/guestfish.pod:80
19045 " guestfish -a disk.img --ro <<_EOF_\n"
19053 #: ../fish/guestfish.pod:85
19054 msgid "List all the filesystems in a disk image:"
19058 #: ../fish/guestfish.pod:87
19061 " guestfish -a disk.img --ro <<_EOF_\n"
19063 " list-filesystems\n"
19069 #: ../fish/guestfish.pod:92
19070 msgid "On one command line"
19074 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
19075 msgid "Update C</etc/resolv.conf> in a guest:"
19079 #: ../fish/guestfish.pod:96
19083 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19084 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19089 #: ../fish/guestfish.pod:100
19090 msgid "Edit C</boot/grub/grub.conf> interactively:"
19094 #: ../fish/guestfish.pod:102
19097 " guestfish --rw --add disk.img \\\n"
19098 " --mount /dev/vg_guest/lv_root \\\n"
19099 " --mount /dev/sda1:/boot \\\n"
19100 " edit /boot/grub/grub.conf\n"
19105 #: ../fish/guestfish.pod:107
19106 msgid "Mount disks automatically"
19110 #: ../fish/guestfish.pod:109
19112 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19116 #: ../fish/guestfish.pod:112
19119 " guestfish --ro -a disk.img -i cat /etc/group\n"
19124 #: ../fish/guestfish.pod:114
19127 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19132 #: ../fish/guestfish.pod:116
19133 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19137 #: ../fish/guestfish.pod:118
19140 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19145 #: ../fish/guestfish.pod:120
19146 msgid "As a script interpreter"
19150 #: ../fish/guestfish.pod:122
19151 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19155 #: ../fish/guestfish.pod:124
19158 " #!/usr/bin/guestfish -f\n"
19159 " sparse test1.img 100M\n"
19161 " part-disk /dev/sda mbr\n"
19162 " mkfs ext2 /dev/sda1\n"
19167 #: ../fish/guestfish.pod:130
19168 msgid "Start with a prepared disk"
19172 #: ../fish/guestfish.pod:132
19174 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19175 "single ext2-formatted partition:"
19179 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
19182 " guestfish -N fs\n"
19187 #: ../fish/guestfish.pod:137
19188 msgid "To list what is available do:"
19192 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
19195 " guestfish -N help | less\n"
19200 #: ../fish/guestfish.pod:141
19201 msgid "Remote control"
19202 msgstr "Дистанційне керування"
19205 #: ../fish/guestfish.pod:143
19208 " eval \"`guestfish --listen`\"\n"
19209 " guestfish --remote add-ro disk.img\n"
19210 " guestfish --remote run\n"
19211 " guestfish --remote lvs\n"
19214 " eval \"`guestfish --listen`\"\n"
19215 " guestfish --remote add-ro disk.img\n"
19216 " guestfish --remote run\n"
19217 " guestfish --remote lvs\n"
19221 #: ../fish/guestfish.pod:154
19222 msgid "Displays general help on options."
19226 #: ../fish/guestfish.pod:158
19227 msgid "B<--cmd-help>"
19228 msgstr "B<--cmd-help>"
19231 #: ../fish/guestfish.pod:160
19232 msgid "Lists all available guestfish commands."
19236 #: ../fish/guestfish.pod:162
19238 msgstr "B<-h команда>"
19241 #: ../fish/guestfish.pod:164
19242 msgid "B<--cmd-help cmd>"
19243 msgstr "B<--cmd-help команда>"
19246 #: ../fish/guestfish.pod:166
19247 msgid "Displays detailed help on a single command C<cmd>."
19251 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19252 msgid "B<-a image>"
19253 msgstr "B<-a образ>"
19256 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19257 msgid "B<--add image>"
19258 msgstr "B<--add образ>"
19261 #: ../fish/guestfish.pod:172
19262 msgid "Add a block device or virtual machine image to the shell."
19266 #: ../fish/guestfish.pod:177
19268 "Using this flag is mostly equivalent to using the C<add> command, with "
19269 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19270 "the I<--format=...> flag was given."
19274 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19276 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19277 "URI to use. The default is to use the default libvirt connection."
19281 #: ../fish/guestfish.pod:189
19286 #: ../fish/guestfish.pod:191
19288 "If using the I<--listen> option and a csh-like shell, use this option. See "
19289 "section L</REMOTE CONTROL AND CSH> below."
19293 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19294 msgid "B<-d libvirt-domain>"
19295 msgstr "B<-d домен-libvirt>"
19298 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19299 msgid "B<--domain libvirt-domain>"
19300 msgstr "B<--domain домен-libvirt>"
19303 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19305 "Add disks from the named libvirt domain. If the I<--ro> option is also "
19306 "used, then any libvirt domain can be used. However in write mode, only "
19307 "libvirt domains which are shut down can be named here."
19311 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19312 msgid "Domain UUIDs can be used instead of names."
19316 #: ../fish/guestfish.pod:204
19318 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19319 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19320 "if the I<--format:...> flag was given."
19324 #: ../fish/guestfish.pod:208
19329 #: ../fish/guestfish.pod:210
19330 msgid "B<--no-dest-paths>"
19331 msgstr "B<--no-dest-paths>"
19334 #: ../fish/guestfish.pod:212
19336 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
19337 "to hit the tab key to complete paths on the guest filesystem, but this "
19338 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19339 "allow this feature to be disabled."
19343 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19345 "When prompting for keys and passphrases, guestfish normally turns echoing "
19346 "off so you cannot see what you are typing. If you are not worried about "
19347 "Tempest attacks and there is no one else in the room you can specify this "
19348 "flag to see what you are typing."
19352 #: ../fish/guestfish.pod:224
19354 msgstr "B<-f файл>"
19357 #: ../fish/guestfish.pod:226
19358 msgid "B<--file file>"
19359 msgstr "B<--file файл>"
19362 #: ../fish/guestfish.pod:228
19363 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
19367 #: ../fish/guestfish.pod:231
19370 " #!/usr/bin/guestfish -f\n"
19373 " #!/usr/bin/guestfish -f\n"
19377 #: ../fish/guestfish.pod:244
19380 " guestfish --format=raw -a disk.img\n"
19383 " guestfish --format=raw -a disk.img\n"
19387 #: ../fish/guestfish.pod:248
19390 " guestfish --format=raw -a disk.img --format -a another.img\n"
19393 " guestfish --format=raw -a disk.img --format -a another.img\n"
19397 #: ../fish/guestfish.pod:253
19399 "If you have untrusted raw-format guest disk images, you should use this "
19400 "option to specify the disk format. This avoids a possible security problem "
19401 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
19405 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19406 msgid "B<--inspector>"
19407 msgstr "B<--inspector>"
19410 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19412 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19413 "system and mount filesystems as they would be mounted on the real virtual "
19418 #: ../fish/guestfish.pod:266
19419 msgid "Typical usage is either:"
19423 #: ../fish/guestfish.pod:268
19426 " guestfish -d myguest -i\n"
19429 " guestfish -d myguest -i\n"
19433 #: ../fish/guestfish.pod:270
19434 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19438 #: ../fish/guestfish.pod:272
19441 " guestfish --ro -d myguest -i\n"
19444 " guestfish --ro -d myguest -i\n"
19448 #: ../fish/guestfish.pod:274
19449 msgid "(for active domains, readonly), or specify the block device directly:"
19453 #: ../fish/guestfish.pod:276
19456 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19459 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19463 #: ../fish/guestfish.pod:278
19465 "Note that the command line syntax changed slightly over older versions of "
19466 "guestfish. You can still use the old syntax:"
19470 #: ../fish/guestfish.pod:281
19473 " guestfish [--ro] -i disk.img\n"
19476 " guestfish [--ro] -i disk.img\n"
19480 #: ../fish/guestfish.pod:283
19483 " guestfish [--ro] -i libvirt-domain\n"
19488 #: ../fish/guestfish.pod:285
19490 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19491 "then using other commands to mount the filesystems that were found."
19495 #: ../fish/guestfish.pod:294
19496 msgid "B<--listen>"
19497 msgstr "B<--listen>"
19500 #: ../fish/guestfish.pod:296
19502 "Fork into the background and listen for remote commands. See section L</"
19503 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19507 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19512 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19514 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
19515 "ATTACHING TO RUNNING DAEMONS>)."
19519 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19520 msgid "B<-m dev[:mountpoint[:options]]>"
19524 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19525 msgid "B<--mount dev[:mountpoint[:options]]>"
19529 #: ../fish/guestfish.pod:308
19530 msgid "Mount the named partition or logical volume on the given mountpoint."
19534 #: ../fish/guestfish.pod:310
19535 msgid "If the mountpoint is omitted, it defaults to C</>."
19539 #: ../fish/guestfish.pod:312
19540 msgid "You have to mount something on C</> before most commands will work."
19544 #: ../fish/guestfish.pod:314
19546 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19551 #: ../fish/guestfish.pod:317
19553 "If you don't know what filesystems a disk image contains, you can either run "
19554 "guestfish without this option, then list the partitions, filesystems and LVs "
19555 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19556 "commands), or you can use the L<virt-filesystems(1)> program."
19560 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19562 "The third (and rarely used) part of the mount parameter is the list of mount "
19563 "options used to mount the underlying filesystem. If this is not given, then "
19564 "the mount options are either the empty string or C<ro> (the latter if the "
19565 "I<--ro> flag is used). By specifying the mount options, you override this "
19566 "default choice. Probably the only time you would use this is to enable ACLs "
19567 "and/or extended attributes if the filesystem can support them:"
19571 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19574 " -m /dev/sda1:/:acl,user_xattr\n"
19579 #: ../fish/guestfish.pod:333
19580 msgid "Using this flag is equivalent to using the C<mount-options> command."
19584 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19585 #: ../resize/virt-resize.pod:358
19590 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19591 msgid "B<--no-sync>"
19592 msgstr "B<--no-sync>"
19595 #: ../fish/guestfish.pod:339
19597 "Disable autosync. This is enabled by default. See the discussion of "
19598 "autosync in the L<guestfs(3)> manpage."
19602 #: ../fish/guestfish.pod:342
19607 #: ../fish/guestfish.pod:344
19608 msgid "B<--new type>"
19609 msgstr "B<--new тип>"
19612 #: ../fish/guestfish.pod:346
19614 msgstr "B<-N help>"
19617 #: ../fish/guestfish.pod:348
19619 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
19620 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19621 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
19626 #: ../fish/guestfish.pod:353
19627 msgid "B<--progress-bars>"
19628 msgstr "B<--progress-bars>"
19631 #: ../fish/guestfish.pod:355
19632 msgid "Enable progress bars, even when guestfish is used non-interactively."
19636 #: ../fish/guestfish.pod:357
19638 "Progress bars are enabled by default when guestfish is used as an "
19639 "interactive shell."
19643 #: ../fish/guestfish.pod:360
19644 msgid "B<--no-progress-bars>"
19645 msgstr "B<--no-progress-bars>"
19648 #: ../fish/guestfish.pod:362
19649 msgid "Disable progress bars."
19653 #: ../fish/guestfish.pod:364
19654 msgid "B<--remote[=pid]>"
19655 msgstr "B<--remote[=pid]>"
19658 #: ../fish/guestfish.pod:366
19660 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
19661 "CONTROL GUESTFISH OVER A SOCKET> below."
19665 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19666 #: ../rescue/virt-rescue.pod:161
19671 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19672 #: ../rescue/virt-rescue.pod:163
19677 #: ../fish/guestfish.pod:373
19679 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19680 "mounts are done read-only."
19684 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19686 "The option must always be used if the disk image or virtual machine might be "
19687 "running, and is generally recommended in cases where you don't need write "
19688 "access to the disk."
19692 #: ../fish/guestfish.pod:380
19694 "Note that prepared disk images created with I<-N> are not affected by this "
19695 "option. Also commands like C<add> are not affected - you have to specify "
19696 "the C<readonly:true> option explicitly if you need it."
19700 #: ../fish/guestfish.pod:384
19701 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19705 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19706 #: ../rescue/virt-rescue.pod:173
19707 msgid "B<--selinux>"
19708 msgstr "B<--selinux>"
19711 #: ../fish/guestfish.pod:388
19712 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
19716 #: ../fish/guestfish.pod:394
19718 "Enable very verbose messages. This is particularly useful if you find a bug."
19722 #: ../fish/guestfish.pod:401
19723 msgid "Display the guestfish / libguestfs version number and exit."
19727 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19728 #: ../rescue/virt-rescue.pod:194
19733 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19734 #: ../rescue/virt-rescue.pod:196
19739 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19741 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19742 "mounts are done read-write."
19746 #: ../fish/guestfish.pod:410
19747 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19751 #: ../fish/guestfish.pod:414
19752 msgid "Echo each command before executing it."
19756 #: ../fish/guestfish.pod:418
19757 msgid "COMMANDS ON COMMAND LINE"
19761 #: ../fish/guestfish.pod:420
19763 "Any additional (non-option) arguments are treated as commands to execute."
19767 #: ../fish/guestfish.pod:423
19769 "Commands to execute should be separated by a colon (C<:>), where the colon "
19770 "is a separate parameter. Thus:"
19774 #: ../fish/guestfish.pod:426
19777 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19782 #: ../fish/guestfish.pod:428
19784 "If there are no additional arguments, then we enter a shell, either an "
19785 "interactive shell with a prompt (if the input is a terminal) or a non-"
19786 "interactive shell."
19790 #: ../fish/guestfish.pod:432
19792 "In either command line mode or non-interactive shell, the first command that "
19793 "gives an error causes the whole shell to exit. In interactive mode (with a "
19794 "prompt) if a command fails, you can continue to enter commands."
19798 #: ../fish/guestfish.pod:437
19799 msgid "USING launch (OR run)"
19803 #: ../fish/guestfish.pod:439
19805 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19806 "then launch it, then mount any disks you need, and finally issue actions/"
19807 "commands. So the general order of the day is:"
19811 #: ../fish/guestfish.pod:447
19812 msgid "add or -a/--add"
19816 #: ../fish/guestfish.pod:451
19817 msgid "launch (aka run)"
19821 #: ../fish/guestfish.pod:455
19822 msgid "mount or -m/--mount"
19826 #: ../fish/guestfish.pod:459
19827 msgid "any other commands"
19831 #: ../fish/guestfish.pod:463
19833 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
19834 "guest before mounting or performing any other commands."
19838 #: ../fish/guestfish.pod:466
19840 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19841 "I<--new> options were given then C<run> is done automatically, simply "
19842 "because guestfish can't perform the action you asked for without doing this."
19846 #: ../fish/guestfish.pod:471
19847 msgid "OPENING DISKS FOR READ AND WRITE"
19851 #: ../fish/guestfish.pod:473
19853 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19854 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19855 "I<-i> and I<-m> open disk images read-only or for writing."
19859 #: ../fish/guestfish.pod:478
19861 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19862 "opening disk images supplied on the command line for write. To open a disk "
19863 "image read-only you have to do I<-a image --ro>."
19867 #: ../fish/guestfish.pod:482
19869 "This matters: If you accidentally open a live VM disk image writable then "
19870 "you will cause irreversible disk corruption."
19874 #: ../fish/guestfish.pod:485
19876 "In a future libguestfs we intend to change the default the other way. Disk "
19877 "images will be opened read-only. You will have to either specify "
19878 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19879 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19880 "access for disk images specified by those other command line options."
19884 #: ../fish/guestfish.pod:492
19886 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19887 "which does nothing (it is already the default). However it is highly "
19888 "recommended that you use this option to indicate that you need write access, "
19889 "and prepare your scripts for the day when this option will be required for "
19894 #: ../fish/guestfish.pod:498
19896 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19897 "other libguestfs program apart from guestfish and guestmount."
19901 #: ../fish/guestfish.pod:501
19906 #: ../fish/guestfish.pod:503
19908 "You can quote ordinary parameters using either single or double quotes. For "
19913 #: ../fish/guestfish.pod:506
19916 " add \"file with a space.img\"\n"
19921 #: ../fish/guestfish.pod:508
19924 " rm '/file name'\n"
19929 #: ../fish/guestfish.pod:510
19937 #: ../fish/guestfish.pod:512
19939 "A few commands require a list of strings to be passed. For these, use a "
19940 "whitespace-separated list, enclosed in quotes. Strings containing "
19941 "whitespace to be passed through must be enclosed in single quotes. A "
19942 "literal single quote must be escaped with a backslash."
19946 #: ../fish/guestfish.pod:517
19949 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19950 " command \"/bin/echo 'foo bar'\"\n"
19951 " command \"/bin/echo \\'foo\\'\"\n"
19956 #: ../fish/guestfish.pod:521
19957 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19961 #: ../fish/guestfish.pod:523
19963 "In double-quoted arguments (only) use backslash to insert special characters:"
19967 #: ../fish/guestfish.pod:528
19972 #: ../fish/guestfish.pod:530
19973 msgid "Alert (bell) character."
19977 #: ../fish/guestfish.pod:532
19982 #: ../fish/guestfish.pod:534
19983 msgid "Backspace character."
19987 #: ../fish/guestfish.pod:536
19992 #: ../fish/guestfish.pod:538
19993 msgid "Form feed character."
19997 #: ../fish/guestfish.pod:540
20002 #: ../fish/guestfish.pod:542
20003 msgid "Newline character."
20007 #: ../fish/guestfish.pod:544
20012 #: ../fish/guestfish.pod:546
20013 msgid "Carriage return character."
20017 #: ../fish/guestfish.pod:548
20022 #: ../fish/guestfish.pod:550
20023 msgid "Horizontal tab character."
20027 #: ../fish/guestfish.pod:552
20032 #: ../fish/guestfish.pod:554
20033 msgid "Vertical tab character."
20037 #: ../fish/guestfish.pod:556
20042 #: ../fish/guestfish.pod:558
20043 msgid "A literal double quote character."
20047 #: ../fish/guestfish.pod:560
20052 #: ../fish/guestfish.pod:562
20054 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
20059 #: ../fish/guestfish.pod:565
20064 #: ../fish/guestfish.pod:567
20066 "A character with hex value I<hh>. There must be precisely 2 hex digits."
20070 #: ../fish/guestfish.pod:570
20072 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
20077 #: ../fish/guestfish.pod:573
20082 #: ../fish/guestfish.pod:575
20083 msgid "A literal backslash character."
20087 #: ../fish/guestfish.pod:579
20088 msgid "OPTIONAL ARGUMENTS"
20092 #: ../fish/guestfish.pod:581
20094 "Some commands take optional arguments. These arguments appear in this "
20095 "documentation as C<[argname:..]>. You can use them as in these examples:"
20099 #: ../fish/guestfish.pod:585
20102 " add-drive-opts filename\n"
20107 #: ../fish/guestfish.pod:587
20110 " add-drive-opts filename readonly:true\n"
20115 #: ../fish/guestfish.pod:589
20118 " add-drive-opts filename format:qcow2 readonly:false\n"
20123 #: ../fish/guestfish.pod:591
20125 "Each optional argument can appear at most once. All optional arguments must "
20126 "appear after the required ones."
20130 #: ../fish/guestfish.pod:594
20135 #: ../fish/guestfish.pod:596
20137 "This section applies to all commands which can take integers as parameters."
20141 #: ../fish/guestfish.pod:599
20142 msgid "SIZE SUFFIX"
20146 #: ../fish/guestfish.pod:601
20148 "When the command takes a parameter measured in bytes, you can use one of the "
20149 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20153 #: ../fish/guestfish.pod:607
20154 msgid "B<k> or B<K> or B<KiB>"
20155 msgstr "B<k>, B<K> або B<KiB>"
20158 #: ../fish/guestfish.pod:609
20159 msgid "The size in kilobytes (multiplied by 1024)."
20163 #: ../fish/guestfish.pod:611
20168 #: ../fish/guestfish.pod:613
20169 msgid "The size in SI 1000 byte units."
20173 #: ../fish/guestfish.pod:615
20174 msgid "B<M> or B<MiB>"
20175 msgstr "B<M> або B<MiB>"
20178 #: ../fish/guestfish.pod:617
20179 msgid "The size in megabytes (multiplied by 1048576)."
20183 #: ../fish/guestfish.pod:619
20188 #: ../fish/guestfish.pod:621
20189 msgid "The size in SI 1000000 byte units."
20193 #: ../fish/guestfish.pod:623
20194 msgid "B<G> or B<GiB>"
20195 msgstr "B<G> або B<GiB>"
20198 #: ../fish/guestfish.pod:625
20199 msgid "The size in gigabytes (multiplied by 2**30)."
20200 msgstr "Розмір у гігабайтах (з множником 2**30)."
20203 #: ../fish/guestfish.pod:627
20208 #: ../fish/guestfish.pod:629
20209 msgid "The size in SI 10**9 byte units."
20210 msgstr "Розмір у одиницях СІ: 10**9 байтів."
20213 #: ../fish/guestfish.pod:631
20214 msgid "B<T> or B<TiB>"
20215 msgstr "B<T> або B<TiB>"
20218 #: ../fish/guestfish.pod:633
20219 msgid "The size in terabytes (multiplied by 2**40)."
20220 msgstr "Розмір у терабайтах (з множником 2**40)."
20223 #: ../fish/guestfish.pod:635
20228 #: ../fish/guestfish.pod:637
20229 msgid "The size in SI 10**12 byte units."
20233 #: ../fish/guestfish.pod:639
20234 msgid "B<P> or B<PiB>"
20235 msgstr "B<P> або B<PiB>"
20238 #: ../fish/guestfish.pod:641
20239 msgid "The size in petabytes (multiplied by 2**50)."
20243 #: ../fish/guestfish.pod:643
20248 #: ../fish/guestfish.pod:645
20249 msgid "The size in SI 10**15 byte units."
20253 #: ../fish/guestfish.pod:647
20254 msgid "B<E> or B<EiB>"
20255 msgstr "B<E> або B<EiB>"
20258 #: ../fish/guestfish.pod:649
20259 msgid "The size in exabytes (multiplied by 2**60)."
20263 #: ../fish/guestfish.pod:651
20268 #: ../fish/guestfish.pod:653
20269 msgid "The size in SI 10**18 byte units."
20273 #: ../fish/guestfish.pod:655
20274 msgid "B<Z> or B<ZiB>"
20275 msgstr "B<Z> або B<ZiB>"
20278 #: ../fish/guestfish.pod:657
20279 msgid "The size in zettabytes (multiplied by 2**70)."
20283 #: ../fish/guestfish.pod:659
20288 #: ../fish/guestfish.pod:661
20289 msgid "The size in SI 10**21 byte units."
20293 #: ../fish/guestfish.pod:663
20294 msgid "B<Y> or B<YiB>"
20295 msgstr "B<Y> або B<YiB>"
20298 #: ../fish/guestfish.pod:665
20299 msgid "The size in yottabytes (multiplied by 2**80)."
20303 #: ../fish/guestfish.pod:667
20308 #: ../fish/guestfish.pod:669
20309 msgid "The size in SI 10**24 byte units."
20313 #: ../fish/guestfish.pod:675
20316 " truncate-size /file 1G\n"
20321 #: ../fish/guestfish.pod:677
20322 msgid "would truncate the file to 1 gigabyte."
20326 #: ../fish/guestfish.pod:679
20328 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20329 "the parameter to L</memsize> is specified in megabytes already). Adding a "
20330 "suffix will probably not do what you expect."
20334 #: ../fish/guestfish.pod:683
20335 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20339 #: ../fish/guestfish.pod:685
20341 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20342 "octal number or C<0x> to prefix a hexadecimal number. For example:"
20346 #: ../fish/guestfish.pod:688
20349 " 1234 decimal number 1234\n"
20350 " 02322 octal number, equivalent to decimal 1234\n"
20351 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
20356 #: ../fish/guestfish.pod:692
20358 "When using the C<chmod> command, you almost always want to specify an octal "
20359 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20360 "L<chmod(1)> program):"
20364 #: ../fish/guestfish.pod:696
20367 " chmod 0777 /public # OK\n"
20368 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
20373 #: ../fish/guestfish.pod:699
20375 "Commands that return numbers usually print them in decimal, but some "
20376 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20377 "octal, preceeded by C<0>)."
20381 #: ../fish/guestfish.pod:703
20382 msgid "WILDCARDS AND GLOBBING"
20386 #: ../fish/guestfish.pod:705
20388 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20389 "(globbing) by default. So for example the following will not do what you "
20394 #: ../fish/guestfish.pod:709
20402 #: ../fish/guestfish.pod:711
20404 "Assuming you don't have a directory called literally C</home/*> then the "
20405 "above command will return an error."
20409 #: ../fish/guestfish.pod:714
20410 msgid "To perform wildcard expansion, use the C<glob> command."
20414 #: ../fish/guestfish.pod:716
20417 " glob rm-rf /home/*\n"
20422 #: ../fish/guestfish.pod:718
20424 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20425 "many times), equivalent to:"
20429 #: ../fish/guestfish.pod:721
20432 " rm-rf /home/jim\n"
20433 " rm-rf /home/joe\n"
20434 " rm-rf /home/mary\n"
20439 #: ../fish/guestfish.pod:725
20440 msgid "C<glob> only works on simple guest paths and not on device names."
20444 #: ../fish/guestfish.pod:727
20446 "If you have several parameters, each containing a wildcard, then glob will "
20447 "perform a Cartesian product."
20451 #: ../fish/guestfish.pod:730
20456 #: ../fish/guestfish.pod:732
20458 "Any line which starts with a I<#> character is treated as a comment and "
20459 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
20460 "a command. For example:"
20464 #: ../fish/guestfish.pod:736
20467 " # this is a comment\n"
20468 " # this is a comment\n"
20469 " foo # NOT a comment\n"
20474 #: ../fish/guestfish.pod:740
20475 msgid "Blank lines are also ignored."
20479 #: ../fish/guestfish.pod:742
20480 msgid "RUNNING COMMANDS LOCALLY"
20484 #: ../fish/guestfish.pod:744
20486 "Any line which starts with a I<!> character is treated as a command sent to "
20487 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
20491 #: ../fish/guestfish.pod:748
20495 " tgz-out /remote local/remote-data.tar.gz\n"
20500 #: ../fish/guestfish.pod:751
20502 "will create a directory C<local> on the host, and then export the contents "
20503 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
20504 "(See C<tgz-out>)."
20508 #: ../fish/guestfish.pod:755
20510 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
20511 "effect, due to the way that subprocesses work in Unix."
20515 #: ../fish/guestfish.pod:758
20516 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20520 #: ../fish/guestfish.pod:760
20522 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20523 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20524 "and executed as guestfish commands."
20528 #: ../fish/guestfish.pod:764
20530 "Thus you can use shell script to construct arbitrary guestfish commands "
20531 "which are then parsed by guestfish."
20535 #: ../fish/guestfish.pod:767
20537 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20538 "through C</foo.100>) using guestfish commands alone. However this is simple "
20539 "if we use a shell script to create the guestfish commands for us:"
20543 #: ../fish/guestfish.pod:772
20546 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20551 #: ../fish/guestfish.pod:774
20552 msgid "or with names like C</foo.001>:"
20556 #: ../fish/guestfish.pod:776
20559 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20564 #: ../fish/guestfish.pod:778
20566 "When using guestfish interactively it can be helpful to just run the shell "
20567 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20568 "ordinary I<!> local command), see what guestfish commands it would run, and "
20569 "when you are happy with those prepend the C<E<lt>> character to run the "
20570 "guestfish commands for real."
20574 #: ../fish/guestfish.pod:784
20579 #: ../fish/guestfish.pod:786
20581 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20582 "command (a guestfish command) to the second command (any host command). For "
20587 #: ../fish/guestfish.pod:790
20590 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20595 #: ../fish/guestfish.pod:792
20597 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20598 "program). The above command would list all accounts in the guest filesystem "
20599 "which have UID 0, ie. root accounts including backdoors. Other examples:"
20603 #: ../fish/guestfish.pod:797
20606 " hexdump /bin/ls | head\n"
20607 " list-devices | tail -1\n"
20608 " tgz-out / - | tar ztf -\n"
20613 #: ../fish/guestfish.pod:801
20615 "The space before the pipe symbol is required, any space after the pipe "
20616 "symbol is optional. Everything after the pipe symbol is just passed "
20617 "straight to the host shell, so it can contain redirections, globs and "
20618 "anything else that makes sense on the host side."
20622 #: ../fish/guestfish.pod:806
20624 "To use a literal argument which begins with a pipe symbol, you have to quote "
20629 #: ../fish/guestfish.pod:809
20637 #: ../fish/guestfish.pod:811
20638 msgid "HOME DIRECTORIES"
20642 #: ../fish/guestfish.pod:813
20644 "If a parameter starts with the character C<~> then the tilde may be expanded "
20645 "as a home directory path (either C<~> for the current user's home directory, "
20646 "or C<~user> for another user)."
20650 #: ../fish/guestfish.pod:817
20652 "Note that home directory expansion happens for users known I<on the host>, "
20653 "not in the guest filesystem."
20657 #: ../fish/guestfish.pod:820
20659 "To use a literal argument which begins with a tilde, you have to quote it, "
20664 #: ../fish/guestfish.pod:823
20672 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
20673 msgid "ENCRYPTED DISKS"
20674 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20677 #: ../fish/guestfish.pod:827
20679 "Libguestfs has some support for Linux guests encrypted according to the "
20680 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20681 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
20682 "LUKS is supported."
20686 #: ../fish/guestfish.pod:832
20687 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20691 #: ../fish/guestfish.pod:834
20694 " ><fs> vfs-type /dev/sda2\n"
20700 #: ../fish/guestfish.pod:837
20702 "Then open those devices using L</luks-open>. This creates a device-mapper "
20703 "device called C</dev/mapper/luksdev>."
20707 #: ../fish/guestfish.pod:840
20710 " ><fs> luks-open /dev/sda2 luksdev\n"
20711 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20716 #: ../fish/guestfish.pod:843
20718 "Finally you have to tell LVM to scan for volume groups on the newly created "
20723 #: ../fish/guestfish.pod:846
20727 " vg-activate-all true\n"
20732 #: ../fish/guestfish.pod:849
20733 msgid "The logical volume(s) can now be mounted in the usual way."
20737 #: ../fish/guestfish.pod:851
20739 "Before closing a LUKS device you must unmount any logical volumes on it and "
20740 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20741 "one. Then you can close the mapper device:"
20745 #: ../fish/guestfish.pod:855
20748 " vg-activate false /dev/VG\n"
20749 " luks-close /dev/mapper/luksdev\n"
20754 #: ../fish/guestfish.pod:860
20756 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20757 "letters and paths (with some limitations). The following commands are "
20762 #: ../fish/guestfish.pod:864
20765 " file /WINDOWS/system32/config/system.LOG\n"
20770 #: ../fish/guestfish.pod:866
20773 " file win:\\windows\\system32\\config\\system.log\n"
20778 #: ../fish/guestfish.pod:868
20781 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20786 #: ../fish/guestfish.pod:870
20788 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20789 "where the drive is mounted, prepending that to the path, changing all "
20790 "backslash characters to forward slash, then resolving the result using L</"
20791 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
20792 "the parameter might be rewritten like this:"
20796 #: ../fish/guestfish.pod:876
20799 " win:e:\\foo\\bar => /e/FOO/bar\n"
20804 #: ../fish/guestfish.pod:878
20805 msgid "This only works in argument positions that expect a path."
20809 #: ../fish/guestfish.pod:880
20810 msgid "UPLOADING AND DOWNLOADING FILES"
20814 #: ../fish/guestfish.pod:882
20816 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20817 "others which upload from or download to a local file, you can use the "
20818 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
20822 #: ../fish/guestfish.pod:886
20830 #: ../fish/guestfish.pod:888
20832 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20836 #: ../fish/guestfish.pod:891
20839 " tar-out /etc - | tar tf -\n"
20844 #: ../fish/guestfish.pod:893
20846 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20847 "command (see L</PIPES>)."
20851 #: ../fish/guestfish.pod:896
20853 "When using C<-> to read from stdin, the input is read up to the end of "
20854 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
20855 "some arbitrary end marker:"
20859 #: ../fish/guestfish.pod:900
20862 " upload -<<END /foo\n"
20871 #: ../fish/guestfish.pod:906
20873 "Any string of characters can be used instead of C<END>. The end marker must "
20874 "appear on a line of its own, without any preceeding or following characters "
20875 "(not even spaces)."
20879 #: ../fish/guestfish.pod:910
20881 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20882 "upload local files (so-called \"FileIn\" parameters in the generator)."
20886 #: ../fish/guestfish.pod:913
20887 msgid "EXIT ON ERROR BEHAVIOUR"
20891 #: ../fish/guestfish.pod:915
20893 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20894 "taking commands from a human over a tty), and will exit on the first error "
20895 "in non-interactive mode (scripts, commands given on the command line)."
20899 #: ../fish/guestfish.pod:920
20901 "If you prefix a command with a I<-> character, then that command will not "
20902 "cause guestfish to exit, even if that (one) command returns an error."
20906 #: ../fish/guestfish.pod:924
20907 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20911 #: ../fish/guestfish.pod:926
20913 "Guestfish can be remote-controlled over a socket. This is useful "
20914 "particularly in shell scripts where you want to make several different "
20915 "changes to a filesystem, but you don't want the overhead of starting up a "
20916 "guestfish process each time."
20920 #: ../fish/guestfish.pod:931
20921 msgid "Start a guestfish server process using:"
20925 #: ../fish/guestfish.pod:933
20928 " eval \"`guestfish --listen`\"\n"
20933 #: ../fish/guestfish.pod:935
20934 msgid "and then send it commands by doing:"
20938 #: ../fish/guestfish.pod:937
20941 " guestfish --remote cmd [...]\n"
20946 #: ../fish/guestfish.pod:939
20947 msgid "To cause the server to exit, send it the exit command:"
20951 #: ../fish/guestfish.pod:943
20953 "Note that the server will normally exit if there is an error in a command. "
20954 "You can change this in the usual way. See section L</EXIT ON ERROR "
20959 #: ../fish/guestfish.pod:947
20960 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20964 #: ../fish/guestfish.pod:949
20966 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20967 "is how the I<--remote> option knows where to send the commands. You can "
20968 "have several guestfish listener processes running using:"
20972 #: ../fish/guestfish.pod:953
20975 " eval \"`guestfish --listen`\"\n"
20976 " pid1=$GUESTFISH_PID\n"
20977 " eval \"`guestfish --listen`\"\n"
20978 " pid2=$GUESTFISH_PID\n"
20980 " guestfish --remote=$pid1 cmd\n"
20981 " guestfish --remote=$pid2 cmd\n"
20986 #: ../fish/guestfish.pod:961
20987 msgid "REMOTE CONTROL AND CSH"
20991 #: ../fish/guestfish.pod:963
20993 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20998 #: ../fish/guestfish.pod:966
21001 " eval \"`guestfish --listen --csh`\"\n"
21006 #: ../fish/guestfish.pod:968
21007 msgid "REMOTE CONTROL DETAILS"
21011 #: ../fish/guestfish.pod:970
21013 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21014 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21015 "and C<$PID> is the process ID of the server."
21019 #: ../fish/guestfish.pod:974
21020 msgid "Guestfish client and server versions must match exactly."
21024 #: ../fish/guestfish.pod:976
21025 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
21029 #: ../fish/guestfish.pod:978
21031 "From Bash, you can use the following code which creates a guestfish "
21032 "instance, correctly quotes the command line, handles failure to start, and "
21033 "cleans up guestfish when the script exits:"
21037 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
21040 #| " #!/usr/bin/guestfish -f\n"
21046 " #!/usr/bin/guestfish -f\n"
21050 #: ../fish/guestfish.pod:986
21053 " guestfish[0]=\"guestfish\"\n"
21054 " guestfish[1]=\"--listen\"\n"
21055 " guestfish[2]=\"--ro\"\n"
21056 " guestfish[3]=\"-a\"\n"
21057 " guestfish[4]=\"disk.img\"\n"
21062 #: ../fish/guestfish.pod:992
21065 " GUESTFISH_PID=\n"
21066 " eval $(\"${guestfish[@]}\")\n"
21067 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
21068 " echo \"error: guestfish didn't start up, see error messages above\"\n"
21075 #: ../fish/guestfish.pod:999
21078 " cleanup_guestfish ()\n"
21080 " guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
21082 " trap cleanup_guestfish EXIT ERR\n"
21087 #: ../fish/guestfish.pod:1005
21090 #| " guestfish --ro -d myguest -i\n"
21093 " guestfish --remote -- run\n"
21096 " guestfish --ro -d myguest -i\n"
21100 #: ../fish/guestfish.pod:1007
21108 #: ../fish/guestfish.pod:1009
21109 msgid "REMOTE CONTROL RUN COMMAND HANGING"
21113 #: ../fish/guestfish.pod:1011
21115 "Using the C<run> (or C<launch>) command remotely in a command substitution "
21116 "context hangs, ie. don't do (note the backquotes):"
21120 #: ../fish/guestfish.pod:1014
21123 #| " guestfish --ro -d myguest -i\n"
21126 " a=`guestfish --remote run`\n"
21129 " guestfish --ro -d myguest -i\n"
21133 #: ../fish/guestfish.pod:1016
21135 "Since the C<run> command produces no output on stdout, this is not useful "
21136 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
21141 #: ../fish/guestfish.pod:1020
21142 msgid "PREPARED DISK IMAGES"
21146 #: ../fish/guestfish.pod:1022
21148 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21149 "preformatted disk images that guestfish can make for you to save typing. "
21150 "This is particularly useful for testing purposes. This option is used "
21151 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21152 "can be mixed with I<-a>)."
21156 #: ../fish/guestfish.pod:1028
21158 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21159 "the second and so on. Existing files in the current directory are "
21164 #: ../fish/guestfish.pod:1032
21166 "The type briefly describes how the disk should be sized, partitioned, how "
21167 "filesystem(s) should be created, and how content should be added. "
21168 "Optionally the type can be followed by extra parameters, separated by C<:> "
21169 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
21170 "allocated disk, containing a single partition, with the partition formatted "
21171 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21176 #: ../fish/guestfish.pod:1040
21177 msgid "To list the available types and any extra parameters they take, run:"
21181 #: ../fish/guestfish.pod:1044
21183 "Note that the prepared filesystem is not mounted. You would usually have to "
21184 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21188 #: ../fish/guestfish.pod:1048
21190 "If any I<-N> or I<--new> options are given, the guest is automatically "
21195 #: ../fish/guestfish.pod:1053
21196 msgid "Create a 100MB disk with an ext4-formatted partition:"
21200 #: ../fish/guestfish.pod:1055
21203 " guestfish -N fs:ext4\n"
21208 #: ../fish/guestfish.pod:1057
21209 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21213 #: ../fish/guestfish.pod:1059
21216 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21221 #: ../fish/guestfish.pod:1061
21222 msgid "Create a blank 200MB disk:"
21226 #: ../fish/guestfish.pod:1063
21229 " guestfish -N disk:200M\n"
21234 #: ../fish/guestfish.pod:1065
21235 msgid "PROGRESS BARS"
21239 #: ../fish/guestfish.pod:1067
21241 "Some (not all) long-running commands send progress notification messages as "
21242 "they are running. Guestfish turns these messages into progress bars."
21246 #: ../fish/guestfish.pod:1071
21248 "When a command that supports progress bars takes longer than two seconds to "
21249 "run, and if progress bars are enabled, then you will see one appearing below "
21254 #: ../fish/guestfish.pod:1075
21257 " ><fs> copy-size /large-file /another-file 2048M\n"
21258 " / 10% [#####-----------------------------------------] 00:30\n"
21263 #: ../fish/guestfish.pod:1078
21265 "The spinner on the left hand side moves round once for every progress "
21266 "notification received from the backend. This is a (reasonably) golden "
21267 "assurance that the command is \"doing something\" even if the progress bar "
21268 "is not moving, because the command is able to send the progress "
21269 "notifications. When the bar reaches 100% and the command finishes, the "
21270 "spinner disappears."
21274 #: ../fish/guestfish.pod:1085
21276 "Progress bars are enabled by default when guestfish is used interactively. "
21277 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21278 "and you can disable them completely using I<--no-progress-bars>."
21282 #: ../fish/guestfish.pod:1090
21283 msgid "GUESTFISH COMMANDS"
21287 #: ../fish/guestfish.pod:1092
21289 "The commands in this section are guestfish convenience commands, in other "
21290 "words, they are not part of the L<guestfs(3)> API."
21294 #: ../fish/guestfish.pod:1095
21299 #: ../fish/guestfish.pod:1097
21311 #: ../fish/guestfish.pod:1100
21312 msgid "Without any parameter, this provides general help."
21313 msgstr "Без параметра показує загальну довідкову інформацію."
21316 #: ../fish/guestfish.pod:1102
21317 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21321 #: ../fish/guestfish.pod:1104
21322 msgid "quit | exit"
21326 #: ../fish/guestfish.pod:1106
21327 msgid "This exits guestfish. You can also use C<^D> key."
21331 #: ../fish/guestfish.pod:1108
21332 msgid "@FISH_COMMANDS@"
21336 #: ../fish/guestfish.pod:1110
21341 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1505
21346 #: ../fish/guestfish.pod:1116
21348 "guestfish returns 0 if the commands completed without error, or 1 if there "
21353 #: ../fish/guestfish.pod:1123
21358 #: ../fish/guestfish.pod:1125
21360 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
21365 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3198
21366 msgid "FEBOOTSTRAP_KERNEL"
21370 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3200
21371 msgid "FEBOOTSTRAP_MODULES"
21375 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3202
21377 "These two environment variables allow the kernel that libguestfs uses in the "
21378 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21379 "most recent host kernel is chosen. For more information about kernel "
21380 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
21381 "available in febootstrap E<ge> 3.8."
21385 #: ../fish/guestfish.pod:1138
21386 msgid "GUESTFISH_DISPLAY_IMAGE"
21390 #: ../fish/guestfish.pod:1140
21392 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
21393 "If not set, it uses L<display(1)>."
21397 #: ../fish/guestfish.pod:1143
21398 msgid "GUESTFISH_PID"
21402 #: ../fish/guestfish.pod:1145
21404 "Used with the I<--remote> option to specify the remote guestfish process to "
21405 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21409 #: ../fish/guestfish.pod:1149
21414 #: ../fish/guestfish.pod:1151
21416 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
21417 "not specified, the external L<hexedit(1)> program is used."
21421 #: ../fish/guestfish.pod:1155
21426 #: ../fish/guestfish.pod:1157
21428 "If compiled with GNU readline support, various files in the home directory "
21429 "can be used. See L</FILES>."
21433 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3208
21434 msgid "LIBGUESTFS_APPEND"
21438 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3210
21439 msgid "Pass additional options to the guest kernel."
21443 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3212
21444 msgid "LIBGUESTFS_DEBUG"
21445 msgstr "LIBGUESTFS_DEBUG"
21448 #: ../fish/guestfish.pod:1166
21450 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
21451 "effect as using the B<-v> option."
21455 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3217
21456 msgid "LIBGUESTFS_MEMSIZE"
21457 msgstr "LIBGUESTFS_MEMSIZE"
21460 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3219
21462 "Set the memory allocated to the qemu process, in megabytes. For example:"
21466 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3222
21469 " LIBGUESTFS_MEMSIZE=700\n"
21472 " LIBGUESTFS_MEMSIZE=700\n"
21476 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3224
21477 msgid "LIBGUESTFS_PATH"
21481 #: ../fish/guestfish.pod:1178
21483 "Set the path that guestfish uses to search for kernel and initrd.img. See "
21484 "the discussion of paths in L<guestfs(3)>."
21488 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3229
21489 msgid "LIBGUESTFS_QEMU"
21493 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3231
21495 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
21496 "which was found at compile time by the configure script is used."
21500 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3237
21501 msgid "LIBGUESTFS_TRACE"
21505 #: ../fish/guestfish.pod:1189
21506 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21510 #: ../fish/guestfish.pod:1191
21512 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21515 #: ../fish/guestfish.pod:1193
21517 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
21522 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21523 #: ../src/guestfs.pod:3242
21528 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3244
21530 "Location of temporary directory, defaults to C</tmp> except for the cached "
21531 "supermin appliance which defaults to C</var/tmp>."
21535 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3247
21537 "If libguestfs was compiled to use the supermin appliance then the real "
21538 "appliance is cached in this directory, shared between all handles belonging "
21539 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
21540 "use in case C</var/tmp> is not large enough."
21544 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21545 #: ../rescue/virt-rescue.pod:273
21550 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21551 #: ../rescue/virt-rescue.pod:277
21552 msgid "$HOME/.libguestfs-tools.rc"
21556 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21557 #: ../rescue/virt-rescue.pod:279
21558 msgid "/etc/libguestfs-tools.conf"
21562 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21563 #: ../rescue/virt-rescue.pod:281
21565 "This configuration file controls the default read-only or read-write mode "
21566 "(I<--ro> or I<--rw>)."
21570 #: ../fish/guestfish.pod:1220
21571 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21575 #: ../fish/guestfish.pod:1222
21576 msgid "$HOME/.guestfish"
21580 #: ../fish/guestfish.pod:1224
21582 "If compiled with GNU readline support, then the command history is saved in "
21587 #: ../fish/guestfish.pod:1227
21588 msgid "$HOME/.inputrc"
21592 #: ../fish/guestfish.pod:1229
21593 msgid "/etc/inputrc"
21597 #: ../fish/guestfish.pod:1231
21599 "If compiled with GNU readline support, then these files can be used to "
21600 "configure readline. For further information, please see L<readline(3)/"
21601 "INITIALIZATION FILE>."
21605 #: ../fish/guestfish.pod:1235
21606 msgid "To write rules which only apply to guestfish, use:"
21610 #: ../fish/guestfish.pod:1237
21620 #: ../fish/guestfish.pod:1241
21622 "Variables that you can set in inputrc that change the behaviour of guestfish "
21623 "in useful ways include:"
21627 #: ../fish/guestfish.pod:1246
21628 msgid "completion-ignore-case (default: on)"
21632 #: ../fish/guestfish.pod:1248
21634 "By default, guestfish will ignore case when tab-completing paths on the "
21639 #: ../fish/guestfish.pod:1251
21642 " set completion-ignore-case off\n"
21647 #: ../fish/guestfish.pod:1253
21648 msgid "to make guestfish case sensitive."
21652 #: ../fish/guestfish.pod:1257
21657 #: ../fish/guestfish.pod:1259
21658 msgid "test2.img (etc)"
21662 #: ../fish/guestfish.pod:1261
21664 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21665 "will be created in the file C<test1.img> in the current directory. The "
21666 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
21667 "the same name will be overwritten."
21671 #: ../fish/guestfish.pod:1270
21673 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21674 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21675 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21676 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21677 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21678 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21679 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21683 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3339
21684 #: ../test-tool/libguestfs-test-tool.pod:112
21685 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
21689 #: ../fish/virt-copy-in.pod:5
21691 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21695 #: ../fish/virt-copy-in.pod:9
21698 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21703 #: ../fish/virt-copy-in.pod:11
21706 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21711 #: ../fish/virt-copy-in.pod:15
21713 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21714 "causing disk corruption. The virtual machine must be shut down before you "
21715 "use this command."
21719 #: ../fish/virt-copy-in.pod:21
21721 "C<virt-copy-in> copies files and directories from the local disk into a "
21722 "virtual machine disk image or named libvirt domain."
21726 #: ../fish/virt-copy-in.pod:24
21728 "You can give one of more filenames and directories on the command line. "
21729 "Directories are copied in recursively. The final parameter must be the "
21730 "destination directory in the disk image which must be an absolute path "
21731 "starting with a C</> character."
21735 #: ../fish/virt-copy-in.pod:33
21738 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21743 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21744 msgid "Upload a home directory to a guest:"
21748 #: ../fish/virt-copy-in.pod:37
21751 " virt-copy-in -d MyGuest skel /home\n"
21756 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21757 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21758 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21762 #: ../fish/virt-copy-in.pod:41
21764 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21765 "> C<copy-in> command. For anything more complex than a trivial copy, you "
21766 "are probably better off using guestfish directly."
21770 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21771 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21773 "Since the shell script just passes options straight to guestfish, read "
21774 "L<guestfish(1)> to see the full list of options."
21778 #: ../fish/virt-copy-in.pod:52
21781 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
21782 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
21783 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
21784 #| "libguestfs.org/>."
21786 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21787 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21789 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
21790 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
21791 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
21795 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21796 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21798 #| msgid "Copyright (C) 2009 Red Hat Inc."
21799 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21800 msgstr "© Red Hat Inc., 2009"
21803 #: ../fish/virt-copy-out.pod:5
21805 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21810 #: ../fish/virt-copy-out.pod:9
21813 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21818 #: ../fish/virt-copy-out.pod:11
21821 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21826 #: ../fish/virt-copy-out.pod:15
21828 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21829 "image or named libvirt domain."
21833 #: ../fish/virt-copy-out.pod:18
21835 "You can give one of more filenames and directories on the command line. "
21836 "Directories are copied out recursively."
21840 #: ../fish/virt-copy-out.pod:23
21841 msgid "Download the home directories from a virtual machine:"
21845 #: ../fish/virt-copy-out.pod:25
21849 " virt-copy-out -d MyGuest /home homes\n"
21854 #: ../fish/virt-copy-out.pod:30
21856 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21857 "> C<copy-out> command. For anything more complex than a trivial copy, you "
21858 "are probably better off using guestfish directly."
21862 #: ../fish/virt-copy-out.pod:41
21865 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
21866 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
21867 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
21868 #| "libguestfs.org/>."
21870 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21871 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21873 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
21874 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
21875 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
21879 #: ../fish/virt-tar-in.pod:5
21880 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21884 #: ../fish/virt-tar-in.pod:9
21887 " virt-tar-in -a disk.img data.tar /destination\n"
21892 #: ../fish/virt-tar-in.pod:11
21895 " virt-tar-in -d domain data.tar /destination\n"
21900 #: ../fish/virt-tar-in.pod:13
21903 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21908 #: ../fish/virt-tar-in.pod:17
21910 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21911 "causing disk corruption. The virtual machine must be shut down before you "
21912 "use this command."
21916 #: ../fish/virt-tar-in.pod:23
21918 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21919 "image or named libvirt domain."
21923 #: ../fish/virt-tar-in.pod:26
21925 "The first parameter is the tar file. Use C<-> to read the tar file from "
21926 "standard input. The second parameter is the absolute target directory to "
21931 #: ../fish/virt-tar-in.pod:34
21934 " virt-tar-in -d MyGuest homes.tar /home\n"
21939 #: ../fish/virt-tar-in.pod:38
21941 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21942 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
21943 "probably better off using guestfish directly."
21947 #: ../fish/virt-tar-in.pod:49
21950 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
21951 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
21952 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
21953 #| "libguestfs.org/>."
21955 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21956 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21959 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
21960 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
21961 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
21965 #: ../fish/virt-tar-out.pod:5
21967 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21971 #: ../fish/virt-tar-out.pod:9
21974 " virt-tar-out -a disk.img /dir files.tar\n"
21979 #: ../fish/virt-tar-out.pod:11
21982 " virt-tar-out -d domain /dir files.tar\n"
21987 #: ../fish/virt-tar-out.pod:13
21990 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21995 #: ../fish/virt-tar-out.pod:17
21997 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
22001 #: ../fish/virt-tar-out.pod:20
22003 "The first parameter is the absolute path of the virtual machine directory. "
22004 "The second parameter is the tar file to write. Use C<-> to write to "
22009 #: ../fish/virt-tar-out.pod:26
22010 msgid "Download the home directories from a guest:"
22014 #: ../fish/virt-tar-out.pod:28
22017 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
22022 #: ../fish/virt-tar-out.pod:32
22024 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22025 "> C<tar-out> command. For anything more complex than a trivial copy, you "
22026 "are probably better off using guestfish directly."
22030 #: ../fish/virt-tar-out.pod:43
22033 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
22034 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
22035 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
22036 #| "libguestfs.org/>."
22038 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22039 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
22041 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
22042 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
22043 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
22047 #: ../fuse/guestmount.pod:5
22049 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22053 #: ../fuse/guestmount.pod:9
22056 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22061 #: ../fuse/guestmount.pod:11
22064 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
22069 #: ../fuse/guestmount.pod:13
22072 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
22077 #: ../fuse/guestmount.pod:17
22079 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22080 "machines. If you do this, you risk disk corruption in the VM."
22084 #: ../fuse/guestmount.pod:22
22086 "The guestmount program can be used to mount virtual machine filesystems and "
22087 "other disk images on the host. It uses libguestfs for access to the guest "
22088 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22089 "a mountable device."
22093 #: ../fuse/guestmount.pod:27
22095 "Along with other options, you have to give at least one device (I<-a> "
22096 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
22097 "option) or use the I<-i> inspection option. How this works is better "
22098 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
22103 #: ../fuse/guestmount.pod:33
22105 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
22106 "by you, and the filesystem will not be visible to any other users unless you "
22107 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
22108 "the filesystem, use the C<fusermount -u> command."
22112 #: ../fuse/guestmount.pod:41
22114 "For a typical Windows guest which has its main filesystem on the first "
22119 #: ../fuse/guestmount.pod:44
22122 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22127 #: ../fuse/guestmount.pod:46
22129 "For a typical Linux guest which has a /boot filesystem on the first "
22130 "partition, and the root filesystem on a logical volume:"
22134 #: ../fuse/guestmount.pod:49
22137 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22142 #: ../fuse/guestmount.pod:51
22143 msgid "To get libguestfs to detect guest mountpoints for you:"
22147 #: ../fuse/guestmount.pod:53
22150 " guestmount -a guest.img -i --ro /mnt\n"
22155 #: ../fuse/guestmount.pod:55
22156 msgid "For a libvirt guest called \"Guest\" you could do:"
22160 #: ../fuse/guestmount.pod:57
22163 " guestmount -d Guest -i --ro /mnt\n"
22168 #: ../fuse/guestmount.pod:59
22170 "If you don't know what filesystems are contained in a guest or disk image, "
22171 "use L<virt-filesystems(1)> first:"
22175 #: ../fuse/guestmount.pod:62
22178 " virt-filesystems MyGuest\n"
22183 #: ../fuse/guestmount.pod:64
22185 "If you want to trace the libguestfs calls but without excessive debugging "
22186 "information, we recommend:"
22190 #: ../fuse/guestmount.pod:67
22193 " guestmount [...] --trace /mnt\n"
22198 #: ../fuse/guestmount.pod:69
22199 msgid "If you want to debug the program, we recommend:"
22203 #: ../fuse/guestmount.pod:71
22206 " guestmount [...] --trace --verbose /mnt\n"
22211 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
22212 #: ../resize/virt-resize.pod:544
22217 #: ../fuse/guestmount.pod:75
22218 msgid "Other users cannot see the filesystem by default"
22222 #: ../fuse/guestmount.pod:77
22224 "If you mount a filesystem as one user (eg. root), then other users will not "
22225 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
22226 "option when mounting:"
22230 #: ../fuse/guestmount.pod:81
22233 " sudo guestmount [...] -o allow_other /mnt\n"
22238 #: ../fuse/guestmount.pod:83
22239 msgid "Enabling FUSE"
22243 #: ../fuse/guestmount.pod:85
22245 "On some distros, you may need to add yourself to a special group (eg. "
22246 "C<fuse>) before you can use any FUSE filesystem. This is necessary on "
22247 "Debian and derivatives."
22251 #: ../fuse/guestmount.pod:89
22253 "On other distros, no special group is required. It is not necessary on "
22254 "Fedora or Red Hat Enterprise Linux."
22258 #: ../fuse/guestmount.pod:100
22259 msgid "Add a block device or virtual machine image."
22263 #: ../fuse/guestmount.pod:123
22264 msgid "B<--dir-cache-timeout N>"
22265 msgstr "B<--dir-cache-timeout N>"
22268 #: ../fuse/guestmount.pod:125
22270 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22271 "seconds. The readdir cache [actually, there are several semi-independent "
22272 "caches] is populated after a readdir(2) call with the stat and extended "
22273 "attributes of the files in the directory, in anticipation that they will be "
22274 "requested soon after."
22278 #: ../fuse/guestmount.pod:131
22280 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22281 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22282 "requests, only cache existing ones."
22286 #: ../fuse/guestmount.pod:151
22288 "If you have untrusted raw-format guest disk images, you should use this "
22289 "option to specify the disk format. This avoids a possible security problem "
22290 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
22291 "guestfs_add_drive_opts>."
22295 #: ../fuse/guestmount.pod:156
22296 msgid "B<--fuse-help>"
22297 msgstr "B<--fuse-help>"
22300 #: ../fuse/guestmount.pod:158
22301 msgid "Display help on special FUSE options (see I<-o> below)."
22305 #: ../fuse/guestmount.pod:162
22306 msgid "Display brief help and exit."
22310 #: ../fuse/guestmount.pod:186
22312 "Mount the named partition or logical volume on the given mountpoint B<in the "
22313 "guest> (this has nothing to do with mountpoints in the host)."
22317 #: ../fuse/guestmount.pod:189
22319 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
22320 "something on C</>."
22324 #: ../fuse/guestmount.pod:206
22326 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22327 "unmounted. If you specify this option, then we don't attempt to sync the "
22328 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
22332 #: ../fuse/guestmount.pod:211
22334 #| msgid "B<--partition>"
22335 msgid "B<-o option>"
22336 msgstr "B<--partition>"
22339 #: ../fuse/guestmount.pod:213
22341 #| msgid "B<--partition>"
22342 msgid "B<--option option>"
22343 msgstr "B<--partition>"
22346 #: ../fuse/guestmount.pod:215
22347 msgid "Pass extra options to FUSE."
22351 #: ../fuse/guestmount.pod:217
22353 "To get a list of all the extra options supported by FUSE, use the command "
22354 "below. Note that only the FUSE I<-o> options can be passed, and only some "
22355 "of them are a good idea."
22359 #: ../fuse/guestmount.pod:221
22362 " guestmount --fuse-help\n"
22367 #: ../fuse/guestmount.pod:223
22368 msgid "Some potentially useful FUSE options:"
22372 #: ../fuse/guestmount.pod:227
22373 msgid "B<-o allow_other>"
22377 #: ../fuse/guestmount.pod:229
22378 msgid "Allow other users to see the filesystem."
22382 #: ../fuse/guestmount.pod:231
22383 msgid "B<-o attr_timeout=N>"
22384 msgstr "B<-o attr_timeout=N>"
22387 #: ../fuse/guestmount.pod:233
22388 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22392 #: ../fuse/guestmount.pod:235
22393 msgid "B<-o kernel_cache>"
22397 #: ../fuse/guestmount.pod:237
22399 "Allow the kernel to cache files (reduces the number of reads that have to go "
22400 "through the L<guestfs(3)> API). This is generally a good idea if you can "
22401 "afford the extra memory usage."
22405 #: ../fuse/guestmount.pod:241
22406 msgid "B<-o uid=N> B<-o gid=N>"
22410 #: ../fuse/guestmount.pod:243
22412 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22413 "the chosen values."
22417 #: ../fuse/guestmount.pod:252
22419 "Add devices and mount everything read-only. Also disallow writes and make "
22420 "the disk appear read-only to FUSE."
22424 #: ../fuse/guestmount.pod:255
22426 "This is highly recommended if you are not going to edit the guest disk. If "
22427 "the guest is running and this option is I<not> supplied, then there is a "
22428 "strong risk of disk corruption in the guest. We try to prevent this from "
22429 "happening, but it is not always possible."
22433 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
22434 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22438 #: ../fuse/guestmount.pod:264
22439 msgid "Enable SELinux support for the guest."
22443 #: ../fuse/guestmount.pod:270
22444 msgid "Enable verbose messages from underlying libguestfs."
22448 #: ../fuse/guestmount.pod:276
22449 msgid "Display the program version and exit."
22453 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22454 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
22455 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22459 #: ../fuse/guestmount.pod:289
22466 #: ../fuse/guestmount.pod:291
22467 msgid "Trace libguestfs calls and entry into each FUSE function."
22471 #: ../fuse/guestmount.pod:293
22472 msgid "This also stops the daemon from forking into the background."
22476 #: ../fuse/guestmount.pod:319
22478 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22479 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22484 #: ../fuse/guestmount.pod:334
22485 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
22489 #: ../inspector/virt-inspector.pod:5
22491 "virt-inspector - Display operating system version and other information "
22492 "about a virtual machine"
22496 #: ../inspector/virt-inspector.pod:9
22499 #| " virt-list-partitions [--options] domname\n"
22502 " virt-inspector [--options] -d domname\n"
22505 " virt-list-partitions [--параметри] назва_домену\n"
22509 #: ../inspector/virt-inspector.pod:11
22512 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22515 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22518 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22522 #: ../inspector/virt-inspector.pod:15
22525 #| " virt-list-partitions [--options] domname\n"
22528 " virt-inspector domname\n"
22531 " virt-list-partitions [--параметри] назва_домену\n"
22535 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
22538 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22541 " virt-inspector disk.img [disk.img ...]\n"
22544 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22548 #: ../inspector/virt-inspector.pod:21
22550 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22551 "determine the version of the operating system and other information about "
22552 "the virtual machine."
22556 #: ../inspector/virt-inspector.pod:25
22557 msgid "Virt-inspector produces XML output for feeding into other programs."
22561 #: ../inspector/virt-inspector.pod:27
22563 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22564 "the libvirt domain (see: C<virsh list --all>)."
22568 #: ../inspector/virt-inspector.pod:30
22570 "You can also run virt-inspector directly on disk images from a single "
22571 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
22572 "has several block devices, in which case you should list several I<-a> "
22573 "options one after another, with the first corresponding to the guest's C</"
22574 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22578 #: ../inspector/virt-inspector.pod:37
22580 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22581 "keys and similar."
22585 #: ../inspector/virt-inspector.pod:40
22587 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
22588 "inspect several virtual machines, you have to run virt-inspector several "
22589 "times (for example, from a shell script for-loop)."
22593 #: ../inspector/virt-inspector.pod:45
22595 "Because virt-inspector needs direct access to guest images, it won't "
22596 "normally work over remote libvirt connections."
22600 #: ../inspector/virt-inspector.pod:48
22602 "All of the information available from virt-inspector is also available "
22603 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
22604 "The same information can also be fetched using guestfish or via libguestfs "
22605 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22606 "WITH OTHER PROGRAMMING LANGUAGES>)."
22610 #: ../inspector/virt-inspector.pod:81
22612 "Libvirt is only used if you specify a C<domname> on the command line. If "
22613 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22618 #: ../inspector/virt-inspector.pod:94
22620 "When prompting for keys and passphrases, virt-inspector normally turns "
22621 "echoing off so you cannot see what you are typing. If you are not worried "
22622 "about Tempest attacks and there is no one else in the room you can specify "
22623 "this flag to see what you are typing."
22627 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22628 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22629 #: ../tools/virt-win-reg.pl:144
22631 "Specify the format of disk images given on the command line. If this is "
22632 "omitted then the format is autodetected from the content of the disk image."
22636 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22637 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22638 #: ../tools/virt-win-reg.pl:148
22640 "If disk images are requested from libvirt, then this program asks libvirt "
22641 "for this information. In this case, the value of the format parameter is "
22646 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
22647 #: ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132
22648 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22649 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22651 "If working with untrusted raw-format guest disk images, you should ensure "
22652 "the format is always specified."
22656 #: ../inspector/virt-inspector.pod:139
22657 msgid "Previous versions of virt-inspector allowed you to write either:"
22661 #: ../inspector/virt-inspector.pod:145
22664 #| " inspect-get-hostname root\n"
22667 " virt-inspector guestname\n"
22670 " inspect-get-hostname корінь\n"
22674 #: ../inspector/virt-inspector.pod:153
22679 #: ../inspector/virt-inspector.pod:155
22681 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22682 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
22683 "just an overview."
22687 #: ../inspector/virt-inspector.pod:159
22689 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22690 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
22691 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22692 "which is vanishingly rare in real world VMs."
22696 #: ../inspector/virt-inspector.pod:164
22697 msgid "E<lt>operatingsystemE<gt>"
22701 #: ../inspector/virt-inspector.pod:166
22703 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22704 "describe the operating system, its architecture, the descriptive \"product "
22705 "name\" string, the type of OS and so on, as in this example:"
22709 #: ../inspector/virt-inspector.pod:170
22712 " <operatingsystems>\n"
22713 " <operatingsystem>\n"
22714 " <root>/dev/sda2</root>\n"
22715 " <name>windows</name>\n"
22716 " <arch>i386</arch>\n"
22717 " <distro>windows</distro>\n"
22718 " <product_name>Windows 7 Enterprise</product_name>\n"
22719 " <product_variant>Client</product_variant>\n"
22720 " <major_version>6</major_version>\n"
22721 " <minor_version>1</minor_version>\n"
22722 " <windows_systemroot>/Windows</windows_systemroot>\n"
22723 " <format>installed</format>\n"
22728 #: ../inspector/virt-inspector.pod:183
22730 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22731 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22732 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22733 "architecture. The other fields are fairly self-explanatory, but because "
22734 "these fields are taken directly from the libguestfs inspection API you can "
22735 "find precise information from L<guestfs(3)/INSPECTION>."
22739 #: ../inspector/virt-inspector.pod:191
22741 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22742 "of view of libguestfs (block devices may have completely different names "
22743 "inside the VM itself)."
22747 #: ../inspector/virt-inspector.pod:195
22749 #| msgid "mountpoints"
22750 msgid "E<lt>mountpointsE<gt>"
22751 msgstr "mountpoints"
22754 #: ../inspector/virt-inspector.pod:197
22756 "Un*x-like guests typically have multiple filesystems which are mounted at "
22757 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22758 "element which looks like this:"
22762 #: ../inspector/virt-inspector.pod:201
22765 " <operatingsystems>\n"
22766 " <operatingsystem>\n"
22769 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22770 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22771 " </mountpoints>\n"
22776 #: ../inspector/virt-inspector.pod:209
22778 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22779 "and may have completely different names inside the guest. Only mountable "
22780 "filesystems appear in this list, not things like swap devices."
22784 #: ../inspector/virt-inspector.pod:214
22786 #| msgid "list-filesystems"
22787 msgid "E<lt>filesystemsE<gt>"
22788 msgstr "list-filesystems"
22791 #: ../inspector/virt-inspector.pod:216
22793 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22794 "filesystems belonging to the guest, including swap and empty partitions. "
22795 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22796 "this OS or shared with this OS and other OSes)."
22800 #: ../inspector/virt-inspector.pod:222
22801 msgid "You might see something like this:"
22805 #: ../inspector/virt-inspector.pod:224
22808 " <operatingsystems>\n"
22809 " <operatingsystem>\n"
22812 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22813 " <type>ext4</type>\n"
22814 " <label>Fedora-13-x86_64</label>\n"
22815 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22821 #: ../inspector/virt-inspector.pod:234
22823 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22824 "the label, and the UUID."
22828 #: ../inspector/virt-inspector.pod:237
22829 msgid "E<lt>applicationsE<gt>"
22833 #: ../inspector/virt-inspector.pod:239
22835 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22836 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22841 #: ../inspector/virt-inspector.pod:243
22843 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
22844 "Typical values would be C<rpm> and C<deb>."
22848 #: ../inspector/virt-inspector.pod:246
22850 "E<lt>package_managementE<gt>, if present, describes the package manager. "
22851 "Typical values include C<yum>, C<up2date> and C<apt>"
22855 #: ../inspector/virt-inspector.pod:249
22856 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22860 #: ../inspector/virt-inspector.pod:252
22863 " <operatingsystems>\n"
22864 " <operatingsystem>\n"
22866 " <applications>\n"
22868 " <name>coreutils</name>\n"
22869 " <version>8.5</version>\n"
22870 " <release>1</release>\n"
22871 " </application>\n"
22876 #: ../inspector/virt-inspector.pod:262
22878 "The version and release fields may not be available for some types guests. "
22879 "Other fields are possible, see L<guestfs(3)/"
22880 "guestfs_inspect_list_applications>."
22884 #: ../inspector/virt-inspector.pod:266
22885 msgid "E<lt>drive_mappingsE<gt>"
22889 #: ../inspector/virt-inspector.pod:268
22891 "For operating systems like Windows which use drive letters, virt-inspector "
22892 "is able to find out how drive letters map to filesystems."
22896 #: ../inspector/virt-inspector.pod:272
22899 " <operatingsystems>\n"
22900 " <operatingsystem>\n"
22902 " <drive_mappings>\n"
22903 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22904 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22905 " </drive_mappings>\n"
22910 #: ../inspector/virt-inspector.pod:280
22912 "In the example above, drive C maps to the filesystem on the second partition "
22913 "on the first disk, and drive E maps to the filesystem on the first partition "
22914 "on the second disk."
22918 #: ../inspector/virt-inspector.pod:284
22920 "Note that this only covers permanent local filesystem mappings, not things "
22921 "like network shares. Furthermore NTFS volume mount points may not be listed "
22926 #: ../inspector/virt-inspector.pod:288
22928 #| msgid "B<-s E<lt>NE<gt>>"
22929 msgid "E<lt>iconE<gt>"
22930 msgstr "B<-s E<lt>NE<gt>>"
22933 #: ../inspector/virt-inspector.pod:290
22935 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
22936 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
22937 "very large and high quality."
22941 #: ../inspector/virt-inspector.pod:294
22944 " <operatingsystems>\n"
22945 " <operatingsystem>\n"
22948 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22949 " [... many lines of base64 data ...]\n"
22955 #: ../inspector/virt-inspector.pod:302
22957 "To display the icon, you have to extract it and convert the base64 data back "
22958 "to a binary file. Use an XPath query or simply an editor to extract the "
22959 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22964 #: ../inspector/virt-inspector.pod:307
22967 " base64 -i -d < icon.data > icon.png\n"
22972 #: ../inspector/virt-inspector.pod:309
22973 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22977 #: ../inspector/virt-inspector.pod:311
22979 "Virt-inspector can detect some operating system installers on install disks, "
22980 "live CDs, bootable USB keys and more."
22984 #: ../inspector/virt-inspector.pod:314
22986 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22987 "fields may be present to indicate a live CD, network installer, or one part "
22988 "of a multipart CD. For example:"
22992 #: ../inspector/virt-inspector.pod:318
22995 " <operatingsystems>\n"
22996 " <operatingsystem>\n"
22997 " <root>/dev/sda</root>\n"
22998 " <name>linux</name>\n"
22999 " <arch>i386</arch>\n"
23000 " <distro>ubuntu</distro>\n"
23001 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
23002 " <major_version>10</major_version>\n"
23003 " <minor_version>10</minor_version>\n"
23004 " <format>installer</format>\n"
23010 #: ../inspector/virt-inspector.pod:330
23011 msgid "USING XPATH"
23015 #: ../inspector/virt-inspector.pod:332
23017 "You can use the XPath query language to select parts of the XML. We "
23018 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
23022 #: ../inspector/virt-inspector.pod:338
23025 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
23027 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23028 " <type>ext4</type>\n"
23034 #: ../inspector/virt-inspector.pod:344
23037 " $ virt-inspector -d Guest | \\\n"
23038 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
23044 #: ../inspector/virt-inspector.pod:348
23047 " $ virt-inspector -d Guest | \\\n"
23048 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
23049 " [displays the guest icon, if there is one]\n"
23054 #: ../inspector/virt-inspector.pod:359
23055 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
23059 #: ../inspector/virt-inspector.pod:361
23061 "Early versions of libguestfs shipped with a different virt-inspector program "
23062 "written in Perl (the current version is written in C). The XML output of "
23063 "the Perl virt-inspector was different and it could also output in other "
23064 "formats like text."
23068 #: ../inspector/virt-inspector.pod:366
23070 "The old virt-inspector is no longer supported or shipped with libguestfs."
23074 #: ../inspector/virt-inspector.pod:369
23076 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
23077 "versions of virt-inspector with different names:"
23081 #: ../inspector/virt-inspector.pod:372
23084 " virt-inspector Old Perl version.\n"
23085 " virt-inspector2 New C version.\n"
23090 #: ../inspector/virt-inspector.pod:382
23093 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23094 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23095 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23097 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
23098 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
23100 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23101 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23102 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23105 #: ../inspector/virt-inspector.pod:399
23106 msgid "Matthew Booth L<mbooth@redhat.com>"
23110 #: ../java/examples/guestfs-java.pod:5
23111 msgid "guestfs-java - How to use libguestfs from Java"
23115 #: ../java/examples/guestfs-java.pod:9
23118 " import com.redhat.et.libguestfs.*;\n"
23123 #: ../java/examples/guestfs-java.pod:11
23126 " GuestFS g = new GuestFS ();\n"
23127 " g.add_drive_opts (\"disk.img\", null);\n"
23133 #: ../java/examples/guestfs-java.pod:17
23135 "This manual page documents how to call libguestfs from the Java programming "
23136 "language. This page just documents the differences from the C API and gives "
23137 "some examples. If you are not familiar with using libguestfs, you also need "
23138 "to read L<guestfs(3)>."
23142 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
23143 msgid "CLOSING THE HANDLE"
23147 #: ../java/examples/guestfs-java.pod:24
23149 "The handle is closed when it is reaped by the garbage collector. Because "
23150 "libguestfs handles include a lot of state, it is also possible to close (and "
23151 "hence free) them explicitly by calling the C<close> method."
23155 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
23156 #: ../python/examples/guestfs-python.pod:21
23157 #: ../ruby/examples/guestfs-ruby.pod:22
23164 #: ../java/examples/guestfs-java.pod:31
23166 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
23167 "exception. This has a single parameter which is the error message (a "
23172 #: ../java/examples/guestfs-java.pod:35
23173 msgid "Calling any method on a closed handle raises the same exception."
23177 #: ../java/examples/guestfs-java.pod:47
23180 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23181 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23182 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23184 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
23185 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23186 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23188 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23189 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23190 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23193 #: ../ocaml/examples/guestfs-ocaml.pod:5
23194 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
23198 #: ../ocaml/examples/guestfs-ocaml.pod:9
23199 msgid "Module style:"
23203 #: ../ocaml/examples/guestfs-ocaml.pod:11
23206 " let g = Guestfs.create () in\n"
23207 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23208 " Guestfs.launch g;\n"
23213 #: ../ocaml/examples/guestfs-ocaml.pod:15
23214 msgid "Object-oriented style:"
23218 #: ../ocaml/examples/guestfs-ocaml.pod:17
23221 " let g = new Guestfs.guestfs () in\n"
23222 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23228 #: ../ocaml/examples/guestfs-ocaml.pod:21
23231 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
23233 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
23238 #: ../ocaml/examples/guestfs-ocaml.pod:27
23240 "This manual page documents how to call libguestfs from the OCaml programming "
23241 "language. This page just documents the differences from the C API and gives "
23242 "some examples. If you are not familiar with using libguestfs, you also need "
23243 "to read L<guestfs(3)>."
23247 #: ../ocaml/examples/guestfs-ocaml.pod:32
23248 msgid "PROGRAMMING STYLES"
23252 #: ../ocaml/examples/guestfs-ocaml.pod:34
23254 "There are two different programming styles supported by the OCaml bindings. "
23255 "You can use a module style, with each C function mapped to an OCaml function:"
23259 #: ../ocaml/examples/guestfs-ocaml.pod:38
23262 #| " int guestfs_last_errno (guestfs_h *g);\n"
23265 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
23268 " int guestfs_last_errno (guestfs_h *g);\n"
23272 #: ../ocaml/examples/guestfs-ocaml.pod:40
23277 #: ../ocaml/examples/guestfs-ocaml.pod:42
23280 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
23285 #: ../ocaml/examples/guestfs-ocaml.pod:44
23287 "Alternately you can use an object-oriented style, calling methods on the "
23288 "class C<Guestfs.guestfs>:"
23292 #: ../ocaml/examples/guestfs-ocaml.pod:47
23295 " method set_verbose : bool -> unit\n"
23300 #: ../ocaml/examples/guestfs-ocaml.pod:49
23302 "The object-oriented style is usually briefer, and the minor performance "
23303 "penalty isn't noticable in the general overhead of performing libguestfs "
23308 #: ../ocaml/examples/guestfs-ocaml.pod:55
23310 "The handle is closed when it is reaped by the garbage collector. Because "
23311 "libguestfs handles include a lot of state, it is also possible to close (and "
23312 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23317 #: ../ocaml/examples/guestfs-ocaml.pod:62
23319 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23320 "exception. This has a single parameter which is the error message (a "
23325 #: ../ocaml/examples/guestfs-ocaml.pod:66
23327 "Calling any function/method on a closed handle raises C<Guestfs."
23328 "Handle_closed>. The single parameter is the name of the function that you "
23333 #: ../ocaml/examples/guestfs-ocaml.pod:80
23336 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23337 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23338 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23340 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23341 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23342 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23344 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23345 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23346 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23349 #: ../perl/examples/guestfs-perl.pod:5
23350 msgid "guestfs-perl - How to use libguestfs from Perl"
23354 #: ../perl/examples/guestfs-perl.pod:9
23357 " use Sys::Guestfs;\n"
23362 #: ../perl/examples/guestfs-perl.pod:11
23365 " my $h = Sys::Guestfs->new ();\n"
23366 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23367 " $h->launch ();\n"
23368 " $h->mount_options ('', '/dev/sda1', '/');\n"
23369 " $h->touch ('/hello');\n"
23375 #: ../perl/examples/guestfs-perl.pod:20
23377 "This manual page documents how to call libguestfs from the Perl programming "
23378 "language. This page just documents the differences from the C API and gives "
23379 "some examples. If you are not familiar with using libguestfs, you also need "
23380 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
23384 #: ../perl/examples/guestfs-perl.pod:26
23389 #: ../perl/examples/guestfs-perl.pod:28
23391 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23396 #: ../perl/examples/guestfs-perl.pod:41
23399 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23400 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23401 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23403 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23404 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23405 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23407 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23408 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23409 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23412 #: ../python/examples/guestfs-python.pod:5
23413 msgid "guestfs-python - How to use libguestfs from Python"
23417 #: ../python/examples/guestfs-python.pod:9
23420 " import guestfs\n"
23421 " g = guestfs.GuestFS ()\n"
23422 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23428 #: ../python/examples/guestfs-python.pod:16
23430 "This manual page documents how to call libguestfs from the Python "
23431 "programming language. This page just documents the differences from the C "
23432 "API and gives some examples. If you are not familiar with using libguestfs, "
23433 "you also need to read L<guestfs(3)>."
23437 #: ../python/examples/guestfs-python.pod:23
23439 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23440 "single string argument which is the error message."
23444 #: ../python/examples/guestfs-python.pod:26
23445 msgid "MORE DOCUMENTATION"
23449 #: ../python/examples/guestfs-python.pod:28
23454 #: ../python/examples/guestfs-python.pod:30
23458 " >>> import guestfs\n"
23459 " >>> help (guestfs)\n"
23464 #: ../python/examples/guestfs-python.pod:44
23467 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23468 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23469 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23471 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23472 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23473 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23475 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23476 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23477 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23480 #: ../rescue/virt-rescue.pod:5
23481 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23485 #: ../rescue/virt-rescue.pod:9
23488 #| " virt-list-partitions [--options] domname\n"
23491 " virt-rescue [--options] -d domname\n"
23494 " virt-list-partitions [--параметри] назва_домену\n"
23498 #: ../rescue/virt-rescue.pod:11
23501 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23504 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23507 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23511 #: ../rescue/virt-rescue.pod:15
23514 #| " virt-list-partitions [--options] domname\n"
23517 " virt-rescue [--options] domname\n"
23520 " virt-list-partitions [--параметри] назва_домену\n"
23524 #: ../rescue/virt-rescue.pod:17
23527 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23530 " virt-rescue [--options] disk.img [disk.img ...]\n"
23533 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23537 #: ../rescue/virt-rescue.pod:21
23539 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
23540 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
23541 "you from doing this, but doesn't catch all cases."
23545 #: ../rescue/virt-rescue.pod:25
23547 "However if you use the I<--ro> (read only) option, then you can attach a "
23548 "shell to a live virtual machine. The results might be strange or "
23549 "inconsistent at times but you won't get disk corruption."
23553 #: ../rescue/virt-rescue.pod:31
23555 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23556 "need for a CD. virt-rescue gives you a rescue shell and some simple "
23557 "recovery tools which you can use to examine or rescue a virtual machine or "
23562 #: ../rescue/virt-rescue.pod:36
23564 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23565 "on disk image(s):"
23569 #: ../rescue/virt-rescue.pod:39
23572 " virt-rescue -d GuestName\n"
23577 #: ../rescue/virt-rescue.pod:41
23580 " virt-rescue --ro -a /path/to/disk.img\n"
23585 #: ../rescue/virt-rescue.pod:43
23588 " virt-rescue -a /dev/sdc\n"
23593 #: ../rescue/virt-rescue.pod:45
23594 msgid "For live VMs you I<must> use the --ro option."
23598 #: ../rescue/virt-rescue.pod:47
23600 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23601 "in an interactive bash shell where you can use many ordinary Linux "
23602 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23603 "appliance. You must mount the virtual machine's filesystems by hand. There "
23604 "is an empty directory called C</sysroot> where you can mount filesystems."
23608 #: ../rescue/virt-rescue.pod:54
23610 "In the example below, we list logical volumes, then choose one to mount "
23611 "under C</sysroot>:"
23615 #: ../rescue/virt-rescue.pod:57
23619 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
23620 " lv_root vg_f11x64 -wi-a- 8.83G\n"
23621 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
23622 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
23623 " ><rescue> ls /sysroot\n"
23628 #: ../rescue/virt-rescue.pod:64
23630 "If you don't know what filesystems are available on the virtual machine then "
23631 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
23635 #: ../rescue/virt-rescue.pod:70
23637 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23638 "virtual machine. For example you can use it on a blank file if you want to "
23639 "partition that file (although we would recommend using L<guestfish(1)> "
23640 "instead as it is more suitable for this purpose). You can even use virt-"
23641 "rescue on things like SD cards."
23645 #: ../rescue/virt-rescue.pod:76
23647 "Virt-rescue does not require root. You only need to run it as root if you "
23648 "need root to open the disk image."
23652 #: ../rescue/virt-rescue.pod:79
23654 "This tool is just designed for quick interactive hacking on a virtual "
23655 "machine. For more structured access to a virtual machine disk image, you "
23656 "should use L<guestfs(3)>. To get a structured shell that you can use to "
23657 "make scripted changes to guests, use L<guestfish(1)>."
23661 #: ../rescue/virt-rescue.pod:103
23662 msgid "B<--append kernelopts>"
23666 #: ../rescue/virt-rescue.pod:105
23667 msgid "Pass additional options to the rescue kernel."
23671 #: ../rescue/virt-rescue.pod:135
23674 #| " guestfish --format=raw -a disk.img\n"
23677 " virt-rescue --format=raw -a disk.img\n"
23680 " guestfish --format=raw -a disk.img\n"
23684 #: ../rescue/virt-rescue.pod:139
23687 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
23690 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23693 " guestfish --format=raw -a disk.img --format -a another.img\n"
23697 #: ../rescue/virt-rescue.pod:148
23702 #: ../rescue/virt-rescue.pod:150
23704 #| msgid "B<--merge>"
23705 msgid "B<--memsize MB>"
23706 msgstr "B<--merge>"
23709 #: ../rescue/virt-rescue.pod:152
23711 "Change the amount of memory allocated to the rescue system. The default is "
23712 "set by libguestfs and is small but adequate for running system tools. The "
23713 "occasional program might need more memory. The parameter is specified in "
23718 #: ../rescue/virt-rescue.pod:157
23720 #| msgid "B<--inspector>"
23721 msgid "B<--network>"
23722 msgstr "B<--inspector>"
23725 #: ../rescue/virt-rescue.pod:159
23726 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
23730 #: ../rescue/virt-rescue.pod:165
23731 msgid "Open the image read-only."
23735 #: ../rescue/virt-rescue.pod:175
23737 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
23738 "SELINUX> before using this option."
23742 #: ../rescue/virt-rescue.pod:178
23744 #| msgid "B<--csh>"
23749 #: ../rescue/virt-rescue.pod:180
23750 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23754 #: ../rescue/virt-rescue.pod:198
23756 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23757 "are done read-write."
23761 #: ../rescue/virt-rescue.pod:211
23762 msgid "Previous versions of virt-rescue allowed you to write either:"
23766 #: ../rescue/virt-rescue.pod:213
23769 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23772 " virt-rescue disk.img [disk.img ...]\n"
23775 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23779 #: ../rescue/virt-rescue.pod:217
23782 #| " file-architecture filename\n"
23785 " virt-rescue guestname\n"
23788 " file-architecture назва_файла\n"
23792 #: ../rescue/virt-rescue.pod:225
23797 #: ../rescue/virt-rescue.pod:227
23799 "Adding the I<--network> option enables QEMU user networking in the rescue "
23800 "appliance. There are some differences between user networking and ordinary "
23805 #: ../rescue/virt-rescue.pod:233
23806 msgid "ping does not work"
23810 #: ../rescue/virt-rescue.pod:235
23812 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23813 "send the ping packets, and because virt-rescue must be able to run as non-"
23814 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
23815 "The ping command will appear to resolve addresses but will not be able to "
23816 "send or receive any packets. This does not mean that the network is not "
23821 #: ../rescue/virt-rescue.pod:242
23822 msgid "cannot receive connections"
23826 #: ../rescue/virt-rescue.pod:244
23827 msgid "QEMU user networking cannot receive incoming connections."
23831 #: ../rescue/virt-rescue.pod:246
23832 msgid "making TCP connections"
23836 #: ../rescue/virt-rescue.pod:248
23838 "The virt-rescue appliance needs to be small and so does not include many "
23839 "network tools. In particular there is no L<telnet(1)> command. You can "
23840 "make TCP connections from the shell using the magical C</dev/tcp/"
23841 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23845 #: ../rescue/virt-rescue.pod:253
23848 " exec 3<>/dev/tcp/redhat.com/80\n"
23849 " echo \"GET /\" >&3\n"
23855 #: ../rescue/virt-rescue.pod:257
23856 msgid "See L<bash(1)> for more details."
23860 #: ../rescue/virt-rescue.pod:263
23862 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
23863 "ENVIRONMENT VARIABLES> for the complete list."
23867 #: ../rescue/virt-rescue.pod:290
23870 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23871 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23872 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23874 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23875 "libguestfs.org/>."
23877 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23878 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23879 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23882 #: ../resize/virt-resize.pod:5
23883 msgid "virt-resize - Resize a virtual machine disk"
23887 #: ../resize/virt-resize.pod:9
23890 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23891 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23892 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23897 #: ../resize/virt-resize.pod:15
23899 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23900 "larger or smaller overall, and resizing or deleting any partitions contained "
23905 #: ../resize/virt-resize.pod:19
23907 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
23908 "not> be used on live virtual machines - for consistent results, shut the "
23909 "virtual machine down before resizing it."
23913 #: ../resize/virt-resize.pod:23
23915 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23916 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23920 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
23921 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
23922 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
23927 #: ../resize/virt-resize.pod:33
23929 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23930 "fill the extra 5GB of space."
23934 #: ../resize/virt-resize.pod:36
23937 " virt-filesystems --long -h --all -a olddisk\n"
23942 #: ../resize/virt-resize.pod:38
23945 " truncate -r olddisk newdisk\n"
23946 " truncate -s +5G newdisk\n"
23951 #: ../resize/virt-resize.pod:41
23954 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23955 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23960 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
23961 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
23962 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
23967 #: ../resize/virt-resize.pod:46
23969 "As above, but make the /boot partition 200MB bigger, while giving the "
23970 "remaining space to /dev/sda2:"
23974 #: ../resize/virt-resize.pod:49
23977 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23978 " olddisk newdisk\n"
23983 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
23984 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
23985 #: ../src/guestfs.pod:1436
23990 #: ../resize/virt-resize.pod:54
23992 "As in the first example, but expand a logical volume as the final step. "
23993 "This is what you would typically use for Linux guests that use LVM:"
23997 #: ../resize/virt-resize.pod:58
24000 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
24001 " olddisk newdisk\n"
24006 #: ../resize/virt-resize.pod:61
24011 #: ../resize/virt-resize.pod:63
24013 "As in the first example, but the output format will be qcow2 instead of a "
24018 #: ../resize/virt-resize.pod:66
24021 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
24022 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
24027 #: ../resize/virt-resize.pod:71
24028 msgid "DETAILED USAGE"
24032 #: ../resize/virt-resize.pod:73
24033 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24037 #: ../resize/virt-resize.pod:77
24038 msgid "1. Shut down the virtual machine"
24042 #: ../resize/virt-resize.pod:79
24043 msgid "2. Locate input disk image"
24047 #: ../resize/virt-resize.pod:81
24049 "Locate the input disk image (ie. the file or device on the host containing "
24050 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
24051 "dumpxml> like this to find the disk image name:"
24055 #: ../resize/virt-resize.pod:85
24058 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24059 " Found 1 nodes:\n"
24061 " <source dev=\"/dev/vg/lv_guest\" />\n"
24066 #: ../resize/virt-resize.pod:90
24067 msgid "3. Look at current sizing"
24071 #: ../resize/virt-resize.pod:92
24072 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
24076 #: ../resize/virt-resize.pod:95
24079 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
24080 " Name Type Size Parent\n"
24081 " /dev/sda1 partition 101M /dev/sda\n"
24082 " /dev/sda2 partition 7.9G /dev/sda\n"
24083 " /dev/sda device 8.0G -\n"
24088 #: ../resize/virt-resize.pod:101
24090 "(This example is a virtual machine with an 8 GB disk which we would like to "
24091 "expand up to 10 GB)."
24095 #: ../resize/virt-resize.pod:104
24096 msgid "4. Create output disk"
24100 #: ../resize/virt-resize.pod:106
24102 "Virt-resize cannot do in-place disk modifications. You have to have space "
24103 "to store the resized output disk."
24107 #: ../resize/virt-resize.pod:109
24109 "To store the resized disk image in a file, create a file of a suitable size:"
24113 #: ../resize/virt-resize.pod:112
24116 " # rm -f outdisk\n"
24117 " # truncate -s 10G outdisk\n"
24122 #: ../resize/virt-resize.pod:115
24123 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24127 #: ../resize/virt-resize.pod:117
24130 " # lvcreate -L 10G -n lv_name vg_name\n"
24135 #: ../resize/virt-resize.pod:119
24136 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24140 #: ../resize/virt-resize.pod:121
24143 " # virsh pool-list\n"
24144 " # virsh vol-create-as poolname newvol 10G\n"
24149 #: ../resize/virt-resize.pod:124
24154 #: ../resize/virt-resize.pod:126
24156 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24157 "file) and the output disk. The output disk is the one created in the "
24162 #: ../resize/virt-resize.pod:130
24165 " # virt-resize indisk outdisk\n"
24170 #: ../resize/virt-resize.pod:132
24172 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24173 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
24174 "larger, then an extra, empty partition is created at the end of the disk "
24175 "covering the extra space. If C<outdisk> is smaller, then it will give an "
24180 #: ../resize/virt-resize.pod:138
24182 "More realistically you'd want to expand existing partitions in the disk "
24183 "image by passing extra options (for the full list see the L</OPTIONS> "
24188 #: ../resize/virt-resize.pod:142
24190 "L</--expand> is the most useful option. It expands the named partition "
24191 "within the disk to fill any extra space:"
24195 #: ../resize/virt-resize.pod:145
24198 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
24203 #: ../resize/virt-resize.pod:147
24205 "(In this case, an extra partition is I<not> created at the end of the disk, "
24206 "because there will be no unused space)."
24210 #: ../resize/virt-resize.pod:150
24212 "L</--resize> is the other commonly used option. The following would "
24213 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
24214 "rest of the available space:"
24218 #: ../resize/virt-resize.pod:154
24221 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24222 " indisk outdisk\n"
24227 #: ../resize/virt-resize.pod:157
24229 "If the expanded partition in the image contains a filesystem or LVM PV, then "
24230 "if virt-resize knows how, it will resize the contents, the equivalent of "
24231 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
24232 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
24233 "filesystems, so you would have to online resize them after booting the guest."
24237 #: ../resize/virt-resize.pod:164
24238 msgid "Other options are covered below."
24242 #: ../resize/virt-resize.pod:166
24247 #: ../resize/virt-resize.pod:168
24248 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24252 #: ../resize/virt-resize.pod:170
24253 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24257 #: ../resize/virt-resize.pod:172
24260 #| " edit filename\n"
24263 " # virsh edit guestname\n"
24266 " edit назва_файла\n"
24270 #: ../resize/virt-resize.pod:174
24272 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
24273 "html#elementsDisks>"
24277 #: ../resize/virt-resize.pod:177
24278 msgid "Then start up the domain with the new, resized disk:"
24282 #: ../resize/virt-resize.pod:179
24285 #| " ln-s target linkname\n"
24288 " # virsh start guestname\n"
24291 " ln-s призначення назва_посилання\n"
24295 #: ../resize/virt-resize.pod:181
24297 "and check that it still works. See also the L</NOTES> section below for "
24298 "additional information."
24302 #: ../resize/virt-resize.pod:184
24303 msgid "7. Resize LVs etc inside the guest"
24307 #: ../resize/virt-resize.pod:186
24308 msgid "(This can also be done offline using L<guestfish(1)>)"
24312 #: ../resize/virt-resize.pod:188
24314 "Once the guest has booted you should see the new space available, at least "
24315 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
24316 "may need to resize LVs inside PVs, and also resize filesystem types that "
24317 "virt-resize does not know how to expand."
24321 #: ../resize/virt-resize.pod:195
24322 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24326 #: ../resize/virt-resize.pod:197
24328 "Shrinking is somewhat more complex than expanding, and only an overview is "
24333 #: ../resize/virt-resize.pod:200
24335 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24336 "filesystems). The user has to shrink content before passing the disk image "
24337 "to virt-resize, and virt-resize will check that the content has been shrunk "
24342 #: ../resize/virt-resize.pod:205
24343 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24347 #: ../resize/virt-resize.pod:207
24349 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24350 "steps 3 and 4 above to allocate a new disk image."
24354 #: ../resize/virt-resize.pod:210
24356 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24360 #: ../resize/virt-resize.pod:213
24361 msgid "IGNORING OR DELETING PARTITIONS"
24365 #: ../resize/virt-resize.pod:215
24367 "virt-resize also gives a convenient way to ignore or delete partitions when "
24368 "copying from the input disk to the output disk. Ignoring a partition speeds "
24369 "up the copy where you don't care about the existing contents of a "
24370 "partition. Deleting a partition removes it completely, but note that it "
24371 "also renumbers any partitions after the one which is deleted, which can "
24372 "leave some guests unbootable."
24376 #: ../resize/virt-resize.pod:222
24377 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24381 #: ../resize/virt-resize.pod:224
24383 "If the input disk is in qcow2 format, then you may prefer that the output is "
24384 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
24385 "the fly. The output format is simply determined by the format of the empty "
24386 "output container that you provide. Thus to create qcow2 output, use:"
24390 #: ../resize/virt-resize.pod:230
24393 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24398 #: ../resize/virt-resize.pod:232
24399 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24403 #: ../resize/virt-resize.pod:234
24404 msgid "Similarly, to get non-sparse raw output use:"
24408 #: ../resize/virt-resize.pod:236
24411 #| " fallocate path len\n"
24414 " fallocate -l size outdisk\n"
24417 " fallocate шлях довжина\n"
24421 #: ../resize/virt-resize.pod:238
24423 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24424 "dev/zero of=outdisk bs=1M count=..>)"
24428 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
24429 msgid "Display help."
24433 #: ../resize/virt-resize.pod:249
24438 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
24439 #: ../tools/virt-win-reg.pl:120
24441 msgstr "B<--debug>"
24444 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
24445 msgid "Enable debugging messages."
24449 #: ../resize/virt-resize.pod:255
24451 #| msgid "B<--no-dest-paths>"
24452 msgid "B<--delete part>"
24453 msgstr "B<--no-dest-paths>"
24456 #: ../resize/virt-resize.pod:257
24458 "Delete the named partition. It would be more accurate to describe this as "
24459 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24460 "the original disk image is left intact."
24464 #: ../resize/virt-resize.pod:261
24466 "Note that when you delete a partition, then anything contained in the "
24467 "partition is also deleted. Furthermore, this causes any partitions that "
24468 "come after to be I<renumbered>, which can easily make your guest unbootable."
24472 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
24473 #: ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
24474 msgid "You can give this option multiple times."
24478 #: ../resize/virt-resize.pod:268
24480 #| msgid "B<--partition>"
24481 msgid "B<--expand part>"
24482 msgstr "B<--partition>"
24485 #: ../resize/virt-resize.pod:270
24487 "Expand the named partition so it uses up all extra space (space left over "
24488 "after any other resize changes that you request have been done)."
24492 #: ../resize/virt-resize.pod:273
24494 "If virt-resize knows how, it will expand the direct content of the "
24495 "partition. For example, if the partition is an LVM PV, it will expand the "
24496 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
24497 "content it doesn't know about alone."
24501 #: ../resize/virt-resize.pod:278
24502 msgid "Currently virt-resize can resize:"
24506 #: ../resize/virt-resize.pod:284
24507 msgid "ext2, ext3 and ext4 filesystems."
24511 #: ../resize/virt-resize.pod:288
24512 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24516 #: ../resize/virt-resize.pod:290
24518 "The filesystem must have been shut down consistently last time it was used. "
24519 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24520 "consistency check, so at the first boot after resizing Windows will check "
24525 #: ../resize/virt-resize.pod:297
24527 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
24528 "inside the PV, but see the I<--LV-expand> option. The user could also "
24529 "resize LVs as desired after boot."
24533 #: ../resize/virt-resize.pod:303
24534 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24538 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
24539 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24543 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125
24544 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24545 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24546 msgid "B<--format> raw"
24550 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
24552 "Specify the format of the input disk image. If this flag is not given then "
24553 "it is auto-detected from the image itself."
24557 #: ../resize/virt-resize.pod:317
24559 "Note that this option I<does not> affect the output format. See L</QCOW2 "
24560 "AND NON-SPARSE RAW FORMATS>."
24564 #: ../resize/virt-resize.pod:320
24566 #| msgid "B<--format>"
24567 msgid "B<--ignore part>"
24568 msgstr "B<--format>"
24571 #: ../resize/virt-resize.pod:322
24573 "Ignore the named partition. Effectively this means the partition is "
24574 "allocated on the destination disk, but the content is not copied across from "
24575 "the source disk. The content of the partition will be blank (all zero "
24580 #: ../resize/virt-resize.pod:329
24581 msgid "B<--LV-expand logvol>"
24585 #: ../resize/virt-resize.pod:331
24587 "This takes the logical volume and, as a final step, expands it to fill all "
24588 "the space available in its volume group. A typical usage, assuming a Linux "
24589 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24590 "lv_root> would be:"
24594 #: ../resize/virt-resize.pod:336
24597 " virt-resize indisk outdisk \\\n"
24598 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24603 #: ../resize/virt-resize.pod:339
24605 "This would first expand the partition (and PV), and then expand the root "
24606 "device to fill the extra space in the PV."
24610 #: ../resize/virt-resize.pod:342
24612 "The contents of the LV are also resized if virt-resize knows how to do "
24613 "that. You can stop virt-resize from trying to expand the content by using "
24614 "the option I<--no-expand-content>."
24618 #: ../resize/virt-resize.pod:346
24619 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24623 #: ../resize/virt-resize.pod:348
24625 "You can give this option multiple times, I<but> it doesn't make sense to do "
24626 "this unless the logical volumes you specify are all in different volume "
24631 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
24633 #| msgid "B<-h> | B<--human-readable>"
24634 msgid "B<--machine-readable>"
24635 msgstr "B<-h> | B<--human-readable>"
24638 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
24640 "This option is used to make the output more machine friendly when being "
24641 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
24645 #: ../resize/virt-resize.pod:360
24647 #| msgid "B<--debug>"
24648 msgid "B<--dryrun>"
24649 msgstr "B<--debug>"
24652 #: ../resize/virt-resize.pod:362
24653 msgid "Print a summary of what would be done, but don't do anything."
24657 #: ../resize/virt-resize.pod:364
24658 msgid "B<--no-copy-boot-loader>"
24662 #: ../resize/virt-resize.pod:366
24664 "By default, virt-resize copies over some sectors at the start of the disk "
24665 "(up to the beginning of the first partition). Commonly these sectors "
24666 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24667 "in order for the guest to boot correctly."
24671 #: ../resize/virt-resize.pod:371
24673 "If you specify this flag, then this initial copy is not done. You may need "
24674 "to reinstall the boot loader in this case."
24678 #: ../resize/virt-resize.pod:374
24680 #| msgid "B<--partition>"
24681 msgid "B<--no-extra-partition>"
24682 msgstr "B<--partition>"
24685 #: ../resize/virt-resize.pod:376
24687 "By default, virt-resize creates an extra partition if there is any extra, "
24688 "unused space after all resizing has happened. Use this option to prevent "
24689 "the extra partition from being created. If you do this then the extra space "
24690 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24691 "tool in the guest."
24695 #: ../resize/virt-resize.pod:382
24697 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24702 #: ../resize/virt-resize.pod:385
24704 #| msgid "B<--no-dest-paths>"
24705 msgid "B<--no-expand-content>"
24706 msgstr "B<--no-dest-paths>"
24709 #: ../resize/virt-resize.pod:387
24711 "By default, virt-resize will try to expand the direct contents of "
24712 "partitions, if it knows how (see I<--expand> option above)."
24716 #: ../resize/virt-resize.pod:390
24718 "If you give the I<--no-expand-content> option then virt-resize will not "
24723 #: ../resize/virt-resize.pod:393
24725 #| msgid "ntfsresize-size"
24726 msgid "B<--ntfsresize-force>"
24727 msgstr "ntfsresize-size"
24730 #: ../resize/virt-resize.pod:395
24732 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24733 "the NTFS disk is marked as needing a consistency check. You have to use "
24734 "this option if you want to resize a Windows guest multiple times without "
24735 "booting into Windows between each resize."
24739 #: ../resize/virt-resize.pod:401
24741 #| msgid "B<--format>"
24742 msgid "B<--output-format> raw"
24743 msgstr "B<--format>"
24746 #: ../resize/virt-resize.pod:403
24748 "Specify the format of the output disk image. If this flag is not given then "
24749 "it is auto-detected from the image itself."
24753 #: ../resize/virt-resize.pod:409
24755 "Note that this option I<does not create> the output format. This option "
24756 "just tells libguestfs what it is so it doesn't try to guess it. You still "
24757 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
24758 "SPARSE RAW FORMATS>."
24762 #: ../resize/virt-resize.pod:418
24763 msgid "Don't print the summary."
24767 #: ../resize/virt-resize.pod:420
24769 #| msgid "B<part_size>"
24770 msgid "B<--resize part=size>"
24771 msgstr "B<part_size>"
24774 #: ../resize/virt-resize.pod:422
24776 "Resize the named partition (expanding or shrinking it) so that it has the "
24781 #: ../resize/virt-resize.pod:425
24783 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24784 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24785 "size; or as a relative number or percentage. For example:"
24789 #: ../resize/virt-resize.pod:431
24792 #| " hexedit /dev/sda 1M\n"
24795 " --resize /dev/sda2=10G\n"
24798 " hexedit /dev/sda 1M\n"
24802 #: ../resize/virt-resize.pod:433
24805 #| " pvresize device\n"
24808 " --resize /dev/sda4=90%\n"
24811 " pvresize пристрій\n"
24815 #: ../resize/virt-resize.pod:435
24818 #| " hexedit /dev/sda 1M\n"
24821 " --resize /dev/sda2=+1G\n"
24824 " hexedit /dev/sda 1M\n"
24828 #: ../resize/virt-resize.pod:437
24831 #| " hexedit /dev/sda 1M\n"
24834 " --resize /dev/sda2=-200M\n"
24837 " hexedit /dev/sda 1M\n"
24841 #: ../resize/virt-resize.pod:439
24844 #| " hexedit /dev/sda 1M\n"
24847 " --resize /dev/sda1=+128K\n"
24850 " hexedit /dev/sda 1M\n"
24854 #: ../resize/virt-resize.pod:441
24857 #| " hexedit /dev/sda 1M\n"
24860 " --resize /dev/sda1=+10%\n"
24863 " hexedit /dev/sda 1M\n"
24867 #: ../resize/virt-resize.pod:443
24870 #| " hexedit /dev/sda 1M\n"
24873 " --resize /dev/sda1=-10%\n"
24876 " hexedit /dev/sda 1M\n"
24880 #: ../resize/virt-resize.pod:445
24882 "You can increase the size of any partition. Virt-resize will expand the "
24883 "direct content of the partition if it knows how (see I<--expand> below)."
24887 #: ../resize/virt-resize.pod:449
24889 "You can only I<decrease> the size of partitions that contain filesystems or "
24890 "PVs which have already been shrunk. Virt-resize will check this has been "
24891 "done before proceeding, or else will print an error (see also I<--resize-"
24896 #: ../resize/virt-resize.pod:456
24897 msgid "B<--resize-force part=size>"
24901 #: ../resize/virt-resize.pod:458
24903 "This is the same as I<--resize> except that it will let you decrease the "
24904 "size of any partition. Generally this means you will lose any data which "
24905 "was at the end of the partition you shrink, but you may not care about that "
24906 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24907 "as a swap partition)."
24911 #: ../resize/virt-resize.pod:464
24912 msgid "See also the I<--ignore> option."
24916 #: ../resize/virt-resize.pod:466
24918 #| msgid "B<--partition>"
24919 msgid "B<--shrink part>"
24920 msgstr "B<--partition>"
24923 #: ../resize/virt-resize.pod:468
24925 "Shrink the named partition until the overall disk image fits in the "
24926 "destination. The named partition B<must> contain a filesystem or PV which "
24927 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24928 "online tools). Virt-resize will check this and give an error if it has not "
24933 #: ../resize/virt-resize.pod:474
24935 "The amount by which the overall disk must be shrunk (after carrying out all "
24936 "other operations requested by the user) is called the \"deficit\". For "
24937 "example, a straight copy (assume no other operations) from a 5GB disk image "
24938 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
24939 "would give an error unless the user specified a partition to shrink and that "
24940 "partition had more than a gigabyte of free space."
24944 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
24945 msgid "MACHINE READABLE OUTPUT"
24949 #: ../resize/virt-resize.pod:494
24951 "The I<--machine-readable> option can be used to make the output more machine "
24952 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24957 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
24958 msgid "There are two ways to use this option."
24962 #: ../resize/virt-resize.pod:500
24964 "Firstly use the option on its own to query the capabilities of the virt-"
24965 "resize binary. Typical output looks like this:"
24969 #: ../resize/virt-resize.pod:503
24972 " $ virt-resize --machine-readable\n"
24974 " ntfsresize-force\n"
24982 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
24984 "A list of features is printed, one per line, and the program exits with "
24989 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
24991 "Secondly use the option in conjunction with other options to make the "
24992 "regular program output more machine friendly."
24996 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
24997 msgid "At the moment this means:"
25001 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
25003 "Progress bar messages can be parsed from stdout by looking for this regular "
25008 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
25011 " ^[0-9]+/[0-9]+$\n"
25016 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
25018 "The calling program should treat messages sent to stdout (except for "
25019 "progress bar messages) as status messages. They can be logged and/or "
25020 "displayed to the user."
25024 #: ../resize/virt-resize.pod:535
25026 "The calling program should treat messages sent to stderr as error messages. "
25027 "In addition, virt-resize exits with a non-zero status code if there was a "
25032 #: ../resize/virt-resize.pod:541
25034 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
25035 "readable> option and will return an error."
25039 #: ../resize/virt-resize.pod:546
25040 msgid "\"Partition 1 does not end on cylinder boundary.\""
25044 #: ../resize/virt-resize.pod:548
25046 "Virt-resize aligns partitions to multiples of 64 sectors. Usually this "
25047 "means the partitions will not be aligned to the ancient CHS geometry. "
25048 "However CHS geometry is meaningless for disks manufactured since the early "
25049 "1990s, and doubly so for virtual hard drives. Alignment of partitions to "
25050 "cylinders is not required by any modern operating system."
25054 #: ../resize/virt-resize.pod:555
25055 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25059 #: ../resize/virt-resize.pod:557
25061 "In Windows Vista and later versions, Microsoft switched to using a separate "
25062 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
25063 "and C</dev/sda2> is the main (C:) drive. We have not had any luck resizing "
25064 "the boot partition. Doing so seems to break the guest completely. However "
25065 "expanding the second partition (ie. C: drive) should work."
25069 #: ../resize/virt-resize.pod:564
25071 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25072 "NTFS partitions have been expanded. This is just a safety check and (unless "
25073 "it find errors) is nothing to worry about."
25077 #: ../resize/virt-resize.pod:568
25078 msgid "GUEST BOOT STUCK AT \"GRUB\""
25082 #: ../resize/virt-resize.pod:570
25084 "If a Linux guest does not boot after resizing, and the boot is stuck after "
25085 "printing C<GRUB> on the console, try reinstalling grub. This sometimes "
25086 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
25087 "although we think is to do with partition alignment."
25091 #: ../resize/virt-resize.pod:575
25094 " guestfish -i -a newdisk\n"
25095 " ><fs> cat /boot/grub/device.map\n"
25096 " # check the contents of this file are sensible or\n"
25097 " # edit the file if necessary\n"
25098 " ><fs> grub-install / /dev/vda\n"
25104 #: ../resize/virt-resize.pod:582
25106 "For more flexible guest reconfiguration, including if you need to specify "
25107 "other parameters to grub-install, use L<virt-rescue(1)>."
25111 #: ../resize/virt-resize.pod:585
25112 msgid "ALTERNATIVE TOOLS"
25116 #: ../resize/virt-resize.pod:587
25118 "There are several proprietary tools for resizing partitions. We won't "
25119 "mention any here."
25123 #: ../resize/virt-resize.pod:590
25125 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25126 "operations on disk images. They can resize and move partitions, but I don't "
25127 "think they can do anything with the contents, and they certainly don't "
25132 #: ../resize/virt-resize.pod:595
25134 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25135 "but at a much lower level. You will probably end up hand-calculating sector "
25136 "offsets, which is something that virt-resize was designed to avoid. If you "
25137 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25142 #: ../resize/virt-resize.pod:615
25144 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
25145 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
25146 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
25147 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
25148 "L<http://libguestfs.org/>."
25152 #: ../ruby/examples/guestfs-ruby.pod:5
25153 msgid "guestfs-ruby - How to use libguestfs from Ruby"
25157 #: ../ruby/examples/guestfs-ruby.pod:9
25160 " require 'guestfs'\n"
25161 " g = Guestfs::Guestfs.new()\n"
25162 " g.add_drive_opts(\"disk.img\",\n"
25163 " :readonly => 1, :format => \"raw\")\n"
25169 #: ../ruby/examples/guestfs-ruby.pod:17
25171 "This manual page documents how to call libguestfs from the Ruby programming "
25172 "language. This page just documents the differences from the C API and gives "
25173 "some examples. If you are not familiar with using libguestfs, you also need "
25174 "to read L<guestfs(3)>."
25178 #: ../ruby/examples/guestfs-ruby.pod:24
25180 "Errors from libguestfs functions are mapped into the C<Error> exception. "
25181 "This has a single parameter which is the error message (a string)."
25185 #: ../ruby/examples/guestfs-ruby.pod:38
25188 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
25189 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
25190 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25192 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
25193 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
25194 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
25196 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
25197 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
25198 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25201 #: ../sparsify/virt-sparsify.pod:5
25202 msgid "virt-sparsify - Make a virtual machine disk sparse"
25206 #: ../sparsify/virt-sparsify.pod:9
25209 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
25212 " virt-sparsify [--options] indisk outdisk\n"
25215 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
25219 #: ../sparsify/virt-sparsify.pod:13
25221 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
25222 "image) sparse a.k.a. thin-provisioned. This means that free space within "
25223 "the disk image can be converted back to free space on the host."
25227 #: ../sparsify/virt-sparsify.pod:18
25229 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
25230 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
25234 #: ../sparsify/virt-sparsify.pod:21
25236 "Virt-sparsify can also convert between some disk formats, for example "
25237 "converting a raw disk image to a thin-provisioned qcow2 image."
25241 #: ../sparsify/virt-sparsify.pod:24
25243 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25244 "machines. If a virtual machine has more than one attached disk, you must "
25245 "sparsify each one separately."
25249 #: ../sparsify/virt-sparsify.pod:28
25250 msgid "IMPORTANT LIMITATIONS"
25254 #: ../sparsify/virt-sparsify.pod:34
25256 "Virt-sparsify does not do in-place modifications. It copies from a source "
25257 "image to a destination image, leaving the source unchanged. I<Check that "
25258 "the sparsification was successful before deleting the source image>."
25262 #: ../sparsify/virt-sparsify.pod:41
25263 msgid "The virtual machine I<must be shut down> before using this tool."
25267 #: ../sparsify/virt-sparsify.pod:45
25269 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25270 "(1 temporary copy + 1 destination image). This is in the worst case and "
25271 "usually much less space is required."
25275 #: ../sparsify/virt-sparsify.pod:51
25277 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
25281 #: ../sparsify/virt-sparsify.pod:56
25282 msgid "Virt-sparsify cannot handle encrypted disks."
25286 #: ../sparsify/virt-sparsify.pod:60
25288 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
25289 "this space is often used for critical items like bootloaders so it's not "
25294 #: ../sparsify/virt-sparsify.pod:66
25296 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
25297 "to do this unless we can be sure there is no hibernation data, so at the "
25298 "moment swap partitions are ignored."
25302 #: ../sparsify/virt-sparsify.pod:72
25304 "You may also want to read the manual pages for the associated tools L<virt-"
25305 "filesystems(1)> and L<virt-df(1)> before starting."
25309 #: ../sparsify/virt-sparsify.pod:77
25310 msgid "Typical usage is:"
25314 #: ../sparsify/virt-sparsify.pod:79
25317 " virt-sparsify indisk outdisk\n"
25322 #: ../sparsify/virt-sparsify.pod:81
25324 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
25325 "is created, or overwritten if it already exists. The format of the input "
25326 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25330 #: ../sparsify/virt-sparsify.pod:86
25331 msgid "To convert between formats, use the I<--convert> option:"
25335 #: ../sparsify/virt-sparsify.pod:88
25338 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25343 #: ../sparsify/virt-sparsify.pod:90
25345 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25346 "can find within the source disk image. You can get it to ignore (don't zero "
25347 "free space on) certain filesystems by doing:"
25351 #: ../sparsify/virt-sparsify.pod:94
25354 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25359 #: ../sparsify/virt-sparsify.pod:96
25361 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25365 #: ../sparsify/virt-sparsify.pod:107
25367 #| msgid "B<--connect URI>"
25368 msgid "B<--convert> raw"
25369 msgstr "B<--connect адреса>"
25372 #: ../sparsify/virt-sparsify.pod:109
25374 #| msgid "B<--format=raw|qcow2|..>"
25375 msgid "B<--convert> qcow2"
25376 msgstr "B<--format=raw|qcow2|..>"
25379 #: ../sparsify/virt-sparsify.pod:111
25380 msgid "B<--convert> [other formats]"
25384 #: ../sparsify/virt-sparsify.pod:113
25386 "Use C<output-format> as the format for the destination image. If this is "
25387 "not specified, then the input format is used."
25391 #: ../sparsify/virt-sparsify.pod:116
25392 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
25396 #: ../sparsify/virt-sparsify.pod:118
25398 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25399 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
25403 #: ../sparsify/virt-sparsify.pod:122
25405 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25406 "sparsify doesn't need to try to guess the input format."
25410 #: ../sparsify/virt-sparsify.pod:127
25412 #| msgid "B<--format=raw|qcow2|..>"
25413 msgid "B<--format> qcow2"
25414 msgstr "B<--format=raw|qcow2|..>"
25417 #: ../sparsify/virt-sparsify.pod:135
25419 #| msgid "list-filesystems"
25420 msgid "B<--ignore> filesystem"
25421 msgstr "list-filesystems"
25424 #: ../sparsify/virt-sparsify.pod:137
25426 #| msgid "B<--verbose>"
25427 msgid "B<--ignore> volgroup"
25428 msgstr "B<--verbose>"
25431 #: ../sparsify/virt-sparsify.pod:139
25433 "Ignore the named filesystem. Free space on the filesystem will not be "
25434 "zeroed, but existing blocks of zeroes will still be sparsified."
25438 #: ../sparsify/virt-sparsify.pod:142
25440 "In the second form, this ignores the named volume group. Use the volume "
25441 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25445 #: ../sparsify/virt-sparsify.pod:157
25446 msgid "This disables progress bars and other unnecessary output."
25450 #: ../sparsify/virt-sparsify.pod:179
25452 "The I<--machine-readable> option can be used to make the output more machine "
25453 "friendly, which is useful when calling virt-sparsify from other programs, "
25458 #: ../sparsify/virt-sparsify.pod:185
25460 "Firstly use the option on its own to query the capabilities of the virt-"
25461 "sparsify binary. Typical output looks like this:"
25465 #: ../sparsify/virt-sparsify.pod:188
25468 " $ virt-sparsify --machine-readable\n"
25476 #: ../sparsify/virt-sparsify.pod:218
25478 "The calling program should treat messages sent to stderr as error messages. "
25479 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25484 #: ../sparsify/virt-sparsify.pod:224
25486 "All versions of virt-sparsify have supported the I<--machine-readable> "
25491 #: ../sparsify/virt-sparsify.pod:238
25493 "Location of the temporary directory used for the potentially large temporary "
25498 #: ../sparsify/virt-sparsify.pod:241
25500 "You should ensure there is enough free space in the worst case for a full "
25501 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25502 "to another directory that has enough space."
25506 #: ../sparsify/virt-sparsify.pod:245
25508 #| msgid "The default is C<ext2>."
25509 msgid "This defaults to C</tmp>."
25510 msgstr "Типовим значенням є C<ext2>."
25513 #: ../sparsify/virt-sparsify.pod:249
25515 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25519 #: ../sparsify/virt-sparsify.pod:253
25522 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
25523 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
25524 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
25525 #| "libguestfs.org/>."
25527 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25528 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25529 "(1)>, L<http://libguestfs.org/>."
25531 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
25532 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
25533 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
25537 #: ../src/guestfs-actions.pod:1
25538 msgid "guestfs_add_cdrom"
25542 #: ../src/guestfs-actions.pod:3
25546 " guestfs_add_cdrom (guestfs_h *g,\n"
25547 " const char *filename);\n"
25552 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
25553 #: ../src/guestfs-actions.pod:270
25555 "I<This function is deprecated.> In new code, use the L</"
25556 "guestfs_add_drive_opts> call instead."
25560 #: ../src/guestfs-actions.pod:24
25562 "This call checks for the existence of C<filename>. This stops you from "
25563 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25564 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
25569 #: ../src/guestfs-actions.pod:31
25571 "If you just want to add an ISO file (often you use this as an efficient way "
25572 "to transfer large files into the guest), then you should probably use "
25573 "C<guestfs_add_drive_ro> instead."
25577 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
25578 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
25579 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
25580 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
25581 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
25582 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
25583 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
25584 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
25585 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
25586 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
25587 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
25588 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
25589 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
25590 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1233
25591 #: ../src/guestfs-actions.pod:1279 ../src/guestfs-actions.pod:1297
25592 #: ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:1330
25593 #: ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1420
25594 #: ../src/guestfs-actions.pod:1451 ../src/guestfs-actions.pod:1476
25595 #: ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:1631
25596 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1873
25597 #: ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:1982
25598 #: ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2634
25599 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2730
25600 #: ../src/guestfs-actions.pod:3787 ../src/guestfs-actions.pod:3802
25601 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:4016
25602 #: ../src/guestfs-actions.pod:4030 ../src/guestfs-actions.pod:4043
25603 #: ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4072
25604 #: ../src/guestfs-actions.pod:4108 ../src/guestfs-actions.pod:4180
25605 #: ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:4217
25606 #: ../src/guestfs-actions.pod:4240 ../src/guestfs-actions.pod:4263
25607 #: ../src/guestfs-actions.pod:4298 ../src/guestfs-actions.pod:4317
25608 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:4371
25609 #: ../src/guestfs-actions.pod:4383 ../src/guestfs-actions.pod:4419
25610 #: ../src/guestfs-actions.pod:4435 ../src/guestfs-actions.pod:4448
25611 #: ../src/guestfs-actions.pod:4463 ../src/guestfs-actions.pod:4480
25612 #: ../src/guestfs-actions.pod:4573 ../src/guestfs-actions.pod:4593
25613 #: ../src/guestfs-actions.pod:4606 ../src/guestfs-actions.pod:4657
25614 #: ../src/guestfs-actions.pod:4675 ../src/guestfs-actions.pod:4693
25615 #: ../src/guestfs-actions.pod:4709 ../src/guestfs-actions.pod:4723
25616 #: ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:4754
25617 #: ../src/guestfs-actions.pod:4769 ../src/guestfs-actions.pod:4796
25618 #: ../src/guestfs-actions.pod:4859 ../src/guestfs-actions.pod:4932
25619 #: ../src/guestfs-actions.pod:4963 ../src/guestfs-actions.pod:4982
25620 #: ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5013
25621 #: ../src/guestfs-actions.pod:5030 ../src/guestfs-actions.pod:5043
25622 #: ../src/guestfs-actions.pod:5058 ../src/guestfs-actions.pod:5073
25623 #: ../src/guestfs-actions.pod:5105 ../src/guestfs-actions.pod:5131
25624 #: ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5190
25625 #: ../src/guestfs-actions.pod:5204 ../src/guestfs-actions.pod:5221
25626 #: ../src/guestfs-actions.pod:5270 ../src/guestfs-actions.pod:5323
25627 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5413
25628 #: ../src/guestfs-actions.pod:5441 ../src/guestfs-actions.pod:5458
25629 #: ../src/guestfs-actions.pod:5476 ../src/guestfs-actions.pod:5616
25630 #: ../src/guestfs-actions.pod:5673 ../src/guestfs-actions.pod:5695
25631 #: ../src/guestfs-actions.pod:5713 ../src/guestfs-actions.pod:5745
25632 #: ../src/guestfs-actions.pod:5811 ../src/guestfs-actions.pod:5828
25633 #: ../src/guestfs-actions.pod:5841 ../src/guestfs-actions.pod:5855
25634 #: ../src/guestfs-actions.pod:6144 ../src/guestfs-actions.pod:6163
25635 #: ../src/guestfs-actions.pod:6182 ../src/guestfs-actions.pod:6196
25636 #: ../src/guestfs-actions.pod:6208 ../src/guestfs-actions.pod:6222
25637 #: ../src/guestfs-actions.pod:6234 ../src/guestfs-actions.pod:6248
25638 #: ../src/guestfs-actions.pod:6264 ../src/guestfs-actions.pod:6285
25639 #: ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6323
25640 #: ../src/guestfs-actions.pod:6353 ../src/guestfs-actions.pod:6371
25641 #: ../src/guestfs-actions.pod:6394 ../src/guestfs-actions.pod:6412
25642 #: ../src/guestfs-actions.pod:6431 ../src/guestfs-actions.pod:6452
25643 #: ../src/guestfs-actions.pod:6471 ../src/guestfs-actions.pod:6488
25644 #: ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:6535
25645 #: ../src/guestfs-actions.pod:6559 ../src/guestfs-actions.pod:6578
25646 #: ../src/guestfs-actions.pod:6594 ../src/guestfs-actions.pod:6618
25647 #: ../src/guestfs-actions.pod:6637 ../src/guestfs-actions.pod:6652
25648 #: ../src/guestfs-actions.pod:6671 ../src/guestfs-actions.pod:6715
25649 #: ../src/guestfs-actions.pod:6745 ../src/guestfs-actions.pod:6778
25650 #: ../src/guestfs-actions.pod:6893 ../src/guestfs-actions.pod:7014
25651 #: ../src/guestfs-actions.pod:7026 ../src/guestfs-actions.pod:7039
25652 #: ../src/guestfs-actions.pod:7052 ../src/guestfs-actions.pod:7074
25653 #: ../src/guestfs-actions.pod:7087 ../src/guestfs-actions.pod:7100
25654 #: ../src/guestfs-actions.pod:7113 ../src/guestfs-actions.pod:7128
25655 #: ../src/guestfs-actions.pod:7187 ../src/guestfs-actions.pod:7204
25656 #: ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7236
25657 #: ../src/guestfs-actions.pod:7253 ../src/guestfs-actions.pod:7266
25658 #: ../src/guestfs-actions.pod:7286 ../src/guestfs-actions.pod:7322
25659 #: ../src/guestfs-actions.pod:7336 ../src/guestfs-actions.pod:7377
25660 #: ../src/guestfs-actions.pod:7390 ../src/guestfs-actions.pod:7408
25661 #: ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7478
25662 #: ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7609
25663 #: ../src/guestfs-actions.pod:7623 ../src/guestfs-actions.pod:7678
25664 #: ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7736
25665 #: ../src/guestfs-actions.pod:7776 ../src/guestfs-actions.pod:7832
25666 #: ../src/guestfs-actions.pod:7852 ../src/guestfs-actions.pod:7885
25667 #: ../src/guestfs-actions.pod:7949 ../src/guestfs-actions.pod:7972
25668 #: ../src/guestfs-actions.pod:8001
25669 msgid "This function returns 0 on success or -1 on error."
25673 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
25674 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:2096
25675 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2319
25676 #: ../src/guestfs-actions.pod:3789 ../src/guestfs-actions.pod:3809
25677 #: ../src/guestfs-actions.pod:5107 ../src/guestfs-actions.pod:6373
25678 #: ../src/guestfs-actions.pod:6490 ../src/guestfs-actions.pod:6639
25679 #: ../src/guestfs-actions.pod:7130 ../src/guestfs-actions.pod:7255
25680 #: ../src/guestfs-actions.pod:7778
25681 msgid "(Added in 0.3)"
25685 #: ../src/guestfs-actions.pod:41
25686 msgid "guestfs_add_domain"
25690 #: ../src/guestfs-actions.pod:43
25694 " guestfs_add_domain (guestfs_h *g,\n"
25695 " const char *dom,\n"
25701 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
25702 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
25703 #: ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:2987
25704 #: ../src/guestfs-actions.pod:4808 ../src/guestfs-actions.pod:5117
25705 #: ../src/guestfs-actions.pod:5334
25707 "You may supply a list of optional arguments to this call. Use zero or more "
25708 "of the following pairs of parameters, and terminate the list with C<-1> on "
25709 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
25713 #: ../src/guestfs-actions.pod:53
25716 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25717 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25718 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25719 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25720 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25725 #: ../src/guestfs-actions.pod:59
25727 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
25728 "It works by connecting to libvirt, requesting the domain and domain XML from "
25729 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25734 #: ../src/guestfs-actions.pod:94
25736 "The other optional parameters are passed directly through to "
25737 "C<guestfs_add_drive_opts>."
25741 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
25742 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
25743 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
25744 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1496
25745 #: ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:2055
25746 #: ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2217
25747 #: ../src/guestfs-actions.pod:2269 ../src/guestfs-actions.pod:2283
25748 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2621
25749 #: ../src/guestfs-actions.pod:3105 ../src/guestfs-actions.pod:3123
25750 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5513
25751 #: ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5951
25752 #: ../src/guestfs-actions.pod:7363 ../src/guestfs-actions.pod:7789
25753 #: ../src/guestfs-actions.pod:7802 ../src/guestfs-actions.pod:7815
25754 msgid "On error this function returns -1."
25758 #: ../src/guestfs-actions.pod:99
25759 msgid "(Added in 1.7.4)"
25763 #: ../src/guestfs-actions.pod:101
25764 msgid "guestfs_add_domain_va"
25768 #: ../src/guestfs-actions.pod:103
25772 " guestfs_add_domain_va (guestfs_h *g,\n"
25773 " const char *dom,\n"
25774 " va_list args);\n"
25779 #: ../src/guestfs-actions.pod:108
25780 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25784 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
25785 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
25786 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
25787 #: ../src/guestfs-actions.pod:1189 ../src/guestfs-actions.pod:1202
25788 #: ../src/guestfs-actions.pod:1248 ../src/guestfs-actions.pod:1261
25789 #: ../src/guestfs-actions.pod:3071 ../src/guestfs-actions.pod:3083
25790 #: ../src/guestfs-actions.pod:4873 ../src/guestfs-actions.pod:4885
25791 #: ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5157
25792 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5394
25793 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25794 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25797 #: ../src/guestfs-actions.pod:112
25798 msgid "guestfs_add_domain_argv"
25799 msgstr "guestfs_add_domain_argv"
25802 #: ../src/guestfs-actions.pod:114
25806 " guestfs_add_domain_argv (guestfs_h *g,\n"
25807 " const char *dom,\n"
25808 " const struct guestfs_add_domain_argv *optargs);\n"
25813 #: ../src/guestfs-actions.pod:119
25814 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25818 #: ../src/guestfs-actions.pod:123
25819 msgid "guestfs_add_drive"
25823 #: ../src/guestfs-actions.pod:125
25827 " guestfs_add_drive (guestfs_h *g,\n"
25828 " const char *filename);\n"
25833 #: ../src/guestfs-actions.pod:129
25835 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25836 "optional parameters, so the disk is added writable, with the format being "
25837 "detected automatically."
25841 #: ../src/guestfs-actions.pod:133
25843 "Automatic detection of the format opens you up to a potential security hole "
25844 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
25845 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
25846 "you should think about replacing calls to this function with calls to "
25847 "C<guestfs_add_drive_opts>, and specifying the format."
25851 #: ../src/guestfs-actions.pod:144
25852 msgid "guestfs_add_drive_opts"
25856 #: ../src/guestfs-actions.pod:146
25860 " guestfs_add_drive_opts (guestfs_h *g,\n"
25861 " const char *filename,\n"
25867 #: ../src/guestfs-actions.pod:156
25870 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25871 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25872 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25877 #: ../src/guestfs-actions.pod:185
25879 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
25880 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
25881 "Possible formats include C<raw> and C<qcow2>."
25885 #: ../src/guestfs-actions.pod:196
25887 "This rarely-used option lets you emulate the behaviour of the deprecated "
25888 "C<guestfs_add_drive_with_if> call (q.v.)"
25892 #: ../src/guestfs-actions.pod:203
25893 msgid "(Added in 1.5.23)"
25897 #: ../src/guestfs-actions.pod:205
25898 msgid "guestfs_add_drive_opts_va"
25902 #: ../src/guestfs-actions.pod:207
25906 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25907 " const char *filename,\n"
25908 " va_list args);\n"
25913 #: ../src/guestfs-actions.pod:212
25914 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25918 #: ../src/guestfs-actions.pod:216
25919 msgid "guestfs_add_drive_opts_argv"
25923 #: ../src/guestfs-actions.pod:218
25927 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25928 " const char *filename,\n"
25929 " const struct guestfs_add_drive_opts_argv *optargs);\n"
25934 #: ../src/guestfs-actions.pod:223
25935 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25939 #: ../src/guestfs-actions.pod:227
25940 msgid "guestfs_add_drive_ro"
25944 #: ../src/guestfs-actions.pod:229
25948 " guestfs_add_drive_ro (guestfs_h *g,\n"
25949 " const char *filename);\n"
25954 #: ../src/guestfs-actions.pod:233
25956 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25957 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25958 "disk is added read-only, with the format being detected automatically."
25962 #: ../src/guestfs-actions.pod:240
25963 msgid "(Added in 1.0.38)"
25967 #: ../src/guestfs-actions.pod:242
25968 msgid "guestfs_add_drive_ro_with_if"
25972 #: ../src/guestfs-actions.pod:244
25976 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25977 " const char *filename,\n"
25978 " const char *iface);\n"
25983 #: ../src/guestfs-actions.pod:256
25985 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25986 "QEMU interface emulation to use at run time."
25990 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
25991 #: ../src/guestfs-actions.pod:2580
25992 msgid "(Added in 1.0.84)"
25996 #: ../src/guestfs-actions.pod:263
25997 msgid "guestfs_add_drive_with_if"
26001 #: ../src/guestfs-actions.pod:265
26005 " guestfs_add_drive_with_if (guestfs_h *g,\n"
26006 " const char *filename,\n"
26007 " const char *iface);\n"
26012 #: ../src/guestfs-actions.pod:277
26014 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
26015 "QEMU interface emulation to use at run time."
26019 #: ../src/guestfs-actions.pod:284
26020 msgid "guestfs_aug_clear"
26024 #: ../src/guestfs-actions.pod:286
26028 " guestfs_aug_clear (guestfs_h *g,\n"
26029 " const char *augpath);\n"
26034 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2308
26035 msgid "(Added in 1.3.4)"
26039 #: ../src/guestfs-actions.pod:297
26040 msgid "guestfs_aug_close"
26044 #: ../src/guestfs-actions.pod:299
26048 " guestfs_aug_close (guestfs_h *g);\n"
26053 #: ../src/guestfs-actions.pod:302
26055 "Close the current Augeas handle and free up any resources used by it. After "
26056 "calling this, you have to call C<guestfs_aug_init> again before you can use "
26057 "any other Augeas functions."
26061 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
26062 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
26063 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
26064 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
26065 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
26066 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
26067 #: ../src/guestfs-actions.pod:6002
26068 msgid "(Added in 0.7)"
26072 #: ../src/guestfs-actions.pod:311
26073 msgid "guestfs_aug_defnode"
26077 #: ../src/guestfs-actions.pod:313
26080 " struct guestfs_int_bool *\n"
26081 " guestfs_aug_defnode (guestfs_h *g,\n"
26082 " const char *name,\n"
26083 " const char *expr,\n"
26084 " const char *val);\n"
26089 #: ../src/guestfs-actions.pod:322
26091 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
26092 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
26093 "containing that single node."
26097 #: ../src/guestfs-actions.pod:330
26099 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
26100 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
26104 #: ../src/guestfs-actions.pod:336
26105 msgid "guestfs_aug_defvar"
26109 #: ../src/guestfs-actions.pod:338
26113 " guestfs_aug_defvar (guestfs_h *g,\n"
26114 " const char *name,\n"
26115 " const char *expr);\n"
26120 #: ../src/guestfs-actions.pod:354
26121 msgid "guestfs_aug_get"
26125 #: ../src/guestfs-actions.pod:356
26129 " guestfs_aug_get (guestfs_h *g,\n"
26130 " const char *augpath);\n"
26135 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
26136 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
26137 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
26138 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1382
26139 #: ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1535
26140 #: ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1835
26141 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2015
26142 #: ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:2125
26143 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2331
26144 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:2749
26145 #: ../src/guestfs-actions.pod:2851 ../src/guestfs-actions.pod:2955
26146 #: ../src/guestfs-actions.pod:2974 ../src/guestfs-actions.pod:3189
26147 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3238
26148 #: ../src/guestfs-actions.pod:3272 ../src/guestfs-actions.pod:3335
26149 #: ../src/guestfs-actions.pod:3355 ../src/guestfs-actions.pod:3375
26150 #: ../src/guestfs-actions.pod:4002 ../src/guestfs-actions.pod:4355
26151 #: ../src/guestfs-actions.pod:4525 ../src/guestfs-actions.pod:4635
26152 #: ../src/guestfs-actions.pod:5531 ../src/guestfs-actions.pod:5730
26153 #: ../src/guestfs-actions.pod:5900 ../src/guestfs-actions.pod:6078
26154 #: ../src/guestfs-actions.pod:6127 ../src/guestfs-actions.pod:6799
26155 #: ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6839
26156 #: ../src/guestfs-actions.pod:6863 ../src/guestfs-actions.pod:7537
26157 #: ../src/guestfs-actions.pod:7556 ../src/guestfs-actions.pod:7574
26158 #: ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:8065
26160 "This function returns a string, or NULL on error. I<The caller must free "
26161 "the returned string after use>."
26165 #: ../src/guestfs-actions.pod:368
26166 msgid "guestfs_aug_init"
26170 #: ../src/guestfs-actions.pod:370
26174 " guestfs_aug_init (guestfs_h *g,\n"
26175 " const char *root,\n"
26181 #: ../src/guestfs-actions.pod:379
26182 msgid "You must call this before using any other C<guestfs_aug_*> commands."
26186 #: ../src/guestfs-actions.pod:404
26188 "This option is only useful when debugging Augeas lenses. Use of this option "
26189 "may require additional memory for the libguestfs appliance. You may need to "
26190 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
26191 "C<guestfs_set_memsize>."
26195 #: ../src/guestfs-actions.pod:419
26196 msgid "Do not load the tree in C<guestfs_aug_init>."
26200 #: ../src/guestfs-actions.pod:423
26201 msgid "To close the handle, you can call C<guestfs_aug_close>."
26205 #: ../src/guestfs-actions.pod:431
26206 msgid "guestfs_aug_insert"
26210 #: ../src/guestfs-actions.pod:433
26214 " guestfs_aug_insert (guestfs_h *g,\n"
26215 " const char *augpath,\n"
26216 " const char *label,\n"
26222 #: ../src/guestfs-actions.pod:451
26223 msgid "guestfs_aug_load"
26227 #: ../src/guestfs-actions.pod:453
26231 " guestfs_aug_load (guestfs_h *g);\n"
26236 #: ../src/guestfs-actions.pod:465
26237 msgid "guestfs_aug_ls"
26241 #: ../src/guestfs-actions.pod:467
26245 " guestfs_aug_ls (guestfs_h *g,\n"
26246 " const char *augpath);\n"
26251 #: ../src/guestfs-actions.pod:471
26253 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
26254 "sorting the resulting nodes into alphabetical order."
26258 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
26259 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
26260 #: ../src/guestfs-actions.pod:1550 ../src/guestfs-actions.pod:1569
26261 #: ../src/guestfs-actions.pod:1672 ../src/guestfs-actions.pod:1691
26262 #: ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:2403
26263 #: ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2438
26264 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2527
26265 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2647
26266 #: ../src/guestfs-actions.pod:2916 ../src/guestfs-actions.pod:3291
26267 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3885
26268 #: ../src/guestfs-actions.pod:3902 ../src/guestfs-actions.pod:3922
26269 #: ../src/guestfs-actions.pod:3984 ../src/guestfs-actions.pod:4089
26270 #: ../src/guestfs-actions.pod:4497 ../src/guestfs-actions.pod:5254
26271 #: ../src/guestfs-actions.pod:5872 ../src/guestfs-actions.pod:5998
26272 #: ../src/guestfs-actions.pod:6112 ../src/guestfs-actions.pod:6879
26273 #: ../src/guestfs-actions.pod:6940 ../src/guestfs-actions.pod:6995
26274 #: ../src/guestfs-actions.pod:7141 ../src/guestfs-actions.pod:7165
26275 #: ../src/guestfs-actions.pod:7641 ../src/guestfs-actions.pod:7661
26276 #: ../src/guestfs-actions.pod:7708 ../src/guestfs-actions.pod:7902
26277 #: ../src/guestfs-actions.pod:7921 ../src/guestfs-actions.pod:8015
26278 #: ../src/guestfs-actions.pod:8034 ../src/guestfs-actions.pod:8080
26279 #: ../src/guestfs-actions.pod:8099
26281 "This function returns a NULL-terminated array of strings (like L<environ(3)"
26282 ">), or NULL if there was an error. I<The caller must free the strings and "
26283 "the array after use>."
26287 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
26288 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1607
26289 #: ../src/guestfs-actions.pod:3649 ../src/guestfs-actions.pod:3680
26290 #: ../src/guestfs-actions.pod:4338 ../src/guestfs-actions.pod:4388
26291 #: ../src/guestfs-actions.pod:4575 ../src/guestfs-actions.pod:4608
26292 #: ../src/guestfs-actions.pod:4771 ../src/guestfs-actions.pod:5258
26293 #: ../src/guestfs-actions.pod:5813 ../src/guestfs-actions.pod:6210
26294 #: ../src/guestfs-actions.pod:6224 ../src/guestfs-actions.pod:6236
26295 #: ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:7379
26296 #: ../src/guestfs-actions.pod:7392 ../src/guestfs-actions.pod:7625
26297 #: ../src/guestfs-actions.pod:7890
26298 msgid "(Added in 0.8)"
26302 #: ../src/guestfs-actions.pod:480
26303 msgid "guestfs_aug_match"
26307 #: ../src/guestfs-actions.pod:482
26311 " guestfs_aug_match (guestfs_h *g,\n"
26312 " const char *augpath);\n"
26317 #: ../src/guestfs-actions.pod:496
26318 msgid "guestfs_aug_mv"
26322 #: ../src/guestfs-actions.pod:498
26326 " guestfs_aug_mv (guestfs_h *g,\n"
26327 " const char *src,\n"
26328 " const char *dest);\n"
26333 #: ../src/guestfs-actions.pod:510
26334 msgid "guestfs_aug_rm"
26338 #: ../src/guestfs-actions.pod:512
26342 " guestfs_aug_rm (guestfs_h *g,\n"
26343 " const char *augpath);\n"
26348 #: ../src/guestfs-actions.pod:524
26349 msgid "guestfs_aug_save"
26353 #: ../src/guestfs-actions.pod:526
26357 " guestfs_aug_save (guestfs_h *g);\n"
26362 #: ../src/guestfs-actions.pod:531
26364 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26369 #: ../src/guestfs-actions.pod:538
26370 msgid "guestfs_aug_set"
26374 #: ../src/guestfs-actions.pod:540
26378 " guestfs_aug_set (guestfs_h *g,\n"
26379 " const char *augpath,\n"
26380 " const char *val);\n"
26385 #: ../src/guestfs-actions.pod:547
26387 "In the Augeas API, it is possible to clear a node by setting the value to "
26388 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
26389 "this call. Instead you must use the C<guestfs_aug_clear> call."
26393 #: ../src/guestfs-actions.pod:556
26394 msgid "guestfs_available"
26398 #: ../src/guestfs-actions.pod:558
26402 " guestfs_available (guestfs_h *g,\n"
26403 " char *const *groups);\n"
26408 #: ../src/guestfs-actions.pod:566
26410 "The libguestfs groups, and the functions that those groups correspond to, "
26411 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
26412 "runtime by calling C<guestfs_available_all_groups>."
26416 #: ../src/guestfs-actions.pod:590
26417 msgid "You must call C<guestfs_launch> before calling this function."
26421 #: ../src/guestfs-actions.pod:612
26423 "This call was added in version C<1.0.80>. In previous versions of "
26424 "libguestfs all you could do would be to speculatively execute a command to "
26425 "find out if the daemon implemented it. See also C<guestfs_version>."
26429 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1352
26430 msgid "(Added in 1.0.80)"
26434 #: ../src/guestfs-actions.pod:623
26435 msgid "guestfs_available_all_groups"
26439 #: ../src/guestfs-actions.pod:625
26443 " guestfs_available_all_groups (guestfs_h *g);\n"
26448 #: ../src/guestfs-actions.pod:628
26450 "This command returns a list of all optional groups that this daemon knows "
26451 "about. Note this returns both supported and unsupported groups. To find "
26452 "out which ones the daemon can actually support you have to call "
26453 "C<guestfs_available> on each member of the returned list."
26457 #: ../src/guestfs-actions.pod:634
26458 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26462 #: ../src/guestfs-actions.pod:640
26463 msgid "(Added in 1.3.15)"
26467 #: ../src/guestfs-actions.pod:642
26468 msgid "guestfs_base64_in"
26472 #: ../src/guestfs-actions.pod:644
26476 " guestfs_base64_in (guestfs_h *g,\n"
26477 " const char *base64file,\n"
26478 " const char *filename);\n"
26483 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
26484 msgid "(Added in 1.3.5)"
26488 #: ../src/guestfs-actions.pod:656
26489 msgid "guestfs_base64_out"
26493 #: ../src/guestfs-actions.pod:658
26497 " guestfs_base64_out (guestfs_h *g,\n"
26498 " const char *filename,\n"
26499 " const char *base64file);\n"
26504 #: ../src/guestfs-actions.pod:670
26505 msgid "guestfs_blockdev_flushbufs"
26509 #: ../src/guestfs-actions.pod:672
26513 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26514 " const char *device);\n"
26519 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
26520 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
26521 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
26522 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
26523 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
26524 msgid "(Added in 0.9.3)"
26528 #: ../src/guestfs-actions.pod:685
26529 msgid "guestfs_blockdev_getbsz"
26533 #: ../src/guestfs-actions.pod:687
26537 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26538 " const char *device);\n"
26543 #: ../src/guestfs-actions.pod:702
26544 msgid "guestfs_blockdev_getro"
26548 #: ../src/guestfs-actions.pod:704
26552 " guestfs_blockdev_getro (guestfs_h *g,\n"
26553 " const char *device);\n"
26558 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1590
26559 #: ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:2094
26560 #: ../src/guestfs-actions.pod:2105 ../src/guestfs-actions.pod:2177
26561 #: ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2243
26562 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:2294
26563 #: ../src/guestfs-actions.pod:2317 ../src/guestfs-actions.pod:3392
26564 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
26565 #: ../src/guestfs-actions.pod:3588 ../src/guestfs-actions.pod:3602
26566 #: ../src/guestfs-actions.pod:3617 ../src/guestfs-actions.pod:3631
26567 #: ../src/guestfs-actions.pod:3647 ../src/guestfs-actions.pod:3662
26568 #: ../src/guestfs-actions.pod:3678 ../src/guestfs-actions.pod:3692
26569 #: ../src/guestfs-actions.pod:3705 ../src/guestfs-actions.pod:3719
26570 #: ../src/guestfs-actions.pod:3734 ../src/guestfs-actions.pod:3749
26571 #: ../src/guestfs-actions.pod:3762 ../src/guestfs-actions.pod:3776
26572 #: ../src/guestfs-actions.pod:5495
26573 msgid "This function returns a C truth value on success or -1 on error."
26577 #: ../src/guestfs-actions.pod:717
26578 msgid "guestfs_blockdev_getsize64"
26582 #: ../src/guestfs-actions.pod:719
26586 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26587 " const char *device);\n"
26592 #: ../src/guestfs-actions.pod:725
26593 msgid "See also C<guestfs_blockdev_getsz>."
26597 #: ../src/guestfs-actions.pod:733
26598 msgid "guestfs_blockdev_getss"
26602 #: ../src/guestfs-actions.pod:735
26606 " guestfs_blockdev_getss (guestfs_h *g,\n"
26607 " const char *device);\n"
26612 #: ../src/guestfs-actions.pod:742
26614 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26619 #: ../src/guestfs-actions.pod:751
26620 msgid "guestfs_blockdev_getsz"
26624 #: ../src/guestfs-actions.pod:753
26628 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26629 " const char *device);\n"
26634 #: ../src/guestfs-actions.pod:760
26636 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26637 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26641 #: ../src/guestfs-actions.pod:770
26642 msgid "guestfs_blockdev_rereadpt"
26646 #: ../src/guestfs-actions.pod:772
26650 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26651 " const char *device);\n"
26656 #: ../src/guestfs-actions.pod:784
26657 msgid "guestfs_blockdev_setbsz"
26661 #: ../src/guestfs-actions.pod:786
26665 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26666 " const char *device,\n"
26667 " int blocksize);\n"
26672 #: ../src/guestfs-actions.pod:802
26673 msgid "guestfs_blockdev_setro"
26677 #: ../src/guestfs-actions.pod:804
26681 " guestfs_blockdev_setro (guestfs_h *g,\n"
26682 " const char *device);\n"
26687 #: ../src/guestfs-actions.pod:816
26688 msgid "guestfs_blockdev_setrw"
26692 #: ../src/guestfs-actions.pod:818
26696 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26697 " const char *device);\n"
26702 #: ../src/guestfs-actions.pod:830
26703 msgid "guestfs_btrfs_filesystem_resize"
26707 #: ../src/guestfs-actions.pod:832
26711 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26712 " const char *mountpoint,\n"
26718 #: ../src/guestfs-actions.pod:842
26721 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26726 #: ../src/guestfs-actions.pod:865
26727 msgid "(Added in 1.11.17)"
26731 #: ../src/guestfs-actions.pod:867
26732 msgid "guestfs_btrfs_filesystem_resize_va"
26736 #: ../src/guestfs-actions.pod:869
26740 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26741 " const char *mountpoint,\n"
26742 " va_list args);\n"
26747 #: ../src/guestfs-actions.pod:874
26748 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26752 #: ../src/guestfs-actions.pod:878
26753 msgid "guestfs_btrfs_filesystem_resize_argv"
26757 #: ../src/guestfs-actions.pod:880
26761 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26762 " const char *mountpoint,\n"
26763 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26768 #: ../src/guestfs-actions.pod:885
26769 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26773 #: ../src/guestfs-actions.pod:889
26774 msgid "guestfs_case_sensitive_path"
26778 #: ../src/guestfs-actions.pod:891
26782 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26783 " const char *path);\n"
26788 #: ../src/guestfs-actions.pod:917
26790 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
26791 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26792 "how the directories were originally created under Windows)."
26796 #: ../src/guestfs-actions.pod:925
26797 msgid "See also C<guestfs_realpath>."
26801 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7559
26802 msgid "(Added in 1.0.75)"
26806 #: ../src/guestfs-actions.pod:932
26807 msgid "guestfs_cat"
26811 #: ../src/guestfs-actions.pod:934
26815 " guestfs_cat (guestfs_h *g,\n"
26816 " const char *path);\n"
26821 #: ../src/guestfs-actions.pod:940
26823 "Note that this function cannot correctly handle binary files (specifically, "
26824 "files containing C<\\0> character which is treated as end of string). For "
26825 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26826 "functions which have a more complex interface."
26830 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3906
26831 #: ../src/guestfs-actions.pod:3988 ../src/guestfs-actions.pod:4005
26832 #: ../src/guestfs-actions.pod:4093 ../src/guestfs-actions.pod:4501
26833 #: ../src/guestfs-actions.pod:4515 ../src/guestfs-actions.pod:5876
26834 #: ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:7712
26835 #: ../src/guestfs-actions.pod:7726
26836 msgid "(Added in 0.4)"
26840 #: ../src/guestfs-actions.pod:953
26841 msgid "guestfs_checksum"
26845 #: ../src/guestfs-actions.pod:955
26849 " guestfs_checksum (guestfs_h *g,\n"
26850 " const char *csumtype,\n"
26851 " const char *path);\n"
26856 #: ../src/guestfs-actions.pod:1001
26857 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26861 #: ../src/guestfs-actions.pod:1003
26862 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26866 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1427
26867 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:3604
26868 #: ../src/guestfs-actions.pod:3633 ../src/guestfs-actions.pod:3694
26869 #: ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:7415
26870 msgid "(Added in 1.0.2)"
26874 #: ../src/guestfs-actions.pod:1010
26875 msgid "guestfs_checksum_device"
26879 #: ../src/guestfs-actions.pod:1012
26883 " guestfs_checksum_device (guestfs_h *g,\n"
26884 " const char *csumtype,\n"
26885 " const char *device);\n"
26890 #: ../src/guestfs-actions.pod:1017
26892 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26893 "device named C<device>. For the types of checksums supported see the "
26894 "C<guestfs_checksum> command."
26898 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5325
26899 #: ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5497
26900 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5697
26901 #: ../src/guestfs-actions.pod:7324 ../src/guestfs-actions.pod:7338
26902 #: ../src/guestfs-actions.pod:7738
26903 msgid "(Added in 1.3.2)"
26907 #: ../src/guestfs-actions.pod:1026
26908 msgid "guestfs_checksums_out"
26912 #: ../src/guestfs-actions.pod:1028
26916 " guestfs_checksums_out (guestfs_h *g,\n"
26917 " const char *csumtype,\n"
26918 " const char *directory,\n"
26919 " const char *sumsfile);\n"
26924 #: ../src/guestfs-actions.pod:1048
26925 msgid "(Added in 1.3.7)"
26929 #: ../src/guestfs-actions.pod:1050
26930 msgid "guestfs_chmod"
26934 #: ../src/guestfs-actions.pod:1052
26938 " guestfs_chmod (guestfs_h *g,\n"
26940 " const char *path);\n"
26945 #: ../src/guestfs-actions.pod:1070
26946 msgid "guestfs_chown"
26950 #: ../src/guestfs-actions.pod:1072
26954 " guestfs_chown (guestfs_h *g,\n"
26957 " const char *path);\n"
26962 #: ../src/guestfs-actions.pod:1088
26963 msgid "guestfs_command"
26967 #: ../src/guestfs-actions.pod:1090
26971 " guestfs_command (guestfs_h *g,\n"
26972 " char *const *arguments);\n"
26977 #: ../src/guestfs-actions.pod:1099
26979 "The single parameter is an argv-style list of arguments. The first element "
26980 "is the name of the program to run. Subsequent elements are parameters. The "
26981 "list must be non-empty (ie. must contain a program name). Note that the "
26982 "command runs directly, and is I<not> invoked via the shell (see "
26987 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
26988 #: ../src/guestfs-actions.pod:1726
26989 msgid "(Added in 0.9.1)"
26993 #: ../src/guestfs-actions.pod:1132
26994 msgid "guestfs_command_lines"
26998 #: ../src/guestfs-actions.pod:1134
27002 " guestfs_command_lines (guestfs_h *g,\n"
27003 " char *const *arguments);\n"
27008 #: ../src/guestfs-actions.pod:1138
27010 "This is the same as C<guestfs_command>, but splits the result into a list of "
27015 #: ../src/guestfs-actions.pod:1141
27016 msgid "See also: C<guestfs_sh_lines>"
27020 #: ../src/guestfs-actions.pod:1152
27022 #| msgid "guestfs_zero_device"
27023 msgid "guestfs_compress_device_out"
27024 msgstr "guestfs_zero_device"
27027 #: ../src/guestfs-actions.pod:1154
27031 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
27032 #| " const char *device,\n"
27033 #| " const char *key,\n"
27034 #| " int keyslot,\n"
27035 #| " const char *cipher);\n"
27039 " guestfs_compress_device_out (guestfs_h *g,\n"
27040 " const char *ctype,\n"
27041 " const char *device,\n"
27042 " const char *zdevice,\n"
27047 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27048 " const char *device,\n"
27049 " const char *key,\n"
27051 " const char *cipher);\n"
27055 #: ../src/guestfs-actions.pod:1166
27058 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
27063 #: ../src/guestfs-actions.pod:1171
27065 "The C<ctype> and optional C<level> parameters have the same meaning as in "
27066 "C<guestfs_compress_out>."
27070 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1235
27071 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:6596
27073 #| msgid "(Added in 1.3.1)"
27074 msgid "(Added in 1.13.15)"
27075 msgstr "(Додано у 1.3.1)"
27078 #: ../src/guestfs-actions.pod:1178
27080 #| msgid "guestfs_zero_device"
27081 msgid "guestfs_compress_device_out_va"
27082 msgstr "guestfs_zero_device"
27085 #: ../src/guestfs-actions.pod:1180
27089 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
27090 #| " const char *device,\n"
27091 #| " const char *key,\n"
27092 #| " int keyslot,\n"
27093 #| " const char *cipher);\n"
27097 " guestfs_compress_device_out_va (guestfs_h *g,\n"
27098 " const char *ctype,\n"
27099 " const char *device,\n"
27100 " const char *zdevice,\n"
27101 " va_list args);\n"
27105 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27106 " const char *device,\n"
27107 " const char *key,\n"
27109 " const char *cipher);\n"
27113 #: ../src/guestfs-actions.pod:1187
27114 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
27118 #: ../src/guestfs-actions.pod:1191
27120 #| msgid "guestfs_mkfs_opts_argv"
27121 msgid "guestfs_compress_device_out_argv"
27122 msgstr "guestfs_mkfs_opts_argv"
27125 #: ../src/guestfs-actions.pod:1193
27129 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27130 #| " const char *fstype,\n"
27131 #| " const char *device,\n"
27132 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
27136 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
27137 " const char *ctype,\n"
27138 " const char *device,\n"
27139 " const char *zdevice,\n"
27140 " const struct guestfs_compress_device_out_argv *optargs);\n"
27144 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27145 " const char *fstype,\n"
27146 " const char *device,\n"
27147 " const struct guestfs_mkfs_opts_argv *optargs);\n"
27151 #: ../src/guestfs-actions.pod:1200
27152 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
27156 #: ../src/guestfs-actions.pod:1204
27158 #| msgid "guestfs_create"
27159 msgid "guestfs_compress_out"
27160 msgstr "guestfs_create"
27163 #: ../src/guestfs-actions.pod:1206
27167 #| " guestfs_luks_add_key (guestfs_h *g,\n"
27168 #| " const char *device,\n"
27169 #| " const char *key,\n"
27170 #| " const char *newkey,\n"
27171 #| " int keyslot);\n"
27175 " guestfs_compress_out (guestfs_h *g,\n"
27176 " const char *ctype,\n"
27177 " const char *file,\n"
27178 " const char *zfile,\n"
27183 " guestfs_luks_add_key (guestfs_h *g,\n"
27184 " const char *device,\n"
27185 " const char *key,\n"
27186 " const char *newkey,\n"
27191 #: ../src/guestfs-actions.pod:1218
27194 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
27199 #: ../src/guestfs-actions.pod:1237
27201 #| msgid "guestfs_mkfs_opts_va"
27202 msgid "guestfs_compress_out_va"
27203 msgstr "guestfs_mkfs_opts_va"
27206 #: ../src/guestfs-actions.pod:1239
27210 #| " guestfs_luks_add_key (guestfs_h *g,\n"
27211 #| " const char *device,\n"
27212 #| " const char *key,\n"
27213 #| " const char *newkey,\n"
27214 #| " int keyslot);\n"
27218 " guestfs_compress_out_va (guestfs_h *g,\n"
27219 " const char *ctype,\n"
27220 " const char *file,\n"
27221 " const char *zfile,\n"
27222 " va_list args);\n"
27226 " guestfs_luks_add_key (guestfs_h *g,\n"
27227 " const char *device,\n"
27228 " const char *key,\n"
27229 " const char *newkey,\n"
27234 #: ../src/guestfs-actions.pod:1246
27235 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
27239 #: ../src/guestfs-actions.pod:1250
27241 #| msgid "guestfs_mkfs_opts_argv"
27242 msgid "guestfs_compress_out_argv"
27243 msgstr "guestfs_mkfs_opts_argv"
27246 #: ../src/guestfs-actions.pod:1252
27250 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27251 #| " const char *fstype,\n"
27252 #| " const char *device,\n"
27253 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
27257 " guestfs_compress_out_argv (guestfs_h *g,\n"
27258 " const char *ctype,\n"
27259 " const char *file,\n"
27260 " const char *zfile,\n"
27261 " const struct guestfs_compress_out_argv *optargs);\n"
27265 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27266 " const char *fstype,\n"
27267 " const char *device,\n"
27268 " const struct guestfs_mkfs_opts_argv *optargs);\n"
27272 #: ../src/guestfs-actions.pod:1259
27273 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
27277 #: ../src/guestfs-actions.pod:1263
27278 msgid "guestfs_config"
27282 #: ../src/guestfs-actions.pod:1265
27286 " guestfs_config (guestfs_h *g,\n"
27287 " const char *qemuparam,\n"
27288 " const char *qemuvalue);\n"
27293 #: ../src/guestfs-actions.pod:1283
27294 msgid "guestfs_copy_size"
27298 #: ../src/guestfs-actions.pod:1285
27302 " guestfs_copy_size (guestfs_h *g,\n"
27303 " const char *src,\n"
27304 " const char *dest,\n"
27305 " int64_t size);\n"
27310 #: ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1422
27311 #: ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1498
27312 #: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:1897
27313 #: ../src/guestfs-actions.pod:3804 ../src/guestfs-actions.pod:7410
27314 #: ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7951
27315 #: ../src/guestfs-actions.pod:7974
27317 "This long-running command can generate progress notification messages so "
27318 "that the caller can display a progress bar or indicator. To receive these "
27319 "messages, the caller must register a progress event callback. See L<guestfs"
27320 "(3)/GUESTFS_EVENT_PROGRESS>."
27324 #: ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:4528
27325 #: ../src/guestfs-actions.pod:5903 ../src/guestfs-actions.pod:7645
27326 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7751
27327 msgid "(Added in 1.0.87)"
27331 #: ../src/guestfs-actions.pod:1306
27336 #: ../src/guestfs-actions.pod:1308
27340 " guestfs_cp (guestfs_h *g,\n"
27341 " const char *src,\n"
27342 " const char *dest);\n"
27347 #: ../src/guestfs-actions.pod:1318 ../src/guestfs-actions.pod:1332
27348 #: ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1478
27349 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:5272
27350 #: ../src/guestfs-actions.pod:5747
27351 msgid "(Added in 1.0.18)"
27355 #: ../src/guestfs-actions.pod:1320
27356 msgid "guestfs_cp_a"
27360 #: ../src/guestfs-actions.pod:1322
27364 " guestfs_cp_a (guestfs_h *g,\n"
27365 " const char *src,\n"
27366 " const char *dest);\n"
27371 #: ../src/guestfs-actions.pod:1334
27376 #: ../src/guestfs-actions.pod:1336
27380 " guestfs_dd (guestfs_h *g,\n"
27381 " const char *src,\n"
27382 " const char *dest);\n"
27387 #: ../src/guestfs-actions.pod:1346
27389 "If the destination is a device, it must be as large or larger than the "
27390 "source file or device, otherwise the copy will fail. This command cannot do "
27391 "partial copies (see C<guestfs_copy_size>)."
27395 #: ../src/guestfs-actions.pod:1354
27400 #: ../src/guestfs-actions.pod:1356
27404 " guestfs_df (guestfs_h *g);\n"
27409 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
27411 "This command is mostly useful for interactive sessions. It is I<not> "
27412 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
27417 #: ../src/guestfs-actions.pod:1368 ../src/guestfs-actions.pod:1385
27418 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:2510
27419 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2602
27420 #: ../src/guestfs-actions.pod:4638 ../src/guestfs-actions.pod:5172
27421 #: ../src/guestfs-actions.pod:7148 ../src/guestfs-actions.pod:7172
27422 #: ../src/guestfs-actions.pod:7791 ../src/guestfs-actions.pod:7804
27423 #: ../src/guestfs-actions.pod:7817
27424 msgid "(Added in 1.0.54)"
27428 #: ../src/guestfs-actions.pod:1370
27429 msgid "guestfs_df_h"
27433 #: ../src/guestfs-actions.pod:1372
27437 " guestfs_df_h (guestfs_h *g);\n"
27442 #: ../src/guestfs-actions.pod:1387
27443 msgid "guestfs_dmesg"
27447 #: ../src/guestfs-actions.pod:1389
27451 " guestfs_dmesg (guestfs_h *g);\n"
27456 #: ../src/guestfs-actions.pod:1396
27458 "Another way to get the same information is to enable verbose messages with "
27459 "C<guestfs_set_verbose> or by setting the environment variable "
27460 "C<LIBGUESTFS_DEBUG=1> before running the program."
27464 #: ../src/guestfs-actions.pod:1406
27465 msgid "guestfs_download"
27469 #: ../src/guestfs-actions.pod:1408
27473 " guestfs_download (guestfs_h *g,\n"
27474 " const char *remotefilename,\n"
27475 " const char *filename);\n"
27480 #: ../src/guestfs-actions.pod:1418
27481 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27485 #: ../src/guestfs-actions.pod:1429
27486 msgid "guestfs_download_offset"
27490 #: ../src/guestfs-actions.pod:1431
27494 " guestfs_download_offset (guestfs_h *g,\n"
27495 " const char *remotefilename,\n"
27496 " const char *filename,\n"
27497 " int64_t offset,\n"
27498 " int64_t size);\n"
27503 #: ../src/guestfs-actions.pod:1444
27505 "Note that there is no limit on the amount of data that can be downloaded "
27506 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27507 "full amount unless an error occurs."
27511 #: ../src/guestfs-actions.pod:1449
27512 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27516 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:7449
27517 msgid "(Added in 1.5.17)"
27521 #: ../src/guestfs-actions.pod:1460
27522 msgid "guestfs_drop_caches"
27526 #: ../src/guestfs-actions.pod:1462
27530 " guestfs_drop_caches (guestfs_h *g,\n"
27531 " int whattodrop);\n"
27536 #: ../src/guestfs-actions.pod:1480
27541 #: ../src/guestfs-actions.pod:1482
27545 " guestfs_du (guestfs_h *g,\n"
27546 " const char *path);\n"
27551 #: ../src/guestfs-actions.pod:1505
27552 msgid "guestfs_e2fsck_f"
27556 #: ../src/guestfs-actions.pod:1507
27560 " guestfs_e2fsck_f (guestfs_h *g,\n"
27561 " const char *device);\n"
27566 #: ../src/guestfs-actions.pod:1515
27568 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
27569 "Normally you should use C<guestfs_fsck>."
27573 #: ../src/guestfs-actions.pod:1520
27574 msgid "(Added in 1.0.29)"
27578 #: ../src/guestfs-actions.pod:1522
27579 msgid "guestfs_echo_daemon"
27583 #: ../src/guestfs-actions.pod:1524
27587 " guestfs_echo_daemon (guestfs_h *g,\n"
27588 " char *const *words);\n"
27593 #: ../src/guestfs-actions.pod:1533
27594 msgid "See also C<guestfs_ping_daemon>."
27598 #: ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:2296
27599 #: ../src/guestfs-actions.pod:6620
27600 msgid "(Added in 1.0.69)"
27604 #: ../src/guestfs-actions.pod:1540
27605 msgid "guestfs_egrep"
27609 #: ../src/guestfs-actions.pod:1542
27613 " guestfs_egrep (guestfs_h *g,\n"
27614 " const char *regex,\n"
27615 " const char *path);\n"
27620 #: ../src/guestfs-actions.pod:1557 ../src/guestfs-actions.pod:1576
27621 #: ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1679
27622 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:2426
27623 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2623
27624 #: ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2651
27625 #: ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2719
27626 #: ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:4018
27627 #: ../src/guestfs-actions.pod:4032 ../src/guestfs-actions.pod:4045
27628 #: ../src/guestfs-actions.pod:4059 ../src/guestfs-actions.pod:5060
27629 #: ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6130
27630 #: ../src/guestfs-actions.pod:7016 ../src/guestfs-actions.pod:7028
27631 #: ../src/guestfs-actions.pod:7041 ../src/guestfs-actions.pod:7054
27632 #: ../src/guestfs-actions.pod:7076 ../src/guestfs-actions.pod:7089
27633 #: ../src/guestfs-actions.pod:7102 ../src/guestfs-actions.pod:7115
27634 #: ../src/guestfs-actions.pod:7909 ../src/guestfs-actions.pod:7928
27635 #: ../src/guestfs-actions.pod:8022 ../src/guestfs-actions.pod:8041
27636 #: ../src/guestfs-actions.pod:8087 ../src/guestfs-actions.pod:8106
27637 msgid "(Added in 1.0.66)"
27641 #: ../src/guestfs-actions.pod:1559
27642 msgid "guestfs_egrepi"
27646 #: ../src/guestfs-actions.pod:1561
27650 " guestfs_egrepi (guestfs_h *g,\n"
27651 " const char *regex,\n"
27652 " const char *path);\n"
27657 #: ../src/guestfs-actions.pod:1578
27658 msgid "guestfs_equal"
27662 #: ../src/guestfs-actions.pod:1580
27666 " guestfs_equal (guestfs_h *g,\n"
27667 " const char *file1,\n"
27668 " const char *file2);\n"
27673 #: ../src/guestfs-actions.pod:1594
27674 msgid "guestfs_exists"
27678 #: ../src/guestfs-actions.pod:1596
27682 " guestfs_exists (guestfs_h *g,\n"
27683 " const char *path);\n"
27688 #: ../src/guestfs-actions.pod:1603
27689 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27693 #: ../src/guestfs-actions.pod:1609
27694 msgid "guestfs_fallocate"
27698 #: ../src/guestfs-actions.pod:1611
27702 " guestfs_fallocate (guestfs_h *g,\n"
27703 " const char *path,\n"
27709 #: ../src/guestfs-actions.pod:1616
27711 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27716 #: ../src/guestfs-actions.pod:1635
27717 msgid "guestfs_fallocate64"
27721 #: ../src/guestfs-actions.pod:1637
27725 " guestfs_fallocate64 (guestfs_h *g,\n"
27726 " const char *path,\n"
27732 #: ../src/guestfs-actions.pod:1646
27734 "Note that this call allocates disk blocks for the file. To create a sparse "
27735 "file use C<guestfs_truncate_size> instead."
27739 #: ../src/guestfs-actions.pod:1649
27741 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27742 "oversight it only allowed 30 bit lengths to be specified, effectively "
27743 "limiting the maximum size of files created through that call to 1GB."
27747 #: ../src/guestfs-actions.pod:1660
27748 msgid "(Added in 1.3.17)"
27752 #: ../src/guestfs-actions.pod:1662
27753 msgid "guestfs_fgrep"
27757 #: ../src/guestfs-actions.pod:1664
27761 " guestfs_fgrep (guestfs_h *g,\n"
27762 " const char *pattern,\n"
27763 " const char *path);\n"
27768 #: ../src/guestfs-actions.pod:1681
27769 msgid "guestfs_fgrepi"
27773 #: ../src/guestfs-actions.pod:1683
27777 " guestfs_fgrepi (guestfs_h *g,\n"
27778 " const char *pattern,\n"
27779 " const char *path);\n"
27784 #: ../src/guestfs-actions.pod:1700
27785 msgid "guestfs_file"
27789 #: ../src/guestfs-actions.pod:1702
27793 " guestfs_file (guestfs_h *g,\n"
27794 " const char *path);\n"
27799 #: ../src/guestfs-actions.pod:1720
27801 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27802 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27806 #: ../src/guestfs-actions.pod:1728
27807 msgid "guestfs_file_architecture"
27811 #: ../src/guestfs-actions.pod:1730
27815 " guestfs_file_architecture (guestfs_h *g,\n"
27816 " const char *filename);\n"
27821 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2001
27822 #: ../src/guestfs-actions.pod:2018 ../src/guestfs-actions.pod:2752
27823 #: ../src/guestfs-actions.pod:2854 ../src/guestfs-actions.pod:2920
27824 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3125
27825 #: ../src/guestfs-actions.pod:3165 ../src/guestfs-actions.pod:3241
27826 #: ../src/guestfs-actions.pod:3338 ../src/guestfs-actions.pod:3575
27827 #: ../src/guestfs-actions.pod:3707
27828 msgid "(Added in 1.5.3)"
27832 #: ../src/guestfs-actions.pod:1840
27833 msgid "guestfs_filesize"
27837 #: ../src/guestfs-actions.pod:1842
27841 " guestfs_filesize (guestfs_h *g,\n"
27842 " const char *file);\n"
27847 #: ../src/guestfs-actions.pod:1848
27849 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27850 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
27851 "devices, use C<guestfs_blockdev_getsize64>."
27855 #: ../src/guestfs-actions.pod:1854
27856 msgid "(Added in 1.0.82)"
27860 #: ../src/guestfs-actions.pod:1856
27861 msgid "guestfs_fill"
27865 #: ../src/guestfs-actions.pod:1858
27869 " guestfs_fill (guestfs_h *g,\n"
27872 " const char *path);\n"
27877 #: ../src/guestfs-actions.pod:1868
27879 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27880 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
27881 "bytes use C<guestfs_fill_pattern>."
27885 #: ../src/guestfs-actions.pod:1880
27886 msgid "(Added in 1.0.79)"
27890 #: ../src/guestfs-actions.pod:1882
27891 msgid "guestfs_fill_pattern"
27895 #: ../src/guestfs-actions.pod:1884
27899 " guestfs_fill_pattern (guestfs_h *g,\n"
27900 " const char *pattern,\n"
27902 " const char *path);\n"
27907 #: ../src/guestfs-actions.pod:1890
27909 "This function is like C<guestfs_fill> except that it creates a new file of "
27910 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
27911 "pattern is truncated if necessary to ensure the length of the file is "
27912 "exactly C<len> bytes."
27916 #: ../src/guestfs-actions.pod:1902
27917 msgid "(Added in 1.3.12)"
27921 #: ../src/guestfs-actions.pod:1904
27922 msgid "guestfs_find"
27926 #: ../src/guestfs-actions.pod:1906
27930 " guestfs_find (guestfs_h *g,\n"
27931 " const char *directory);\n"
27936 #: ../src/guestfs-actions.pod:1922
27938 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27942 #: ../src/guestfs-actions.pod:1935
27943 msgid "See also C<guestfs_find0>."
27947 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:4465
27948 #: ../src/guestfs-actions.pod:6165
27949 msgid "(Added in 1.0.27)"
27953 #: ../src/guestfs-actions.pod:1946
27954 msgid "guestfs_find0"
27958 #: ../src/guestfs-actions.pod:1948
27962 " guestfs_find0 (guestfs_h *g,\n"
27963 " const char *directory,\n"
27964 " const char *files);\n"
27969 #: ../src/guestfs-actions.pod:1957
27971 "This command works the same way as C<guestfs_find> with the following "
27976 #: ../src/guestfs-actions.pod:1984
27977 msgid "(Added in 1.0.74)"
27981 #: ../src/guestfs-actions.pod:1986
27982 msgid "guestfs_findfs_label"
27986 #: ../src/guestfs-actions.pod:1988
27990 " guestfs_findfs_label (guestfs_h *g,\n"
27991 " const char *label);\n"
27996 #: ../src/guestfs-actions.pod:1996
27997 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28001 #: ../src/guestfs-actions.pod:2003
28002 msgid "guestfs_findfs_uuid"
28006 #: ../src/guestfs-actions.pod:2005
28010 " guestfs_findfs_uuid (guestfs_h *g,\n"
28011 " const char *uuid);\n"
28016 #: ../src/guestfs-actions.pod:2013
28017 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28021 #: ../src/guestfs-actions.pod:2020
28022 msgid "guestfs_fsck"
28026 #: ../src/guestfs-actions.pod:2022
28030 " guestfs_fsck (guestfs_h *g,\n"
28031 " const char *fstype,\n"
28032 " const char *device);\n"
28037 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:7956
28038 msgid "(Added in 1.0.16)"
28042 #: ../src/guestfs-actions.pod:2059
28043 msgid "guestfs_get_append"
28047 #: ../src/guestfs-actions.pod:2061
28051 " guestfs_get_append (guestfs_h *g);\n"
28056 #: ../src/guestfs-actions.pod:2069
28058 "This function returns a string which may be NULL. There is no way to return "
28059 "an error from this function. The string is owned by the guest handle and "
28060 "must I<not> be freed."
28064 #: ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5843
28065 #: ../src/guestfs-actions.pod:6325 ../src/guestfs-actions.pod:6783
28066 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6818
28067 #: ../src/guestfs-actions.pod:6842 ../src/guestfs-actions.pod:7596
28068 #: ../src/guestfs-actions.pod:7611 ../src/guestfs-actions.pod:8003
28069 msgid "(Added in 1.0.26)"
28073 #: ../src/guestfs-actions.pod:2075
28074 msgid "guestfs_get_attach_method"
28078 #: ../src/guestfs-actions.pod:2077
28082 " guestfs_get_attach_method (guestfs_h *g);\n"
28087 #: ../src/guestfs-actions.pod:2080
28088 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
28092 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:6355
28093 msgid "(Added in 1.9.8)"
28097 #: ../src/guestfs-actions.pod:2087
28098 msgid "guestfs_get_autosync"
28102 #: ../src/guestfs-actions.pod:2089
28106 " guestfs_get_autosync (guestfs_h *g);\n"
28111 #: ../src/guestfs-actions.pod:2098
28112 msgid "guestfs_get_direct"
28116 #: ../src/guestfs-actions.pod:2100
28120 " guestfs_get_direct (guestfs_h *g);\n"
28125 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:6396
28126 msgid "(Added in 1.0.72)"
28130 #: ../src/guestfs-actions.pod:2109
28131 msgid "guestfs_get_e2label"
28135 #: ../src/guestfs-actions.pod:2111
28139 " guestfs_get_e2label (guestfs_h *g,\n"
28140 " const char *device);\n"
28145 #: ../src/guestfs-actions.pod:2115
28147 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28152 #: ../src/guestfs-actions.pod:2128 ../src/guestfs-actions.pod:2149
28153 #: ../src/guestfs-actions.pod:6414 ../src/guestfs-actions.pod:6433
28154 msgid "(Added in 1.0.15)"
28158 #: ../src/guestfs-actions.pod:2130
28159 msgid "guestfs_get_e2uuid"
28163 #: ../src/guestfs-actions.pod:2132
28167 " guestfs_get_e2uuid (guestfs_h *g,\n"
28168 " const char *device);\n"
28173 #: ../src/guestfs-actions.pod:2136
28175 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28180 #: ../src/guestfs-actions.pod:2151
28181 msgid "guestfs_get_memsize"
28185 #: ../src/guestfs-actions.pod:2153
28189 " guestfs_get_memsize (guestfs_h *g);\n"
28194 #: ../src/guestfs-actions.pod:2159
28196 "If C<guestfs_set_memsize> was not called on this handle, and if "
28197 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28198 "value for memsize."
28202 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:4756
28203 #: ../src/guestfs-actions.pod:4965 ../src/guestfs-actions.pod:4984
28204 #: ../src/guestfs-actions.pod:5003 ../src/guestfs-actions.pod:5015
28205 #: ../src/guestfs-actions.pod:5032 ../src/guestfs-actions.pod:5045
28206 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6454
28207 #: ../src/guestfs-actions.pod:6750 ../src/guestfs-actions.pod:7365
28208 msgid "(Added in 1.0.55)"
28212 #: ../src/guestfs-actions.pod:2170
28213 msgid "guestfs_get_network"
28217 #: ../src/guestfs-actions.pod:2172
28221 " guestfs_get_network (guestfs_h *g);\n"
28226 #: ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:6473
28227 msgid "(Added in 1.5.4)"
28231 #: ../src/guestfs-actions.pod:2181
28232 msgid "guestfs_get_path"
28236 #: ../src/guestfs-actions.pod:2183
28240 " guestfs_get_path (guestfs_h *g);\n"
28245 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2231
28247 "This function returns a string, or NULL on error. The string is owned by "
28248 "the guest handle and must I<not> be freed."
28252 #: ../src/guestfs-actions.pod:2196
28253 msgid "guestfs_get_pgroup"
28257 #: ../src/guestfs-actions.pod:2198
28261 " guestfs_get_pgroup (guestfs_h *g);\n"
28266 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6509
28267 #: ../src/guestfs-actions.pod:7857
28269 #| msgid "(Added in 1.5.1)"
28270 msgid "(Added in 1.11.18)"
28271 msgstr "(Додано у 1.5.1)"
28274 #: ../src/guestfs-actions.pod:2207
28275 msgid "guestfs_get_pid"
28279 #: ../src/guestfs-actions.pod:2209
28283 " guestfs_get_pid (guestfs_h *g);\n"
28288 #: ../src/guestfs-actions.pod:2219
28289 msgid "(Added in 1.0.56)"
28293 #: ../src/guestfs-actions.pod:2221
28294 msgid "guestfs_get_qemu"
28298 #: ../src/guestfs-actions.pod:2223
28302 " guestfs_get_qemu (guestfs_h *g);\n"
28307 #: ../src/guestfs-actions.pod:2234 ../src/guestfs-actions.pod:6537
28308 msgid "(Added in 1.0.6)"
28312 #: ../src/guestfs-actions.pod:2236
28313 msgid "guestfs_get_recovery_proc"
28317 #: ../src/guestfs-actions.pod:2238
28321 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28326 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:3829
28327 #: ../src/guestfs-actions.pod:4160 ../src/guestfs-actions.pod:4563
28328 #: ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:5773
28329 #: ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6561
28330 #: ../src/guestfs-actions.pod:7268 ../src/guestfs-actions.pod:7288
28331 #: ../src/guestfs-actions.pod:7480
28332 msgid "(Added in 1.0.77)"
28336 #: ../src/guestfs-actions.pod:2247
28337 msgid "guestfs_get_selinux"
28341 #: ../src/guestfs-actions.pod:2249
28345 " guestfs_get_selinux (guestfs_h *g);\n"
28350 #: ../src/guestfs-actions.pod:2252
28352 "This returns the current setting of the selinux flag which is passed to the "
28353 "appliance at boot time. See C<guestfs_set_selinux>."
28357 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2334
28358 #: ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6654
28359 msgid "(Added in 1.0.67)"
28363 #: ../src/guestfs-actions.pod:2262
28365 #| msgid "guestfs_zgrep"
28366 msgid "guestfs_get_smp"
28367 msgstr "guestfs_zgrep"
28370 #: ../src/guestfs-actions.pod:2264
28373 #| " int guestfs_last_errno (guestfs_h *g);\n"
28377 " guestfs_get_smp (guestfs_h *g);\n"
28380 " int guestfs_last_errno (guestfs_h *g);\n"
28384 #: ../src/guestfs-actions.pod:2273
28385 msgid "guestfs_get_state"
28389 #: ../src/guestfs-actions.pod:2275
28393 " guestfs_get_state (guestfs_h *g);\n"
28398 #: ../src/guestfs-actions.pod:2287
28399 msgid "guestfs_get_trace"
28403 #: ../src/guestfs-actions.pod:2289
28407 " guestfs_get_trace (guestfs_h *g);\n"
28412 #: ../src/guestfs-actions.pod:2298
28413 msgid "guestfs_get_umask"
28417 #: ../src/guestfs-actions.pod:2300
28421 " guestfs_get_umask (guestfs_h *g);\n"
28426 #: ../src/guestfs-actions.pod:2303
28428 "Return the current umask. By default the umask is C<022> unless it has been "
28429 "set by calling C<guestfs_umask>."
28433 #: ../src/guestfs-actions.pod:2310
28434 msgid "guestfs_get_verbose"
28438 #: ../src/guestfs-actions.pod:2312
28442 " guestfs_get_verbose (guestfs_h *g);\n"
28447 #: ../src/guestfs-actions.pod:2321
28448 msgid "guestfs_getcon"
28452 #: ../src/guestfs-actions.pod:2323
28456 " guestfs_getcon (guestfs_h *g);\n"
28461 #: ../src/guestfs-actions.pod:2328
28463 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28467 #: ../src/guestfs-actions.pod:2336
28468 msgid "guestfs_getxattr"
28472 #: ../src/guestfs-actions.pod:2338
28476 " guestfs_getxattr (guestfs_h *g,\n"
28477 " const char *path,\n"
28478 " const char *name,\n"
28479 " size_t *size_r);\n"
28484 #: ../src/guestfs-actions.pod:2344
28486 "Get a single extended attribute from file C<path> named C<name>. This call "
28487 "follows symlinks. If you want to lookup an extended attribute for the "
28488 "symlink itself, use C<guestfs_lgetxattr>."
28492 #: ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:3843
28494 "Normally it is better to get all extended attributes from a file in one go "
28495 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
28496 "implementations are buggy and do not provide a way to list out attributes. "
28497 "For these filesystems (notably ntfs-3g) you have to know the names of the "
28498 "extended attributes you want in advance and call this function."
28502 #: ../src/guestfs-actions.pod:2358
28503 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28507 #: ../src/guestfs-actions.pod:2360 ../src/guestfs-actions.pod:2573
28508 #: ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3855
28509 #: ../src/guestfs-actions.pod:5766 ../src/guestfs-actions.pod:5792
28510 #: ../src/guestfs-actions.pod:5973
28512 "This function returns a buffer, or NULL on error. The size of the returned "
28513 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
28518 #: ../src/guestfs-actions.pod:2364 ../src/guestfs-actions.pod:3859
28519 msgid "(Added in 1.7.24)"
28523 #: ../src/guestfs-actions.pod:2366
28524 msgid "guestfs_getxattrs"
28528 #: ../src/guestfs-actions.pod:2368
28531 " struct guestfs_xattr_list *\n"
28532 " guestfs_getxattrs (guestfs_h *g,\n"
28533 " const char *path);\n"
28538 #: ../src/guestfs-actions.pod:2378
28539 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28543 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:3871
28544 #: ../src/guestfs-actions.pod:4559
28546 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28547 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
28551 #: ../src/guestfs-actions.pod:2384 ../src/guestfs-actions.pod:3875
28552 #: ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4110
28553 #: ../src/guestfs-actions.pod:6146 ../src/guestfs-actions.pod:6673
28554 #: ../src/guestfs-actions.pod:8068
28555 msgid "(Added in 1.0.59)"
28559 #: ../src/guestfs-actions.pod:2386
28560 msgid "guestfs_glob_expand"
28564 #: ../src/guestfs-actions.pod:2388
28568 " guestfs_glob_expand (guestfs_h *g,\n"
28569 " const char *pattern);\n"
28574 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6866
28575 #: ../src/guestfs-actions.pod:6883
28576 msgid "(Added in 1.0.50)"
28580 #: ../src/guestfs-actions.pod:2409
28581 msgid "guestfs_grep"
28585 #: ../src/guestfs-actions.pod:2411
28589 " guestfs_grep (guestfs_h *g,\n"
28590 " const char *regex,\n"
28591 " const char *path);\n"
28596 #: ../src/guestfs-actions.pod:2428
28597 msgid "guestfs_grepi"
28601 #: ../src/guestfs-actions.pod:2430
28605 " guestfs_grepi (guestfs_h *g,\n"
28606 " const char *regex,\n"
28607 " const char *path);\n"
28612 #: ../src/guestfs-actions.pod:2447
28613 msgid "guestfs_grub_install"
28617 #: ../src/guestfs-actions.pod:2449
28621 " guestfs_grub_install (guestfs_h *g,\n"
28622 " const char *root,\n"
28623 " const char *device);\n"
28628 #: ../src/guestfs-actions.pod:2492
28629 msgid "(Added in 1.0.17)"
28633 #: ../src/guestfs-actions.pod:2494
28634 msgid "guestfs_head"
28638 #: ../src/guestfs-actions.pod:2496
28642 " guestfs_head (guestfs_h *g,\n"
28643 " const char *path);\n"
28648 #: ../src/guestfs-actions.pod:2512
28649 msgid "guestfs_head_n"
28653 #: ../src/guestfs-actions.pod:2514
28657 " guestfs_head_n (guestfs_h *g,\n"
28659 " const char *path);\n"
28664 #: ../src/guestfs-actions.pod:2536
28665 msgid "guestfs_hexdump"
28669 #: ../src/guestfs-actions.pod:2538
28673 " guestfs_hexdump (guestfs_h *g,\n"
28674 " const char *path);\n"
28679 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:6947
28680 #: ../src/guestfs-actions.pod:7002
28681 msgid "(Added in 1.0.22)"
28685 #: ../src/guestfs-actions.pod:2553
28686 msgid "guestfs_initrd_cat"
28690 #: ../src/guestfs-actions.pod:2555
28694 " guestfs_initrd_cat (guestfs_h *g,\n"
28695 " const char *initrdpath,\n"
28696 " const char *filename,\n"
28697 " size_t *size_r);\n"
28702 #: ../src/guestfs-actions.pod:2571
28703 msgid "See also C<guestfs_initrd_list>."
28707 #: ../src/guestfs-actions.pod:2582
28708 msgid "guestfs_initrd_list"
28712 #: ../src/guestfs-actions.pod:2584
28716 " guestfs_initrd_list (guestfs_h *g,\n"
28717 " const char *path);\n"
28722 #: ../src/guestfs-actions.pod:2604
28723 msgid "guestfs_inotify_add_watch"
28727 #: ../src/guestfs-actions.pod:2606
28731 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28732 " const char *path,\n"
28738 #: ../src/guestfs-actions.pod:2625
28739 msgid "guestfs_inotify_close"
28743 #: ../src/guestfs-actions.pod:2627
28747 " guestfs_inotify_close (guestfs_h *g);\n"
28752 #: ../src/guestfs-actions.pod:2638
28753 msgid "guestfs_inotify_files"
28757 #: ../src/guestfs-actions.pod:2640
28761 " guestfs_inotify_files (guestfs_h *g);\n"
28766 #: ../src/guestfs-actions.pod:2643
28768 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28769 "returns a list of pathnames of objects that were touched. The returned "
28770 "pathnames are sorted and deduplicated."
28774 #: ../src/guestfs-actions.pod:2653
28775 msgid "guestfs_inotify_init"
28779 #: ../src/guestfs-actions.pod:2655
28783 " guestfs_inotify_init (guestfs_h *g,\n"
28784 " int maxevents);\n"
28789 #: ../src/guestfs-actions.pod:2663
28791 "C<maxevents> is the maximum number of events which will be queued up between "
28792 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
28793 "passed as C<0>, then the kernel (or previously set) default is used. For "
28794 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
28795 "throws away events, but records the fact that it threw them away by setting "
28796 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28797 "C<guestfs_inotify_read>)."
28801 #: ../src/guestfs-actions.pod:2673
28803 "Before any events are generated, you have to add some watches to the "
28804 "internal watch list. See: C<guestfs_inotify_add_watch>, "
28805 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28809 #: ../src/guestfs-actions.pod:2679
28811 "Queued up events should be read periodically by calling "
28812 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28813 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
28814 "often enough then you risk the internal queue overflowing."
28818 #: ../src/guestfs-actions.pod:2686
28820 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
28821 "This also removes any watches automatically."
28825 #: ../src/guestfs-actions.pod:2699
28826 msgid "guestfs_inotify_read"
28830 #: ../src/guestfs-actions.pod:2701
28833 " struct guestfs_inotify_event_list *\n"
28834 " guestfs_inotify_read (guestfs_h *g);\n"
28839 #: ../src/guestfs-actions.pod:2715
28841 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28842 "there was an error. I<The caller must call "
28843 "C<guestfs_free_inotify_event_list> after use>."
28847 #: ../src/guestfs-actions.pod:2721
28848 msgid "guestfs_inotify_rm_watch"
28852 #: ../src/guestfs-actions.pod:2723
28856 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28862 #: ../src/guestfs-actions.pod:2727
28864 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
28868 #: ../src/guestfs-actions.pod:2734
28869 msgid "guestfs_inspect_get_arch"
28873 #: ../src/guestfs-actions.pod:2736
28877 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28878 " const char *root);\n"
28883 #: ../src/guestfs-actions.pod:2740
28885 "This returns the architecture of the inspected operating system. The "
28886 "possible return values are listed under C<guestfs_file_architecture>."
28890 #: ../src/guestfs-actions.pod:2754
28891 msgid "guestfs_inspect_get_distro"
28895 #: ../src/guestfs-actions.pod:2756
28899 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28900 " const char *root);\n"
28905 #: ../src/guestfs-actions.pod:2856
28906 msgid "guestfs_inspect_get_drive_mappings"
28910 #: ../src/guestfs-actions.pod:2858
28914 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28915 " const char *root);\n"
28920 #: ../src/guestfs-actions.pod:2887
28922 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28923 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28927 #: ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:3159
28928 #: ../src/guestfs-actions.pod:3962 ../src/guestfs-actions.pod:5234
28929 #: ../src/guestfs-actions.pod:7304
28931 "This function returns a NULL-terminated array of strings, or NULL if there "
28932 "was an error. The array of strings will always have length C<2n+1>, where "
28933 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
28934 "caller must free the strings and the array after use>."
28938 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:3358
28939 msgid "(Added in 1.9.17)"
28943 #: ../src/guestfs-actions.pod:2899
28944 msgid "guestfs_inspect_get_filesystems"
28948 #: ../src/guestfs-actions.pod:2901
28952 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28953 " const char *root);\n"
28958 #: ../src/guestfs-actions.pod:2913
28960 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28961 "C<guestfs_inspect_get_mountpoints>."
28965 #: ../src/guestfs-actions.pod:2922
28966 msgid "guestfs_inspect_get_format"
28970 #: ../src/guestfs-actions.pod:2924
28974 " guestfs_inspect_get_format (guestfs_h *g,\n"
28975 " const char *root);\n"
28980 #: ../src/guestfs-actions.pod:2958 ../src/guestfs-actions.pod:3394
28981 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3428
28982 #: ../src/guestfs-actions.pod:6184
28983 msgid "(Added in 1.9.4)"
28987 #: ../src/guestfs-actions.pod:2960
28988 msgid "guestfs_inspect_get_hostname"
28992 #: ../src/guestfs-actions.pod:2962
28996 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28997 " const char *root);\n"
29002 #: ../src/guestfs-actions.pod:2977
29003 msgid "(Added in 1.7.9)"
29007 #: ../src/guestfs-actions.pod:2979
29008 msgid "guestfs_inspect_get_icon"
29012 #: ../src/guestfs-actions.pod:2981
29016 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29017 " const char *root,\n"
29018 " size_t *size_r,\n"
29024 #: ../src/guestfs-actions.pod:2992
29027 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29028 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29033 #: ../src/guestfs-actions.pod:3059 ../src/guestfs-actions.pod:3889
29034 #: ../src/guestfs-actions.pod:5133
29035 msgid "(Added in 1.11.12)"
29039 #: ../src/guestfs-actions.pod:3061
29040 msgid "guestfs_inspect_get_icon_va"
29044 #: ../src/guestfs-actions.pod:3063
29048 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29049 " const char *root,\n"
29050 " size_t *size_r,\n"
29051 " va_list args);\n"
29056 #: ../src/guestfs-actions.pod:3069
29057 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29061 #: ../src/guestfs-actions.pod:3073
29062 msgid "guestfs_inspect_get_icon_argv"
29066 #: ../src/guestfs-actions.pod:3075
29070 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29071 " const char *root,\n"
29072 " size_t *size_r,\n"
29073 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
29078 #: ../src/guestfs-actions.pod:3081
29079 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29083 #: ../src/guestfs-actions.pod:3085
29084 msgid "guestfs_inspect_get_major_version"
29088 #: ../src/guestfs-actions.pod:3087
29092 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29093 " const char *root);\n"
29098 #: ../src/guestfs-actions.pod:3109
29099 msgid "guestfs_inspect_get_minor_version"
29103 #: ../src/guestfs-actions.pod:3111
29107 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29108 " const char *root);\n"
29113 #: ../src/guestfs-actions.pod:3120
29115 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29116 "C<guestfs_inspect_get_major_version>."
29120 #: ../src/guestfs-actions.pod:3127
29121 msgid "guestfs_inspect_get_mountpoints"
29125 #: ../src/guestfs-actions.pod:3129
29129 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29130 " const char *root);\n"
29135 #: ../src/guestfs-actions.pod:3150
29137 "For operating systems like Windows which still use drive letters, this call "
29138 "will only return an entry for the first drive \"mounted on\" C</>. For "
29139 "information about the mapping of drive letters to partitions, see "
29140 "C<guestfs_inspect_get_drive_mappings>."
29144 #: ../src/guestfs-actions.pod:3156
29146 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29147 "C<guestfs_inspect_get_filesystems>."
29151 #: ../src/guestfs-actions.pod:3167
29152 msgid "guestfs_inspect_get_package_format"
29156 #: ../src/guestfs-actions.pod:3169
29160 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29161 " const char *root);\n"
29166 #: ../src/guestfs-actions.pod:3173
29168 "This function and C<guestfs_inspect_get_package_management> return the "
29169 "package format and package management tool used by the inspected operating "
29170 "system. For example for Fedora these functions would return C<rpm> (package "
29171 "format) and C<yum> (package management)."
29175 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3220
29176 msgid "(Added in 1.7.5)"
29180 #: ../src/guestfs-actions.pod:3194
29181 msgid "guestfs_inspect_get_package_management"
29185 #: ../src/guestfs-actions.pod:3196
29189 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29190 " const char *root);\n"
29195 #: ../src/guestfs-actions.pod:3200
29197 "C<guestfs_inspect_get_package_format> and this function return the package "
29198 "format and package management tool used by the inspected operating system. "
29199 "For example for Fedora these functions would return C<rpm> (package format) "
29200 "and C<yum> (package management)."
29204 #: ../src/guestfs-actions.pod:3222
29205 msgid "guestfs_inspect_get_product_name"
29209 #: ../src/guestfs-actions.pod:3224
29213 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29214 " const char *root);\n"
29219 #: ../src/guestfs-actions.pod:3243
29220 msgid "guestfs_inspect_get_product_variant"
29224 #: ../src/guestfs-actions.pod:3245
29228 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29229 " const char *root);\n"
29234 #: ../src/guestfs-actions.pod:3268
29236 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29237 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29241 #: ../src/guestfs-actions.pod:3275
29242 msgid "(Added in 1.9.13)"
29246 #: ../src/guestfs-actions.pod:3277
29247 msgid "guestfs_inspect_get_roots"
29251 #: ../src/guestfs-actions.pod:3279
29255 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29260 #: ../src/guestfs-actions.pod:3282
29262 "This function is a convenient way to get the list of root devices, as "
29263 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29264 "the whole inspection process."
29268 #: ../src/guestfs-actions.pod:3286
29270 "This returns an empty list if either no root devices were found or the "
29271 "caller has not called C<guestfs_inspect_os>."
29275 #: ../src/guestfs-actions.pod:3295
29276 msgid "(Added in 1.7.3)"
29280 #: ../src/guestfs-actions.pod:3297
29281 msgid "guestfs_inspect_get_type"
29285 #: ../src/guestfs-actions.pod:3299
29289 " guestfs_inspect_get_type (guestfs_h *g,\n"
29290 " const char *root);\n"
29295 #: ../src/guestfs-actions.pod:3340
29296 msgid "guestfs_inspect_get_windows_current_control_set"
29300 #: ../src/guestfs-actions.pod:3342
29304 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29305 " const char *root);\n"
29310 #: ../src/guestfs-actions.pod:3360
29311 msgid "guestfs_inspect_get_windows_systemroot"
29315 #: ../src/guestfs-actions.pod:3362
29319 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29320 " const char *root);\n"
29325 #: ../src/guestfs-actions.pod:3378
29326 msgid "(Added in 1.5.25)"
29330 #: ../src/guestfs-actions.pod:3380
29331 msgid "guestfs_inspect_is_live"
29335 #: ../src/guestfs-actions.pod:3382
29339 " guestfs_inspect_is_live (guestfs_h *g,\n"
29340 " const char *root);\n"
29345 #: ../src/guestfs-actions.pod:3386
29347 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29348 "disk), then this returns true if a live image was detected on the disk."
29352 #: ../src/guestfs-actions.pod:3396
29353 msgid "guestfs_inspect_is_multipart"
29357 #: ../src/guestfs-actions.pod:3398
29361 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29362 " const char *root);\n"
29367 #: ../src/guestfs-actions.pod:3402
29369 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29370 "disk), then this returns true if the disk is part of a set."
29374 #: ../src/guestfs-actions.pod:3412
29375 msgid "guestfs_inspect_is_netinst"
29379 #: ../src/guestfs-actions.pod:3414
29383 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29384 " const char *root);\n"
29389 #: ../src/guestfs-actions.pod:3418
29391 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29392 "disk), then this returns true if the disk is a network installer, ie. not a "
29393 "self-contained install CD but one which is likely to require network access "
29394 "to complete the install."
29398 #: ../src/guestfs-actions.pod:3430
29399 msgid "guestfs_inspect_list_applications"
29403 #: ../src/guestfs-actions.pod:3432
29406 " struct guestfs_application_list *\n"
29407 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29408 " const char *root);\n"
29413 #: ../src/guestfs-actions.pod:3438
29415 "I<Note:> This call works differently from other parts of the inspection "
29416 "API. You have to call C<guestfs_inspect_os>, then "
29417 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29418 "this. Listing applications is a significantly more difficult operation "
29419 "which requires access to the full filesystem. Also note that unlike the "
29420 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29421 "the libguestfs handle, this call actually reads parts of the mounted "
29422 "filesystems during the call."
29426 #: ../src/guestfs-actions.pod:3528
29428 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29429 "there was an error. I<The caller must call C<guestfs_free_application_list> "
29434 #: ../src/guestfs-actions.pod:3532
29435 msgid "(Added in 1.7.8)"
29439 #: ../src/guestfs-actions.pod:3534
29440 msgid "guestfs_inspect_os"
29444 #: ../src/guestfs-actions.pod:3536
29448 " guestfs_inspect_os (guestfs_h *g);\n"
29453 #: ../src/guestfs-actions.pod:3552
29455 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29456 "functions in order to query further information about each operating system, "
29457 "such as the name and version."
29461 #: ../src/guestfs-actions.pod:3557
29463 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29464 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29465 "the contents. This should be called with no disks currently mounted. The "
29466 "function may also use Augeas, so any existing Augeas handle will be closed."
29470 #: ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:3900
29471 #: ../src/guestfs-actions.pod:3982
29472 msgid "See also C<guestfs_list_filesystems>."
29476 #: ../src/guestfs-actions.pod:3577
29477 msgid "guestfs_is_blockdev"
29481 #: ../src/guestfs-actions.pod:3579
29485 " guestfs_is_blockdev (guestfs_h *g,\n"
29486 " const char *path);\n"
29491 #: ../src/guestfs-actions.pod:3586 ../src/guestfs-actions.pod:3615
29492 #: ../src/guestfs-actions.pod:3645 ../src/guestfs-actions.pod:3660
29493 #: ../src/guestfs-actions.pod:3676 ../src/guestfs-actions.pod:3732
29494 #: ../src/guestfs-actions.pod:3747
29495 msgid "See also C<guestfs_stat>."
29499 #: ../src/guestfs-actions.pod:3590 ../src/guestfs-actions.pod:3619
29500 #: ../src/guestfs-actions.pod:3664 ../src/guestfs-actions.pod:3736
29501 #: ../src/guestfs-actions.pod:3751
29502 msgid "(Added in 1.5.10)"
29506 #: ../src/guestfs-actions.pod:3592
29507 msgid "guestfs_is_busy"
29511 #: ../src/guestfs-actions.pod:3594
29515 " guestfs_is_busy (guestfs_h *g);\n"
29520 #: ../src/guestfs-actions.pod:3606
29521 msgid "guestfs_is_chardev"
29525 #: ../src/guestfs-actions.pod:3608
29529 " guestfs_is_chardev (guestfs_h *g,\n"
29530 " const char *path);\n"
29535 #: ../src/guestfs-actions.pod:3621
29536 msgid "guestfs_is_config"
29540 #: ../src/guestfs-actions.pod:3623
29544 " guestfs_is_config (guestfs_h *g);\n"
29549 #: ../src/guestfs-actions.pod:3635
29550 msgid "guestfs_is_dir"
29554 #: ../src/guestfs-actions.pod:3637
29558 " guestfs_is_dir (guestfs_h *g,\n"
29559 " const char *path);\n"
29564 #: ../src/guestfs-actions.pod:3651
29565 msgid "guestfs_is_fifo"
29569 #: ../src/guestfs-actions.pod:3653
29573 " guestfs_is_fifo (guestfs_h *g,\n"
29574 " const char *path);\n"
29579 #: ../src/guestfs-actions.pod:3666
29580 msgid "guestfs_is_file"
29584 #: ../src/guestfs-actions.pod:3668
29588 " guestfs_is_file (guestfs_h *g,\n"
29589 " const char *path);\n"
29594 #: ../src/guestfs-actions.pod:3682
29595 msgid "guestfs_is_launching"
29599 #: ../src/guestfs-actions.pod:3684
29603 " guestfs_is_launching (guestfs_h *g);\n"
29608 #: ../src/guestfs-actions.pod:3696
29609 msgid "guestfs_is_lv"
29613 #: ../src/guestfs-actions.pod:3698
29617 " guestfs_is_lv (guestfs_h *g,\n"
29618 " const char *device);\n"
29623 #: ../src/guestfs-actions.pod:3709
29624 msgid "guestfs_is_ready"
29628 #: ../src/guestfs-actions.pod:3711
29632 " guestfs_is_ready (guestfs_h *g);\n"
29637 #: ../src/guestfs-actions.pod:3723
29638 msgid "guestfs_is_socket"
29642 #: ../src/guestfs-actions.pod:3725
29646 " guestfs_is_socket (guestfs_h *g,\n"
29647 " const char *path);\n"
29652 #: ../src/guestfs-actions.pod:3738
29653 msgid "guestfs_is_symlink"
29657 #: ../src/guestfs-actions.pod:3740
29661 " guestfs_is_symlink (guestfs_h *g,\n"
29662 " const char *path);\n"
29667 #: ../src/guestfs-actions.pod:3753
29668 msgid "guestfs_is_zero"
29672 #: ../src/guestfs-actions.pod:3755
29676 " guestfs_is_zero (guestfs_h *g,\n"
29677 " const char *path);\n"
29682 #: ../src/guestfs-actions.pod:3764 ../src/guestfs-actions.pod:3778
29683 msgid "(Added in 1.11.8)"
29687 #: ../src/guestfs-actions.pod:3766
29688 msgid "guestfs_is_zero_device"
29692 #: ../src/guestfs-actions.pod:3768
29696 " guestfs_is_zero_device (guestfs_h *g,\n"
29697 " const char *device);\n"
29702 #: ../src/guestfs-actions.pod:3780
29703 msgid "guestfs_kill_subprocess"
29707 #: ../src/guestfs-actions.pod:3782
29711 " guestfs_kill_subprocess (guestfs_h *g);\n"
29716 #: ../src/guestfs-actions.pod:3791
29717 msgid "guestfs_launch"
29721 #: ../src/guestfs-actions.pod:3793
29725 " guestfs_launch (guestfs_h *g);\n"
29730 #: ../src/guestfs-actions.pod:3811
29731 msgid "guestfs_lchown"
29735 #: ../src/guestfs-actions.pod:3813
29739 " guestfs_lchown (guestfs_h *g,\n"
29742 " const char *path);\n"
29747 #: ../src/guestfs-actions.pod:3819
29749 "Change the file owner to C<owner> and group to C<group>. This is like "
29750 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29751 "changed, not the target."
29755 #: ../src/guestfs-actions.pod:3831
29756 msgid "guestfs_lgetxattr"
29760 #: ../src/guestfs-actions.pod:3833
29764 " guestfs_lgetxattr (guestfs_h *g,\n"
29765 " const char *path,\n"
29766 " const char *name,\n"
29767 " size_t *size_r);\n"
29772 #: ../src/guestfs-actions.pod:3853
29773 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29777 #: ../src/guestfs-actions.pod:3861
29778 msgid "guestfs_lgetxattrs"
29782 #: ../src/guestfs-actions.pod:3863
29785 " struct guestfs_xattr_list *\n"
29786 " guestfs_lgetxattrs (guestfs_h *g,\n"
29787 " const char *path);\n"
29792 #: ../src/guestfs-actions.pod:3867
29794 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29795 "then it returns the extended attributes of the link itself."
29799 #: ../src/guestfs-actions.pod:3877
29800 msgid "guestfs_list_9p"
29804 #: ../src/guestfs-actions.pod:3879
29808 " guestfs_list_9p (guestfs_h *g);\n"
29813 #: ../src/guestfs-actions.pod:3891
29814 msgid "guestfs_list_devices"
29818 #: ../src/guestfs-actions.pod:3893
29822 " guestfs_list_devices (guestfs_h *g);\n"
29827 #: ../src/guestfs-actions.pod:3908
29828 msgid "guestfs_list_dm_devices"
29832 #: ../src/guestfs-actions.pod:3910
29836 " guestfs_list_dm_devices (guestfs_h *g);\n"
29841 #: ../src/guestfs-actions.pod:3915
29843 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29844 "previous call to C<guestfs_luks_open>."
29848 #: ../src/guestfs-actions.pod:3918
29850 "Device mapper devices which correspond to logical volumes are I<not> "
29851 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
29856 #: ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:5372
29857 msgid "(Added in 1.11.15)"
29861 #: ../src/guestfs-actions.pod:3928
29862 msgid "guestfs_list_filesystems"
29866 #: ../src/guestfs-actions.pod:3930
29870 " guestfs_list_filesystems (guestfs_h *g);\n"
29875 #: ../src/guestfs-actions.pod:3950
29877 "This command runs other libguestfs commands, which might include "
29878 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29879 "soon after launch and only when nothing is mounted."
29883 #: ../src/guestfs-actions.pod:3954
29885 "Not all of the filesystems returned will be mountable. In particular, swap "
29886 "partitions are returned in the list. Also this command does not check that "
29887 "each filesystem found is valid and mountable, and some filesystems might be "
29888 "mountable but require special options. Filesystems may not all belong to a "
29889 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29893 #: ../src/guestfs-actions.pod:3968 ../src/guestfs-actions.pod:5733
29894 msgid "(Added in 1.5.15)"
29898 #: ../src/guestfs-actions.pod:3970
29899 msgid "guestfs_list_partitions"
29900 msgstr "guestfs_list_partitions"
29903 #: ../src/guestfs-actions.pod:3972
29907 " guestfs_list_partitions (guestfs_h *g);\n"
29911 " guestfs_list_partitions (guestfs_h *g);\n"
29915 #: ../src/guestfs-actions.pod:3979
29917 "This does not return logical volumes. For that you will need to call "
29922 #: ../src/guestfs-actions.pod:3990
29924 msgstr "guestfs_ll"
29927 #: ../src/guestfs-actions.pod:3992
29931 " guestfs_ll (guestfs_h *g,\n"
29932 " const char *directory);\n"
29936 " guestfs_ll (guestfs_h *g,\n"
29937 " const char *directory);\n"
29941 #: ../src/guestfs-actions.pod:4007
29943 msgstr "guestfs_ln"
29946 #: ../src/guestfs-actions.pod:4009
29950 " guestfs_ln (guestfs_h *g,\n"
29951 " const char *target,\n"
29952 " const char *linkname);\n"
29956 " guestfs_ln (guestfs_h *g,\n"
29957 " const char *target,\n"
29958 " const char *linkname);\n"
29962 #: ../src/guestfs-actions.pod:4020
29963 msgid "guestfs_ln_f"
29964 msgstr "guestfs_ln_f"
29967 #: ../src/guestfs-actions.pod:4022
29971 " guestfs_ln_f (guestfs_h *g,\n"
29972 " const char *target,\n"
29973 " const char *linkname);\n"
29977 " guestfs_ln_f (guestfs_h *g,\n"
29978 " const char *target,\n"
29979 " const char *linkname);\n"
29983 #: ../src/guestfs-actions.pod:4034
29984 msgid "guestfs_ln_s"
29985 msgstr "guestfs_ln_s"
29988 #: ../src/guestfs-actions.pod:4036
29992 " guestfs_ln_s (guestfs_h *g,\n"
29993 " const char *target,\n"
29994 " const char *linkname);\n"
29998 " guestfs_ln_s (guestfs_h *g,\n"
29999 " const char *target,\n"
30000 " const char *linkname);\n"
30004 #: ../src/guestfs-actions.pod:4047
30005 msgid "guestfs_ln_sf"
30006 msgstr "guestfs_ln_sf"
30009 #: ../src/guestfs-actions.pod:4049
30013 " guestfs_ln_sf (guestfs_h *g,\n"
30014 " const char *target,\n"
30015 " const char *linkname);\n"
30019 " guestfs_ln_sf (guestfs_h *g,\n"
30020 " const char *target,\n"
30021 " const char *linkname);\n"
30025 #: ../src/guestfs-actions.pod:4061
30026 msgid "guestfs_lremovexattr"
30027 msgstr "guestfs_lremovexattr"
30030 #: ../src/guestfs-actions.pod:4063
30034 " guestfs_lremovexattr (guestfs_h *g,\n"
30035 " const char *xattr,\n"
30036 " const char *path);\n"
30040 " guestfs_lremovexattr (guestfs_h *g,\n"
30041 " const char *xattr,\n"
30042 " const char *path);\n"
30046 #: ../src/guestfs-actions.pod:4068
30048 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30049 "link, then it removes an extended attribute of the link itself."
30053 #: ../src/guestfs-actions.pod:4076
30055 msgstr "guestfs_ls"
30058 #: ../src/guestfs-actions.pod:4078
30062 " guestfs_ls (guestfs_h *g,\n"
30063 " const char *directory);\n"
30067 " guestfs_ls (guestfs_h *g,\n"
30068 " const char *directory);\n"
30072 #: ../src/guestfs-actions.pod:4086
30074 "This command is mostly useful for interactive sessions. Programs should "
30075 "probably use C<guestfs_readdir> instead."
30079 #: ../src/guestfs-actions.pod:4095
30080 msgid "guestfs_lsetxattr"
30081 msgstr "guestfs_lsetxattr"
30084 #: ../src/guestfs-actions.pod:4097
30088 " guestfs_lsetxattr (guestfs_h *g,\n"
30089 " const char *xattr,\n"
30090 " const char *val,\n"
30092 " const char *path);\n"
30096 " guestfs_lsetxattr (guestfs_h *g,\n"
30097 " const char *xattr,\n"
30098 " const char *val,\n"
30100 " const char *path);\n"
30104 #: ../src/guestfs-actions.pod:4104
30106 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30107 "then it sets an extended attribute of the link itself."
30111 #: ../src/guestfs-actions.pod:4112
30112 msgid "guestfs_lstat"
30113 msgstr "guestfs_lstat"
30116 #: ../src/guestfs-actions.pod:4114
30119 " struct guestfs_stat *\n"
30120 " guestfs_lstat (guestfs_h *g,\n"
30121 " const char *path);\n"
30124 " struct guestfs_stat *\n"
30125 " guestfs_lstat (guestfs_h *g,\n"
30126 " const char *path);\n"
30130 #: ../src/guestfs-actions.pod:4120
30132 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30133 "link, then the link is stat-ed, not the file it refers to."
30137 #: ../src/guestfs-actions.pod:4126 ../src/guestfs-actions.pod:6907
30139 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30140 "error. I<The caller must call C<guestfs_free_stat> after use>."
30144 #: ../src/guestfs-actions.pod:4130 ../src/guestfs-actions.pod:6911
30145 #: ../src/guestfs-actions.pod:6929 ../src/guestfs-actions.pod:7310
30146 msgid "(Added in 0.9.2)"
30147 msgstr "(Додано у 0.9.2)"
30150 #: ../src/guestfs-actions.pod:4132
30151 msgid "guestfs_lstatlist"
30152 msgstr "guestfs_lstatlist"
30155 #: ../src/guestfs-actions.pod:4134
30158 " struct guestfs_stat_list *\n"
30159 " guestfs_lstatlist (guestfs_h *g,\n"
30160 " const char *path,\n"
30161 " char *const *names);\n"
30164 " struct guestfs_stat_list *\n"
30165 " guestfs_lstatlist (guestfs_h *g,\n"
30166 " const char *path,\n"
30167 " char *const *names);\n"
30171 #: ../src/guestfs-actions.pod:4139
30173 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30174 "files, where all files are in the directory C<path>. C<names> is the list "
30175 "of files from this directory."
30179 #: ../src/guestfs-actions.pod:4148
30181 "This call is intended for programs that want to efficiently list a directory "
30182 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
30183 "for a similarly efficient call for getting extended attributes. Very long "
30184 "directory listings might cause the protocol message size to be exceeded, "
30185 "causing this call to fail. The caller must split up such requests into "
30186 "smaller groups of names."
30190 #: ../src/guestfs-actions.pod:4156
30192 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30193 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
30197 #: ../src/guestfs-actions.pod:4162
30198 msgid "guestfs_luks_add_key"
30199 msgstr "guestfs_luks_add_key"
30202 #: ../src/guestfs-actions.pod:4164
30206 " guestfs_luks_add_key (guestfs_h *g,\n"
30207 " const char *device,\n"
30208 " const char *key,\n"
30209 " const char *newkey,\n"
30214 " guestfs_luks_add_key (guestfs_h *g,\n"
30215 " const char *device,\n"
30216 " const char *key,\n"
30217 " const char *newkey,\n"
30222 #: ../src/guestfs-actions.pod:4176
30224 "Note that if C<keyslot> already contains a key, then this command will "
30225 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
30229 #: ../src/guestfs-actions.pod:4182 ../src/guestfs-actions.pod:4222
30230 #: ../src/guestfs-actions.pod:4245 ../src/guestfs-actions.pod:4265
30231 #: ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4319
30233 "This function takes a key or passphrase parameter which could contain "
30234 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
30239 #: ../src/guestfs-actions.pod:4186 ../src/guestfs-actions.pod:4226
30240 #: ../src/guestfs-actions.pod:4249 ../src/guestfs-actions.pod:4269
30241 msgid "(Added in 1.5.2)"
30242 msgstr "(Додано у 1.5.2)"
30245 #: ../src/guestfs-actions.pod:4188
30246 msgid "guestfs_luks_close"
30247 msgstr "guestfs_luks_close"
30250 #: ../src/guestfs-actions.pod:4190
30254 " guestfs_luks_close (guestfs_h *g,\n"
30255 " const char *device);\n"
30259 " guestfs_luks_close (guestfs_h *g,\n"
30260 " const char *device);\n"
30264 #: ../src/guestfs-actions.pod:4194
30266 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30267 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
30268 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30269 "underlying block device."
30273 #: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4304
30274 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4373
30275 #: ../src/guestfs-actions.pod:4421
30276 msgid "(Added in 1.5.1)"
30277 msgstr "(Додано у 1.5.1)"
30280 #: ../src/guestfs-actions.pod:4204
30281 msgid "guestfs_luks_format"
30282 msgstr "guestfs_luks_format"
30285 #: ../src/guestfs-actions.pod:4206
30289 " guestfs_luks_format (guestfs_h *g,\n"
30290 " const char *device,\n"
30291 " const char *key,\n"
30296 " guestfs_luks_format (guestfs_h *g,\n"
30297 " const char *device,\n"
30298 " const char *key,\n"
30303 #: ../src/guestfs-actions.pod:4228
30304 msgid "guestfs_luks_format_cipher"
30305 msgstr "guestfs_luks_format_cipher"
30308 #: ../src/guestfs-actions.pod:4230
30312 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30313 " const char *device,\n"
30314 " const char *key,\n"
30316 " const char *cipher);\n"
30320 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30321 " const char *device,\n"
30322 " const char *key,\n"
30324 " const char *cipher);\n"
30328 #: ../src/guestfs-actions.pod:4237
30330 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30331 "set the C<cipher> used."
30335 #: ../src/guestfs-actions.pod:4251
30336 msgid "guestfs_luks_kill_slot"
30337 msgstr "guestfs_luks_kill_slot"
30340 #: ../src/guestfs-actions.pod:4253
30344 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30345 " const char *device,\n"
30346 " const char *key,\n"
30351 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30352 " const char *device,\n"
30353 " const char *key,\n"
30358 #: ../src/guestfs-actions.pod:4271
30359 msgid "guestfs_luks_open"
30360 msgstr "guestfs_luks_open"
30363 #: ../src/guestfs-actions.pod:4273
30367 " guestfs_luks_open (guestfs_h *g,\n"
30368 " const char *device,\n"
30369 " const char *key,\n"
30370 " const char *mapname);\n"
30374 " guestfs_luks_open (guestfs_h *g,\n"
30375 " const char *device,\n"
30376 " const char *key,\n"
30377 " const char *mapname);\n"
30381 #: ../src/guestfs-actions.pod:4291
30383 "If this block device contains LVM volume groups, then calling "
30384 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30389 #: ../src/guestfs-actions.pod:4295
30390 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30394 #: ../src/guestfs-actions.pod:4306
30395 msgid "guestfs_luks_open_ro"
30396 msgstr "guestfs_luks_open_ro"
30399 #: ../src/guestfs-actions.pod:4308
30403 " guestfs_luks_open_ro (guestfs_h *g,\n"
30404 " const char *device,\n"
30405 " const char *key,\n"
30406 " const char *mapname);\n"
30410 " guestfs_luks_open_ro (guestfs_h *g,\n"
30411 " const char *device,\n"
30412 " const char *key,\n"
30413 " const char *mapname);\n"
30417 #: ../src/guestfs-actions.pod:4314
30419 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30424 #: ../src/guestfs-actions.pod:4325
30425 msgid "guestfs_lvcreate"
30426 msgstr "guestfs_lvcreate"
30429 #: ../src/guestfs-actions.pod:4327
30433 " guestfs_lvcreate (guestfs_h *g,\n"
30434 " const char *logvol,\n"
30435 " const char *volgroup,\n"
30440 " guestfs_lvcreate (guestfs_h *g,\n"
30441 " const char *logvol,\n"
30442 " const char *volgroup,\n"
30447 #: ../src/guestfs-actions.pod:4340
30448 msgid "guestfs_lvm_canonical_lv_name"
30449 msgstr "guestfs_lvm_canonical_lv_name"
30452 #: ../src/guestfs-actions.pod:4342
30456 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30457 " const char *lvname);\n"
30461 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30462 " const char *lvname);\n"
30466 #: ../src/guestfs-actions.pod:4353
30467 msgid "See also C<guestfs_is_lv>."
30471 #: ../src/guestfs-actions.pod:4358
30472 msgid "(Added in 1.5.24)"
30473 msgstr "(Додано у 1.5.24)"
30476 #: ../src/guestfs-actions.pod:4360
30477 msgid "guestfs_lvm_clear_filter"
30478 msgstr "guestfs_lvm_clear_filter"
30481 #: ../src/guestfs-actions.pod:4362
30485 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30489 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30493 #: ../src/guestfs-actions.pod:4365
30495 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
30496 "see every block device."
30500 #: ../src/guestfs-actions.pod:4375
30501 msgid "guestfs_lvm_remove_all"
30502 msgstr "guestfs_lvm_remove_all"
30505 #: ../src/guestfs-actions.pod:4377
30509 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30513 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30517 #: ../src/guestfs-actions.pod:4390
30518 msgid "guestfs_lvm_set_filter"
30519 msgstr "guestfs_lvm_set_filter"
30522 #: ../src/guestfs-actions.pod:4392
30526 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30527 " char *const *devices);\n"
30531 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30532 " char *const *devices);\n"
30536 #: ../src/guestfs-actions.pod:4423
30537 msgid "guestfs_lvremove"
30538 msgstr "guestfs_lvremove"
30541 #: ../src/guestfs-actions.pod:4425
30545 " guestfs_lvremove (guestfs_h *g,\n"
30546 " const char *device);\n"
30550 " guestfs_lvremove (guestfs_h *g,\n"
30551 " const char *device);\n"
30555 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:5830
30556 #: ../src/guestfs-actions.pod:7680
30557 msgid "(Added in 1.0.13)"
30558 msgstr "(Додано у 1.0.13)"
30561 #: ../src/guestfs-actions.pod:4439
30562 msgid "guestfs_lvrename"
30563 msgstr "guestfs_lvrename"
30566 #: ../src/guestfs-actions.pod:4441
30570 " guestfs_lvrename (guestfs_h *g,\n"
30571 " const char *logvol,\n"
30572 " const char *newlogvol);\n"
30576 " guestfs_lvrename (guestfs_h *g,\n"
30577 " const char *logvol,\n"
30578 " const char *newlogvol);\n"
30582 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:7693
30583 msgid "(Added in 1.0.83)"
30584 msgstr "(Додано у 1.0.83)"
30587 #: ../src/guestfs-actions.pod:4452
30588 msgid "guestfs_lvresize"
30589 msgstr "guestfs_lvresize"
30592 #: ../src/guestfs-actions.pod:4454
30596 " guestfs_lvresize (guestfs_h *g,\n"
30597 " const char *device,\n"
30602 " guestfs_lvresize (guestfs_h *g,\n"
30603 " const char *device,\n"
30608 #: ../src/guestfs-actions.pod:4467
30609 msgid "guestfs_lvresize_free"
30610 msgstr "guestfs_lvresize_free"
30613 #: ../src/guestfs-actions.pod:4469
30617 " guestfs_lvresize_free (guestfs_h *g,\n"
30618 " const char *lv,\n"
30623 " guestfs_lvresize_free (guestfs_h *g,\n"
30624 " const char *lv,\n"
30629 #: ../src/guestfs-actions.pod:4482
30630 msgid "(Added in 1.3.3)"
30631 msgstr "(Додано у 1.3.3)"
30634 #: ../src/guestfs-actions.pod:4484
30635 msgid "guestfs_lvs"
30636 msgstr "guestfs_lvs"
30639 #: ../src/guestfs-actions.pod:4486
30643 " guestfs_lvs (guestfs_h *g);\n"
30647 " guestfs_lvs (guestfs_h *g);\n"
30651 #: ../src/guestfs-actions.pod:4495
30652 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30656 #: ../src/guestfs-actions.pod:4503
30657 msgid "guestfs_lvs_full"
30658 msgstr "guestfs_lvs_full"
30661 #: ../src/guestfs-actions.pod:4505
30664 " struct guestfs_lvm_lv_list *\n"
30665 " guestfs_lvs_full (guestfs_h *g);\n"
30668 " struct guestfs_lvm_lv_list *\n"
30669 " guestfs_lvs_full (guestfs_h *g);\n"
30673 #: ../src/guestfs-actions.pod:4511
30675 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30676 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30680 #: ../src/guestfs-actions.pod:4517
30681 msgid "guestfs_lvuuid"
30682 msgstr "guestfs_lvuuid"
30685 #: ../src/guestfs-actions.pod:4519
30689 " guestfs_lvuuid (guestfs_h *g,\n"
30690 " const char *device);\n"
30694 " guestfs_lvuuid (guestfs_h *g,\n"
30695 " const char *device);\n"
30699 #: ../src/guestfs-actions.pod:4530
30700 msgid "guestfs_lxattrlist"
30701 msgstr "guestfs_lxattrlist"
30704 #: ../src/guestfs-actions.pod:4532
30707 " struct guestfs_xattr_list *\n"
30708 " guestfs_lxattrlist (guestfs_h *g,\n"
30709 " const char *path,\n"
30710 " char *const *names);\n"
30713 " struct guestfs_xattr_list *\n"
30714 " guestfs_lxattrlist (guestfs_h *g,\n"
30715 " const char *path,\n"
30716 " char *const *names);\n"
30720 #: ../src/guestfs-actions.pod:4551
30722 "This call is intended for programs that want to efficiently list a directory "
30723 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
30724 "a similarly efficient call for getting standard stats. Very long directory "
30725 "listings might cause the protocol message size to be exceeded, causing this "
30726 "call to fail. The caller must split up such requests into smaller groups of "
30731 #: ../src/guestfs-actions.pod:4565
30732 msgid "guestfs_mkdir"
30733 msgstr "guestfs_mkdir"
30736 #: ../src/guestfs-actions.pod:4567
30740 " guestfs_mkdir (guestfs_h *g,\n"
30741 " const char *path);\n"
30745 " guestfs_mkdir (guestfs_h *g,\n"
30746 " const char *path);\n"
30750 #: ../src/guestfs-actions.pod:4577
30751 msgid "guestfs_mkdir_mode"
30752 msgstr "guestfs_mkdir_mode"
30755 #: ../src/guestfs-actions.pod:4579
30759 " guestfs_mkdir_mode (guestfs_h *g,\n"
30760 " const char *path,\n"
30765 " guestfs_mkdir_mode (guestfs_h *g,\n"
30766 " const char *path,\n"
30771 #: ../src/guestfs-actions.pod:4591
30772 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30776 #: ../src/guestfs-actions.pod:4597
30777 msgid "guestfs_mkdir_p"
30778 msgstr "guestfs_mkdir_p"
30781 #: ../src/guestfs-actions.pod:4599
30785 " guestfs_mkdir_p (guestfs_h *g,\n"
30786 " const char *path);\n"
30790 " guestfs_mkdir_p (guestfs_h *g,\n"
30791 " const char *path);\n"
30795 #: ../src/guestfs-actions.pod:4610
30796 msgid "guestfs_mkdtemp"
30797 msgstr "guestfs_mkdtemp"
30800 #: ../src/guestfs-actions.pod:4612
30804 " guestfs_mkdtemp (guestfs_h *g,\n"
30805 " const char *template);\n"
30809 " guestfs_mkdtemp (guestfs_h *g,\n"
30810 " const char *template);\n"
30814 #: ../src/guestfs-actions.pod:4640
30815 msgid "guestfs_mke2fs_J"
30816 msgstr "guestfs_mke2fs_J"
30819 #: ../src/guestfs-actions.pod:4642
30823 " guestfs_mke2fs_J (guestfs_h *g,\n"
30824 " const char *fstype,\n"
30825 " int blocksize,\n"
30826 " const char *device,\n"
30827 " const char *journal);\n"
30831 " guestfs_mke2fs_J (guestfs_h *g,\n"
30832 " const char *fstype,\n"
30833 " int blocksize,\n"
30834 " const char *device,\n"
30835 " const char *journal);\n"
30839 #: ../src/guestfs-actions.pod:4655
30840 msgid "See also C<guestfs_mke2journal>."
30844 #: ../src/guestfs-actions.pod:4659 ../src/guestfs-actions.pod:4677
30845 #: ../src/guestfs-actions.pod:4695 ../src/guestfs-actions.pod:4711
30846 #: ../src/guestfs-actions.pod:4725 ../src/guestfs-actions.pod:4739
30847 #: ../src/guestfs-actions.pod:4798 ../src/guestfs-actions.pod:5075
30848 msgid "(Added in 1.0.68)"
30849 msgstr "(Додано у 1.0.68)"
30852 #: ../src/guestfs-actions.pod:4661
30853 msgid "guestfs_mke2fs_JL"
30854 msgstr "guestfs_mke2fs_JL"
30857 #: ../src/guestfs-actions.pod:4663
30861 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30862 " const char *fstype,\n"
30863 " int blocksize,\n"
30864 " const char *device,\n"
30865 " const char *label);\n"
30869 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30870 " const char *fstype,\n"
30871 " int blocksize,\n"
30872 " const char *device,\n"
30873 " const char *label);\n"
30877 #: ../src/guestfs-actions.pod:4673
30878 msgid "See also C<guestfs_mke2journal_L>."
30882 #: ../src/guestfs-actions.pod:4679
30883 msgid "guestfs_mke2fs_JU"
30884 msgstr "guestfs_mke2fs_JU"
30887 #: ../src/guestfs-actions.pod:4681
30891 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30892 " const char *fstype,\n"
30893 " int blocksize,\n"
30894 " const char *device,\n"
30895 " const char *uuid);\n"
30899 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30900 " const char *fstype,\n"
30901 " int blocksize,\n"
30902 " const char *device,\n"
30903 " const char *uuid);\n"
30907 #: ../src/guestfs-actions.pod:4691
30908 msgid "See also C<guestfs_mke2journal_U>."
30912 #: ../src/guestfs-actions.pod:4697
30913 msgid "guestfs_mke2journal"
30914 msgstr "guestfs_mke2journal"
30917 #: ../src/guestfs-actions.pod:4699
30921 " guestfs_mke2journal (guestfs_h *g,\n"
30922 " int blocksize,\n"
30923 " const char *device);\n"
30927 " guestfs_mke2journal (guestfs_h *g,\n"
30928 " int blocksize,\n"
30929 " const char *device);\n"
30933 #: ../src/guestfs-actions.pod:4713
30934 msgid "guestfs_mke2journal_L"
30935 msgstr "guestfs_mke2journal_L"
30938 #: ../src/guestfs-actions.pod:4715
30942 " guestfs_mke2journal_L (guestfs_h *g,\n"
30943 " int blocksize,\n"
30944 " const char *label,\n"
30945 " const char *device);\n"
30949 " guestfs_mke2journal_L (guestfs_h *g,\n"
30950 " int blocksize,\n"
30951 " const char *label,\n"
30952 " const char *device);\n"
30956 #: ../src/guestfs-actions.pod:4727
30957 msgid "guestfs_mke2journal_U"
30958 msgstr "guestfs_mke2journal_U"
30961 #: ../src/guestfs-actions.pod:4729
30965 " guestfs_mke2journal_U (guestfs_h *g,\n"
30966 " int blocksize,\n"
30967 " const char *uuid,\n"
30968 " const char *device);\n"
30972 " guestfs_mke2journal_U (guestfs_h *g,\n"
30973 " int blocksize,\n"
30974 " const char *uuid,\n"
30975 " const char *device);\n"
30979 #: ../src/guestfs-actions.pod:4741
30980 msgid "guestfs_mkfifo"
30981 msgstr "guestfs_mkfifo"
30984 #: ../src/guestfs-actions.pod:4743
30988 " guestfs_mkfifo (guestfs_h *g,\n"
30990 " const char *path);\n"
30994 " guestfs_mkfifo (guestfs_h *g,\n"
30996 " const char *path);\n"
31000 #: ../src/guestfs-actions.pod:4748
31002 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
31003 "is just a convenient wrapper around C<guestfs_mknod>."
31007 #: ../src/guestfs-actions.pod:4758
31008 msgid "guestfs_mkfs"
31009 msgstr "guestfs_mkfs"
31012 #: ../src/guestfs-actions.pod:4760
31016 " guestfs_mkfs (guestfs_h *g,\n"
31017 " const char *fstype,\n"
31018 " const char *device);\n"
31022 " guestfs_mkfs (guestfs_h *g,\n"
31023 " const char *fstype,\n"
31024 " const char *device);\n"
31028 #: ../src/guestfs-actions.pod:4773
31029 msgid "guestfs_mkfs_b"
31030 msgstr "guestfs_mkfs_b"
31033 #: ../src/guestfs-actions.pod:4775
31037 " guestfs_mkfs_b (guestfs_h *g,\n"
31038 " const char *fstype,\n"
31039 " int blocksize,\n"
31040 " const char *device);\n"
31044 " guestfs_mkfs_b (guestfs_h *g,\n"
31045 " const char *fstype,\n"
31046 " int blocksize,\n"
31047 " const char *device);\n"
31051 #: ../src/guestfs-actions.pod:4781
31053 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31058 #: ../src/guestfs-actions.pod:4788
31060 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31061 "block size of the resulting filesystem. Supported block sizes depend on the "
31062 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31066 #: ../src/guestfs-actions.pod:4800
31067 msgid "guestfs_mkfs_opts"
31068 msgstr "guestfs_mkfs_opts"
31071 #: ../src/guestfs-actions.pod:4802
31075 " guestfs_mkfs_opts (guestfs_h *g,\n"
31076 " const char *fstype,\n"
31077 " const char *device,\n"
31082 " guestfs_mkfs_opts (guestfs_h *g,\n"
31083 " const char *fstype,\n"
31084 " const char *device,\n"
31089 #: ../src/guestfs-actions.pod:4813
31092 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31093 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31094 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31095 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31100 #: ../src/guestfs-actions.pod:4861
31101 msgid "(Added in 1.7.19)"
31102 msgstr "(Додано у 1.7.19)"
31105 #: ../src/guestfs-actions.pod:4863
31106 msgid "guestfs_mkfs_opts_va"
31107 msgstr "guestfs_mkfs_opts_va"
31110 #: ../src/guestfs-actions.pod:4865
31114 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31115 " const char *fstype,\n"
31116 " const char *device,\n"
31117 " va_list args);\n"
31121 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31122 " const char *fstype,\n"
31123 " const char *device,\n"
31124 " va_list args);\n"
31128 #: ../src/guestfs-actions.pod:4871
31129 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31133 #: ../src/guestfs-actions.pod:4875
31134 msgid "guestfs_mkfs_opts_argv"
31135 msgstr "guestfs_mkfs_opts_argv"
31138 #: ../src/guestfs-actions.pod:4877
31142 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31143 " const char *fstype,\n"
31144 " const char *device,\n"
31145 " const struct guestfs_mkfs_opts_argv *optargs);\n"
31149 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31150 " const char *fstype,\n"
31151 " const char *device,\n"
31152 " const struct guestfs_mkfs_opts_argv *optargs);\n"
31156 #: ../src/guestfs-actions.pod:4883
31157 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31161 #: ../src/guestfs-actions.pod:4887
31162 msgid "guestfs_mkmountpoint"
31163 msgstr "guestfs_mkmountpoint"
31166 #: ../src/guestfs-actions.pod:4889
31170 " guestfs_mkmountpoint (guestfs_h *g,\n"
31171 " const char *exemptpath);\n"
31175 " guestfs_mkmountpoint (guestfs_h *g,\n"
31176 " const char *exemptpath);\n"
31180 #: ../src/guestfs-actions.pod:4893
31182 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31183 "that can be used to create extra mountpoints before mounting the first "
31188 #: ../src/guestfs-actions.pod:4917
31190 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
31191 "may get unexpected errors if you try to mix these calls. It is safest to "
31192 "manually unmount filesystems and remove mountpoints after use."
31196 #: ../src/guestfs-actions.pod:4921
31198 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31199 "first, so for this to work for manual mountpoints, you must ensure that the "
31200 "innermost mountpoints have the longest pathnames, as in the example code "
31205 #: ../src/guestfs-actions.pod:4928
31207 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31208 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31209 "can also trigger these issues."
31213 #: ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:5240
31214 #: ../src/guestfs-actions.pod:6250
31215 msgid "(Added in 1.0.62)"
31216 msgstr "(Додано у 1.0.62)"
31219 #: ../src/guestfs-actions.pod:4936
31220 msgid "guestfs_mknod"
31224 #: ../src/guestfs-actions.pod:4938
31228 " guestfs_mknod (guestfs_h *g,\n"
31232 " const char *path);\n"
31237 #: ../src/guestfs-actions.pod:4953
31239 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31240 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31241 "regular file). These constants are available in the standard Linux header "
31242 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31243 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31244 "the appropriate constant for you."
31248 #: ../src/guestfs-actions.pod:4967
31249 msgid "guestfs_mknod_b"
31253 #: ../src/guestfs-actions.pod:4969
31257 " guestfs_mknod_b (guestfs_h *g,\n"
31261 " const char *path);\n"
31266 #: ../src/guestfs-actions.pod:4976
31268 "This call creates a block device node called C<path> with mode C<mode> and "
31269 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
31270 "wrapper around C<guestfs_mknod>."
31274 #: ../src/guestfs-actions.pod:4986
31275 msgid "guestfs_mknod_c"
31279 #: ../src/guestfs-actions.pod:4988
31283 " guestfs_mknod_c (guestfs_h *g,\n"
31287 " const char *path);\n"
31292 #: ../src/guestfs-actions.pod:4995
31294 "This call creates a char device node called C<path> with mode C<mode> and "
31295 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
31296 "wrapper around C<guestfs_mknod>."
31300 #: ../src/guestfs-actions.pod:5005
31301 msgid "guestfs_mkswap"
31305 #: ../src/guestfs-actions.pod:5007
31309 " guestfs_mkswap (guestfs_h *g,\n"
31310 " const char *device);\n"
31315 #: ../src/guestfs-actions.pod:5017
31316 msgid "guestfs_mkswap_L"
31320 #: ../src/guestfs-actions.pod:5019
31324 " guestfs_mkswap_L (guestfs_h *g,\n"
31325 " const char *label,\n"
31326 " const char *device);\n"
31331 #: ../src/guestfs-actions.pod:5034
31332 msgid "guestfs_mkswap_U"
31336 #: ../src/guestfs-actions.pod:5036
31340 " guestfs_mkswap_U (guestfs_h *g,\n"
31341 " const char *uuid,\n"
31342 " const char *device);\n"
31347 #: ../src/guestfs-actions.pod:5047
31348 msgid "guestfs_mkswap_file"
31352 #: ../src/guestfs-actions.pod:5049
31356 " guestfs_mkswap_file (guestfs_h *g,\n"
31357 " const char *path);\n"
31362 #: ../src/guestfs-actions.pod:5055
31364 "This command just writes a swap file signature to an existing file. To "
31365 "create the file itself, use something like C<guestfs_fallocate>."
31369 #: ../src/guestfs-actions.pod:5062
31370 msgid "guestfs_modprobe"
31374 #: ../src/guestfs-actions.pod:5064
31378 " guestfs_modprobe (guestfs_h *g,\n"
31379 " const char *modulename);\n"
31384 #: ../src/guestfs-actions.pod:5077
31385 msgid "guestfs_mount"
31389 #: ../src/guestfs-actions.pod:5079
31393 " guestfs_mount (guestfs_h *g,\n"
31394 " const char *device,\n"
31395 " const char *mountpoint);\n"
31400 #: ../src/guestfs-actions.pod:5098
31402 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31403 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
31404 "problems for users. If your program might need to work with older versions "
31405 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31406 "for the first parameter if you don't want any options)."
31410 #: ../src/guestfs-actions.pod:5109
31411 msgid "guestfs_mount_9p"
31415 #: ../src/guestfs-actions.pod:5111
31419 " guestfs_mount_9p (guestfs_h *g,\n"
31420 " const char *mounttag,\n"
31421 " const char *mountpoint,\n"
31427 #: ../src/guestfs-actions.pod:5122
31430 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31435 #: ../src/guestfs-actions.pod:5135
31436 msgid "guestfs_mount_9p_va"
31440 #: ../src/guestfs-actions.pod:5137
31444 " guestfs_mount_9p_va (guestfs_h *g,\n"
31445 " const char *mounttag,\n"
31446 " const char *mountpoint,\n"
31447 " va_list args);\n"
31452 #: ../src/guestfs-actions.pod:5143
31453 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31457 #: ../src/guestfs-actions.pod:5147
31458 msgid "guestfs_mount_9p_argv"
31462 #: ../src/guestfs-actions.pod:5149
31466 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31467 " const char *mounttag,\n"
31468 " const char *mountpoint,\n"
31469 " const struct guestfs_mount_9p_argv *optargs);\n"
31474 #: ../src/guestfs-actions.pod:5155
31475 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31479 #: ../src/guestfs-actions.pod:5159
31480 msgid "guestfs_mount_loop"
31484 #: ../src/guestfs-actions.pod:5161
31488 " guestfs_mount_loop (guestfs_h *g,\n"
31489 " const char *file,\n"
31490 " const char *mountpoint);\n"
31495 #: ../src/guestfs-actions.pod:5174
31496 msgid "guestfs_mount_options"
31500 #: ../src/guestfs-actions.pod:5176
31504 " guestfs_mount_options (guestfs_h *g,\n"
31505 " const char *options,\n"
31506 " const char *device,\n"
31507 " const char *mountpoint);\n"
31512 #: ../src/guestfs-actions.pod:5182
31514 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31515 "the mount options as for the L<mount(8)> I<-o> flag."
31519 #: ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5206
31520 #: ../src/guestfs-actions.pod:5223
31521 msgid "(Added in 1.0.10)"
31525 #: ../src/guestfs-actions.pod:5194
31526 msgid "guestfs_mount_ro"
31530 #: ../src/guestfs-actions.pod:5196
31534 " guestfs_mount_ro (guestfs_h *g,\n"
31535 " const char *device,\n"
31536 " const char *mountpoint);\n"
31541 #: ../src/guestfs-actions.pod:5201
31543 "This is the same as the C<guestfs_mount> command, but it mounts the "
31544 "filesystem with the read-only (I<-o ro>) flag."
31548 #: ../src/guestfs-actions.pod:5208
31549 msgid "guestfs_mount_vfs"
31553 #: ../src/guestfs-actions.pod:5210
31557 " guestfs_mount_vfs (guestfs_h *g,\n"
31558 " const char *options,\n"
31559 " const char *vfstype,\n"
31560 " const char *device,\n"
31561 " const char *mountpoint);\n"
31566 #: ../src/guestfs-actions.pod:5217
31568 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31569 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
31574 #: ../src/guestfs-actions.pod:5225
31575 msgid "guestfs_mountpoints"
31579 #: ../src/guestfs-actions.pod:5227
31583 " guestfs_mountpoints (guestfs_h *g);\n"
31588 #: ../src/guestfs-actions.pod:5230
31590 "This call is similar to C<guestfs_mounts>. That call returns a list of "
31591 "devices. This one returns a hash table (map) of device name to directory "
31592 "where the device is mounted."
31596 #: ../src/guestfs-actions.pod:5242
31597 msgid "guestfs_mounts"
31601 #: ../src/guestfs-actions.pod:5244
31605 " guestfs_mounts (guestfs_h *g);\n"
31610 #: ../src/guestfs-actions.pod:5252
31611 msgid "See also: C<guestfs_mountpoints>"
31615 #: ../src/guestfs-actions.pod:5260
31620 #: ../src/guestfs-actions.pod:5262
31624 " guestfs_mv (guestfs_h *g,\n"
31625 " const char *src,\n"
31626 " const char *dest);\n"
31631 #: ../src/guestfs-actions.pod:5274
31632 msgid "guestfs_ntfs_3g_probe"
31636 #: ../src/guestfs-actions.pod:5276
31640 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31642 " const char *device);\n"
31647 #: ../src/guestfs-actions.pod:5295
31648 msgid "(Added in 1.0.43)"
31652 #: ../src/guestfs-actions.pod:5297
31653 msgid "guestfs_ntfsresize"
31657 #: ../src/guestfs-actions.pod:5299
31661 " guestfs_ntfsresize (guestfs_h *g,\n"
31662 " const char *device);\n"
31667 #: ../src/guestfs-actions.pod:5303 ../src/guestfs-actions.pod:5403
31669 "I<This function is deprecated.> In new code, use the L</"
31670 "guestfs_ntfsresize_opts> call instead."
31674 #: ../src/guestfs-actions.pod:5327
31675 msgid "guestfs_ntfsresize_opts"
31679 #: ../src/guestfs-actions.pod:5329
31683 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31684 " const char *device,\n"
31690 #: ../src/guestfs-actions.pod:5339
31693 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31694 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31699 #: ../src/guestfs-actions.pod:5359
31701 "After the resize operation, the filesystem is always marked as requiring a "
31702 "consistency check (for safety). You have to boot into Windows to perform "
31703 "this check and clear this condition. If you I<don't> set the C<force> "
31704 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31705 "times on a single filesystem without booting into Windows between each "
31710 #: ../src/guestfs-actions.pod:5374
31711 msgid "guestfs_ntfsresize_opts_va"
31715 #: ../src/guestfs-actions.pod:5376
31719 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31720 " const char *device,\n"
31721 " va_list args);\n"
31726 #: ../src/guestfs-actions.pod:5381
31727 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31731 #: ../src/guestfs-actions.pod:5385
31732 msgid "guestfs_ntfsresize_opts_argv"
31736 #: ../src/guestfs-actions.pod:5387
31740 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31741 " const char *device,\n"
31742 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31747 #: ../src/guestfs-actions.pod:5392
31748 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31752 #: ../src/guestfs-actions.pod:5396
31753 msgid "guestfs_ntfsresize_size"
31757 #: ../src/guestfs-actions.pod:5398
31761 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31762 " const char *device,\n"
31763 " int64_t size);\n"
31768 #: ../src/guestfs-actions.pod:5410
31770 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31771 "to specify the new size (in bytes) explicitly."
31775 #: ../src/guestfs-actions.pod:5415 ../src/guestfs-actions.pod:5857
31776 #: ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:6198
31777 #: ../src/guestfs-actions.pod:7837
31778 msgid "(Added in 1.3.14)"
31782 #: ../src/guestfs-actions.pod:5417
31783 msgid "guestfs_part_add"
31787 #: ../src/guestfs-actions.pod:5419
31791 " guestfs_part_add (guestfs_h *g,\n"
31792 " const char *device,\n"
31793 " const char *prlogex,\n"
31794 " int64_t startsect,\n"
31795 " int64_t endsect);\n"
31800 #: ../src/guestfs-actions.pod:5426
31802 "This command adds a partition to C<device>. If there is no partition table "
31803 "on the device, call C<guestfs_part_init> first."
31807 #: ../src/guestfs-actions.pod:5438
31809 "Creating a partition which covers the whole disk is not so easy. Use "
31810 "C<guestfs_part_disk> to do that."
31814 #: ../src/guestfs-actions.pod:5443 ../src/guestfs-actions.pod:5481
31815 #: ../src/guestfs-actions.pod:5534 ../src/guestfs-actions.pod:5618
31816 #: ../src/guestfs-actions.pod:5656 ../src/guestfs-actions.pod:5675
31817 #: ../src/guestfs-actions.pod:5715
31818 msgid "(Added in 1.0.78)"
31822 #: ../src/guestfs-actions.pod:5445
31823 msgid "guestfs_part_del"
31827 #: ../src/guestfs-actions.pod:5447
31831 " guestfs_part_del (guestfs_h *g,\n"
31832 " const char *device,\n"
31838 #: ../src/guestfs-actions.pod:5462
31839 msgid "guestfs_part_disk"
31843 #: ../src/guestfs-actions.pod:5464
31847 " guestfs_part_disk (guestfs_h *g,\n"
31848 " const char *device,\n"
31849 " const char *parttype);\n"
31854 #: ../src/guestfs-actions.pod:5469
31856 "This command is simply a combination of C<guestfs_part_init> followed by "
31857 "C<guestfs_part_add> to create a single primary partition covering the whole "
31862 #: ../src/guestfs-actions.pod:5473
31864 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31865 "possible values are described in C<guestfs_part_init>."
31869 #: ../src/guestfs-actions.pod:5483
31870 msgid "guestfs_part_get_bootable"
31874 #: ../src/guestfs-actions.pod:5485
31878 " guestfs_part_get_bootable (guestfs_h *g,\n"
31879 " const char *device,\n"
31885 #: ../src/guestfs-actions.pod:5493
31886 msgid "See also C<guestfs_part_set_bootable>."
31890 #: ../src/guestfs-actions.pod:5499
31891 msgid "guestfs_part_get_mbr_id"
31895 #: ../src/guestfs-actions.pod:5501
31899 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31900 " const char *device,\n"
31906 #: ../src/guestfs-actions.pod:5509 ../src/guestfs-actions.pod:5691
31908 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
31909 "undefined results for other partition table types (see "
31910 "C<guestfs_part_get_parttype>)."
31914 #: ../src/guestfs-actions.pod:5517
31915 msgid "guestfs_part_get_parttype"
31919 #: ../src/guestfs-actions.pod:5519
31923 " guestfs_part_get_parttype (guestfs_h *g,\n"
31924 " const char *device);\n"
31929 #: ../src/guestfs-actions.pod:5526
31931 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31932 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
31933 "possible, although unusual. See C<guestfs_part_init> for a full list."
31937 #: ../src/guestfs-actions.pod:5536
31938 msgid "guestfs_part_init"
31942 #: ../src/guestfs-actions.pod:5538
31946 " guestfs_part_init (guestfs_h *g,\n"
31947 " const char *device,\n"
31948 " const char *parttype);\n"
31953 #: ../src/guestfs-actions.pod:5547
31955 "Initially there are no partitions. Following this, you should call "
31956 "C<guestfs_part_add> for each partition required."
31960 #: ../src/guestfs-actions.pod:5620
31961 msgid "guestfs_part_list"
31962 msgstr "guestfs_part_list"
31965 #: ../src/guestfs-actions.pod:5622
31968 " struct guestfs_partition_list *\n"
31969 " guestfs_part_list (guestfs_h *g,\n"
31970 " const char *device);\n"
31973 " struct guestfs_partition_list *\n"
31974 " guestfs_part_list (guestfs_h *g,\n"
31975 " const char *device);\n"
31979 #: ../src/guestfs-actions.pod:5639
31981 "Start of the partition I<in bytes>. To get sectors you have to divide by "
31982 "the device's sector size, see C<guestfs_blockdev_getss>."
31986 #: ../src/guestfs-actions.pod:5652
31988 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31989 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
31994 #: ../src/guestfs-actions.pod:5658
31995 msgid "guestfs_part_set_bootable"
31999 #: ../src/guestfs-actions.pod:5660
32003 " guestfs_part_set_bootable (guestfs_h *g,\n"
32004 " const char *device,\n"
32006 " int bootable);\n"
32011 #: ../src/guestfs-actions.pod:5677
32012 msgid "guestfs_part_set_mbr_id"
32016 #: ../src/guestfs-actions.pod:5679
32020 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32021 " const char *device,\n"
32028 #: ../src/guestfs-actions.pod:5699
32029 msgid "guestfs_part_set_name"
32033 #: ../src/guestfs-actions.pod:5701
32037 " guestfs_part_set_name (guestfs_h *g,\n"
32038 " const char *device,\n"
32040 " const char *name);\n"
32045 #: ../src/guestfs-actions.pod:5717
32046 msgid "guestfs_part_to_dev"
32050 #: ../src/guestfs-actions.pod:5719
32054 " guestfs_part_to_dev (guestfs_h *g,\n"
32055 " const char *partition);\n"
32060 #: ../src/guestfs-actions.pod:5727
32062 "The named partition must exist, for example as a string returned from "
32063 "C<guestfs_list_partitions>."
32067 #: ../src/guestfs-actions.pod:5735
32068 msgid "guestfs_ping_daemon"
32072 #: ../src/guestfs-actions.pod:5737
32076 " guestfs_ping_daemon (guestfs_h *g);\n"
32081 #: ../src/guestfs-actions.pod:5749
32082 msgid "guestfs_pread"
32086 #: ../src/guestfs-actions.pod:5751
32090 " guestfs_pread (guestfs_h *g,\n"
32091 " const char *path,\n"
32093 " int64_t offset,\n"
32094 " size_t *size_r);\n"
32099 #: ../src/guestfs-actions.pod:5764
32100 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32104 #: ../src/guestfs-actions.pod:5775
32105 msgid "guestfs_pread_device"
32109 #: ../src/guestfs-actions.pod:5777
32113 " guestfs_pread_device (guestfs_h *g,\n"
32114 " const char *device,\n"
32116 " int64_t offset,\n"
32117 " size_t *size_r);\n"
32122 #: ../src/guestfs-actions.pod:5790
32123 msgid "See also C<guestfs_pread>."
32127 #: ../src/guestfs-actions.pod:5799
32128 msgid "(Added in 1.5.21)"
32132 #: ../src/guestfs-actions.pod:5801
32133 msgid "guestfs_pvcreate"
32137 #: ../src/guestfs-actions.pod:5803
32141 " guestfs_pvcreate (guestfs_h *g,\n"
32142 " const char *device);\n"
32147 #: ../src/guestfs-actions.pod:5815
32148 msgid "guestfs_pvremove"
32152 #: ../src/guestfs-actions.pod:5817
32156 " guestfs_pvremove (guestfs_h *g,\n"
32157 " const char *device);\n"
32162 #: ../src/guestfs-actions.pod:5832
32163 msgid "guestfs_pvresize"
32167 #: ../src/guestfs-actions.pod:5834
32171 " guestfs_pvresize (guestfs_h *g,\n"
32172 " const char *device);\n"
32177 #: ../src/guestfs-actions.pod:5845
32178 msgid "guestfs_pvresize_size"
32182 #: ../src/guestfs-actions.pod:5847
32186 " guestfs_pvresize_size (guestfs_h *g,\n"
32187 " const char *device,\n"
32188 " int64_t size);\n"
32193 #: ../src/guestfs-actions.pod:5852
32195 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32196 "specify the new size (in bytes) explicitly."
32200 #: ../src/guestfs-actions.pod:5859
32201 msgid "guestfs_pvs"
32205 #: ../src/guestfs-actions.pod:5861
32209 " guestfs_pvs (guestfs_h *g);\n"
32214 #: ../src/guestfs-actions.pod:5870
32215 msgid "See also C<guestfs_pvs_full>."
32219 #: ../src/guestfs-actions.pod:5878
32220 msgid "guestfs_pvs_full"
32224 #: ../src/guestfs-actions.pod:5880
32227 " struct guestfs_lvm_pv_list *\n"
32228 " guestfs_pvs_full (guestfs_h *g);\n"
32233 #: ../src/guestfs-actions.pod:5886
32235 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32236 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32240 #: ../src/guestfs-actions.pod:5892
32241 msgid "guestfs_pvuuid"
32245 #: ../src/guestfs-actions.pod:5894
32249 " guestfs_pvuuid (guestfs_h *g,\n"
32250 " const char *device);\n"
32255 #: ../src/guestfs-actions.pod:5905
32256 msgid "guestfs_pwrite"
32260 #: ../src/guestfs-actions.pod:5907
32264 " guestfs_pwrite (guestfs_h *g,\n"
32265 " const char *path,\n"
32266 " const char *content,\n"
32267 " size_t content_size,\n"
32268 " int64_t offset);\n"
32273 #: ../src/guestfs-actions.pod:5923
32274 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32278 #: ../src/guestfs-actions.pod:5932
32279 msgid "guestfs_pwrite_device"
32283 #: ../src/guestfs-actions.pod:5934
32287 " guestfs_pwrite_device (guestfs_h *g,\n"
32288 " const char *device,\n"
32289 " const char *content,\n"
32290 " size_t content_size,\n"
32291 " int64_t offset);\n"
32296 #: ../src/guestfs-actions.pod:5949
32297 msgid "See also C<guestfs_pwrite>."
32301 #: ../src/guestfs-actions.pod:5956
32302 msgid "(Added in 1.5.20)"
32306 #: ../src/guestfs-actions.pod:5958
32307 msgid "guestfs_read_file"
32311 #: ../src/guestfs-actions.pod:5960
32315 " guestfs_read_file (guestfs_h *g,\n"
32316 " const char *path,\n"
32317 " size_t *size_r);\n"
32322 #: ../src/guestfs-actions.pod:5968
32324 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
32325 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
32326 "function is limited in the total size of file that can be handled."
32330 #: ../src/guestfs-actions.pod:5980
32331 msgid "(Added in 1.0.63)"
32335 #: ../src/guestfs-actions.pod:5982
32336 msgid "guestfs_read_lines"
32340 #: ../src/guestfs-actions.pod:5984
32344 " guestfs_read_lines (guestfs_h *g,\n"
32345 " const char *path);\n"
32350 #: ../src/guestfs-actions.pod:5993
32352 "Note that this function cannot correctly handle binary files (specifically, "
32353 "files containing C<\\0> character which is treated as end of line). For "
32354 "those you need to use the C<guestfs_read_file> function which has a more "
32355 "complex interface."
32359 #: ../src/guestfs-actions.pod:6004
32360 msgid "guestfs_readdir"
32364 #: ../src/guestfs-actions.pod:6006
32367 " struct guestfs_dirent_list *\n"
32368 " guestfs_readdir (guestfs_h *g,\n"
32369 " const char *dir);\n"
32374 #: ../src/guestfs-actions.pod:6060
32376 "This function is primarily intended for use by programs. To get a simple "
32377 "list of names, use C<guestfs_ls>. To get a printable directory for human "
32378 "consumption, use C<guestfs_ll>."
32382 #: ../src/guestfs-actions.pod:6064
32384 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32385 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
32389 #: ../src/guestfs-actions.pod:6070
32390 msgid "guestfs_readlink"
32394 #: ../src/guestfs-actions.pod:6072
32398 " guestfs_readlink (guestfs_h *g,\n"
32399 " const char *path);\n"
32404 #: ../src/guestfs-actions.pod:6083
32405 msgid "guestfs_readlinklist"
32409 #: ../src/guestfs-actions.pod:6085
32413 " guestfs_readlinklist (guestfs_h *g,\n"
32414 " const char *path,\n"
32415 " char *const *names);\n"
32420 #: ../src/guestfs-actions.pod:6118
32421 msgid "guestfs_realpath"
32425 #: ../src/guestfs-actions.pod:6120
32429 " guestfs_realpath (guestfs_h *g,\n"
32430 " const char *path);\n"
32435 #: ../src/guestfs-actions.pod:6132
32436 msgid "guestfs_removexattr"
32440 #: ../src/guestfs-actions.pod:6134
32444 " guestfs_removexattr (guestfs_h *g,\n"
32445 " const char *xattr,\n"
32446 " const char *path);\n"
32451 #: ../src/guestfs-actions.pod:6142
32452 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32456 #: ../src/guestfs-actions.pod:6148
32457 msgid "guestfs_resize2fs"
32461 #: ../src/guestfs-actions.pod:6150
32465 " guestfs_resize2fs (guestfs_h *g,\n"
32466 " const char *device);\n"
32471 #: ../src/guestfs-actions.pod:6157
32473 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32474 "C<device> before calling this command. For unknown reasons C<resize2fs> "
32475 "sometimes gives an error about this and sometimes not. In any case, it is "
32476 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32480 #: ../src/guestfs-actions.pod:6167
32481 msgid "guestfs_resize2fs_M"
32485 #: ../src/guestfs-actions.pod:6169
32489 " guestfs_resize2fs_M (guestfs_h *g,\n"
32490 " const char *device);\n"
32495 #: ../src/guestfs-actions.pod:6173
32497 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32498 "resized to its minimum size. This works like the I<-M> option to the "
32499 "C<resize2fs> command."
32503 #: ../src/guestfs-actions.pod:6177
32505 "To get the resulting size of the filesystem you should call "
32506 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
32507 "These two numbers, multiplied together, give the resulting size of the "
32508 "minimal filesystem in bytes."
32512 #: ../src/guestfs-actions.pod:6186
32513 msgid "guestfs_resize2fs_size"
32517 #: ../src/guestfs-actions.pod:6188
32521 " guestfs_resize2fs_size (guestfs_h *g,\n"
32522 " const char *device,\n"
32523 " int64_t size);\n"
32528 #: ../src/guestfs-actions.pod:6193
32530 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32531 "to specify the new size (in bytes) explicitly."
32535 #: ../src/guestfs-actions.pod:6200
32540 #: ../src/guestfs-actions.pod:6202
32544 " guestfs_rm (guestfs_h *g,\n"
32545 " const char *path);\n"
32550 #: ../src/guestfs-actions.pod:6212
32551 msgid "guestfs_rm_rf"
32555 #: ../src/guestfs-actions.pod:6214
32559 " guestfs_rm_rf (guestfs_h *g,\n"
32560 " const char *path);\n"
32565 #: ../src/guestfs-actions.pod:6226
32566 msgid "guestfs_rmdir"
32570 #: ../src/guestfs-actions.pod:6228
32574 " guestfs_rmdir (guestfs_h *g,\n"
32575 " const char *path);\n"
32580 #: ../src/guestfs-actions.pod:6238
32581 msgid "guestfs_rmmountpoint"
32585 #: ../src/guestfs-actions.pod:6240
32589 " guestfs_rmmountpoint (guestfs_h *g,\n"
32590 " const char *exemptpath);\n"
32595 #: ../src/guestfs-actions.pod:6244
32597 "This calls removes a mountpoint that was previously created with "
32598 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
32602 #: ../src/guestfs-actions.pod:6252
32603 msgid "guestfs_scrub_device"
32607 #: ../src/guestfs-actions.pod:6254
32611 " guestfs_scrub_device (guestfs_h *g,\n"
32612 " const char *device);\n"
32617 #: ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6287
32618 #: ../src/guestfs-actions.pod:6306
32619 msgid "(Added in 1.0.52)"
32623 #: ../src/guestfs-actions.pod:6271
32624 msgid "guestfs_scrub_file"
32628 #: ../src/guestfs-actions.pod:6273
32632 " guestfs_scrub_file (guestfs_h *g,\n"
32633 " const char *file);\n"
32638 #: ../src/guestfs-actions.pod:6289
32639 msgid "guestfs_scrub_freespace"
32643 #: ../src/guestfs-actions.pod:6291
32647 " guestfs_scrub_freespace (guestfs_h *g,\n"
32648 " const char *dir);\n"
32653 #: ../src/guestfs-actions.pod:6295
32655 "This command creates the directory C<dir> and then fills it with files until "
32656 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32657 "and deletes them. The intention is to scrub any free space on the partition "
32658 "containing C<dir>."
32662 #: ../src/guestfs-actions.pod:6308
32663 msgid "guestfs_set_append"
32667 #: ../src/guestfs-actions.pod:6310
32671 " guestfs_set_append (guestfs_h *g,\n"
32672 " const char *append);\n"
32677 #: ../src/guestfs-actions.pod:6327
32678 msgid "guestfs_set_attach_method"
32682 #: ../src/guestfs-actions.pod:6329
32686 " guestfs_set_attach_method (guestfs_h *g,\n"
32687 " const char *attachmethod);\n"
32692 #: ../src/guestfs-actions.pod:6357
32693 msgid "guestfs_set_autosync"
32697 #: ../src/guestfs-actions.pod:6359
32701 " guestfs_set_autosync (guestfs_h *g,\n"
32702 " int autosync);\n"
32707 #: ../src/guestfs-actions.pod:6375
32708 msgid "guestfs_set_direct"
32712 #: ../src/guestfs-actions.pod:6377
32716 " guestfs_set_direct (guestfs_h *g,\n"
32722 #: ../src/guestfs-actions.pod:6385
32724 "One consequence of this is that log messages aren't caught by the library "
32725 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32730 #: ../src/guestfs-actions.pod:6398
32731 msgid "guestfs_set_e2label"
32735 #: ../src/guestfs-actions.pod:6400
32739 " guestfs_set_e2label (guestfs_h *g,\n"
32740 " const char *device,\n"
32741 " const char *label);\n"
32746 #: ../src/guestfs-actions.pod:6409
32748 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32749 "the existing label on a filesystem."
32753 #: ../src/guestfs-actions.pod:6416
32754 msgid "guestfs_set_e2uuid"
32758 #: ../src/guestfs-actions.pod:6418
32762 " guestfs_set_e2uuid (guestfs_h *g,\n"
32763 " const char *device,\n"
32764 " const char *uuid);\n"
32769 #: ../src/guestfs-actions.pod:6428
32771 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32772 "the existing UUID of a filesystem."
32776 #: ../src/guestfs-actions.pod:6435
32777 msgid "guestfs_set_memsize"
32781 #: ../src/guestfs-actions.pod:6437
32785 " guestfs_set_memsize (guestfs_h *g,\n"
32791 #: ../src/guestfs-actions.pod:6441
32793 "This sets the memory size in megabytes allocated to the qemu subprocess. "
32794 "This only has any effect if called before C<guestfs_launch>."
32798 #: ../src/guestfs-actions.pod:6456
32799 msgid "guestfs_set_network"
32803 #: ../src/guestfs-actions.pod:6458
32807 " guestfs_set_network (guestfs_h *g,\n"
32813 #: ../src/guestfs-actions.pod:6468
32815 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32820 #: ../src/guestfs-actions.pod:6475
32821 msgid "guestfs_set_path"
32825 #: ../src/guestfs-actions.pod:6477
32829 " guestfs_set_path (guestfs_h *g,\n"
32830 " const char *searchpath);\n"
32835 #: ../src/guestfs-actions.pod:6492
32836 msgid "guestfs_set_pgroup"
32840 #: ../src/guestfs-actions.pod:6494
32844 " guestfs_set_pgroup (guestfs_h *g,\n"
32850 #: ../src/guestfs-actions.pod:6511
32851 msgid "guestfs_set_qemu"
32855 #: ../src/guestfs-actions.pod:6513
32859 " guestfs_set_qemu (guestfs_h *g,\n"
32860 " const char *qemu);\n"
32865 #: ../src/guestfs-actions.pod:6539
32866 msgid "guestfs_set_recovery_proc"
32870 #: ../src/guestfs-actions.pod:6541
32874 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32875 " int recoveryproc);\n"
32880 #: ../src/guestfs-actions.pod:6545
32882 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32883 "not create a recovery process. The purpose of the recovery process is to "
32884 "stop runaway qemu processes in the case where the main program aborts "
32889 #: ../src/guestfs-actions.pod:6550
32891 "This only has any effect if called before C<guestfs_launch>, and the default "
32896 #: ../src/guestfs-actions.pod:6563
32897 msgid "guestfs_set_selinux"
32901 #: ../src/guestfs-actions.pod:6565
32905 " guestfs_set_selinux (guestfs_h *g,\n"
32911 #: ../src/guestfs-actions.pod:6582
32913 #| msgid "guestfs_ln_s"
32914 msgid "guestfs_set_smp"
32915 msgstr "guestfs_ln_s"
32918 #: ../src/guestfs-actions.pod:6584
32922 #| " guestfs_mkdir_p (guestfs_h *g,\n"
32923 #| " const char *path);\n"
32927 " guestfs_set_smp (guestfs_h *g,\n"
32932 " guestfs_mkdir_p (guestfs_h *g,\n"
32933 " const char *path);\n"
32937 #: ../src/guestfs-actions.pod:6592
32938 msgid "This function must be called before C<guestfs_launch>."
32942 #: ../src/guestfs-actions.pod:6598
32943 msgid "guestfs_set_trace"
32947 #: ../src/guestfs-actions.pod:6600
32951 " guestfs_set_trace (guestfs_h *g,\n"
32957 #: ../src/guestfs-actions.pod:6614
32959 "Trace messages are normally sent to C<stderr>, unless you register a "
32960 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32964 #: ../src/guestfs-actions.pod:6622
32965 msgid "guestfs_set_verbose"
32969 #: ../src/guestfs-actions.pod:6624
32973 " guestfs_set_verbose (guestfs_h *g,\n"
32979 #: ../src/guestfs-actions.pod:6633
32981 "Verbose messages are normally sent to C<stderr>, unless you register a "
32982 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32986 #: ../src/guestfs-actions.pod:6641
32987 msgid "guestfs_setcon"
32991 #: ../src/guestfs-actions.pod:6643
32995 " guestfs_setcon (guestfs_h *g,\n"
32996 " const char *context);\n"
33001 #: ../src/guestfs-actions.pod:6656
33002 msgid "guestfs_setxattr"
33006 #: ../src/guestfs-actions.pod:6658
33010 " guestfs_setxattr (guestfs_h *g,\n"
33011 " const char *xattr,\n"
33012 " const char *val,\n"
33014 " const char *path);\n"
33019 #: ../src/guestfs-actions.pod:6669
33020 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33024 #: ../src/guestfs-actions.pod:6675
33025 msgid "guestfs_sfdisk"
33029 #: ../src/guestfs-actions.pod:6677
33033 " guestfs_sfdisk (guestfs_h *g,\n"
33034 " const char *device,\n"
33038 " char *const *lines);\n"
33043 #: ../src/guestfs-actions.pod:6685 ../src/guestfs-actions.pod:6729
33044 #: ../src/guestfs-actions.pod:6763
33046 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33051 #: ../src/guestfs-actions.pod:6712
33053 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33057 #: ../src/guestfs-actions.pod:6722
33058 msgid "guestfs_sfdiskM"
33062 #: ../src/guestfs-actions.pod:6724
33066 " guestfs_sfdiskM (guestfs_h *g,\n"
33067 " const char *device,\n"
33068 " char *const *lines);\n"
33073 #: ../src/guestfs-actions.pod:6736
33075 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33076 "partition sizes are specified in megabytes only (rounded to the nearest "
33077 "cylinder) and you don't need to specify the cyls, heads and sectors "
33078 "parameters which were rarely if ever used anyway."
33082 #: ../src/guestfs-actions.pod:6742
33084 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33085 "C<guestfs_part_disk>"
33089 #: ../src/guestfs-actions.pod:6752
33090 msgid "guestfs_sfdisk_N"
33094 #: ../src/guestfs-actions.pod:6754
33098 " guestfs_sfdisk_N (guestfs_h *g,\n"
33099 " const char *device,\n"
33104 " const char *line);\n"
33109 #: ../src/guestfs-actions.pod:6773
33111 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
33112 "for the cyls/heads/sectors parameters."
33116 #: ../src/guestfs-actions.pod:6776
33117 msgid "See also: C<guestfs_part_add>"
33121 #: ../src/guestfs-actions.pod:6785
33122 msgid "guestfs_sfdisk_disk_geometry"
33126 #: ../src/guestfs-actions.pod:6787
33130 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33131 " const char *device);\n"
33136 #: ../src/guestfs-actions.pod:6791
33138 "This displays the disk geometry of C<device> read from the partition table. "
33139 "Especially in the case where the underlying block device has been resized, "
33140 "this can be different from the kernel's idea of the geometry (see "
33141 "C<guestfs_sfdisk_kernel_geometry>)."
33145 #: ../src/guestfs-actions.pod:6804
33146 msgid "guestfs_sfdisk_kernel_geometry"
33150 #: ../src/guestfs-actions.pod:6806
33154 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33155 " const char *device);\n"
33160 #: ../src/guestfs-actions.pod:6820
33161 msgid "guestfs_sfdisk_l"
33165 #: ../src/guestfs-actions.pod:6822
33169 " guestfs_sfdisk_l (guestfs_h *g,\n"
33170 " const char *device);\n"
33175 #: ../src/guestfs-actions.pod:6826
33177 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33182 #: ../src/guestfs-actions.pod:6837
33183 msgid "See also: C<guestfs_part_list>"
33187 #: ../src/guestfs-actions.pod:6844
33192 #: ../src/guestfs-actions.pod:6846
33196 " guestfs_sh (guestfs_h *g,\n"
33197 " const char *command);\n"
33202 #: ../src/guestfs-actions.pod:6853
33203 msgid "This is like C<guestfs_command>, but passes the command to:"
33207 #: ../src/guestfs-actions.pod:6861
33208 msgid "All the provisos about C<guestfs_command> apply to this call."
33212 #: ../src/guestfs-actions.pod:6868
33213 msgid "guestfs_sh_lines"
33217 #: ../src/guestfs-actions.pod:6870
33221 " guestfs_sh_lines (guestfs_h *g,\n"
33222 " const char *command);\n"
33227 #: ../src/guestfs-actions.pod:6874
33229 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33234 #: ../src/guestfs-actions.pod:6877
33235 msgid "See also: C<guestfs_command_lines>"
33239 #: ../src/guestfs-actions.pod:6885
33240 msgid "guestfs_sleep"
33244 #: ../src/guestfs-actions.pod:6887
33248 " guestfs_sleep (guestfs_h *g,\n"
33254 #: ../src/guestfs-actions.pod:6895
33255 msgid "(Added in 1.0.41)"
33259 #: ../src/guestfs-actions.pod:6897 ../src/guestfs-structs.pod:109
33260 msgid "guestfs_stat"
33264 #: ../src/guestfs-actions.pod:6899
33267 " struct guestfs_stat *\n"
33268 " guestfs_stat (guestfs_h *g,\n"
33269 " const char *path);\n"
33274 #: ../src/guestfs-actions.pod:6913 ../src/guestfs-structs.pod:135
33275 msgid "guestfs_statvfs"
33279 #: ../src/guestfs-actions.pod:6915
33282 " struct guestfs_statvfs *\n"
33283 " guestfs_statvfs (guestfs_h *g,\n"
33284 " const char *path);\n"
33289 #: ../src/guestfs-actions.pod:6925
33291 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33292 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
33296 #: ../src/guestfs-actions.pod:6931
33297 msgid "guestfs_strings"
33301 #: ../src/guestfs-actions.pod:6933
33305 " guestfs_strings (guestfs_h *g,\n"
33306 " const char *path);\n"
33311 #: ../src/guestfs-actions.pod:6949
33312 msgid "guestfs_strings_e"
33316 #: ../src/guestfs-actions.pod:6951
33320 " guestfs_strings_e (guestfs_h *g,\n"
33321 " const char *encoding,\n"
33322 " const char *path);\n"
33327 #: ../src/guestfs-actions.pod:6956
33329 "This is like the C<guestfs_strings> command, but allows you to specify the "
33330 "encoding of strings that are looked for in the source file C<path>."
33334 #: ../src/guestfs-actions.pod:6966
33336 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33337 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33341 #: ../src/guestfs-actions.pod:7004
33342 msgid "guestfs_swapoff_device"
33346 #: ../src/guestfs-actions.pod:7006
33350 " guestfs_swapoff_device (guestfs_h *g,\n"
33351 " const char *device);\n"
33356 #: ../src/guestfs-actions.pod:7010
33358 "This command disables the libguestfs appliance swap device or partition "
33359 "named C<device>. See C<guestfs_swapon_device>."
33363 #: ../src/guestfs-actions.pod:7018
33364 msgid "guestfs_swapoff_file"
33368 #: ../src/guestfs-actions.pod:7020
33372 " guestfs_swapoff_file (guestfs_h *g,\n"
33373 " const char *file);\n"
33378 #: ../src/guestfs-actions.pod:7030
33379 msgid "guestfs_swapoff_label"
33383 #: ../src/guestfs-actions.pod:7032
33387 " guestfs_swapoff_label (guestfs_h *g,\n"
33388 " const char *label);\n"
33393 #: ../src/guestfs-actions.pod:7043
33394 msgid "guestfs_swapoff_uuid"
33398 #: ../src/guestfs-actions.pod:7045
33402 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33403 " const char *uuid);\n"
33408 #: ../src/guestfs-actions.pod:7056
33409 msgid "guestfs_swapon_device"
33413 #: ../src/guestfs-actions.pod:7058
33417 " guestfs_swapon_device (guestfs_h *g,\n"
33418 " const char *device);\n"
33423 #: ../src/guestfs-actions.pod:7062
33425 "This command enables the libguestfs appliance to use the swap device or "
33426 "partition named C<device>. The increased memory is made available for all "
33427 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33431 #: ../src/guestfs-actions.pod:7078
33432 msgid "guestfs_swapon_file"
33436 #: ../src/guestfs-actions.pod:7080
33440 " guestfs_swapon_file (guestfs_h *g,\n"
33441 " const char *file);\n"
33446 #: ../src/guestfs-actions.pod:7084
33448 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
33453 #: ../src/guestfs-actions.pod:7091
33454 msgid "guestfs_swapon_label"
33458 #: ../src/guestfs-actions.pod:7093
33462 " guestfs_swapon_label (guestfs_h *g,\n"
33463 " const char *label);\n"
33468 #: ../src/guestfs-actions.pod:7097
33470 "This command enables swap to a labeled swap partition. See "
33471 "C<guestfs_swapon_device> for other notes."
33475 #: ../src/guestfs-actions.pod:7104
33476 msgid "guestfs_swapon_uuid"
33480 #: ../src/guestfs-actions.pod:7106
33484 " guestfs_swapon_uuid (guestfs_h *g,\n"
33485 " const char *uuid);\n"
33490 #: ../src/guestfs-actions.pod:7110
33492 "This command enables swap to a swap partition with the given UUID. See "
33493 "C<guestfs_swapon_device> for other notes."
33497 #: ../src/guestfs-actions.pod:7117
33498 msgid "guestfs_sync"
33502 #: ../src/guestfs-actions.pod:7119
33506 " guestfs_sync (guestfs_h *g);\n"
33511 #: ../src/guestfs-actions.pod:7132
33512 msgid "guestfs_tail"
33516 #: ../src/guestfs-actions.pod:7134
33520 " guestfs_tail (guestfs_h *g,\n"
33521 " const char *path);\n"
33526 #: ../src/guestfs-actions.pod:7150
33527 msgid "guestfs_tail_n"
33531 #: ../src/guestfs-actions.pod:7152
33535 " guestfs_tail_n (guestfs_h *g,\n"
33537 " const char *path);\n"
33542 #: ../src/guestfs-actions.pod:7174
33543 msgid "guestfs_tar_in"
33547 #: ../src/guestfs-actions.pod:7176
33551 " guestfs_tar_in (guestfs_h *g,\n"
33552 " const char *tarfile,\n"
33553 " const char *directory);\n"
33558 #: ../src/guestfs-actions.pod:7184
33560 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33564 #: ../src/guestfs-actions.pod:7189 ../src/guestfs-actions.pod:7206
33565 #: ../src/guestfs-actions.pod:7222 ../src/guestfs-actions.pod:7238
33566 msgid "(Added in 1.0.3)"
33570 #: ../src/guestfs-actions.pod:7191
33571 msgid "guestfs_tar_out"
33575 #: ../src/guestfs-actions.pod:7193
33579 " guestfs_tar_out (guestfs_h *g,\n"
33580 " const char *directory,\n"
33581 " const char *tarfile);\n"
33586 #: ../src/guestfs-actions.pod:7201
33588 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33589 "C<guestfs_txz_out>."
33593 #: ../src/guestfs-actions.pod:7208
33594 msgid "guestfs_tgz_in"
33598 #: ../src/guestfs-actions.pod:7210
33602 " guestfs_tgz_in (guestfs_h *g,\n"
33603 " const char *tarball,\n"
33604 " const char *directory);\n"
33609 #: ../src/guestfs-actions.pod:7218
33610 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33614 #: ../src/guestfs-actions.pod:7224
33615 msgid "guestfs_tgz_out"
33619 #: ../src/guestfs-actions.pod:7226
33623 " guestfs_tgz_out (guestfs_h *g,\n"
33624 " const char *directory,\n"
33625 " const char *tarball);\n"
33630 #: ../src/guestfs-actions.pod:7234
33631 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33635 #: ../src/guestfs-actions.pod:7240
33636 msgid "guestfs_touch"
33640 #: ../src/guestfs-actions.pod:7242
33644 " guestfs_touch (guestfs_h *g,\n"
33645 " const char *path);\n"
33650 #: ../src/guestfs-actions.pod:7257
33651 msgid "guestfs_truncate"
33655 #: ../src/guestfs-actions.pod:7259
33659 " guestfs_truncate (guestfs_h *g,\n"
33660 " const char *path);\n"
33665 #: ../src/guestfs-actions.pod:7270
33666 msgid "guestfs_truncate_size"
33670 #: ../src/guestfs-actions.pod:7272
33674 " guestfs_truncate_size (guestfs_h *g,\n"
33675 " const char *path,\n"
33676 " int64_t size);\n"
33681 #: ../src/guestfs-actions.pod:7280
33683 "If the current file size is less than C<size> then the file is extended to "
33684 "the required size with zero bytes. This creates a sparse file (ie. disk "
33685 "blocks are not allocated for the file until you write to it). To create a "
33686 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33690 #: ../src/guestfs-actions.pod:7290
33691 msgid "guestfs_tune2fs_l"
33695 #: ../src/guestfs-actions.pod:7292
33699 " guestfs_tune2fs_l (guestfs_h *g,\n"
33700 " const char *device);\n"
33705 #: ../src/guestfs-actions.pod:7312
33706 msgid "guestfs_txz_in"
33710 #: ../src/guestfs-actions.pod:7314
33714 " guestfs_txz_in (guestfs_h *g,\n"
33715 " const char *tarball,\n"
33716 " const char *directory);\n"
33721 #: ../src/guestfs-actions.pod:7326
33722 msgid "guestfs_txz_out"
33726 #: ../src/guestfs-actions.pod:7328
33730 " guestfs_txz_out (guestfs_h *g,\n"
33731 " const char *directory,\n"
33732 " const char *tarball);\n"
33737 #: ../src/guestfs-actions.pod:7340
33738 msgid "guestfs_umask"
33742 #: ../src/guestfs-actions.pod:7342
33746 " guestfs_umask (guestfs_h *g,\n"
33752 #: ../src/guestfs-actions.pod:7358
33754 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33755 "C<guestfs_mkdir>."
33759 #: ../src/guestfs-actions.pod:7367
33760 msgid "guestfs_umount"
33764 #: ../src/guestfs-actions.pod:7369
33768 " guestfs_umount (guestfs_h *g,\n"
33769 " const char *pathordevice);\n"
33774 #: ../src/guestfs-actions.pod:7381
33775 msgid "guestfs_umount_all"
33779 #: ../src/guestfs-actions.pod:7383
33783 " guestfs_umount_all (guestfs_h *g);\n"
33788 #: ../src/guestfs-actions.pod:7394
33789 msgid "guestfs_upload"
33793 #: ../src/guestfs-actions.pod:7396
33797 " guestfs_upload (guestfs_h *g,\n"
33798 " const char *filename,\n"
33799 " const char *remotefilename);\n"
33804 #: ../src/guestfs-actions.pod:7406
33805 msgid "See also C<guestfs_download>."
33809 #: ../src/guestfs-actions.pod:7417
33810 msgid "guestfs_upload_offset"
33814 #: ../src/guestfs-actions.pod:7419
33818 " guestfs_upload_offset (guestfs_h *g,\n"
33819 " const char *filename,\n"
33820 " const char *remotefilename,\n"
33821 " int64_t offset);\n"
33826 #: ../src/guestfs-actions.pod:7435
33828 "Note that there is no limit on the amount of data that can be uploaded with "
33829 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33830 "full amount unless an error occurs."
33834 #: ../src/guestfs-actions.pod:7440
33835 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33839 #: ../src/guestfs-actions.pod:7451
33840 msgid "guestfs_utimens"
33844 #: ../src/guestfs-actions.pod:7453
33848 " guestfs_utimens (guestfs_h *g,\n"
33849 " const char *path,\n"
33850 " int64_t atsecs,\n"
33851 " int64_t atnsecs,\n"
33852 " int64_t mtsecs,\n"
33853 " int64_t mtnsecs);\n"
33858 #: ../src/guestfs-actions.pod:7482 ../src/guestfs-structs.pod:175
33859 msgid "guestfs_version"
33863 #: ../src/guestfs-actions.pod:7484
33866 " struct guestfs_version *\n"
33867 " guestfs_version (guestfs_h *g);\n"
33872 #: ../src/guestfs-actions.pod:7512
33874 "I<Note:> Don't use this call to test for availability of features. In "
33875 "enterprise distributions we backport features from later versions into "
33876 "earlier versions, making this an unreliable way to test for features. Use "
33877 "C<guestfs_available> instead."
33881 #: ../src/guestfs-actions.pod:7518
33883 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33884 "error. I<The caller must call C<guestfs_free_version> after use>."
33888 #: ../src/guestfs-actions.pod:7522
33889 msgid "(Added in 1.0.58)"
33893 #: ../src/guestfs-actions.pod:7524
33894 msgid "guestfs_vfs_label"
33898 #: ../src/guestfs-actions.pod:7526
33902 " guestfs_vfs_label (guestfs_h *g,\n"
33903 " const char *device);\n"
33908 #: ../src/guestfs-actions.pod:7535
33909 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33913 #: ../src/guestfs-actions.pod:7540 ../src/guestfs-actions.pod:7577
33914 msgid "(Added in 1.3.18)"
33918 #: ../src/guestfs-actions.pod:7542
33919 msgid "guestfs_vfs_type"
33923 #: ../src/guestfs-actions.pod:7544
33927 " guestfs_vfs_type (guestfs_h *g,\n"
33928 " const char *device);\n"
33933 #: ../src/guestfs-actions.pod:7561
33934 msgid "guestfs_vfs_uuid"
33938 #: ../src/guestfs-actions.pod:7563
33942 " guestfs_vfs_uuid (guestfs_h *g,\n"
33943 " const char *device);\n"
33948 #: ../src/guestfs-actions.pod:7572
33949 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33953 #: ../src/guestfs-actions.pod:7579
33954 msgid "guestfs_vg_activate"
33958 #: ../src/guestfs-actions.pod:7581
33962 " guestfs_vg_activate (guestfs_h *g,\n"
33964 " char *const *volgroups);\n"
33969 #: ../src/guestfs-actions.pod:7598
33970 msgid "guestfs_vg_activate_all"
33974 #: ../src/guestfs-actions.pod:7600
33978 " guestfs_vg_activate_all (guestfs_h *g,\n"
33979 " int activate);\n"
33984 #: ../src/guestfs-actions.pod:7613
33985 msgid "guestfs_vgcreate"
33989 #: ../src/guestfs-actions.pod:7615
33993 " guestfs_vgcreate (guestfs_h *g,\n"
33994 " const char *volgroup,\n"
33995 " char *const *physvols);\n"
34000 #: ../src/guestfs-actions.pod:7627
34001 msgid "guestfs_vglvuuids"
34005 #: ../src/guestfs-actions.pod:7629
34009 " guestfs_vglvuuids (guestfs_h *g,\n"
34010 " const char *vgname);\n"
34015 #: ../src/guestfs-actions.pod:7636
34017 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34018 "associate logical volumes and volume groups."
34022 #: ../src/guestfs-actions.pod:7639
34023 msgid "See also C<guestfs_vgpvuuids>."
34027 #: ../src/guestfs-actions.pod:7647
34028 msgid "guestfs_vgpvuuids"
34032 #: ../src/guestfs-actions.pod:7649
34036 " guestfs_vgpvuuids (guestfs_h *g,\n"
34037 " const char *vgname);\n"
34042 #: ../src/guestfs-actions.pod:7656
34044 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34045 "associate physical volumes and volume groups."
34049 #: ../src/guestfs-actions.pod:7659
34050 msgid "See also C<guestfs_vglvuuids>."
34054 #: ../src/guestfs-actions.pod:7667
34055 msgid "guestfs_vgremove"
34059 #: ../src/guestfs-actions.pod:7669
34063 " guestfs_vgremove (guestfs_h *g,\n"
34064 " const char *vgname);\n"
34069 #: ../src/guestfs-actions.pod:7682
34070 msgid "guestfs_vgrename"
34074 #: ../src/guestfs-actions.pod:7684
34078 " guestfs_vgrename (guestfs_h *g,\n"
34079 " const char *volgroup,\n"
34080 " const char *newvolgroup);\n"
34085 #: ../src/guestfs-actions.pod:7695
34086 msgid "guestfs_vgs"
34090 #: ../src/guestfs-actions.pod:7697
34094 " guestfs_vgs (guestfs_h *g);\n"
34099 #: ../src/guestfs-actions.pod:7706
34100 msgid "See also C<guestfs_vgs_full>."
34104 #: ../src/guestfs-actions.pod:7714
34105 msgid "guestfs_vgs_full"
34109 #: ../src/guestfs-actions.pod:7716
34112 " struct guestfs_lvm_vg_list *\n"
34113 " guestfs_vgs_full (guestfs_h *g);\n"
34118 #: ../src/guestfs-actions.pod:7722
34120 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34121 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34125 #: ../src/guestfs-actions.pod:7728
34126 msgid "guestfs_vgscan"
34130 #: ../src/guestfs-actions.pod:7730
34134 " guestfs_vgscan (guestfs_h *g);\n"
34139 #: ../src/guestfs-actions.pod:7740
34140 msgid "guestfs_vguuid"
34144 #: ../src/guestfs-actions.pod:7742
34148 " guestfs_vguuid (guestfs_h *g,\n"
34149 " const char *vgname);\n"
34154 #: ../src/guestfs-actions.pod:7753
34155 msgid "guestfs_wait_ready"
34159 #: ../src/guestfs-actions.pod:7755
34163 " guestfs_wait_ready (guestfs_h *g);\n"
34168 #: ../src/guestfs-actions.pod:7758
34170 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34175 #: ../src/guestfs-actions.pod:7765
34176 msgid "This function is a no op."
34180 #: ../src/guestfs-actions.pod:7767
34182 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
34183 "calling C<guestfs_launch> to wait for the launch to complete. However this "
34184 "is no longer necessary because C<guestfs_launch> now does the waiting."
34188 #: ../src/guestfs-actions.pod:7772
34190 "If you see any calls to this function in code then you can just remove them, "
34191 "unless you want to retain compatibility with older versions of the API."
34195 #: ../src/guestfs-actions.pod:7780
34196 msgid "guestfs_wc_c"
34200 #: ../src/guestfs-actions.pod:7782
34204 " guestfs_wc_c (guestfs_h *g,\n"
34205 " const char *path);\n"
34210 #: ../src/guestfs-actions.pod:7793
34211 msgid "guestfs_wc_l"
34215 #: ../src/guestfs-actions.pod:7795
34219 " guestfs_wc_l (guestfs_h *g,\n"
34220 " const char *path);\n"
34225 #: ../src/guestfs-actions.pod:7806
34226 msgid "guestfs_wc_w"
34230 #: ../src/guestfs-actions.pod:7808
34234 " guestfs_wc_w (guestfs_h *g,\n"
34235 " const char *path);\n"
34240 #: ../src/guestfs-actions.pod:7819
34241 msgid "guestfs_write"
34245 #: ../src/guestfs-actions.pod:7821
34249 " guestfs_write (guestfs_h *g,\n"
34250 " const char *path,\n"
34251 " const char *content,\n"
34252 " size_t content_size);\n"
34257 #: ../src/guestfs-actions.pod:7830
34258 msgid "See also C<guestfs_write_append>."
34262 #: ../src/guestfs-actions.pod:7839
34263 msgid "guestfs_write_append"
34267 #: ../src/guestfs-actions.pod:7841
34271 " guestfs_write_append (guestfs_h *g,\n"
34272 " const char *path,\n"
34273 " const char *content,\n"
34274 " size_t content_size);\n"
34279 #: ../src/guestfs-actions.pod:7850
34280 msgid "See also C<guestfs_write>."
34284 #: ../src/guestfs-actions.pod:7859
34285 msgid "guestfs_write_file"
34286 msgstr "guestfs_write_file"
34289 #: ../src/guestfs-actions.pod:7861
34293 " guestfs_write_file (guestfs_h *g,\n"
34294 " const char *path,\n"
34295 " const char *content,\n"
34300 " guestfs_write_file (guestfs_h *g,\n"
34301 " const char *path,\n"
34302 " const char *content,\n"
34307 #: ../src/guestfs-actions.pod:7867
34309 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34314 #: ../src/guestfs-actions.pod:7892
34315 msgid "guestfs_zegrep"
34316 msgstr "guestfs_zegrep"
34319 #: ../src/guestfs-actions.pod:7894
34323 " guestfs_zegrep (guestfs_h *g,\n"
34324 " const char *regex,\n"
34325 " const char *path);\n"
34329 " guestfs_zegrep (guestfs_h *g,\n"
34330 " const char *regex,\n"
34331 " const char *path);\n"
34335 #: ../src/guestfs-actions.pod:7911
34336 msgid "guestfs_zegrepi"
34337 msgstr "guestfs_zegrepi"
34340 #: ../src/guestfs-actions.pod:7913
34344 " guestfs_zegrepi (guestfs_h *g,\n"
34345 " const char *regex,\n"
34346 " const char *path);\n"
34350 " guestfs_zegrepi (guestfs_h *g,\n"
34351 " const char *regex,\n"
34352 " const char *path);\n"
34356 #: ../src/guestfs-actions.pod:7930
34357 msgid "guestfs_zero"
34358 msgstr "guestfs_zero"
34361 #: ../src/guestfs-actions.pod:7932
34365 " guestfs_zero (guestfs_h *g,\n"
34366 " const char *device);\n"
34370 " guestfs_zero (guestfs_h *g,\n"
34371 " const char *device);\n"
34375 #: ../src/guestfs-actions.pod:7946
34377 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34378 "C<guestfs_is_zero_device>"
34382 #: ../src/guestfs-actions.pod:7958
34383 msgid "guestfs_zero_device"
34384 msgstr "guestfs_zero_device"
34387 #: ../src/guestfs-actions.pod:7960
34391 " guestfs_zero_device (guestfs_h *g,\n"
34392 " const char *device);\n"
34396 " guestfs_zero_device (guestfs_h *g,\n"
34397 " const char *device);\n"
34401 #: ../src/guestfs-actions.pod:7964
34403 "This command writes zeroes over the entire C<device>. Compare with "
34404 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34408 #: ../src/guestfs-actions.pod:7982
34409 msgid "(Added in 1.3.1)"
34410 msgstr "(Додано у 1.3.1)"
34413 #: ../src/guestfs-actions.pod:7984
34414 msgid "guestfs_zerofree"
34415 msgstr "guestfs_zerofree"
34418 #: ../src/guestfs-actions.pod:7986
34422 " guestfs_zerofree (guestfs_h *g,\n"
34423 " const char *device);\n"
34427 " guestfs_zerofree (guestfs_h *g,\n"
34428 " const char *device);\n"
34432 #: ../src/guestfs-actions.pod:8005
34433 msgid "guestfs_zfgrep"
34434 msgstr "guestfs_zfgrep"
34437 #: ../src/guestfs-actions.pod:8007
34441 " guestfs_zfgrep (guestfs_h *g,\n"
34442 " const char *pattern,\n"
34443 " const char *path);\n"
34447 " guestfs_zfgrep (guestfs_h *g,\n"
34448 " const char *pattern,\n"
34449 " const char *path);\n"
34453 #: ../src/guestfs-actions.pod:8024
34454 msgid "guestfs_zfgrepi"
34455 msgstr "guestfs_zfgrepi"
34458 #: ../src/guestfs-actions.pod:8026
34462 " guestfs_zfgrepi (guestfs_h *g,\n"
34463 " const char *pattern,\n"
34464 " const char *path);\n"
34468 " guestfs_zfgrepi (guestfs_h *g,\n"
34469 " const char *pattern,\n"
34470 " const char *path);\n"
34474 #: ../src/guestfs-actions.pod:8043
34475 msgid "guestfs_zfile"
34476 msgstr "guestfs_zfile"
34479 #: ../src/guestfs-actions.pod:8045
34483 " guestfs_zfile (guestfs_h *g,\n"
34484 " const char *meth,\n"
34485 " const char *path);\n"
34489 " guestfs_zfile (guestfs_h *g,\n"
34490 " const char *meth,\n"
34491 " const char *path);\n"
34495 #: ../src/guestfs-actions.pod:8050
34497 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34502 #: ../src/guestfs-actions.pod:8062
34504 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34509 #: ../src/guestfs-actions.pod:8070
34510 msgid "guestfs_zgrep"
34511 msgstr "guestfs_zgrep"
34514 #: ../src/guestfs-actions.pod:8072
34518 " guestfs_zgrep (guestfs_h *g,\n"
34519 " const char *regex,\n"
34520 " const char *path);\n"
34524 " guestfs_zgrep (guestfs_h *g,\n"
34525 " const char *regex,\n"
34526 " const char *path);\n"
34530 #: ../src/guestfs-actions.pod:8089
34531 msgid "guestfs_zgrepi"
34532 msgstr "guestfs_zgrepi"
34535 #: ../src/guestfs-actions.pod:8091
34539 " guestfs_zgrepi (guestfs_h *g,\n"
34540 " const char *regex,\n"
34541 " const char *path);\n"
34545 " guestfs_zgrepi (guestfs_h *g,\n"
34546 " const char *regex,\n"
34547 " const char *path);\n"
34551 #: ../src/guestfs-availability.pod:3
34556 #: ../src/guestfs-availability.pod:5
34558 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
34559 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
34560 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
34561 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
34562 "L</guestfs_aug_save> L</guestfs_aug_set>"
34566 #: ../src/guestfs-availability.pod:21
34571 #: ../src/guestfs-availability.pod:23
34572 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34576 #: ../src/guestfs-availability.pod:26
34578 #| msgid "B<scrub>"
34583 #: ../src/guestfs-availability.pod:28
34584 msgid "The following functions: L</guestfs_grub_install>"
34588 #: ../src/guestfs-availability.pod:31
34590 msgstr "B<inotify>"
34593 #: ../src/guestfs-availability.pod:33
34595 "The following functions: L</guestfs_inotify_add_watch> L</"
34596 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
34597 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34601 #: ../src/guestfs-availability.pod:41
34602 msgid "B<linuxfsuuid>"
34603 msgstr "B<linuxfsuuid>"
34606 #: ../src/guestfs-availability.pod:43
34608 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
34609 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34613 #: ../src/guestfs-availability.pod:50
34614 msgid "B<linuxmodules>"
34615 msgstr "B<linuxmodules>"
34618 #: ../src/guestfs-availability.pod:52
34619 msgid "The following functions: L</guestfs_modprobe>"
34623 #: ../src/guestfs-availability.pod:55
34624 msgid "B<linuxxattrs>"
34625 msgstr "B<linuxxattrs>"
34628 #: ../src/guestfs-availability.pod:57
34630 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
34631 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
34632 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
34633 "guestfs_setxattr>"
34637 #: ../src/guestfs-availability.pod:68
34642 #: ../src/guestfs-availability.pod:70
34644 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
34645 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
34646 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34650 #: ../src/guestfs-availability.pod:79
34655 #: ../src/guestfs-availability.pod:81
34657 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34658 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34659 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34660 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34661 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34662 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34663 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34667 #: ../src/guestfs-availability.pod:104
34672 #: ../src/guestfs-availability.pod:106
34674 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34675 "guestfs_mknod_b> L</guestfs_mknod_c>"
34679 #: ../src/guestfs-availability.pod:112
34684 #: ../src/guestfs-availability.pod:114
34685 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34689 #: ../src/guestfs-availability.pod:117
34690 msgid "B<ntfsprogs>"
34691 msgstr "B<ntfsprogs>"
34694 #: ../src/guestfs-availability.pod:119
34696 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34697 "L</guestfs_ntfsresize_size>"
34701 #: ../src/guestfs-availability.pod:124
34702 msgid "B<realpath>"
34703 msgstr "B<realpath>"
34706 #: ../src/guestfs-availability.pod:126
34707 msgid "The following functions: L</guestfs_realpath>"
34711 #: ../src/guestfs-availability.pod:129
34716 #: ../src/guestfs-availability.pod:131
34718 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34719 "guestfs_scrub_freespace>"
34723 #: ../src/guestfs-availability.pod:136
34725 msgstr "B<selinux>"
34728 #: ../src/guestfs-availability.pod:138
34729 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34733 #: ../src/guestfs-availability.pod:142
34738 #: ../src/guestfs-availability.pod:144
34739 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34743 #: ../src/guestfs-availability.pod:148
34744 msgid "B<zerofree>"
34745 msgstr "B<zerofree>"
34748 #: ../src/guestfs-availability.pod:150
34749 msgid "The following functions: L</guestfs_zerofree>"
34753 #: ../src/guestfs-structs.pod:1
34754 msgid "guestfs_int_bool"
34758 #: ../src/guestfs-structs.pod:3
34761 " struct guestfs_int_bool {\n"
34769 #: ../src/guestfs-structs.pod:8
34772 " struct guestfs_int_bool_list {\n"
34773 " uint32_t len; /* Number of elements in list. */\n"
34774 " struct guestfs_int_bool *val; /* Elements. */\n"
34780 #: ../src/guestfs-structs.pod:13
34783 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34784 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34789 #: ../src/guestfs-structs.pod:16
34790 msgid "guestfs_lvm_pv"
34794 #: ../src/guestfs-structs.pod:18
34797 " struct guestfs_lvm_pv {\n"
34798 " char *pv_name;\n"
34799 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34800 " char pv_uuid[32];\n"
34802 " uint64_t pv_size;\n"
34803 " uint64_t dev_size;\n"
34804 " uint64_t pv_free;\n"
34805 " uint64_t pv_used;\n"
34806 " char *pv_attr;\n"
34807 " int64_t pv_pe_count;\n"
34808 " int64_t pv_pe_alloc_count;\n"
34809 " char *pv_tags;\n"
34810 " uint64_t pe_start;\n"
34811 " int64_t pv_mda_count;\n"
34812 " uint64_t pv_mda_free;\n"
34818 #: ../src/guestfs-structs.pod:36
34821 " struct guestfs_lvm_pv_list {\n"
34822 " uint32_t len; /* Number of elements in list. */\n"
34823 " struct guestfs_lvm_pv *val; /* Elements. */\n"
34829 #: ../src/guestfs-structs.pod:41
34832 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34833 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34838 #: ../src/guestfs-structs.pod:44
34839 msgid "guestfs_lvm_vg"
34843 #: ../src/guestfs-structs.pod:46
34846 " struct guestfs_lvm_vg {\n"
34847 " char *vg_name;\n"
34848 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34849 " char vg_uuid[32];\n"
34851 " char *vg_attr;\n"
34852 " uint64_t vg_size;\n"
34853 " uint64_t vg_free;\n"
34854 " char *vg_sysid;\n"
34855 " uint64_t vg_extent_size;\n"
34856 " int64_t vg_extent_count;\n"
34857 " int64_t vg_free_count;\n"
34858 " int64_t max_lv;\n"
34859 " int64_t max_pv;\n"
34860 " int64_t pv_count;\n"
34861 " int64_t lv_count;\n"
34862 " int64_t snap_count;\n"
34863 " int64_t vg_seqno;\n"
34864 " char *vg_tags;\n"
34865 " int64_t vg_mda_count;\n"
34866 " uint64_t vg_mda_free;\n"
34872 #: ../src/guestfs-structs.pod:69
34875 " struct guestfs_lvm_vg_list {\n"
34876 " uint32_t len; /* Number of elements in list. */\n"
34877 " struct guestfs_lvm_vg *val; /* Elements. */\n"
34883 #: ../src/guestfs-structs.pod:74
34886 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34887 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34892 #: ../src/guestfs-structs.pod:77
34893 msgid "guestfs_lvm_lv"
34897 #: ../src/guestfs-structs.pod:79
34900 " struct guestfs_lvm_lv {\n"
34901 " char *lv_name;\n"
34902 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34903 " char lv_uuid[32];\n"
34904 " char *lv_attr;\n"
34905 " int64_t lv_major;\n"
34906 " int64_t lv_minor;\n"
34907 " int64_t lv_kernel_major;\n"
34908 " int64_t lv_kernel_minor;\n"
34909 " uint64_t lv_size;\n"
34910 " int64_t seg_count;\n"
34912 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
34913 " float snap_percent;\n"
34914 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
34915 " float copy_percent;\n"
34916 " char *move_pv;\n"
34917 " char *lv_tags;\n"
34918 " char *mirror_log;\n"
34919 " char *modules;\n"
34925 #: ../src/guestfs-structs.pod:101
34928 " struct guestfs_lvm_lv_list {\n"
34929 " uint32_t len; /* Number of elements in list. */\n"
34930 " struct guestfs_lvm_lv *val; /* Elements. */\n"
34936 #: ../src/guestfs-structs.pod:106
34939 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34940 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34945 #: ../src/guestfs-structs.pod:111
34948 " struct guestfs_stat {\n"
34952 " int64_t nlink;\n"
34957 " int64_t blksize;\n"
34958 " int64_t blocks;\n"
34959 " int64_t atime;\n"
34960 " int64_t mtime;\n"
34961 " int64_t ctime;\n"
34967 #: ../src/guestfs-structs.pod:127
34970 " struct guestfs_stat_list {\n"
34971 " uint32_t len; /* Number of elements in list. */\n"
34972 " struct guestfs_stat *val; /* Elements. */\n"
34978 #: ../src/guestfs-structs.pod:132
34981 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34982 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34987 #: ../src/guestfs-structs.pod:137
34990 " struct guestfs_statvfs {\n"
34991 " int64_t bsize;\n"
34992 " int64_t frsize;\n"
34993 " int64_t blocks;\n"
34994 " int64_t bfree;\n"
34995 " int64_t bavail;\n"
34996 " int64_t files;\n"
34997 " int64_t ffree;\n"
34998 " int64_t favail;\n"
35001 " int64_t namemax;\n"
35007 #: ../src/guestfs-structs.pod:151
35010 " struct guestfs_statvfs_list {\n"
35011 " uint32_t len; /* Number of elements in list. */\n"
35012 " struct guestfs_statvfs *val; /* Elements. */\n"
35018 #: ../src/guestfs-structs.pod:156
35021 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35022 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35027 #: ../src/guestfs-structs.pod:159
35028 msgid "guestfs_dirent"
35032 #: ../src/guestfs-structs.pod:161
35035 " struct guestfs_dirent {\n"
35044 #: ../src/guestfs-structs.pod:167
35047 " struct guestfs_dirent_list {\n"
35048 " uint32_t len; /* Number of elements in list. */\n"
35049 " struct guestfs_dirent *val; /* Elements. */\n"
35055 #: ../src/guestfs-structs.pod:172
35058 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35059 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35064 #: ../src/guestfs-structs.pod:177
35067 " struct guestfs_version {\n"
35068 " int64_t major;\n"
35069 " int64_t minor;\n"
35070 " int64_t release;\n"
35077 #: ../src/guestfs-structs.pod:184
35080 " struct guestfs_version_list {\n"
35081 " uint32_t len; /* Number of elements in list. */\n"
35082 " struct guestfs_version *val; /* Elements. */\n"
35088 #: ../src/guestfs-structs.pod:189
35091 " void guestfs_free_version (struct guestfs_free_version *);\n"
35092 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35097 #: ../src/guestfs-structs.pod:192
35098 msgid "guestfs_xattr"
35102 #: ../src/guestfs-structs.pod:194
35105 " struct guestfs_xattr {\n"
35106 " char *attrname;\n"
35107 " /* The next two fields describe a byte array. */\n"
35108 " uint32_t attrval_len;\n"
35109 " char *attrval;\n"
35115 #: ../src/guestfs-structs.pod:201
35118 " struct guestfs_xattr_list {\n"
35119 " uint32_t len; /* Number of elements in list. */\n"
35120 " struct guestfs_xattr *val; /* Elements. */\n"
35126 #: ../src/guestfs-structs.pod:206
35129 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35130 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35135 #: ../src/guestfs-structs.pod:209
35136 msgid "guestfs_inotify_event"
35140 #: ../src/guestfs-structs.pod:211
35143 " struct guestfs_inotify_event {\n"
35144 " int64_t in_wd;\n"
35145 " uint32_t in_mask;\n"
35146 " uint32_t in_cookie;\n"
35147 " char *in_name;\n"
35153 #: ../src/guestfs-structs.pod:218
35156 " struct guestfs_inotify_event_list {\n"
35157 " uint32_t len; /* Number of elements in list. */\n"
35158 " struct guestfs_inotify_event *val; /* Elements. */\n"
35164 #: ../src/guestfs-structs.pod:223
35167 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
35168 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
35173 #: ../src/guestfs-structs.pod:226
35174 msgid "guestfs_partition"
35178 #: ../src/guestfs-structs.pod:228
35181 " struct guestfs_partition {\n"
35182 " int32_t part_num;\n"
35183 " uint64_t part_start;\n"
35184 " uint64_t part_end;\n"
35185 " uint64_t part_size;\n"
35191 #: ../src/guestfs-structs.pod:235
35194 " struct guestfs_partition_list {\n"
35195 " uint32_t len; /* Number of elements in list. */\n"
35196 " struct guestfs_partition *val; /* Elements. */\n"
35202 #: ../src/guestfs-structs.pod:240
35205 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
35206 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
35211 #: ../src/guestfs-structs.pod:243
35212 msgid "guestfs_application"
35216 #: ../src/guestfs-structs.pod:245
35219 " struct guestfs_application {\n"
35220 " char *app_name;\n"
35221 " char *app_display_name;\n"
35222 " int32_t app_epoch;\n"
35223 " char *app_version;\n"
35224 " char *app_release;\n"
35225 " char *app_install_path;\n"
35226 " char *app_trans_path;\n"
35227 " char *app_publisher;\n"
35228 " char *app_url;\n"
35229 " char *app_source_package;\n"
35230 " char *app_summary;\n"
35231 " char *app_description;\n"
35237 #: ../src/guestfs-structs.pod:260
35240 " struct guestfs_application_list {\n"
35241 " uint32_t len; /* Number of elements in list. */\n"
35242 " struct guestfs_application *val; /* Elements. */\n"
35248 #: ../src/guestfs-structs.pod:265
35251 " void guestfs_free_application (struct guestfs_free_application *);\n"
35252 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35257 #: ../src/guestfs.pod:5
35258 msgid "guestfs - Library for accessing and modifying virtual machine images"
35260 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
35264 #: ../src/guestfs.pod:11
35267 " guestfs_h *g = guestfs_create ();\n"
35268 " guestfs_add_drive (g, \"guest.img\");\n"
35269 " guestfs_launch (g);\n"
35270 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35271 " guestfs_touch (g, \"/hello\");\n"
35272 " guestfs_umount (g, \"/\");\n"
35273 " guestfs_close (g);\n"
35276 " guestfs_h *g = guestfs_create ();\n"
35277 " guestfs_add_drive (g, \"guest.img\");\n"
35278 " guestfs_launch (g);\n"
35279 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35280 " guestfs_touch (g, \"/hello\");\n"
35281 " guestfs_umount (g, \"/\");\n"
35282 " guestfs_close (g);\n"
35286 #: ../src/guestfs.pod:25
35288 "Libguestfs is a library for accessing and modifying guest disk images. "
35289 "Amongst the things this is good for: making batch configuration changes to "
35290 "guests, getting disk used/free statistics (see also: virt-df), migrating "
35291 "between virtualization systems (see also: virt-p2v), performing partial "
35292 "backups, performing partial guest clones, cloning guests and changing "
35293 "registry/UUID/hostname info, and much else besides."
35297 #: ../src/guestfs.pod:33
35299 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
35300 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
35301 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
35306 #: ../src/guestfs.pod:38
35308 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
35309 "what filesystem is in each LV, etc.). It can also run commands in the "
35310 "context of the guest. Also you can access filesystems over FUSE."
35314 #: ../src/guestfs.pod:43
35316 "Libguestfs is a library that can be linked with C and C++ management "
35317 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
35318 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
35323 #: ../src/guestfs.pod:48
35325 "You don't need to be root to use libguestfs, although obviously you do need "
35326 "enough permissions to access the disk images."
35330 #: ../src/guestfs.pod:51
35332 "Libguestfs is a large API because it can do many things. For a gentle "
35333 "introduction, please read the L</API OVERVIEW> section next."
35337 #: ../src/guestfs.pod:54
35339 "There are also some example programs in the L<guestfs-examples(3)> manual "
35344 #: ../src/guestfs.pod:57
35345 msgid "API OVERVIEW"
35349 #: ../src/guestfs.pod:59
35351 "This section provides a gentler overview of the libguestfs API. We also try "
35352 "to group API calls together, where that may not be obvious from reading "
35353 "about the individual calls in the main section of this manual."
35357 #: ../src/guestfs.pod:64
35362 #: ../src/guestfs.pod:66
35364 "Before you can use libguestfs calls, you have to create a handle. Then you "
35365 "must add at least one disk image to the handle, followed by launching the "
35366 "handle, then performing whatever operations you want, and finally closing "
35367 "the handle. By convention we use the single letter C<g> for the name of the "
35368 "handle variable, although of course you can use any name you want."
35372 #: ../src/guestfs.pod:73
35373 msgid "The general structure of all libguestfs-using programs looks like this:"
35377 #: ../src/guestfs.pod:76
35380 " guestfs_h *g = guestfs_create ();\n"
35383 " guestfs_h *g = guestfs_create ();\n"
35387 #: ../src/guestfs.pod:78
35390 " /* Call guestfs_add_drive additional times if there are\n"
35391 " * multiple disk images.\n"
35393 " guestfs_add_drive (g, \"guest.img\");\n"
35398 #: ../src/guestfs.pod:83
35401 " /* Most manipulation calls won't work until you've launched\n"
35402 " * the handle 'g'. You have to do this _after_ adding drives\n"
35403 " * and _before_ other commands.\n"
35405 " guestfs_launch (g);\n"
35410 #: ../src/guestfs.pod:89
35413 " /* Now you can examine what partitions, LVs etc are available.\n"
35415 " char **partitions = guestfs_list_partitions (g);\n"
35416 " char **logvols = guestfs_lvs (g);\n"
35419 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
35421 " char **partitions = guestfs_list_partitions (g);\n"
35422 " char **logvols = guestfs_lvs (g);\n"
35426 #: ../src/guestfs.pod:94
35429 " /* To access a filesystem in the image, you must mount it.\n"
35431 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35434 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
35436 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35440 #: ../src/guestfs.pod:98
35443 " /* Now you can perform filesystem actions on the guest\n"
35446 " guestfs_touch (g, \"/hello\");\n"
35451 #: ../src/guestfs.pod:103
35454 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
35455 " * it is done automatically when you close the handle. See\n"
35456 " * discussion of autosync in this page.\n"
35458 " guestfs_sync (g);\n"
35463 #: ../src/guestfs.pod:109
35466 " /* Close the handle 'g'. */\n"
35467 " guestfs_close (g);\n"
35470 " /* Закрити дескриптор 'g'. */\n"
35471 " guestfs_close (g);\n"
35475 #: ../src/guestfs.pod:112
35477 "The code above doesn't include any error checking. In real code you should "
35478 "check return values carefully for errors. In general all functions that "
35479 "return integers return C<-1> on error, and all functions that return "
35480 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
35481 "how to handle errors, and consult the documentation for each function call "
35482 "below to see precisely how they return error indications. See L<guestfs-"
35483 "examples(3)> for fully worked examples."
35487 #: ../src/guestfs.pod:121
35488 msgid "DISK IMAGES"
35489 msgstr "ОБРАЗИ ДИСКІВ"
35492 #: ../src/guestfs.pod:123
35494 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35495 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35496 "actual block device, or simply an empty file of zeroes that you have created "
35497 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
35502 #: ../src/guestfs.pod:129
35504 "The call you should use in modern code for adding drives is L</"
35505 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
35506 "specifying that the format is raw, do:"
35510 #: ../src/guestfs.pod:133
35513 " guestfs_add_drive_opts (g, filename,\n"
35514 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35518 " guestfs_add_drive_opts (g, filename,\n"
35519 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35524 #: ../src/guestfs.pod:137
35525 msgid "You can add a disk read-only using:"
35526 msgstr "Ви можете додати диск у режимі лише читання:"
35529 #: ../src/guestfs.pod:139
35532 " guestfs_add_drive_opts (g, filename,\n"
35533 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35534 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35538 " guestfs_add_drive_opts (g, filename,\n"
35539 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35540 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35545 #: ../src/guestfs.pod:144
35547 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
35548 "libguestfs won't modify the file."
35552 #: ../src/guestfs.pod:147
35554 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35555 "by a virtual machine. Adding it read-write will almost certainly cause disk "
35556 "corruption, but adding it read-only is safe."
35560 #: ../src/guestfs.pod:151
35562 "You must add at least one disk image, and you may add multiple disk images. "
35563 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35564 "first one you added), C</dev/sdb> (for the second one you added), etc."
35568 #: ../src/guestfs.pod:156
35570 "Once L</guestfs_launch> has been called you cannot add any more images. You "
35571 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35572 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
35576 #: ../src/guestfs.pod:161
35578 msgstr "МОНТУВАННЯ"
35581 #: ../src/guestfs.pod:163
35583 "Before you can read or write files, create directories and so on in a disk "
35584 "image that contains filesystems, you have to mount those filesystems using "
35585 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
35586 "a disk image contains (for example) one partition with a filesystem on that "
35587 "partition, then you can mount it directly:"
35591 #: ../src/guestfs.pod:170
35594 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35597 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35601 #: ../src/guestfs.pod:172
35603 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35604 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
35605 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
35606 "that these are libguestfs virtual devices, and are nothing to do with host "
35611 #: ../src/guestfs.pod:178
35613 "If you are given a disk image and you don't know what it contains then you "
35614 "have to find out. Libguestfs can do that too: use L</"
35615 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
35616 "LVs, and either try mounting each to see what is mountable, or else examine "
35617 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
35618 "filesystems, use L</guestfs_list_filesystems>."
35622 #: ../src/guestfs.pod:186
35624 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35625 "L</INSPECTION> below). But you might find it easier to look at higher level "
35626 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35630 #: ../src/guestfs.pod:191
35632 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
35633 "several other variations of the C<guestfs_mount_*> call."
35637 #: ../src/guestfs.pod:194
35638 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35639 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
35642 #: ../src/guestfs.pod:196
35644 "The majority of the libguestfs API consists of fairly low-level calls for "
35645 "accessing and modifying the files, directories, symlinks etc on mounted "
35646 "filesystems. There are over a hundred such calls which you can find listed "
35647 "in detail below in this man page, and we don't even pretend to cover them "
35648 "all in this overview."
35652 #: ../src/guestfs.pod:202
35654 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35657 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35658 "точкою монтування."
35661 #: ../src/guestfs.pod:205
35663 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35664 "the file called C<\"etc/passwd\"> then you could do:"
35666 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35667 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35671 #: ../src/guestfs.pod:208
35674 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35677 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35681 #: ../src/guestfs.pod:210
35683 "This would return C<data> as a newly allocated buffer containing the full "
35684 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35685 "or C<NULL> if there was an error."
35689 #: ../src/guestfs.pod:214
35691 "As another example, to create a top-level directory on that filesystem "
35692 "called C<\"var\"> you would do:"
35696 #: ../src/guestfs.pod:217
35699 " guestfs_mkdir (g, \"/var\");\n"
35702 " guestfs_mkdir (g, \"/var\");\n"
35706 #: ../src/guestfs.pod:219
35707 msgid "To create a symlink you could do:"
35708 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35711 #: ../src/guestfs.pod:221
35714 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35715 " \"/etc/rc3.d/S30portmap\");\n"
35718 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35719 " \"/etc/rc3.d/S30portmap\");\n"
35723 #: ../src/guestfs.pod:224
35725 "Libguestfs will reject attempts to use relative paths and there is no "
35726 "concept of a current working directory."
35730 #: ../src/guestfs.pod:227
35732 "Libguestfs can return errors in many situations: for example if the "
35733 "filesystem isn't writable, or if a file or directory that you requested "
35734 "doesn't exist. If you are using the C API (documented here) you have to "
35735 "check for those error conditions after each call. (Other language bindings "
35736 "turn these errors into exceptions)."
35740 #: ../src/guestfs.pod:233
35742 "File writes are affected by the per-handle umask, set by calling L</"
35743 "guestfs_umask> and defaulting to 022. See L</UMASK>."
35747 #: ../src/guestfs.pod:236
35748 msgid "PARTITIONING"
35749 msgstr "ПОДІЛ НА РОЗДІЛИ"
35752 #: ../src/guestfs.pod:238
35754 "Libguestfs contains API calls to read, create and modify partition tables on "
35759 #: ../src/guestfs.pod:241
35761 "In the common case where you want to create a single partition covering the "
35762 "whole disk, you should use the L</guestfs_part_disk> call:"
35766 #: ../src/guestfs.pod:245
35769 " const char *parttype = \"mbr\";\n"
35770 " if (disk_is_larger_than_2TB)\n"
35771 " parttype = \"gpt\";\n"
35772 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35775 " const char *parttype = \"mbr\";\n"
35776 " if (disk_is_larger_than_2TB)\n"
35777 " parttype = \"gpt\";\n"
35778 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35782 #: ../src/guestfs.pod:250
35784 "Obviously this effectively wipes anything that was on that disk image before."
35788 #: ../src/guestfs.pod:253
35793 #: ../src/guestfs.pod:255
35795 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35796 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
35797 "you familiarize yourself with the concepts of physical volumes, volume "
35798 "groups and logical volumes."
35802 #: ../src/guestfs.pod:260
35804 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35805 "tldp.org/HOWTO/LVM-HOWTO/>."
35809 #: ../src/guestfs.pod:263
35810 msgid "DOWNLOADING"
35811 msgstr "ОТРИМАННЯ ДАНИХ"
35814 #: ../src/guestfs.pod:265
35816 "Use L</guestfs_cat> to download small, text only files. This call is "
35817 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35818 "NUL (C<\\0>) characters. However the API is very simple to use."
35822 #: ../src/guestfs.pod:269
35824 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35825 "bit data, since it returns a (pointer, size) pair. However it is still "
35826 "limited to \"small\" files, less than 2 MB."
35830 #: ../src/guestfs.pod:273
35832 "L</guestfs_download> can be used to download any file, with no limits on "
35833 "content or size (even files larger than 4 GB)."
35837 #: ../src/guestfs.pod:276
35839 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35843 #: ../src/guestfs.pod:279
35845 msgstr "ВИВАНТАЖЕННЯ"
35848 #: ../src/guestfs.pod:281
35850 "It's often the case that you want to write a file or files to the disk image."
35854 #: ../src/guestfs.pod:284
35856 "To write a small file with fixed content, use L</guestfs_write>. To create "
35857 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35858 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
35859 "of other functions for creating test files, for example L</guestfs_fill> and "
35860 "L</guestfs_fill_pattern>."
35864 #: ../src/guestfs.pod:290
35866 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
35867 "file content or size (even files larger than 4 GB)."
35871 #: ../src/guestfs.pod:293
35873 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35877 #: ../src/guestfs.pod:295
35879 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35880 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
35881 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
35882 "in a predictable way (eg. adding it last after all other drives) then you "
35883 "can get the device name from L</guestfs_list_devices> and mount it directly "
35884 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
35885 "portable between kernel versions, and they don't support labels or UUIDs. "
35886 "If you want to pre-build an image or you need to mount it using a label or "
35887 "UUID, use an ISO image instead."
35891 #: ../src/guestfs.pod:306
35893 msgstr "КОПІЮВАННЯ"
35896 #: ../src/guestfs.pod:308
35898 "There are various different commands for copying between files and devices "
35899 "and in and out of the guest filesystem. These are summarised in the table "
35904 #: ../src/guestfs.pod:314
35905 msgid "B<file> to B<file>"
35906 msgstr "B<файл> у B<файл>"
35909 #: ../src/guestfs.pod:316
35911 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35912 "directories recursively."
35916 #: ../src/guestfs.pod:319
35917 msgid "B<file or device> to B<file or device>"
35918 msgstr "B<файл або пристрій> у B<файл або пристрій>"
35921 #: ../src/guestfs.pod:321
35923 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
35924 "devices in the guest."
35928 #: ../src/guestfs.pod:324
35929 msgid "Example: duplicate the contents of an LV:"
35933 #: ../src/guestfs.pod:326
35936 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35939 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35943 #: ../src/guestfs.pod:328
35945 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35946 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
35947 "guestfs_copy_size>."
35951 #: ../src/guestfs.pod:332
35952 msgid "B<file on the host> to B<file or device>"
35956 #: ../src/guestfs.pod:334
35957 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
35961 #: ../src/guestfs.pod:336
35962 msgid "B<file or device> to B<file on the host>"
35966 #: ../src/guestfs.pod:338
35967 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
35971 #: ../src/guestfs.pod:342
35972 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35976 #: ../src/guestfs.pod:344
35978 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
35979 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35980 "appears you can only upload and download to files. However many Un*x-like "
35981 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
35982 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
35983 "and arbitrary file descriptor N."
35987 #: ../src/guestfs.pod:352
35988 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35992 #: ../src/guestfs.pod:355
35995 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35998 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36002 #: ../src/guestfs.pod:357
36003 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36007 #: ../src/guestfs.pod:359
36010 " char devfd[64];\n"
36011 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36012 " guestfs_tar_out (g, \"/\", devfd);\n"
36015 " char devfd[64];\n"
36016 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36017 " guestfs_tar_out (g, \"/\", devfd);\n"
36021 #: ../src/guestfs.pod:363
36022 msgid "LISTING FILES"
36023 msgstr "СПИСКИ ФАЙЛІВ"
36026 #: ../src/guestfs.pod:365
36028 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36029 "L<guestfish(1)>-equivalent command C<ll>)."
36033 #: ../src/guestfs.pod:368
36035 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36036 "programs, as a flat list of strings."
36040 #: ../src/guestfs.pod:371
36042 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36043 "directory, plus additional information about each one. It is more "
36044 "equivalent to using the L<readdir(3)> call on a local filesystem."
36048 #: ../src/guestfs.pod:375
36050 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36054 #: ../src/guestfs.pod:378
36055 msgid "RUNNING COMMANDS"
36056 msgstr "ВИКОНАННЯ КОМАНД"
36059 #: ../src/guestfs.pod:380
36061 "Although libguestfs is primarily an API for manipulating files inside guest "
36062 "images, we also provide some limited facilities for running commands inside "
36067 #: ../src/guestfs.pod:384
36068 msgid "There are many limitations to this:"
36072 #: ../src/guestfs.pod:390
36074 "The kernel version that the command runs under will be different from what "
36079 #: ../src/guestfs.pod:395
36081 "If the command needs to communicate with daemons, then most likely they "
36082 "won't be running."
36086 #: ../src/guestfs.pod:400
36087 msgid "The command will be running in limited memory."
36091 #: ../src/guestfs.pod:404
36093 "The network may not be available unless you enable it (see L</"
36094 "guestfs_set_network>)."
36098 #: ../src/guestfs.pod:409
36099 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36103 #: ../src/guestfs.pod:413
36105 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36109 #: ../src/guestfs.pod:418
36111 "For SELinux guests, you may need to enable SELinux and load policy first. "
36112 "See L</SELINUX> in this manpage."
36116 #: ../src/guestfs.pod:423
36118 "I<Security:> It is not safe to run commands from untrusted, possibly "
36119 "malicious guests. These commands may attempt to exploit your program by "
36120 "sending unexpected output. They could also try to exploit the Linux kernel "
36121 "or qemu provided by the libguestfs appliance. They could use the network "
36122 "provided by the libguestfs appliance to bypass ordinary network partitions "
36123 "and firewalls. They could use the elevated privileges or different SELinux "
36124 "context of your program to their advantage."
36128 #: ../src/guestfs.pod:432
36130 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36131 "(a script which runs when the guest next boots normally), and to have this "
36132 "script run the commands you want in the normal context of the running guest, "
36133 "network security and so on. For information about other security issues, "
36134 "see L</SECURITY>."
36138 #: ../src/guestfs.pod:440
36140 "The two main API calls to run commands are L</guestfs_command> and L</"
36141 "guestfs_sh> (there are also variations)."
36145 #: ../src/guestfs.pod:443
36147 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
36148 "shell globs, redirections, etc will work."
36152 #: ../src/guestfs.pod:446
36153 msgid "CONFIGURATION FILES"
36154 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
36157 #: ../src/guestfs.pod:448
36159 "To read and write configuration files in Linux guest filesystems, we "
36160 "strongly recommend using Augeas. For example, Augeas understands how to "
36161 "read and write, say, a Linux shadow password file or X.org configuration "
36162 "file, and so avoids you having to write that code."
36166 #: ../src/guestfs.pod:453
36168 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
36169 "document Augeas itself here because there is excellent documentation on the "
36170 "L<http://augeas.net/> website."
36174 #: ../src/guestfs.pod:457
36176 "If you don't want to use Augeas (you fool!) then try calling L</"
36177 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
36182 #: ../src/guestfs.pod:461
36187 #: ../src/guestfs.pod:463
36189 "We support SELinux guests. To ensure that labeling happens correctly in "
36190 "SELinux guests, you need to enable SELinux and load the guest's policy:"
36194 #: ../src/guestfs.pod:471
36195 msgid "Before launching, do:"
36199 #: ../src/guestfs.pod:473
36202 " guestfs_set_selinux (g, 1);\n"
36205 " guestfs_set_selinux (g, 1);\n"
36209 #: ../src/guestfs.pod:477
36211 "After mounting the guest's filesystem(s), load the policy. This is best "
36212 "done by running the L<load_policy(8)> command in the guest itself:"
36216 #: ../src/guestfs.pod:481
36219 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36222 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36226 #: ../src/guestfs.pod:483
36228 "(Older versions of C<load_policy> require you to specify the name of the "
36233 #: ../src/guestfs.pod:488
36235 "Optionally, set the security context for the API. The correct security "
36236 "context to use can only be known by inspecting the guest. As an example:"
36240 #: ../src/guestfs.pod:492
36243 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36246 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36250 #: ../src/guestfs.pod:496
36251 msgid "This will work for running commands and editing existing files."
36255 #: ../src/guestfs.pod:498
36257 "When new files are created, you may need to label them explicitly, for "
36258 "example by running the external command C<restorecon pathname>."
36262 #: ../src/guestfs.pod:502
36267 #: ../src/guestfs.pod:504
36269 "Certain calls are affected by the current file mode creation mask (the "
36270 "\"umask\"). In particular ones which create files or directories, such as "
36271 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
36272 "either the default mode that the file is created with or modifies the mode "
36277 #: ../src/guestfs.pod:510
36279 "The default umask is C<022>, so files are created with modes such as C<0644> "
36280 "and directories with C<0755>."
36284 #: ../src/guestfs.pod:513
36286 "There are two ways to avoid being affected by umask. Either set umask to 0 "
36287 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
36288 "guestfs_chmod> after creating each file or directory."
36292 #: ../src/guestfs.pod:517
36293 msgid "For more information about umask, see L<umask(2)>."
36297 #: ../src/guestfs.pod:521
36299 "Libguestfs allows you to access Linux guests which have been encrypted using "
36300 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36301 "standard. This includes nearly all whole disk encryption systems used by "
36302 "modern Linux guests."
36306 #: ../src/guestfs.pod:527
36308 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
36309 "returns the string C<crypto_LUKS>)."
36313 #: ../src/guestfs.pod:530
36315 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
36316 "will require the passphrase!"
36320 #: ../src/guestfs.pod:533
36322 "Opening a LUKS device creates a new device mapper device called C</dev/"
36323 "mapper/mapname> (where C<mapname> is the string you supply to L</"
36324 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
36325 "from and encrypted to the underlying block device respectively."
36329 #: ../src/guestfs.pod:539
36331 "LVM volume groups on the device can be made visible by calling L</"
36332 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
36333 "(s) can now be mounted in the usual way."
36337 #: ../src/guestfs.pod:543
36339 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
36340 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36341 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
36342 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36343 "underlying encrypted block device)."
36347 #: ../src/guestfs.pod:550
36352 #: ../src/guestfs.pod:552
36354 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36355 "contains operating systems, an install CD or a live CD. (These APIs used to "
36356 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36357 "version 1.5.3 the most frequently used part of this library has been "
36358 "rewritten in C and moved into the core code)."
36362 #: ../src/guestfs.pod:559
36364 "Add all disks belonging to the unknown virtual machine and call L</"
36365 "guestfs_launch> in the usual way."
36369 #: ../src/guestfs.pod:562
36371 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
36372 "and certain heuristics, and returns a list of operating systems that were "
36373 "found. An empty list means none were found. A single element is the root "
36374 "filesystem of the operating system. For dual- or multi-boot guests, "
36375 "multiple roots can be returned, each one corresponding to a separate "
36376 "operating system. (Multi-boot virtual machines are extremely rare in the "
36377 "world of virtualization, but since this scenario can happen, we have built "
36378 "libguestfs to deal with it.)"
36382 #: ../src/guestfs.pod:571
36384 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36385 "to get additional details about that operating system. For example, call L</"
36386 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36387 "Windows and Linux-based operating systems respectively."
36391 #: ../src/guestfs.pod:577
36393 "Un*x-like and Linux-based operating systems usually consist of several "
36394 "filesystems which are mounted at boot time (for example, a separate boot "
36395 "partition mounted on C</boot>). The inspection rules are able to detect how "
36396 "filesystems correspond to mount points. Call "
36397 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
36398 "hash table like this example:"
36402 #: ../src/guestfs.pod:584
36405 " /boot => /dev/sda1\n"
36406 " / => /dev/vg_guest/lv_root\n"
36407 " /usr => /dev/vg_guest/lv_usr\n"
36410 " /boot => /dev/sda1\n"
36411 " / => /dev/vg_guest/lv_root\n"
36412 " /usr => /dev/vg_guest/lv_usr\n"
36416 #: ../src/guestfs.pod:588
36418 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36419 "filesystems as suggested."
36423 #: ../src/guestfs.pod:591
36425 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36426 "usr>). Sorting the keys of the hash by length, shortest first, should work."
36430 #: ../src/guestfs.pod:595
36432 "Inspection currently only works for some common operating systems. "
36433 "Contributors are welcome to send patches for other operating systems that we "
36434 "currently cannot detect."
36438 #: ../src/guestfs.pod:599
36440 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
36441 "for more details. The L</guestfs_inspect_os> function just ignores any "
36442 "encrypted devices."
36446 #: ../src/guestfs.pod:603
36448 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36449 "inspection and caches the results in the guest handle. Subsequent calls to "
36450 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36451 "read the disks. If you change the content of the guest disks, you can redo "
36452 "inspection by calling L</guestfs_inspect_os> again. (L</"
36453 "guestfs_inspect_list_applications> works a little differently from the other "
36454 "calls and does read the disks. See documentation for that function for "
36459 #: ../src/guestfs.pod:612
36460 msgid "INSPECTING INSTALL DISKS"
36464 #: ../src/guestfs.pod:614
36466 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36471 #: ../src/guestfs.pod:617
36473 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36474 "system, which currently can be C<installed> (a regular operating system) or "
36475 "C<installer> (some sort of install disk)."
36479 #: ../src/guestfs.pod:621
36481 "Further information is available about the operating system that can be "
36482 "installed using the regular inspection APIs like L</"
36483 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36487 #: ../src/guestfs.pod:626
36489 "Some additional information specific to installer disks is also available "
36490 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36491 "guestfs_inspect_is_multipart> calls."
36495 #: ../src/guestfs.pod:631
36496 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36500 #: ../src/guestfs.pod:633
36502 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
36503 "ntfs-3g.org/> driver."
36507 #: ../src/guestfs.pod:636
36508 msgid "DRIVE LETTERS AND PATHS"
36509 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
36512 #: ../src/guestfs.pod:638
36514 "DOS and Windows still use drive letters, and the filesystems are always "
36515 "treated as case insensitive by Windows itself, and therefore you might find "
36516 "a Windows configuration file referring to a path like C<c:\\windows"
36517 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
36518 "might be referred to as C</WINDOWS/System32>."
36522 #: ../src/guestfs.pod:644
36524 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36525 "L</guestfs_inspect_get_drive_mappings>)"
36529 #: ../src/guestfs.pod:647
36531 "Dealing with separator characters (backslash vs forward slash) is outside "
36532 "the scope of libguestfs, but usually a simple character replacement will "
36537 #: ../src/guestfs.pod:651
36539 "To resolve the case insensitivity of paths, call L</"
36540 "guestfs_case_sensitive_path>."
36544 #: ../src/guestfs.pod:654
36545 msgid "ACCESSING THE WINDOWS REGISTRY"
36546 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
36549 #: ../src/guestfs.pod:656
36551 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36552 "files, through the library C<hivex> which is part of the libguestfs project "
36553 "although ships as a separate tarball. You have to locate and download the "
36554 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
36555 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
36556 "reg(1)> for more help on this issue."
36560 #: ../src/guestfs.pod:664
36561 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36562 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
36565 #: ../src/guestfs.pod:666
36567 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36568 "provide something which looks like a Linux symlink. The way it tries to do "
36569 "the rewriting is described here:"
36573 #: ../src/guestfs.pod:670
36575 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36578 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36582 #: ../src/guestfs.pod:672
36584 "The essential problem is that ntfs-3g simply does not have enough "
36585 "information to do a correct job. NTFS links can contain drive letters and "
36586 "references to external device GUIDs that ntfs-3g has no way of resolving. "
36587 "It is almost certainly the case that libguestfs callers should ignore what "
36588 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36592 #: ../src/guestfs.pod:679
36594 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
36595 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36596 "attribute, and read the raw reparse data from that (you can find the format "
36597 "documented in various places around the web)."
36601 #: ../src/guestfs.pod:684
36602 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36606 #: ../src/guestfs.pod:686
36608 "There are other useful extended attributes that can be read from ntfs-3g "
36609 "filesystems (using L</guestfs_getxattr>). See:"
36613 #: ../src/guestfs.pod:689
36615 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36617 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36620 #: ../src/guestfs.pod:691
36621 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36622 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
36625 #: ../src/guestfs.pod:693
36627 "Although we don't want to discourage you from using the C API, we will "
36628 "mention here that the same API is also available in other languages."
36632 #: ../src/guestfs.pod:696
36634 "The API is broadly identical in all supported languages. This means that "
36635 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36636 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36637 "OCaml. In other words, a straightforward, predictable isomorphism between "
36642 #: ../src/guestfs.pod:702
36644 "Error messages are automatically transformed into exceptions if the language "
36649 #: ../src/guestfs.pod:705
36651 "We don't try to \"object orientify\" parts of the API in OO languages, "
36652 "although contributors are welcome to write higher level APIs above what we "
36653 "provide in their favourite languages if they wish."
36657 #: ../src/guestfs.pod:711
36662 #: ../src/guestfs.pod:713
36664 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
36665 "identical to the C API. C++ classes and exceptions are not used."
36669 #: ../src/guestfs.pod:717
36674 #: ../src/guestfs.pod:719
36676 "The C# bindings are highly experimental. Please read the warnings at the "
36677 "top of C<csharp/Libguestfs.cs>."
36681 #: ../src/guestfs.pod:722
36686 #: ../src/guestfs.pod:724
36688 #| msgid "See L<guestfs-ruby(3)>."
36689 msgid "See L<guestfs-erlang(3)>."
36690 msgstr "Див. L<guestfs-ruby(3)>."
36693 #: ../src/guestfs.pod:726
36695 msgstr "B<Haskell>"
36698 #: ../src/guestfs.pod:728
36700 "This is the only language binding that is working but incomplete. Only "
36701 "calls which return simple integers have been bound in Haskell, and we are "
36702 "looking for help to complete this binding."
36706 #: ../src/guestfs.pod:732
36711 #: ../src/guestfs.pod:734
36713 "Full documentation is contained in the Javadoc which is distributed with "
36714 "libguestfs. For examples, see L<guestfs-java(3)>."
36718 #: ../src/guestfs.pod:737
36723 #: ../src/guestfs.pod:739
36724 msgid "See L<guestfs-ocaml(3)>."
36725 msgstr "Див. L<guestfs-ocaml(3)>."
36728 #: ../src/guestfs.pod:741
36733 #: ../src/guestfs.pod:743
36734 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36735 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36738 #: ../src/guestfs.pod:745
36743 #: ../src/guestfs.pod:747
36745 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36746 "the php-libguestfs package for your distribution."
36750 #: ../src/guestfs.pod:750
36751 msgid "The PHP binding only works correctly on 64 bit machines."
36755 #: ../src/guestfs.pod:752
36760 #: ../src/guestfs.pod:754
36761 msgid "See L<guestfs-python(3)>."
36762 msgstr "Див. L<guestfs-python(3)>."
36765 #: ../src/guestfs.pod:756
36770 #: ../src/guestfs.pod:758
36771 msgid "See L<guestfs-ruby(3)>."
36772 msgstr "Див. L<guestfs-ruby(3)>."
36775 #: ../src/guestfs.pod:760
36776 msgid "B<shell scripts>"
36777 msgstr "B<скрипти оболонки>"
36780 #: ../src/guestfs.pod:762
36781 msgid "See L<guestfish(1)>."
36782 msgstr "Див. L<guestfish(1)>."
36785 #: ../src/guestfs.pod:766
36786 msgid "LIBGUESTFS GOTCHAS"
36790 #: ../src/guestfs.pod:768
36792 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36793 "system [...] that works in the way it is documented but is counterintuitive "
36794 "and almost invites mistakes.\""
36798 #: ../src/guestfs.pod:772
36800 "Since we developed libguestfs and the associated tools, there are several "
36801 "things we would have designed differently, but are now stuck with for "
36802 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
36803 "release, you can expect these to change. Beware of them."
36807 #: ../src/guestfs.pod:780
36808 msgid "Autosync / forgetting to sync."
36812 #: ../src/guestfs.pod:782
36814 "I<Update:> Autosync is enabled by default for all API users starting from "
36815 "libguestfs 1.5.24. This section only applies to older versions."
36819 #: ../src/guestfs.pod:785
36821 "When modifying a filesystem from C or another language, you B<must> unmount "
36822 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36823 "libguestfs handle. You can also call:"
36827 #: ../src/guestfs.pod:789
36830 " guestfs_set_autosync (g, 1);\n"
36833 " guestfs_set_autosync (g, 1);\n"
36837 #: ../src/guestfs.pod:791
36839 "to have the unmount/sync done automatically for you when the handle 'g' is "
36840 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
36844 #: ../src/guestfs.pod:795
36846 "If you forget to do this, then it is entirely possible that your changes "
36847 "won't be written out, or will be partially written, or (very rarely) that "
36848 "you'll get disk corruption."
36852 #: ../src/guestfs.pod:799
36854 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
36855 "guestfish scripts that forget to sync will work just fine, which can make "
36856 "this very puzzling if you are trying to debug a problem."
36860 #: ../src/guestfs.pod:803
36861 msgid "Mount option C<-o sync> should not be the default."
36865 #: ../src/guestfs.pod:805
36867 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36868 "libguestfs 1.13.16. This section only applies to older versions."
36872 #: ../src/guestfs.pod:808
36874 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
36875 "However C<-o sync> does not add any reliability benefit, but does have a "
36876 "very large performance impact."
36880 #: ../src/guestfs.pod:812
36882 "The work around is to use L</guestfs_mount_options> and set the mount "
36883 "options that you actually want to use."
36887 #: ../src/guestfs.pod:815
36888 msgid "Read-only should be the default."
36892 #: ../src/guestfs.pod:817
36894 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36895 "specify I<--rw> if you want to make changes to the image."
36899 #: ../src/guestfs.pod:820
36900 msgid "This would reduce the potential to corrupt live VM images."
36904 #: ../src/guestfs.pod:822
36906 "Note that many filesystems change the disk when you just mount and unmount, "
36907 "even if you didn't perform any writes. You need to use L</"
36908 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
36912 #: ../src/guestfs.pod:826
36913 msgid "guestfish command line is hard to use."
36917 #: ../src/guestfs.pod:828
36919 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36920 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
36921 "exist, so it fails. In earlier versions of guestfish the error message was "
36922 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
36923 "we should have used C<guestfish -c command> to run commands."
36927 #: ../src/guestfs.pod:835
36928 msgid "guestfish megabyte modifiers don't work right on all commands"
36932 #: ../src/guestfs.pod:837
36934 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36935 "other modifiers). What guestfish actually does is to multiply the number "
36936 "part by the modifier part and pass the result to the C API. However this "
36937 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36938 "expecting some other unit (eg. megabytes)."
36942 #: ../src/guestfs.pod:844
36943 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
36947 #: ../src/guestfs.pod:846
36950 " lvcreate LV VG 100M\n"
36953 " lvcreate LV VG 100M\n"
36957 #: ../src/guestfs.pod:848
36959 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
36960 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36961 "megabytes * megabytes) logical volume. The error message you get from this "
36962 "is also a little obscure."
36966 #: ../src/guestfs.pod:853
36968 "This could be fixed in the generator by specially marking parameters and "
36969 "return values which take bytes or other units."
36973 #: ../src/guestfs.pod:856
36974 msgid "Ambiguity between devices and paths"
36978 #: ../src/guestfs.pod:858
36980 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
36981 "sdb2>) and a similar pathname. A file might just happen to be called "
36982 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36986 #: ../src/guestfs.pod:863
36988 "In the current API we usually resolve this ambiguity by having two separate "
36989 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
36990 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36991 "detecting if the path supplied begins with C</dev/>."
36995 #: ../src/guestfs.pod:869
36997 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36998 "make paths/devices into structured names. One way to do this would be to "
36999 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37000 "aspect of grub. Another way would be to use a structured type, equivalent "
37001 "to this OCaml type:"
37005 #: ../src/guestfs.pod:875
37008 " type path = Path of string | Device of int | Partition of int * int\n"
37013 #: ../src/guestfs.pod:877
37014 msgid "which would allow you to pass arguments like:"
37018 #: ../src/guestfs.pod:879
37021 " Path \"/foo/bar\"\n"
37022 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
37023 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37024 " Path \"/dev/sdb2\" (* not a device *)\n"
37029 #: ../src/guestfs.pod:884
37031 "As you can see there are still problems to resolve even with this "
37032 "representation. Also consider how it might work in guestfish."
37036 #: ../src/guestfs.pod:889
37037 msgid "KEYS AND PASSPHRASES"
37038 msgstr "КЛЮЧІ І ПАРОЛІ"
37041 #: ../src/guestfs.pod:891
37043 "Certain libguestfs calls take a parameter that contains sensitive key "
37044 "material, passed in as a C string."
37048 #: ../src/guestfs.pod:894
37050 "In the future we would hope to change the libguestfs implementation so that "
37051 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37052 "swap. However this is I<not> done at the moment, because of the complexity "
37053 "of such an implementation."
37057 #: ../src/guestfs.pod:899
37059 "Therefore you should be aware that any key parameter you pass to libguestfs "
37060 "might end up being written out to the swap partition. If this is a concern, "
37061 "scrub the swap partition or don't use libguestfs on encrypted devices."
37065 #: ../src/guestfs.pod:904
37066 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37070 #: ../src/guestfs.pod:906
37072 "All high-level libguestfs actions are synchronous. If you want to use "
37073 "libguestfs asynchronously then you must create a thread."
37077 #: ../src/guestfs.pod:909
37079 "Only use the handle from a single thread. Either use the handle exclusively "
37080 "from one thread, or provide your own mutex so that two threads cannot issue "
37081 "calls on the same handle at the same time."
37085 #: ../src/guestfs.pod:913
37087 "See the graphical program guestfs-browser for one possible architecture for "
37088 "multithreaded programs using libvirt and libguestfs."
37092 #: ../src/guestfs.pod:916
37097 #: ../src/guestfs.pod:918
37099 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37104 #: ../src/guestfs.pod:921
37106 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37107 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37111 #: ../src/guestfs.pod:924
37113 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37114 "to change the directories that libguestfs will search in. The value is a "
37115 "colon-separated list of paths. The current directory is I<not> searched "
37116 "unless the path contains an empty element or C<.>. For example "
37117 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37118 "then C</usr/lib/guestfs>."
37122 #: ../src/guestfs.pod:931
37123 msgid "QEMU WRAPPERS"
37127 #: ../src/guestfs.pod:933
37129 "If you want to compile your own qemu, run qemu from a non-standard location, "
37130 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37135 #: ../src/guestfs.pod:937
37137 "There is one important rule to remember: you I<must C<exec qemu>> as the "
37138 "last command in the shell script (so that qemu replaces the shell and "
37139 "becomes the direct child of the libguestfs-using program). If you don't do "
37140 "this, then the qemu process won't be cleaned up correctly."
37144 #: ../src/guestfs.pod:942
37146 "Here is an example of a wrapper, where I have built my own copy of qemu from "
37151 #: ../src/guestfs.pod:945
37155 " qemudir=/home/rjones/d/qemu\n"
37156 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37160 " qemudir=/home/rjones/d/qemu\n"
37161 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37165 #: ../src/guestfs.pod:949
37167 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
37168 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
37173 #: ../src/guestfs.pod:953
37176 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37179 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37183 #: ../src/guestfs.pod:955
37185 "Note that libguestfs also calls qemu with the -help and -version options in "
37186 "order to determine features."
37190 #: ../src/guestfs.pod:958
37192 "Wrappers can also be used to edit the options passed to qemu. In the "
37193 "following example, the C<-machine ...> option (C<-machine> and the following "
37194 "argument) are removed from the command line and replaced with C<-machine pc,"
37195 "accel=tcg>. The while loop iterates over the options until it finds the "
37196 "right one to remove, putting the remaining options into the C<args> array."
37200 #: ../src/guestfs.pod:967
37204 " while [ $# -gt 0 ]; do\n"
37205 " case \"$1\" in\n"
37209 " args[i]=\"$1\"\n"
37218 #: ../src/guestfs.pod:979
37221 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
37226 #: ../src/guestfs.pod:981
37227 msgid "ATTACHING TO RUNNING DAEMONS"
37228 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
37231 #: ../src/guestfs.pod:983
37233 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
37234 "babies. Use with caution."
37238 #: ../src/guestfs.pod:986
37240 "I<Note (2):> This section explains how to attach to a running daemon from a "
37241 "low level perspective. For most users, simply using virt tools such as "
37242 "L<guestfish(1)> with the I<--live> option will \"just work\"."
37246 #: ../src/guestfs.pod:990
37247 msgid "Using guestfs_set_attach_method"
37248 msgstr "За допомогою guestfs_set_attach_method"
37251 #: ../src/guestfs.pod:992
37253 "By calling L</guestfs_set_attach_method> you can change how the library "
37254 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
37255 "ARCHITECTURE> for some background)."
37259 #: ../src/guestfs.pod:996
37261 "The normal attach method is C<appliance>, where a small appliance is created "
37262 "containing the daemon, and then the library connects to this."
37266 #: ../src/guestfs.pod:999
37268 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
37269 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
37270 "daemon over the Unix domain socket."
37274 #: ../src/guestfs.pod:1003
37276 "The normal use for this is to connect to a running virtual machine that "
37277 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37278 "files inside the live virtual machine."
37282 #: ../src/guestfs.pod:1007
37283 msgid "Using guestfs_add_domain with live flag"
37284 msgstr "За допомогою guestfs_add_domain з прапорцем live"
37287 #: ../src/guestfs.pod:1009
37289 "L</guestfs_add_domain> provides some help for getting the correct attach "
37290 "method. If you pass the C<live> option to this function, then (if the "
37291 "virtual machine is running) it will examine the libvirt XML looking for a "
37292 "virtio-serial channel to connect to:"
37296 #: ../src/guestfs.pod:1015
37303 " <channel type='unix'>\n"
37304 " <source mode='bind' path='/path/to/socket'/>\n"
37305 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37316 " <channel type='unix'>\n"
37317 " <source mode='bind' path='/path/to/socket'/>\n"
37318 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37326 #: ../src/guestfs.pod:1027
37328 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37329 "method to C<unix:/path/to/socket>."
37333 #: ../src/guestfs.pod:1030
37335 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37336 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37337 "to attach to and modify live virtual machines."
37341 #: ../src/guestfs.pod:1034
37343 "The virtual machine needs to have been set up beforehand so that it has the "
37344 "virtio-serial channel and so that guestfsd is running inside it."
37348 #: ../src/guestfs.pod:1038
37349 msgid "ABI GUARANTEE"
37350 msgstr "ГАРАНТІЯ ЩОДО ABI"
37353 #: ../src/guestfs.pod:1040
37355 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37356 "actions as outlined in this section. Although we will deprecate some "
37357 "actions, for example if they get replaced by newer calls, we will keep the "
37358 "old actions forever. This allows you the developer to program in confidence "
37359 "against the libguestfs API."
37363 #: ../src/guestfs.pod:1046
37364 msgid "BLOCK DEVICE NAMING"
37365 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
37368 #: ../src/guestfs.pod:1048
37370 "In the kernel there is now quite a profusion of schemata for naming block "
37371 "devices (in this context, by I<block device> I mean a physical or virtual "
37372 "hard drive). The original Linux IDE driver used names starting with C</dev/"
37373 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
37374 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
37375 "for the old IDE driver (particularly for SATA devices) those devices also "
37376 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
37377 "paravirtualized drivers. This has created several different naming systems, "
37378 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37382 #: ../src/guestfs.pod:1060
37384 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37385 "Linux kernel to access block devices. We can run a variety of appliances "
37386 "based on a variety of Linux kernels."
37390 #: ../src/guestfs.pod:1064
37392 "This causes a problem for libguestfs because many API calls use device or "
37393 "partition names. Working scripts and the recipe (example) scripts that we "
37394 "make available over the internet could fail if the naming scheme changes."
37398 #: ../src/guestfs.pod:1069
37400 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
37401 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37402 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37403 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37407 #: ../src/guestfs.pod:1075
37409 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
37410 "L</guestfs_list_partitions> and similar calls return the true names of the "
37411 "devices and partitions as known to the appliance."
37415 #: ../src/guestfs.pod:1080
37416 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37420 #: ../src/guestfs.pod:1082
37422 "Usually this translation is transparent. However in some (very rare) cases "
37423 "you may need to know the exact algorithm. Such cases include where you use "
37424 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37425 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37429 #: ../src/guestfs.pod:1088
37431 "The algorithm is applied only to I<parameters> which are known to be either "
37432 "device or partition names. Return values from functions such as L</"
37433 "guestfs_list_devices> are never changed."
37437 #: ../src/guestfs.pod:1096
37438 msgid "Is the string a parameter which is a device or partition name?"
37442 #: ../src/guestfs.pod:1100
37443 msgid "Does the string begin with C</dev/sd>?"
37444 msgstr "Чи починається рядок з C</dev/sd>?"
37447 #: ../src/guestfs.pod:1104
37449 "Does the named device exist? If so, we use that device. However if I<not> "
37450 "then we continue with this algorithm."
37454 #: ../src/guestfs.pod:1109
37455 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37459 #: ../src/guestfs.pod:1111
37460 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37464 #: ../src/guestfs.pod:1113
37465 msgid "If that named device exists, use it. If not, continue."
37469 #: ../src/guestfs.pod:1117
37470 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37474 #: ../src/guestfs.pod:1119
37475 msgid "If that named device exists, use it. If not, return an error."
37479 #: ../src/guestfs.pod:1123
37480 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37484 #: ../src/guestfs.pod:1125
37486 "Although the standard naming scheme and automatic translation is useful for "
37487 "simple programs and guestfish scripts, for larger programs it is best not to "
37488 "rely on this mechanism."
37492 #: ../src/guestfs.pod:1129
37494 "Where possible for maximum future portability programs using libguestfs "
37495 "should use these future-proof techniques:"
37499 #: ../src/guestfs.pod:1136
37501 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37502 "device names, and then use those names directly."
37506 #: ../src/guestfs.pod:1139
37508 "Since those device names exist by definition, they will never be translated."
37512 #: ../src/guestfs.pod:1144
37514 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37515 "filesystem labels."
37519 #: ../src/guestfs.pod:1151
37521 "This section discusses security implications of using libguestfs, "
37522 "particularly with untrusted or malicious guests or disk images."
37526 #: ../src/guestfs.pod:1154
37527 msgid "GENERAL SECURITY CONSIDERATIONS"
37528 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
37531 #: ../src/guestfs.pod:1156
37533 "Be careful with any files or data that you download from a guest (by "
37534 "\"download\" we mean not just the L</guestfs_download> command but any "
37535 "command that reads files, filenames, directories or anything else from a "
37536 "disk image). An attacker could manipulate the data to fool your program "
37537 "into doing the wrong thing. Consider cases such as:"
37541 #: ../src/guestfs.pod:1166
37542 msgid "the data (file etc) not being present"
37546 #: ../src/guestfs.pod:1170
37547 msgid "being present but empty"
37551 #: ../src/guestfs.pod:1174
37552 msgid "being much larger than normal"
37556 #: ../src/guestfs.pod:1178
37557 msgid "containing arbitrary 8 bit data"
37561 #: ../src/guestfs.pod:1182
37562 msgid "being in an unexpected character encoding"
37566 #: ../src/guestfs.pod:1186
37567 msgid "containing homoglyphs."
37571 #: ../src/guestfs.pod:1190
37572 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37573 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
37576 #: ../src/guestfs.pod:1192
37578 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37579 "(VFS) module can sometimes be escalated into exploits by deliberately "
37580 "creating a malicious, malformed filesystem. These exploits are very severe "
37581 "for two reasons. Firstly there are very many filesystem drivers in the "
37582 "kernel, and many of them are infrequently used and not much developer "
37583 "attention has been paid to the code. Linux userspace helps potential "
37584 "crackers by detecting the filesystem type and automatically choosing the "
37585 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37586 "the administrator. Secondly, a kernel-level exploit is like a local root "
37587 "exploit (worse in some ways), giving immediate and total access to the "
37588 "system right down to the hardware level."
37592 #: ../src/guestfs.pod:1205
37594 "That explains why you should never mount a filesystem from an untrusted "
37595 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
37596 "inside a qemu virtual machine, usually running as a non-root user. The "
37597 "attacker would need to write a filesystem which first exploited the kernel, "
37598 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37599 "the libguestfs protocol, and finally to be as serious as the host kernel "
37600 "exploit it would need to escalate its privileges to root. This multi-step "
37601 "escalation, performed by a static piece of data, is thought to be extremely "
37602 "hard to do, although we never say 'never' about security issues."
37606 #: ../src/guestfs.pod:1216
37608 "In any case callers can reduce the attack surface by forcing the filesystem "
37609 "type when mounting (use L</guestfs_mount_vfs>)."
37613 #: ../src/guestfs.pod:1219
37614 msgid "PROTOCOL SECURITY"
37615 msgstr "ЗАХИСТ ПРОТОКОЛУ"
37618 #: ../src/guestfs.pod:1221
37620 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
37621 "defined upper message size. However a program that uses libguestfs must "
37622 "also take care - for example you can write a program that downloads a binary "
37623 "from a disk image and executes it locally, and no amount of protocol "
37624 "security will save you from the consequences."
37628 #: ../src/guestfs.pod:1227
37629 msgid "INSPECTION SECURITY"
37633 #: ../src/guestfs.pod:1229
37635 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37636 "directly from the guest, and these could contain any 8 bit data. Callers "
37637 "should be careful to escape these before printing them to a structured file "
37638 "(for example, use HTML escaping if creating a web page)."
37642 #: ../src/guestfs.pod:1235
37644 "Guest configuration may be altered in unusual ways by the administrator of "
37645 "the virtual machine, and may not reflect reality (particularly for untrusted "
37646 "or actively malicious guests). For example we parse the hostname from "
37647 "configuration files like C</etc/sysconfig/network> that we find in the "
37648 "guest, but the guest administrator can easily manipulate these files to "
37649 "provide the wrong hostname."
37653 #: ../src/guestfs.pod:1243
37655 "The inspection API parses guest configuration using two external libraries: "
37656 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
37657 "designed to be robust in the face of malicious data, although denial of "
37658 "service attacks are still possible, for example with oversized configuration "
37663 #: ../src/guestfs.pod:1249
37664 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37665 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37668 #: ../src/guestfs.pod:1251
37670 "Be very cautious about running commands from the guest. By running a "
37671 "command in the guest, you are giving CPU time to a binary that you do not "
37672 "control, under the same user account as the library, albeit wrapped in qemu "
37673 "virtualization. More information and alternatives can be found in the "
37674 "section L</RUNNING COMMANDS>."
37678 #: ../src/guestfs.pod:1257
37679 msgid "CVE-2010-3851"
37680 msgstr "CVE-2010-3851"
37683 #: ../src/guestfs.pod:1259
37684 msgid "https://bugzilla.redhat.com/642934"
37685 msgstr "https://bugzilla.redhat.com/642934"
37688 #: ../src/guestfs.pod:1261
37690 "This security bug concerns the automatic disk format detection that qemu "
37691 "does on disk images."
37695 #: ../src/guestfs.pod:1264
37697 "A raw disk image is just the raw bytes, there is no header. Other disk "
37698 "images like qcow2 contain a special header. Qemu deals with this by looking "
37699 "for one of the known headers, and if none is found then assuming the disk "
37700 "image must be raw."
37704 #: ../src/guestfs.pod:1269
37706 "This allows a guest which has been given a raw disk image to write some "
37707 "other header. At next boot (or when the disk image is accessed by "
37708 "libguestfs) qemu would do autodetection and think the disk image format was, "
37709 "say, qcow2 based on the header written by the guest."
37713 #: ../src/guestfs.pod:1274
37715 "This in itself would not be a problem, but qcow2 offers many features, one "
37716 "of which is to allow a disk image to refer to another image (called the "
37717 "\"backing disk\"). It does this by placing the path to the backing disk "
37718 "into the qcow2 header. This path is not validated and could point to any "
37719 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
37720 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37721 "control of the attacker."
37725 #: ../src/guestfs.pod:1282
37727 "In libguestfs this is rather hard to exploit except under two circumstances:"
37731 #: ../src/guestfs.pod:1289
37732 msgid "You have enabled the network or have opened the disk in write mode."
37736 #: ../src/guestfs.pod:1293
37738 "You are also running untrusted code from the guest (see L</RUNNING "
37743 #: ../src/guestfs.pod:1298
37745 "The way to avoid this is to specify the expected disk format when adding "
37746 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
37747 "should always do this if the disk is raw format, and it's a good idea for "
37752 #: ../src/guestfs.pod:1303
37754 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37755 "format is fetched from libvirt and passed through."
37759 #: ../src/guestfs.pod:1306
37761 "For libguestfs tools, use the I<--format> command line parameter as "
37766 #: ../src/guestfs.pod:1309
37767 msgid "CONNECTION MANAGEMENT"
37768 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37771 #: ../src/guestfs.pod:1311
37772 msgid "guestfs_h *"
37773 msgstr "guestfs_h *"
37776 #: ../src/guestfs.pod:1313
37778 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
37779 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
37780 "handle and release all resources used."
37784 #: ../src/guestfs.pod:1317
37786 "For information on using multiple handles and threads, see the section L</"
37787 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37791 #: ../src/guestfs.pod:1320
37792 msgid "guestfs_create"
37793 msgstr "guestfs_create"
37796 #: ../src/guestfs.pod:1322
37799 " guestfs_h *guestfs_create (void);\n"
37802 " guestfs_h *guestfs_create (void);\n"
37806 #: ../src/guestfs.pod:1324
37807 msgid "Create a connection handle."
37808 msgstr "Створити дескриптор з’єднання."
37811 #: ../src/guestfs.pod:1326
37813 "On success this returns a non-NULL pointer to a handle. On error it returns "
37818 #: ../src/guestfs.pod:1329
37820 "You have to \"configure\" the handle after creating it. This includes "
37821 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37822 "handle at least once."
37826 #: ../src/guestfs.pod:1333
37827 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37831 #: ../src/guestfs.pod:1335
37833 "You may also want to configure error handling for the handle. See the L</"
37834 "ERROR HANDLING> section below."
37838 #: ../src/guestfs.pod:1338
37839 msgid "guestfs_close"
37840 msgstr "guestfs_close"
37843 #: ../src/guestfs.pod:1340
37846 " void guestfs_close (guestfs_h *g);\n"
37849 " void guestfs_close (guestfs_h *g);\n"
37853 #: ../src/guestfs.pod:1342
37854 msgid "This closes the connection handle and frees up all resources used."
37858 #: ../src/guestfs.pod:1344
37860 "If autosync was set on the handle and the handle was launched, then this "
37861 "implicitly calls various functions to unmount filesystems and sync the "
37862 "disk. See L</guestfs_set_autosync> for more details."
37866 #: ../src/guestfs.pod:1348
37867 msgid "If a close callback was set on the handle, then it is called."
37871 #: ../src/guestfs.pod:1350
37872 msgid "ERROR HANDLING"
37873 msgstr "ОБРОБКА ПОМИЛОК"
37876 #: ../src/guestfs.pod:1352
37878 "API functions can return errors. For example, almost all functions that "
37879 "return C<int> will return C<-1> to indicate an error."
37883 #: ../src/guestfs.pod:1355
37885 "Additional information is available for errors: an error message string and "
37886 "optionally an error number (errno) if the thing that failed was a system "
37891 #: ../src/guestfs.pod:1359
37893 "You can get at the additional information about the last error on the handle "
37894 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37895 "up an error handler with L</guestfs_set_error_handler>."
37899 #: ../src/guestfs.pod:1364
37901 "When the handle is created, a default error handler is installed which "
37902 "prints the error message string to C<stderr>. For small short-running "
37903 "command line programs it is sufficient to do:"
37907 #: ../src/guestfs.pod:1368
37910 " if (guestfs_launch (g) == -1)\n"
37911 " exit (EXIT_FAILURE);\n"
37914 " if (guestfs_launch (g) == -1)\n"
37915 " exit (EXIT_FAILURE);\n"
37919 #: ../src/guestfs.pod:1371
37921 "since the default error handler will ensure that an error message has been "
37922 "printed to C<stderr> before the program exits."
37926 #: ../src/guestfs.pod:1374
37928 "For other programs the caller will almost certainly want to install an "
37929 "alternate error handler or do error handling in-line like this:"
37933 #: ../src/guestfs.pod:1377
37936 " /* This disables the default behaviour of printing errors\n"
37938 " guestfs_set_error_handler (g, NULL, NULL);\n"
37943 #: ../src/guestfs.pod:1381
37946 #| " if (guestfs_launch (g) == -1) {\n"
37947 #| " /* Examine the error message and print it etc. */\n"
37948 #| " char *msg = guestfs_last_error (g);\n"
37949 #| " int errnum = guestfs_last_errno (g);\n"
37950 #| " fprintf (stderr, \"%s\\n\", msg);\n"
37955 " if (guestfs_launch (g) == -1) {\n"
37956 " /* Examine the error message and print it etc. */\n"
37957 " char *msg = guestfs_last_error (g);\n"
37958 " int errnum = guestfs_last_errno (g);\n"
37959 " fprintf (stderr, \"%s\", msg);\n"
37960 " if (errnum != 0)\n"
37961 " fprintf (stderr, \": %s\", strerror (errnum));\n"
37962 " fprintf (stderr, \"\\n\");\n"
37967 " if (guestfs_launch (g) == -1) {\n"
37968 " /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
37969 " char *msg = guestfs_last_error (g);\n"
37970 " int errnum = guestfs_last_errno (g);\n"
37971 " fprintf (stderr, \"%s\\n\", msg);\n"
37977 #: ../src/guestfs.pod:1392
37979 "Out of memory errors are handled differently. The default action is to call "
37980 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
37981 "guestfs_set_out_of_memory_handler>."
37985 #: ../src/guestfs.pod:1396
37987 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37988 "because there is no handle if this happens there is no way to get additional "
37989 "error information. However L</guestfs_create> is supposed to be a "
37990 "lightweight operation which can only fail because of insufficient memory (it "
37991 "returns NULL in this case)."
37995 #: ../src/guestfs.pod:1402
37996 msgid "guestfs_last_error"
37997 msgstr "guestfs_last_error"
38000 #: ../src/guestfs.pod:1404
38003 " const char *guestfs_last_error (guestfs_h *g);\n"
38006 " const char *guestfs_last_error (guestfs_h *g);\n"
38010 #: ../src/guestfs.pod:1406
38012 "This returns the last error message that happened on C<g>. If there has not "
38013 "been an error since the handle was created, then this returns C<NULL>."
38017 #: ../src/guestfs.pod:1410
38019 "The lifetime of the returned string is until the next error occurs, or L</"
38020 "guestfs_close> is called."
38024 #: ../src/guestfs.pod:1413
38025 msgid "guestfs_last_errno"
38026 msgstr "guestfs_last_errno"
38029 #: ../src/guestfs.pod:1415
38032 " int guestfs_last_errno (guestfs_h *g);\n"
38035 " int guestfs_last_errno (guestfs_h *g);\n"
38039 #: ../src/guestfs.pod:1417
38040 msgid "This returns the last error number (errno) that happened on C<g>."
38044 #: ../src/guestfs.pod:1419
38045 msgid "If successful, an errno integer not equal to zero is returned."
38049 #: ../src/guestfs.pod:1421
38051 "If no error, this returns 0. This call can return 0 in three situations:"
38055 #: ../src/guestfs.pod:1428
38056 msgid "There has not been any error on the handle."
38060 #: ../src/guestfs.pod:1432
38062 "There has been an error but the errno was meaningless. This corresponds to "
38063 "the case where the error did not come from a failed system call, but for "
38064 "some other reason."
38068 #: ../src/guestfs.pod:1438
38070 "There was an error from a failed system call, but for some reason the errno "
38071 "was not captured and returned. This usually indicates a bug in libguestfs."
38075 #: ../src/guestfs.pod:1444
38077 "Libguestfs tries to convert the errno from inside the applicance into a "
38078 "corresponding errno for the caller (not entirely trivial: the appliance "
38079 "might be running a completely different operating system from the library "
38080 "and error numbers are not standardized across Un*xen). If this could not be "
38081 "done, then the error is translated to C<EINVAL>. In practice this should "
38082 "only happen in very rare circumstances."
38086 #: ../src/guestfs.pod:1452
38087 msgid "guestfs_set_error_handler"
38088 msgstr "guestfs_set_error_handler"
38091 #: ../src/guestfs.pod:1454
38094 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38096 " const char *msg);\n"
38097 " void guestfs_set_error_handler (guestfs_h *g,\n"
38098 " guestfs_error_handler_cb cb,\n"
38099 " void *opaque);\n"
38102 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38104 " const char *msg);\n"
38105 " void guestfs_set_error_handler (guestfs_h *g,\n"
38106 " guestfs_error_handler_cb cb,\n"
38107 " void *opaque);\n"
38111 #: ../src/guestfs.pod:1461
38113 "The callback C<cb> will be called if there is an error. The parameters "
38114 "passed to the callback are an opaque data pointer and the error message "
38119 #: ../src/guestfs.pod:1465
38121 "C<errno> is not passed to the callback. To get that the callback must call "
38122 "L</guestfs_last_errno>."
38126 #: ../src/guestfs.pod:1468
38128 "Note that the message string C<msg> is freed as soon as the callback "
38129 "function returns, so if you want to stash it somewhere you must make your "
38134 #: ../src/guestfs.pod:1472
38135 msgid "The default handler prints messages on C<stderr>."
38139 #: ../src/guestfs.pod:1474
38140 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38144 #: ../src/guestfs.pod:1476
38145 msgid "guestfs_get_error_handler"
38146 msgstr "guestfs_get_error_handler"
38149 #: ../src/guestfs.pod:1478
38152 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38153 " void **opaque_rtn);\n"
38156 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38157 " void **opaque_rtn);\n"
38161 #: ../src/guestfs.pod:1481
38162 msgid "Returns the current error handler callback."
38166 #: ../src/guestfs.pod:1483
38167 msgid "guestfs_set_out_of_memory_handler"
38168 msgstr "guestfs_set_out_of_memory_handler"
38171 #: ../src/guestfs.pod:1485
38174 #| " typedef void (*guestfs_abort_cb) (void);\n"
38175 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38176 #| " guestfs_abort_cb);\n"
38179 " typedef void (*guestfs_abort_cb) (void);\n"
38180 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38181 " guestfs_abort_cb);\n"
38184 " typedef void (*guestfs_abort_cb) (void);\n"
38185 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38186 " guestfs_abort_cb);\n"
38190 #: ../src/guestfs.pod:1489
38192 "The callback C<cb> will be called if there is an out of memory situation. "
38193 "I<Note this callback must not return>."
38197 #: ../src/guestfs.pod:1492
38198 msgid "The default is to call L<abort(3)>."
38202 #: ../src/guestfs.pod:1494
38204 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
38208 #: ../src/guestfs.pod:1497
38209 msgid "guestfs_get_out_of_memory_handler"
38210 msgstr "guestfs_get_out_of_memory_handler"
38213 #: ../src/guestfs.pod:1499
38216 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38219 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38223 #: ../src/guestfs.pod:1501
38224 msgid "This returns the current out of memory handler."
38228 #: ../src/guestfs.pod:1503
38230 msgstr "ВИКЛИКИ API"
38233 #: ../src/guestfs.pod:1507
38238 #: ../src/guestfs.pod:1509
38243 #: ../src/guestfs.pod:1511
38244 msgid "AVAILABILITY"
38245 msgstr "ДОСТУПНІСТЬ"
38248 #: ../src/guestfs.pod:1513
38249 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
38250 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
38253 #: ../src/guestfs.pod:1515
38255 "Using L</guestfs_available> you can test availability of the following "
38256 "groups of functions. This test queries the appliance to see if the "
38257 "appliance you are currently using supports the functionality."
38261 #: ../src/guestfs.pod:1520
38262 msgid "@AVAILABILITY@"
38263 msgstr "@AVAILABILITY@"
38266 #: ../src/guestfs.pod:1522
38267 msgid "GUESTFISH supported COMMAND"
38271 #: ../src/guestfs.pod:1524
38273 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
38274 "prints out the available groups and whether they are supported by this build "
38275 "of libguestfs. Note however that you have to do C<run> first."
38279 #: ../src/guestfs.pod:1529
38280 msgid "SINGLE CALLS AT COMPILE TIME"
38284 #: ../src/guestfs.pod:1531
38286 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
38287 "function, such as:"
38291 #: ../src/guestfs.pod:1534
38294 " #define LIBGUESTFS_HAVE_DD 1\n"
38297 " #define LIBGUESTFS_HAVE_DD 1\n"
38301 #: ../src/guestfs.pod:1536
38302 msgid "if L</guestfs_dd> is available."
38306 #: ../src/guestfs.pod:1538
38308 "Before version 1.5.8, if you needed to test whether a single libguestfs "
38309 "function is available at compile time, we recommended using build tools such "
38310 "as autoconf or cmake. For example in autotools you could use:"
38314 #: ../src/guestfs.pod:1543
38317 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38318 " AC_CHECK_FUNCS([guestfs_dd])\n"
38321 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38322 " AC_CHECK_FUNCS([guestfs_dd])\n"
38326 #: ../src/guestfs.pod:1546
38328 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38333 #: ../src/guestfs.pod:1549
38334 msgid "SINGLE CALLS AT RUN TIME"
38338 #: ../src/guestfs.pod:1551
38340 "Testing at compile time doesn't guarantee that a function really exists in "
38341 "the library. The reason is that you might be dynamically linked against a "
38342 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
38343 "This situation unfortunately results in a segmentation fault, which is a "
38344 "shortcoming of the C dynamic linking system itself."
38348 #: ../src/guestfs.pod:1558
38350 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38351 "in this example program (note that you still need the compile time check as "
38356 #: ../src/guestfs.pod:1562
38359 " #include <stdio.h>\n"
38360 " #include <stdlib.h>\n"
38361 " #include <unistd.h>\n"
38362 " #include <dlfcn.h>\n"
38363 " #include <guestfs.h>\n"
38366 " #include <stdio.h>\n"
38367 " #include <stdlib.h>\n"
38368 " #include <unistd.h>\n"
38369 " #include <dlfcn.h>\n"
38370 " #include <guestfs.h>\n"
38374 #: ../src/guestfs.pod:1568
38379 " #ifdef LIBGUESTFS_HAVE_DD\n"
38381 " int has_function;\n"
38386 " #ifdef LIBGUESTFS_HAVE_DD\n"
38388 " int has_function;\n"
38392 #: ../src/guestfs.pod:1574
38395 " /* Test if the function guestfs_dd is really available. */\n"
38396 " dl = dlopen (NULL, RTLD_LAZY);\n"
38398 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38399 " exit (EXIT_FAILURE);\n"
38401 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38407 #: ../src/guestfs.pod:1583
38410 " if (!has_function)\n"
38411 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38413 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38414 " /* Now it's safe to call\n"
38415 " guestfs_dd (g, \"foo\", \"bar\");\n"
38419 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38426 #: ../src/guestfs.pod:1596
38428 "You may think the above is an awful lot of hassle, and it is. There are "
38429 "other ways outside of the C linking system to ensure that this kind of "
38430 "incompatibility never arises, such as using package versioning:"
38434 #: ../src/guestfs.pod:1601
38437 " Requires: libguestfs >= 1.0.80\n"
38442 #: ../src/guestfs.pod:1603
38443 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38447 #: ../src/guestfs.pod:1605
38449 "A recent feature of the API is the introduction of calls which take optional "
38450 "arguments. In C these are declared 3 ways. The main way is as a call which "
38451 "takes variable arguments (ie. C<...>), as in this example:"
38455 #: ../src/guestfs.pod:1610
38458 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38461 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38465 #: ../src/guestfs.pod:1612
38467 "Call this with a list of optional arguments, terminated by C<-1>. So to "
38468 "call with no optional arguments specified:"
38472 #: ../src/guestfs.pod:1615
38475 " guestfs_add_drive_opts (g, filename, -1);\n"
38478 " guestfs_add_drive_opts (g, filename, -1);\n"
38482 #: ../src/guestfs.pod:1617
38483 msgid "With a single optional argument:"
38487 #: ../src/guestfs.pod:1619
38490 " guestfs_add_drive_opts (g, filename,\n"
38491 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38495 " guestfs_add_drive_opts (g, filename,\n"
38496 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38501 #: ../src/guestfs.pod:1623
38506 #: ../src/guestfs.pod:1625
38509 " guestfs_add_drive_opts (g, filename,\n"
38510 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38511 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38515 " guestfs_add_drive_opts (g, filename,\n"
38516 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38517 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38522 #: ../src/guestfs.pod:1630
38524 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
38529 #: ../src/guestfs.pod:1633
38530 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38534 #: ../src/guestfs.pod:1635
38536 "The second variant has the same name with the suffix C<_va>, which works the "
38537 "same way but takes a C<va_list>. See the C manual for details. For the "
38538 "example function, this is declared:"
38542 #: ../src/guestfs.pod:1639
38545 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38546 " va_list args);\n"
38549 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38550 " va_list args);\n"
38554 #: ../src/guestfs.pod:1642
38555 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38559 #: ../src/guestfs.pod:1644
38561 "The third variant is useful where you need to construct these calls. You "
38562 "pass in a structure where you fill in the optional fields. The structure "
38563 "has a bitmask as the first element which you must set to indicate which "
38564 "fields you have filled in. For our example function the structure and call "
38569 #: ../src/guestfs.pod:1650
38572 " struct guestfs_add_drive_opts_argv {\n"
38573 " uint64_t bitmask;\n"
38575 " const char *format;\n"
38578 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38579 " const struct guestfs_add_drive_opts_argv *optargs);\n"
38582 " struct guestfs_add_drive_opts_argv {\n"
38583 " uint64_t bitmask;\n"
38585 " const char *format;\n"
38588 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38589 " const struct guestfs_add_drive_opts_argv *optargs);\n"
38593 #: ../src/guestfs.pod:1659
38594 msgid "You could call it like this:"
38598 #: ../src/guestfs.pod:1661
38601 " struct guestfs_add_drive_opts_argv optargs = {\n"
38602 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38603 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38604 " .readonly = 1,\n"
38605 " .format = \"qcow2\"\n"
38609 " struct guestfs_add_drive_opts_argv optargs = {\n"
38610 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38611 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38612 " .readonly = 1,\n"
38613 " .format = \"qcow2\"\n"
38618 #: ../src/guestfs.pod:1668
38621 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38624 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38628 #: ../src/guestfs.pod:1676
38629 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38633 #: ../src/guestfs.pod:1681
38634 msgid "You do not need to fill in all fields of the structure."
38638 #: ../src/guestfs.pod:1685
38640 "There must be a one-to-one correspondence between fields of the structure "
38641 "that are filled in, and bits set in the bitmask."
38645 #: ../src/guestfs.pod:1690
38646 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38650 #: ../src/guestfs.pod:1692
38652 "In other languages, optional arguments are expressed in the way that is "
38653 "natural for that language. We refer you to the language-specific "
38654 "documentation for more details on that."
38658 #: ../src/guestfs.pod:1696
38659 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38663 #: ../src/guestfs.pod:1698
38664 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38668 #: ../src/guestfs.pod:1700
38670 "B<Note:> This section documents the generic event mechanism introduced in "
38671 "libguestfs 1.10, which you should use in new code if possible. The old "
38672 "functions C<guestfs_set_log_message_callback>, "
38673 "C<guestfs_set_subprocess_quit_callback>, "
38674 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38675 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38676 "page. Because of the ABI guarantee, the old functions continue to work."
38680 #: ../src/guestfs.pod:1709
38682 "Handles generate events when certain things happen, such as log messages "
38683 "being generated, progress messages during long-running operations, or the "
38684 "handle being closed. The API calls described below let you register a "
38685 "callback to be called when events happen. You can register multiple "
38686 "callbacks (for the same, different or overlapping sets of events), and "
38687 "individually remove callbacks. If callbacks are not removed, then they "
38688 "remain in force until the handle is closed."
38692 #: ../src/guestfs.pod:1717
38694 "In the current implementation, events are only generated synchronously: that "
38695 "means that events (and hence callbacks) can only happen while you are in the "
38696 "middle of making another libguestfs call. The callback is called in the "
38701 #: ../src/guestfs.pod:1722
38703 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38704 "unsigned integers, or a message buffer. Payloads are discussed later on."
38708 #: ../src/guestfs.pod:1726
38709 msgid "CLASSES OF EVENTS"
38713 #: ../src/guestfs.pod:1730
38714 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38718 #: ../src/guestfs.pod:1733
38720 "The callback function will be called while the handle is being closed "
38721 "(synchronously from L</guestfs_close>)."
38725 #: ../src/guestfs.pod:1736
38727 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38728 "handles that are open when the program exits. This means that this callback "
38729 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38730 "problems in higher-level languages (eg. if your HLL interpreter has already "
38731 "been cleaned up by the time this is called, and if your callback then jumps "
38732 "into some HLL function)."
38736 #: ../src/guestfs.pod:1743
38738 "If no callback is registered: the handle is closed without any callback "
38743 #: ../src/guestfs.pod:1746
38744 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38748 #: ../src/guestfs.pod:1749
38750 "The callback function will be called when the child process quits, either "
38751 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
38752 "corresponds to a transition from any state to the CONFIG state)."
38756 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
38757 msgid "If no callback is registered: the event is ignored."
38761 #: ../src/guestfs.pod:1755
38762 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38766 #: ../src/guestfs.pod:1758
38768 "The callback function will be called when the child process becomes ready "
38769 "first time after it has been launched. (This corresponds to a transition "
38770 "from LAUNCHING to the READY state)."
38774 #: ../src/guestfs.pod:1764
38775 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38779 #: ../src/guestfs.pod:1767
38781 "Some long-running operations can generate progress messages. If this "
38782 "callback is registered, then it will be called each time a progress message "
38783 "is generated (usually two seconds after the operation started, and three "
38784 "times per second thereafter until it completes, although the frequency may "
38785 "change in future versions)."
38789 #: ../src/guestfs.pod:1773
38791 "The callback receives in the payload four unsigned 64 bit numbers which are "
38792 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38796 #: ../src/guestfs.pod:1776
38798 "The units of C<total> are not defined, although for some operations C<total> "
38799 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38800 "or megabytes), and C<position> may be the portion which has been transferred."
38804 #: ../src/guestfs.pod:1781
38805 msgid "The only defined and stable parts of the API are:"
38809 #: ../src/guestfs.pod:1787
38811 "The callback can display to the user some type of progress bar or indicator "
38812 "which shows the ratio of C<position>:C<total>."
38816 #: ../src/guestfs.pod:1792
38817 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38821 #: ../src/guestfs.pod:1796
38823 "If any progress notification is sent during a call, then a final progress "
38824 "notification is always sent when C<position> = C<total> (I<unless> the call "
38825 "fails with an error)."
38829 #: ../src/guestfs.pod:1800
38831 "This is to simplify caller code, so callers can easily set the progress "
38832 "indicator to \"100%\" at the end of the operation, without requiring special "
38833 "code to detect this case."
38837 #: ../src/guestfs.pod:1806
38839 "For some calls we are unable to estimate the progress of the call, but we "
38840 "can still generate progress messages to indicate activity. This is known as "
38841 "\"pulse mode\", and is directly supported by certain progress bar "
38842 "implementations (eg. GtkProgressBar)."
38846 #: ../src/guestfs.pod:1811
38848 "For these calls, zero or more progress messages are generated with "
38849 "C<position = 0> and C<total = 1>, followed by a final message with "
38850 "C<position = total = 1>."
38854 #: ../src/guestfs.pod:1815
38856 "As noted above, if the call fails with an error then the final message may "
38857 "not be generated."
38861 #: ../src/guestfs.pod:1820
38863 "The callback also receives the procedure number (C<proc_nr>) and serial "
38864 "number (C<serial>) of the call. These are only useful for debugging "
38865 "protocol issues, and the callback can normally ignore them. The callback "
38866 "may want to print these numbers in error messages or debugging messages."
38870 #: ../src/guestfs.pod:1826
38871 msgid "If no callback is registered: progress messages are discarded."
38875 #: ../src/guestfs.pod:1828
38876 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38880 #: ../src/guestfs.pod:1831
38882 "The callback function is called whenever a log message is generated by qemu, "
38883 "the appliance kernel, guestfsd (daemon), or utility programs."
38887 #: ../src/guestfs.pod:1834
38889 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
38890 "guestfs_launch>) then additional debug messages are generated."
38894 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
38896 "If no callback is registered: the messages are discarded unless the verbose "
38897 "flag is set in which case they are sent to stderr. You can override the "
38898 "printing of verbose messages to stderr by setting up a callback."
38902 #: ../src/guestfs.pod:1842
38903 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38907 #: ../src/guestfs.pod:1845
38909 "The callback function is called whenever a log message is generated by the "
38910 "library part of libguestfs."
38914 #: ../src/guestfs.pod:1848
38916 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38917 "messages are generated."
38921 #: ../src/guestfs.pod:1856
38922 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38926 #: ../src/guestfs.pod:1859
38928 "The callback function is called whenever a trace message is generated. This "
38929 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38933 #: ../src/guestfs.pod:1862
38935 "If no callback is registered: the messages are sent to stderr. You can "
38936 "override the printing of trace messages to stderr by setting up a callback."
38940 #: ../src/guestfs.pod:1866
38941 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38945 #: ../src/guestfs.pod:1869
38947 "The callback function is called whenever a libguestfs function is entered."
38951 #: ../src/guestfs.pod:1872
38953 "The payload is a string which contains the name of the function that we are "
38954 "entering (not including C<guestfs_> prefix)."
38958 #: ../src/guestfs.pod:1875
38960 "Note that libguestfs functions can call themselves, so you may see many "
38961 "events from a single call. A few libguestfs functions do not generate this "
38966 #: ../src/guestfs.pod:1883
38967 msgid "guestfs_set_event_callback"
38971 #: ../src/guestfs.pod:1885
38974 " int guestfs_set_event_callback (guestfs_h *g,\n"
38975 " guestfs_event_callback cb,\n"
38976 " uint64_t event_bitmask,\n"
38978 " void *opaque);\n"
38983 #: ../src/guestfs.pod:1891
38985 "This function registers a callback (C<cb>) for all event classes in the "
38986 "C<event_bitmask>."
38990 #: ../src/guestfs.pod:1894
38992 "For example, to register for all log message events, you could call this "
38993 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
38994 "To register a single callback for all possible classes of events, use "
38995 "C<GUESTFS_EVENT_ALL>."
38999 #: ../src/guestfs.pod:1900
39000 msgid "C<flags> should always be passed as 0."
39004 #: ../src/guestfs.pod:1902
39006 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
39007 "it for any purpose."
39011 #: ../src/guestfs.pod:1905
39013 "The return value is the event handle (an integer) which you can use to "
39014 "delete the callback (see below)."
39018 #: ../src/guestfs.pod:1908
39020 "If there is an error, this function returns C<-1>, and sets the error in the "
39021 "handle in the usual way (see L</guestfs_last_error> etc.)"
39025 #: ../src/guestfs.pod:1911
39027 "Callbacks remain in effect until they are deleted, or until the handle is "
39032 #: ../src/guestfs.pod:1914
39034 "In the case where multiple callbacks are registered for a particular event "
39035 "class, all of the callbacks are called. The order in which multiple "
39036 "callbacks are called is not defined."
39040 #: ../src/guestfs.pod:1918
39041 msgid "guestfs_delete_event_callback"
39045 #: ../src/guestfs.pod:1920
39048 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39053 #: ../src/guestfs.pod:1922
39055 "Delete a callback that was previously registered. C<event_handle> should be "
39056 "the integer that was returned by a previous call to "
39057 "C<guestfs_set_event_callback> on the same handle."
39061 #: ../src/guestfs.pod:1926
39062 msgid "guestfs_event_callback"
39066 #: ../src/guestfs.pod:1928
39069 " typedef void (*guestfs_event_callback) (\n"
39072 " uint64_t event,\n"
39073 " int event_handle,\n"
39075 " const char *buf, size_t buf_len,\n"
39076 " const uint64_t *array, size_t array_len);\n"
39081 #: ../src/guestfs.pod:1937
39083 "This is the type of the event callback function that you have to provide."
39087 #: ../src/guestfs.pod:1940
39089 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39090 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39091 "handle, and C<flags> which in the current API you should ignore."
39095 #: ../src/guestfs.pod:1944
39097 "The remaining parameters contain the event payload (if any). Each event may "
39098 "contain a payload, which usually relates to the event class, but for future "
39099 "proofing your code should be written to handle any payload for any event "
39104 #: ../src/guestfs.pod:1949
39106 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39107 "there is no message buffer). Note that this message buffer can contain "
39108 "arbitrary 8 bit data, including NUL bytes."
39112 #: ../src/guestfs.pod:1953
39114 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
39115 "moment this is only used for progress messages."
39119 #: ../src/guestfs.pod:1956
39120 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39124 #: ../src/guestfs.pod:1958
39126 "One motivation for the generic event API was to allow GUI programs to "
39127 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
39128 "unconditionally to C<stderr>."
39132 #: ../src/guestfs.pod:1962
39134 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39135 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
39136 "messages are not events; you must capture error messages separately)."
39140 #: ../src/guestfs.pod:1967
39142 "Programs have to set up a callback to capture the classes of events of "
39147 #: ../src/guestfs.pod:1970
39151 " guestfs_set_event_callback\n"
39152 " (g, message_callback,\n"
39153 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39154 " GUESTFS_EVENT_TRACE,\n"
39155 " 0, NULL) == -1)\n"
39156 " if (eh == -1) {\n"
39157 " // handle error in the usual way\n"
39163 #: ../src/guestfs.pod:1980
39165 "The callback can then direct messages to the appropriate place. In this "
39166 "example, messages are directed to syslog:"
39170 #: ../src/guestfs.pod:1983
39174 " message_callback (\n"
39177 " uint64_t event,\n"
39178 " int event_handle,\n"
39180 " const char *buf, size_t buf_len,\n"
39181 " const uint64_t *array, size_t array_len)\n"
39183 " const int priority = LOG_USER|LOG_INFO;\n"
39184 " if (buf_len > 0)\n"
39185 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
39191 #: ../src/guestfs.pod:1998
39192 msgid "CANCELLING LONG TRANSFERS"
39196 #: ../src/guestfs.pod:2000
39198 "Some operations can be cancelled by the caller while they are in progress. "
39199 "Currently only operations that involve uploading or downloading data can be "
39200 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
39201 "parameters in the generator)."
39205 #: ../src/guestfs.pod:2005
39206 msgid "guestfs_user_cancel"
39210 #: ../src/guestfs.pod:2007
39213 " void guestfs_user_cancel (guestfs_h *g);\n"
39218 #: ../src/guestfs.pod:2009
39220 "C<guestfs_user_cancel> cancels the current upload or download operation."
39224 #: ../src/guestfs.pod:2012
39226 "Unlike most other libguestfs calls, this function is signal safe and thread "
39227 "safe. You can call it from a signal handler or from another thread, without "
39228 "needing to do any locking."
39232 #: ../src/guestfs.pod:2016
39234 "The transfer that was in progress (if there is one) will stop shortly "
39235 "afterwards, and will return an error. The errno (see L</"
39236 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
39237 "out if the operation was cancelled or failed because of another error."
39241 #: ../src/guestfs.pod:2022
39243 "No cleanup is performed: for example, if a file was being uploaded then "
39244 "after cancellation there may be a partially uploaded file. It is the "
39245 "caller's responsibility to clean up if necessary."
39249 #: ../src/guestfs.pod:2026
39250 msgid "There are two common places that you might call C<guestfs_user_cancel>."
39254 #: ../src/guestfs.pod:2028
39256 "In an interactive text-based program, you might call it from a C<SIGINT> "
39257 "signal handler so that pressing C<^C> cancels the current operation. (You "
39258 "also need to call L</guestfs_set_pgroup> so that child processes don't "
39259 "receive the C<^C> signal)."
39263 #: ../src/guestfs.pod:2033
39265 "In a graphical program, when the main thread is displaying a progress bar "
39266 "with a cancel button, wire up the cancel button to call this function."
39270 #: ../src/guestfs.pod:2037
39271 msgid "PRIVATE DATA AREA"
39275 #: ../src/guestfs.pod:2039
39277 "You can attach named pieces of private data to the libguestfs handle, fetch "
39278 "them by name, and walk over them, for the lifetime of the handle. This is "
39279 "called the private data area and is only available from the C API."
39283 #: ../src/guestfs.pod:2044
39284 msgid "To attach a named piece of data, use the following call:"
39288 #: ../src/guestfs.pod:2046
39291 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39294 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39298 #: ../src/guestfs.pod:2048
39300 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
39301 "pointer (which can be C<NULL>). Any previous item with the same key is "
39306 #: ../src/guestfs.pod:2052
39308 "You can use any C<key> you want, but your key should I<not> start with an "
39309 "underscore character. Keys beginning with an underscore character are "
39310 "reserved for internal libguestfs purposes (eg. for implementing language "
39311 "bindings). It is recommended that you prefix the key with some unique "
39312 "string to avoid collisions with other users."
39316 #: ../src/guestfs.pod:2058
39317 msgid "To retrieve the pointer, use:"
39321 #: ../src/guestfs.pod:2060
39324 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39327 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39331 #: ../src/guestfs.pod:2062
39333 "This function returns C<NULL> if either no data is found associated with "
39334 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39339 #: ../src/guestfs.pod:2066
39341 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39342 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
39343 "all. In particular, libguestfs does I<not> try to free the data when the "
39344 "handle is closed. If the data must be freed, then the caller must either "
39345 "free it before calling L</guestfs_close> or must set up a close callback to "
39346 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39350 #: ../src/guestfs.pod:2073
39351 msgid "To walk over all entries, use these two functions:"
39355 #: ../src/guestfs.pod:2075
39358 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39363 #: ../src/guestfs.pod:2077
39366 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39371 #: ../src/guestfs.pod:2079
39373 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39374 "not have any particular meaning -- keys are not returned in any defined "
39375 "order). A pointer to the key is returned in C<*key_rtn> and the "
39376 "corresponding data pointer is returned from the function. C<NULL> is "
39377 "returned if there are no keys stored in the handle."
39381 #: ../src/guestfs.pod:2085
39383 "C<guestfs_next_private> returns the next key, pointer pair. The return "
39384 "value of this function is also C<NULL> is there are no further entries to "
39389 #: ../src/guestfs.pod:2089
39390 msgid "Notes about walking over entries:"
39394 #: ../src/guestfs.pod:2095
39396 "You must not call C<guestfs_set_private> while walking over the entries."
39400 #: ../src/guestfs.pod:2100
39402 "The handle maintains an internal iterator which is reset when you call "
39403 "C<guestfs_first_private>. This internal iterator is invalidated when you "
39404 "call C<guestfs_set_private>."
39408 #: ../src/guestfs.pod:2106
39409 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39413 #: ../src/guestfs.pod:2108
39416 " guestfs_set_private (g, key, NULL);\n"
39421 #: ../src/guestfs.pod:2110
39422 msgid "then that C<key> is not returned when walking."
39426 #: ../src/guestfs.pod:2114
39428 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39429 "C<guestfs_next_private> or C<guestfs_set_private>."
39433 #: ../src/guestfs.pod:2120
39435 "The following example code shows how to print all keys and data pointers "
39436 "that are associated with the handle C<g>:"
39440 #: ../src/guestfs.pod:2123
39443 " const char *key;\n"
39444 " void *data = guestfs_first_private (g, &key);\n"
39445 " while (data != NULL)\n"
39447 " printf (\"key = %s, data = %p\\n\", key, data);\n"
39448 " data = guestfs_next_private (g, &key);\n"
39454 #: ../src/guestfs.pod:2131
39456 "More commonly you are only interested in keys that begin with an application-"
39457 "specific prefix C<foo_>. Modify the loop like so:"
39461 #: ../src/guestfs.pod:2134
39464 " const char *key;\n"
39465 " void *data = guestfs_first_private (g, &key);\n"
39466 " while (data != NULL)\n"
39468 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39469 " printf (\"key = %s, data = %p\\n\", key, data);\n"
39470 " data = guestfs_next_private (g, &key);\n"
39476 #: ../src/guestfs.pod:2143
39478 "If you need to modify keys while walking, then you have to jump back to the "
39479 "beginning of the loop. For example, to delete all keys prefixed with "
39484 #: ../src/guestfs.pod:2147
39487 " const char *key;\n"
39490 " data = guestfs_first_private (g, &key);\n"
39491 " while (data != NULL)\n"
39493 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39495 " guestfs_set_private (g, key, NULL);\n"
39496 " /* note that 'key' pointer is now invalid, and so is\n"
39497 " the internal iterator */\n"
39500 " data = guestfs_next_private (g, &key);\n"
39506 #: ../src/guestfs.pod:2163
39508 "Note that the above loop is guaranteed to terminate because the keys are "
39509 "being deleted, but other manipulations of keys within the loop might not "
39510 "terminate unless you also maintain an indication of which keys have been "
39515 #: ../src/guestfs.pod:2168
39517 #| msgid "FILESYSTEM TYPE"
39519 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
39522 #: ../src/guestfs.pod:2170
39524 "The libguestfs C library can be probed using systemtap or DTrace. This is "
39525 "true of any library, not just libguestfs. However libguestfs also contains "
39526 "static markers to help in probing internal operations."
39530 #: ../src/guestfs.pod:2174
39531 msgid "You can list all the static markers by doing:"
39535 #: ../src/guestfs.pod:2176
39538 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39539 " .provider(\"guestfs\").mark(\"*\")'\n"
39544 #: ../src/guestfs.pod:2179
39546 "B<Note:> These static markers are I<not> part of the stable API and may "
39547 "change in future versions."
39551 #: ../src/guestfs.pod:2182
39552 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39556 #: ../src/guestfs.pod:2184
39558 "This script contains examples of displaying both the static markers and some "
39559 "ordinary C entry points:"
39563 #: ../src/guestfs.pod:2187
39571 #: ../src/guestfs.pod:2189
39574 " function display_time () {\n"
39575 " now = gettimeofday_us ();\n"
39578 " delta = now - last;\n"
39584 #: ../src/guestfs.pod:2196
39587 " printf (\"%d (+%d):\", now, delta);\n"
39593 #: ../src/guestfs.pod:2199
39598 " printf (\"ready\\n\");\n"
39604 #: ../src/guestfs.pod:2204
39607 " /* Display all calls to static markers. */\n"
39608 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39609 " .provider(\"guestfs\").mark(\"*\") ? {\n"
39610 " display_time();\n"
39611 " printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39617 #: ../src/guestfs.pod:2211
39620 " /* Display all calls to guestfs_mkfs* functions. */\n"
39621 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39622 " .function(\"guestfs_mkfs*\") ? {\n"
39623 " display_time();\n"
39624 " printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39630 #: ../src/guestfs.pod:2218
39632 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39633 "program. Note that you either have to be root, or you have to add yourself "
39634 "to several special stap groups. Consult the systemtap documentation for "
39635 "more information."
39639 #: ../src/guestfs.pod:2223
39642 " # stap /tmp/test.stap\n"
39648 #: ../src/guestfs.pod:2226
39649 msgid "In another terminal, run a guestfish command such as this:"
39653 #: ../src/guestfs.pod:2230
39654 msgid "In the first terminal, stap trace output similar to this is shown:"
39658 #: ../src/guestfs.pod:2232
39661 " 1318248056692655 (+0):\tlaunch_start\n"
39662 " 1318248056692850 (+195): launch_build_appliance_start\n"
39663 " 1318248056818285 (+125435): launch_build_appliance_end\n"
39664 " 1318248056838059 (+19774): launch_run_qemu\n"
39665 " 1318248061071167 (+4233108): launch_end\n"
39666 " 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
39671 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
39676 #: ../src/guestfs.pod:2241
39678 "<!-- old anchor for the next section --> <a name="
39679 "\"state_machine_and_low_level_event_api\"/>"
39681 "<!-- old anchor for the next section --> <a name="
39682 "\"state_machine_and_low_level_event_api\"/>"
39685 #: ../src/guestfs.pod:2246
39686 msgid "ARCHITECTURE"
39687 msgstr "АРХІТЕКТУРА"
39690 #: ../src/guestfs.pod:2248
39692 "Internally, libguestfs is implemented by running an appliance (a special "
39693 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
39694 "process of the main program."
39698 #: ../src/guestfs.pod:2252
39701 " ___________________\n"
39703 " | main program |\n"
39705 " | | child process / appliance\n"
39706 " | | __________________________\n"
39708 " +-------------------+ RPC | +-----------------+ |\n"
39709 " | libguestfs <--------------------> guestfsd | |\n"
39710 " | | | +-----------------+ |\n"
39711 " \\___________________/ | | Linux kernel | |\n"
39712 " | +--^--------------+ |\n"
39713 " \\_________|________________/\n"
39715 " _______v______\n"
39718 " | disk image |\n"
39719 " \\______________/\n"
39724 #: ../src/guestfs.pod:2272
39726 "The library, linked to the main program, creates the child process and hence "
39727 "the appliance in the L</guestfs_launch> function."
39731 #: ../src/guestfs.pod:2275
39733 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39734 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39735 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
39736 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
39737 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
39738 "attached to the qemu process which translates device access by the "
39739 "appliance's Linux kernel into accesses to the image."
39743 #: ../src/guestfs.pod:2284
39745 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
39746 "Although the disk image you are attached to might also be used by some "
39747 "virtual machine, libguestfs doesn't know or care about this. (But you will "
39748 "care if both libguestfs's qemu process and your virtual machine are trying "
39749 "to update the disk image at the same time, since these usually results in "
39750 "massive disk corruption)."
39754 #: ../src/guestfs.pod:2291
39755 msgid "STATE MACHINE"
39756 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39759 #: ../src/guestfs.pod:2293
39760 msgid "libguestfs uses a state machine to model the child process:"
39764 #: ../src/guestfs.pod:2295
39768 " guestfs_create\n"
39776 " / | \\ \\ guestfs_launch\n"
39777 " / | _\\__V______\n"
39779 " / | | LAUNCHING |\n"
39780 " / | \\___________/\n"
39782 " / | guestfs_launch\n"
39784 " ______ / __|____V\n"
39785 " / \\ ------> / \\\n"
39786 " | BUSY | | READY |\n"
39787 " \\______/ <------ \\________/\n"
39792 #: ../src/guestfs.pod:2317
39794 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39795 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39796 "(3) alternating between READY and BUSY as commands are issued to, and "
39797 "carried out by, the child process."
39801 #: ../src/guestfs.pod:2322
39803 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39804 "asynchronously at any time (eg. due to some internal error), and that causes "
39805 "the state to transition back to CONFIG."
39809 #: ../src/guestfs.pod:2326
39811 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39812 "issued when in the CONFIG state."
39816 #: ../src/guestfs.pod:2329
39818 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
39819 "L</guestfs_launch> blocks until the child process is READY to accept "
39820 "commands (or until some failure or timeout). L</guestfs_launch> internally "
39821 "moves the state from CONFIG to LAUNCHING while it is running."
39825 #: ../src/guestfs.pod:2335
39827 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39828 "state. These API calls block waiting for the command to be carried out (ie. "
39829 "the state to transition to BUSY and then back to READY). There are no non-"
39830 "blocking versions, and no way to issue more than one command per handle at "
39835 #: ../src/guestfs.pod:2341
39837 "Finally, the child process sends asynchronous messages back to the main "
39838 "program, such as kernel log messages. You can register a callback to "
39839 "receive these messages."
39843 #: ../src/guestfs.pod:2345
39848 #: ../src/guestfs.pod:2347
39849 msgid "APPLIANCE BOOT PROCESS"
39853 #: ../src/guestfs.pod:2349
39855 "This process has evolved and continues to evolve. The description here "
39856 "corresponds only to the current version of libguestfs and is provided for "
39857 "information only."
39861 #: ../src/guestfs.pod:2353
39863 "In order to follow the stages involved below, enable libguestfs debugging "
39864 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39868 #: ../src/guestfs.pod:2358
39870 #| msgid "C<appliance>"
39871 msgid "Create the appliance"
39872 msgstr "C<appliance>"
39875 #: ../src/guestfs.pod:2360
39877 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39878 "initrd and the appliance."
39882 #: ../src/guestfs.pod:2363
39884 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39885 "directory if C<TMPDIR> is set)."
39889 #: ../src/guestfs.pod:2366
39891 "For a complete description of how the appliance is created and cached, read "
39892 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39896 #: ../src/guestfs.pod:2370
39897 msgid "Start qemu and boot the kernel"
39901 #: ../src/guestfs.pod:2372
39902 msgid "qemu is invoked to boot the kernel."
39906 #: ../src/guestfs.pod:2374
39907 msgid "Run the initrd"
39911 #: ../src/guestfs.pod:2376
39913 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
39914 "appliance. The purpose of the initrd is to load enough kernel modules in "
39915 "order that the appliance itself can be mounted and started."
39919 #: ../src/guestfs.pod:2380
39921 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
39926 #: ../src/guestfs.pod:2383
39928 "When the initrd has started you will see messages showing that kernel "
39929 "modules are being loaded, similar to this:"
39933 #: ../src/guestfs.pod:2386
39936 " febootstrap: ext2 mini initrd starting up\n"
39937 " febootstrap: mounting /sys\n"
39938 " febootstrap: internal insmod libcrc32c.ko\n"
39939 " febootstrap: internal insmod crc32c-intel.ko\n"
39944 #: ../src/guestfs.pod:2391
39945 msgid "Find and mount the appliance device"
39949 #: ../src/guestfs.pod:2393
39951 "The appliance is a sparse file containing an ext2 filesystem which contains "
39952 "a familiar (although reduced in size) Linux operating system. It would "
39953 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39957 #: ../src/guestfs.pod:2397
39959 "The regular disks being inspected by libguestfs are the first devices "
39960 "exposed by qemu (eg. as C</dev/vda>)."
39964 #: ../src/guestfs.pod:2400
39966 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39967 "there was only one regular disk)."
39971 #: ../src/guestfs.pod:2403
39973 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39974 "and switch root into the appliance, and run C</init> from the appliance."
39978 #: ../src/guestfs.pod:2407
39979 msgid "If this works successfully you will see messages such as:"
39983 #: ../src/guestfs.pod:2409
39986 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39987 " febootstrap: creating /dev/root as block special 252:16\n"
39988 " febootstrap: mounting new root on /root\n"
39989 " febootstrap: chroot\n"
39990 " Starting /init script ...\n"
39995 #: ../src/guestfs.pod:2415
39997 "Note that C<Starting /init script ...> indicates that the appliance's init "
39998 "script is now running."
40002 #: ../src/guestfs.pod:2418
40003 msgid "Initialize the appliance"
40007 #: ../src/guestfs.pod:2420
40009 "The appliance itself now initializes itself. This involves starting certain "
40010 "processes like C<udev>, possibly printing some debug information, and "
40011 "finally running the daemon (C<guestfsd>)."
40015 #: ../src/guestfs.pod:2424
40017 #| msgid "C<daemon>"
40022 #: ../src/guestfs.pod:2426
40024 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
40029 #: ../src/guestfs.pod:2429
40032 #| " set-verbose true|false\n"
40035 " verbose daemon enabled\n"
40038 " set-verbose true|false\n"
40042 #: ../src/guestfs.pod:2431
40044 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40045 "connected on the other end to the library."
40049 #: ../src/guestfs.pod:2434
40051 "The daemon connects to this port (and hence to the library) and sends a four "
40052 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40053 "protocol (see below)."
40057 #: ../src/guestfs.pod:2440
40058 msgid "COMMUNICATION PROTOCOL"
40062 #: ../src/guestfs.pod:2442
40064 "Don't rely on using this protocol directly. This section documents how it "
40065 "currently works, but it may change at any time."
40069 #: ../src/guestfs.pod:2445
40071 "The protocol used to talk between the library and the daemon running inside "
40072 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40073 "1014, RFC 1832, RFC 4506)."
40077 #: ../src/guestfs.pod:2449
40079 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40080 "this file is automatically generated)."
40084 #: ../src/guestfs.pod:2452
40086 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40087 "and C<FileOut> parameters, which are handled with very simple request/reply "
40088 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
40089 "parameters, which use the same request and reply messages, but they may also "
40090 "be followed by files sent using a chunked encoding."
40094 #: ../src/guestfs.pod:2459
40095 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40099 #: ../src/guestfs.pod:2461
40100 msgid "For ordinary functions, the request message is:"
40104 #: ../src/guestfs.pod:2463
40107 " total length (header + arguments,\n"
40108 " but not including the length word itself)\n"
40109 " struct guestfs_message_header (encoded as XDR)\n"
40110 " struct guestfs_<foo>_args (encoded as XDR)\n"
40115 #: ../src/guestfs.pod:2468
40117 "The total length field allows the daemon to allocate a fixed size buffer "
40118 "into which it slurps the rest of the message. As a result, the total length "
40119 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40120 "effective size of any request is limited to somewhere under this size."
40124 #: ../src/guestfs.pod:2474
40126 "Note also that many functions don't take any arguments, in which case the "
40127 "C<guestfs_I<foo>_args> is completely omitted."
40131 #: ../src/guestfs.pod:2477
40133 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40134 "receiver knows what type of args structure to expect, or none at all."
40138 #: ../src/guestfs.pod:2481
40140 "For functions that take optional arguments, the optional arguments are "
40141 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40142 "arguments. A bitmask in the header indicates which optional arguments are "
40143 "meaningful. The bitmask is also checked to see if it contains bits set "
40144 "which the daemon does not know about (eg. if more optional arguments were "
40145 "added in a later version of the library), and this causes the call to be "
40150 #: ../src/guestfs.pod:2489
40151 msgid "The reply message for ordinary functions is:"
40155 #: ../src/guestfs.pod:2491
40158 " total length (header + ret,\n"
40159 " but not including the length word itself)\n"
40160 " struct guestfs_message_header (encoded as XDR)\n"
40161 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40166 #: ../src/guestfs.pod:2496
40168 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40169 "functions that return no formal return values."
40173 #: ../src/guestfs.pod:2499
40175 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
40179 #: ../src/guestfs.pod:2502
40181 "In the case of an error, a flag is set in the header, and the reply message "
40182 "is slightly changed:"
40186 #: ../src/guestfs.pod:2505
40189 " total length (header + error,\n"
40190 " but not including the length word itself)\n"
40191 " struct guestfs_message_header (encoded as XDR)\n"
40192 " struct guestfs_message_error (encoded as XDR)\n"
40197 #: ../src/guestfs.pod:2510
40199 "The C<guestfs_message_error> structure contains the error message as a "
40204 #: ../src/guestfs.pod:2513
40205 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
40209 #: ../src/guestfs.pod:2515
40211 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
40212 "The normal request message is sent (see above). However this is followed by "
40213 "a sequence of file chunks."
40217 #: ../src/guestfs.pod:2519
40220 " total length (header + arguments,\n"
40221 " but not including the length word itself,\n"
40222 " and not including the chunks)\n"
40223 " struct guestfs_message_header (encoded as XDR)\n"
40224 " struct guestfs_<foo>_args (encoded as XDR)\n"
40225 " sequence of chunks for FileIn param #0\n"
40226 " sequence of chunks for FileIn param #1 etc.\n"
40231 #: ../src/guestfs.pod:2527
40232 msgid "The \"sequence of chunks\" is:"
40236 #: ../src/guestfs.pod:2529
40239 " length of chunk (not including length word itself)\n"
40240 " struct guestfs_chunk (encoded as XDR)\n"
40241 " length of chunk\n"
40242 " struct guestfs_chunk (encoded as XDR)\n"
40244 " length of chunk\n"
40245 " struct guestfs_chunk (with data.data_len == 0)\n"
40250 #: ../src/guestfs.pod:2537
40252 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
40253 "is set in the final chunk to indicate either successful completion or early "
40258 #: ../src/guestfs.pod:2541
40260 "At time of writing there are no functions that have more than one FileIn "
40261 "parameter. However this is (theoretically) supported, by sending the "
40262 "sequence of chunks for each FileIn parameter one after another (from left to "
40267 #: ../src/guestfs.pod:2546
40269 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
40270 "transfer. The library does this by sending a chunk with a special flag set "
40271 "to indicate cancellation. When the daemon sees this, it cancels the whole "
40272 "RPC, does I<not> send any reply, and goes back to reading the next request."
40276 #: ../src/guestfs.pod:2552
40278 "The daemon may also cancel. It does this by writing a special word "
40279 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
40280 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
40281 "cancel chunk). The special word is chosen so that even if cancellation "
40282 "happens right at the end of the transfer (after the library has finished "
40283 "writing and has started listening for the reply), the \"spurious\" cancel "
40284 "flag will not be confused with the reply message."
40288 #: ../src/guestfs.pod:2561
40290 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
40291 "limit), and also files where the size is not known in advance (eg. from "
40292 "pipes or sockets). However the chunks are rather small "
40293 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
40294 "to keep much in memory."
40298 #: ../src/guestfs.pod:2567
40299 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
40303 #: ../src/guestfs.pod:2569
40305 "The protocol for FileOut parameters is exactly the same as for FileIn "
40306 "parameters, but with the roles of daemon and library reversed."
40310 #: ../src/guestfs.pod:2572
40313 " total length (header + ret,\n"
40314 " but not including the length word itself,\n"
40315 " and not including the chunks)\n"
40316 " struct guestfs_message_header (encoded as XDR)\n"
40317 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40318 " sequence of chunks for FileOut param #0\n"
40319 " sequence of chunks for FileOut param #1 etc.\n"
40324 #: ../src/guestfs.pod:2580
40325 msgid "INITIAL MESSAGE"
40329 #: ../src/guestfs.pod:2582
40331 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40332 "which indicates that the guest and daemon is alive. This is what L</"
40333 "guestfs_launch> waits for."
40337 #: ../src/guestfs.pod:2586
40338 msgid "PROGRESS NOTIFICATION MESSAGES"
40342 #: ../src/guestfs.pod:2588
40344 "The daemon may send progress notification messages at any time. These are "
40345 "distinguished by the normal length word being replaced by "
40346 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40350 #: ../src/guestfs.pod:2592
40352 "The library turns them into progress callbacks (see L</"
40353 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
40358 #: ../src/guestfs.pod:2596
40360 "The daemon self-limits the frequency of progress messages it sends (see "
40361 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
40366 #: ../src/guestfs.pod:2600
40367 msgid "LIBGUESTFS VERSION NUMBERS"
40371 #: ../src/guestfs.pod:2602
40373 "Since April 2010, libguestfs has started to make separate development and "
40374 "stable releases, along with corresponding branches in our git repository. "
40375 "These separate releases can be identified by version number:"
40379 #: ../src/guestfs.pod:2607
40382 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
40383 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40389 " | `-------- sub-version\n"
40391 " `------ always '1' because we don't change the ABI\n"
40396 #: ../src/guestfs.pod:2618
40397 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40401 #: ../src/guestfs.pod:2620
40403 "As time passes we cherry pick fixes from the development branch and backport "
40404 "those into the stable branch, the effect being that the stable branch should "
40405 "get more stable and less buggy over time. So the stable releases are ideal "
40406 "for people who don't need new features but would just like the software to "
40411 #: ../src/guestfs.pod:2626
40412 msgid "Our criteria for backporting changes are:"
40416 #: ../src/guestfs.pod:2632
40418 "Documentation changes which don't affect any code are backported unless the "
40419 "documentation refers to a future feature which is not in stable."
40423 #: ../src/guestfs.pod:2638
40425 "Bug fixes which are not controversial, fix obvious problems, and have been "
40426 "well tested are backported."
40430 #: ../src/guestfs.pod:2643
40432 "Simple rearrangements of code which shouldn't affect how it works get "
40433 "backported. This is so that the code in the two branches doesn't get too "
40434 "far out of step, allowing us to backport future fixes more easily."
40438 #: ../src/guestfs.pod:2649
40440 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40441 "exceptional case: the new feature is required in order to implement an "
40442 "important bug fix."
40446 #: ../src/guestfs.pod:2655
40448 "A new stable branch starts when we think the new features in development are "
40449 "substantial and compelling enough over the current stable branch to warrant "
40450 "it. When that happens we create new stable and development versions 1.N.0 "
40451 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
40452 "stable at this point, but by backporting fixes from development, that branch "
40453 "will stabilize over time."
40457 #: ../src/guestfs.pod:2663
40458 msgid "EXTENDING LIBGUESTFS"
40462 #: ../src/guestfs.pod:2665
40463 msgid "ADDING A NEW API ACTION"
40467 #: ../src/guestfs.pod:2667
40469 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40470 "documentation) are generated, and this makes it easy to extend the "
40475 #: ../src/guestfs.pod:2671
40476 msgid "To add a new API action there are two changes:"
40480 #: ../src/guestfs.pod:2677
40482 "You need to add a description of the call (name, parameters, return type, "
40483 "tests, documentation) to C<generator/generator_actions.ml>."
40487 #: ../src/guestfs.pod:2680
40489 "There are two sorts of API action, depending on whether the call goes "
40490 "through to the daemon in the appliance, or is serviced entirely by the "
40491 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
40492 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
40493 "an example of the latter, since a trace flag is maintained in the handle and "
40494 "all tracing is done on the library side."
40498 #: ../src/guestfs.pod:2688
40500 "Most new actions are of the first type, and get added to the "
40501 "C<daemon_functions> list. Each function has a unique procedure number used "
40502 "in the RPC protocol which is assigned to that action when we publish "
40503 "libguestfs and cannot be reused. Take the latest procedure number and "
40508 #: ../src/guestfs.pod:2694
40510 "For library-only actions of the second type, add to the "
40511 "C<non_daemon_functions> list. Since these functions are serviced by the "
40512 "library and do not travel over the RPC mechanism to the daemon, these "
40513 "functions do not need a procedure number, and so the procedure number is set "
40518 #: ../src/guestfs.pod:2702
40519 msgid "Implement the action (in C):"
40523 #: ../src/guestfs.pod:2704
40525 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40526 "C<daemon/> directory."
40530 #: ../src/guestfs.pod:2707
40532 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40533 "(note: double underscore) in the C<src/> directory."
40537 #: ../src/guestfs.pod:2710
40538 msgid "In either case, use another function as an example of what to do."
40542 #: ../src/guestfs.pod:2714
40543 msgid "After making these changes, use C<make> to compile."
40547 #: ../src/guestfs.pod:2716
40549 "Note that you don't need to implement the RPC, language bindings, manual "
40550 "pages or anything else. It's all automatically generated from the OCaml "
40555 #: ../src/guestfs.pod:2720
40556 msgid "ADDING TESTS FOR AN API ACTION"
40560 #: ../src/guestfs.pod:2722
40562 "You can supply zero or as many tests as you want per API call. The tests "
40563 "can either be added as part of the API description (C<generator/"
40564 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40565 "into C<regressions/>. Note that adding a script to C<regressions/> is "
40566 "slower, so if possible use the first method."
40570 #: ../src/guestfs.pod:2728
40572 "The following describes the test environment used when you add an API test "
40573 "in C<generator_actions.ml>."
40577 #: ../src/guestfs.pod:2731
40578 msgid "The test environment has 4 block devices:"
40582 #: ../src/guestfs.pod:2735
40583 msgid "C</dev/sda> 500MB"
40584 msgstr "C</dev/sda> 500 МБ"
40587 #: ../src/guestfs.pod:2737
40588 msgid "General block device for testing."
40592 #: ../src/guestfs.pod:2739
40593 msgid "C</dev/sdb> 50MB"
40594 msgstr "C</dev/sdb> 50 МБ"
40597 #: ../src/guestfs.pod:2741
40599 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40604 #: ../src/guestfs.pod:2744
40605 msgid "C</dev/sdc> 10MB"
40606 msgstr "C</dev/sdc> 10 МБ"
40609 #: ../src/guestfs.pod:2746
40610 msgid "Used in a few tests where two block devices are needed."
40614 #: ../src/guestfs.pod:2748
40615 msgid "C</dev/sdd>"
40616 msgstr "C</dev/sdd>"
40619 #: ../src/guestfs.pod:2750
40620 msgid "ISO with fixed content (see C<images/test.iso>)."
40624 #: ../src/guestfs.pod:2754
40626 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40627 "appliance and block devices are reused between tests. So don't try testing "
40628 "L</guestfs_kill_subprocess> :-x"
40632 #: ../src/guestfs.pod:2758
40634 "Each test starts with an initial scenario, selected using one of the "
40635 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
40636 "initialize the disks mentioned above in a particular way as documented in "
40637 "C<generator_types.ml>. You should not assume anything about the previous "
40638 "contents of other disks that are not initialized."
40642 #: ../src/guestfs.pod:2764
40644 "You can add a prerequisite clause to any individual test. This is a run-"
40645 "time check, which, if it fails, causes the test to be skipped. Useful if "
40646 "testing a command which might not work on all variations of libguestfs "
40647 "builds. A test that has prerequisite of C<Always> means to run "
40652 #: ../src/guestfs.pod:2770
40654 "In addition, packagers can skip individual tests by setting environment "
40655 "variables before running C<make check>."
40659 #: ../src/guestfs.pod:2773
40662 " SKIP_TEST_<CMD>_<NUM>=1\n"
40667 #: ../src/guestfs.pod:2775
40668 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40672 #: ../src/guestfs.pod:2777
40677 #: ../src/guestfs.pod:2779
40680 " SKIP_TEST_<CMD>=1\n"
40685 #: ../src/guestfs.pod:2781
40686 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40690 #: ../src/guestfs.pod:2783
40691 msgid "Packagers can run only certain tests by setting for example:"
40695 #: ../src/guestfs.pod:2785
40698 " TEST_ONLY=\"vfs_type zerofree\"\n"
40703 #: ../src/guestfs.pod:2787
40705 "See C<capitests/tests.c> for more details of how these environment variables "
40710 #: ../src/guestfs.pod:2790
40711 msgid "DEBUGGING NEW API ACTIONS"
40715 #: ../src/guestfs.pod:2792
40716 msgid "Test new actions work before submitting them."
40720 #: ../src/guestfs.pod:2794
40721 msgid "You can use guestfish to try out new commands."
40725 #: ../src/guestfs.pod:2796
40727 "Debugging the daemon is a problem because it runs inside a minimal "
40728 "environment. However you can fprintf messages in the daemon to stderr, and "
40729 "they will show up if you use C<guestfish -v>."
40733 #: ../src/guestfs.pod:2800
40734 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40738 #: ../src/guestfs.pod:2802
40740 "Our C source code generally adheres to some basic code-formatting "
40741 "conventions. The existing code base is not totally consistent on this "
40742 "front, but we do prefer that contributed code be formatted similarly. In "
40743 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40744 "indentation level, and other than that, follow the K&R style."
40748 #: ../src/guestfs.pod:2808
40750 "If you use Emacs, add the following to one of one of your start-up files (e."
40751 "g., ~/.emacs), to help ensure that you get indentation right:"
40755 #: ../src/guestfs.pod:2811
40758 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40759 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40760 " (add-hook 'find-file-hook\n"
40761 " '(lambda () (if (and buffer-file-name\n"
40762 " (string-match \"/libguestfs\\\\>\"\n"
40763 " (buffer-file-name))\n"
40764 " (not (string-equal mode-name \"Change Log\"))\n"
40765 " (not (string-equal mode-name \"Makefile\")))\n"
40766 " (setq indent-tabs-mode nil))))\n"
40771 #: ../src/guestfs.pod:2821
40774 " ;;; When editing C sources in libguestfs, use this style.\n"
40775 " (defun libguestfs-c-mode ()\n"
40776 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
40778 " (c-set-style \"K&R\")\n"
40779 " (setq c-indent-level 2)\n"
40780 " (setq c-basic-offset 2))\n"
40781 " (add-hook 'c-mode-hook\n"
40782 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40783 " (buffer-file-name))\n"
40784 " (libguestfs-c-mode))))\n"
40789 #: ../src/guestfs.pod:2833
40790 msgid "Enable warnings when compiling (and fix any problems this finds):"
40794 #: ../src/guestfs.pod:2836
40797 " ./configure --enable-gcc-warnings\n"
40800 " ./configure --enable-gcc-warnings\n"
40804 #: ../src/guestfs.pod:2838
40805 msgid "Useful targets are:"
40809 #: ../src/guestfs.pod:2840
40812 " make syntax-check # checks the syntax of the C code\n"
40813 " make check # runs the test suite\n"
40818 #: ../src/guestfs.pod:2843
40819 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40823 #: ../src/guestfs.pod:2845
40825 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40826 "which are used to do shell quoting."
40830 #: ../src/guestfs.pod:2850
40835 #: ../src/guestfs.pod:2852
40837 "Simple shell quoted string. Any spaces or other shell characters are "
40842 #: ../src/guestfs.pod:2855
40847 #: ../src/guestfs.pod:2857
40849 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40854 #: ../src/guestfs.pod:2864
40857 " asprintf (&cmd, \"cat %R\", path);\n"
40862 #: ../src/guestfs.pod:2866
40863 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40867 #: ../src/guestfs.pod:2868
40869 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
40870 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
40871 "they are not passed via the shell (instead, straight to exec). You probably "
40872 "want to use the C<sysroot_path()> function however."
40876 #: ../src/guestfs.pod:2874
40877 msgid "SUBMITTING YOUR NEW API ACTIONS"
40881 #: ../src/guestfs.pod:2876
40883 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
40884 "libguestfs> and CC to L<rjones@redhat.com>."
40888 #: ../src/guestfs.pod:2880
40889 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40893 #: ../src/guestfs.pod:2882
40894 msgid "We support i18n (gettext anyhow) in the library."
40898 #: ../src/guestfs.pod:2884
40900 "However many messages come from the daemon, and we don't translate those at "
40901 "the moment. One reason is that the appliance generally has all locale files "
40902 "removed from it, because they take up a lot of space. So we'd have to readd "
40903 "some of those, as well as copying our PO files into the appliance."
40907 #: ../src/guestfs.pod:2890
40909 "Debugging messages are never translated, since they are intended for the "
40914 #: ../src/guestfs.pod:2893
40915 msgid "SOURCE CODE SUBDIRECTORIES"
40919 #: ../src/guestfs.pod:2897
40924 #: ../src/guestfs.pod:2899
40925 msgid "L<virt-alignment-scan(1)> command and documentation."
40929 #: ../src/guestfs.pod:2903
40930 msgid "The libguestfs appliance, build scripts and so on."
40934 #: ../src/guestfs.pod:2905
40935 msgid "C<capitests>"
40936 msgstr "C<capitests>"
40939 #: ../src/guestfs.pod:2907
40940 msgid "Automated tests of the C API."
40944 #: ../src/guestfs.pod:2909
40949 #: ../src/guestfs.pod:2911
40951 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40956 #: ../src/guestfs.pod:2914
40961 #: ../src/guestfs.pod:2916
40963 "Safety and liveness tests of components that libguestfs depends upon (not of "
40964 "libguestfs itself). Mainly this is for qemu and the kernel."
40968 #: ../src/guestfs.pod:2919
40973 #: ../src/guestfs.pod:2921
40975 "Tools for cloning virtual machines. Currently contains L<virt-sysprep(1)> "
40976 "command and documentation."
40980 #: ../src/guestfs.pod:2924
40982 msgstr "C<contrib>"
40985 #: ../src/guestfs.pod:2926
40986 msgid "Outside contributions, experimental parts."
40990 #: ../src/guestfs.pod:2928
40995 #: ../src/guestfs.pod:2930
40997 "The daemon that runs inside the libguestfs appliance and carries out actions."
41001 #: ../src/guestfs.pod:2933
41006 #: ../src/guestfs.pod:2935
41007 msgid "L<virt-df(1)> command and documentation."
41011 #: ../src/guestfs.pod:2937
41016 #: ../src/guestfs.pod:2939
41017 msgid "L<virt-edit(1)> command and documentation."
41021 #: ../src/guestfs.pod:2941
41022 msgid "C<examples>"
41023 msgstr "C<examples>"
41026 #: ../src/guestfs.pod:2943
41027 msgid "C API example code."
41028 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
41031 #: ../src/guestfs.pod:2945
41036 #: ../src/guestfs.pod:2947
41038 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41039 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41040 "L<virt-tar-out(1)>."
41044 #: ../src/guestfs.pod:2951
41049 #: ../src/guestfs.pod:2953
41051 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41055 #: ../src/guestfs.pod:2955
41056 msgid "C<generator>"
41057 msgstr "C<generator>"
41060 #: ../src/guestfs.pod:2957
41062 "The crucially important generator, used to automatically generate large "
41063 "amounts of boilerplate C code for things like RPC and bindings."
41067 #: ../src/guestfs.pod:2960
41072 #: ../src/guestfs.pod:2962
41073 msgid "Files used by the test suite."
41077 #: ../src/guestfs.pod:2964
41078 msgid "Some \"phony\" guest images which we test against."
41082 #: ../src/guestfs.pod:2966
41083 msgid "C<inspector>"
41084 msgstr "C<inspector>"
41087 #: ../src/guestfs.pod:2968
41088 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41092 #: ../src/guestfs.pod:2970
41097 #: ../src/guestfs.pod:2972
41098 msgid "Logo used on the website. The fish is called Arthur by the way."
41102 #: ../src/guestfs.pod:2974
41107 #: ../src/guestfs.pod:2976
41108 msgid "M4 macros used by autoconf."
41112 #: ../src/guestfs.pod:2978
41117 #: ../src/guestfs.pod:2980
41118 msgid "Translations of simple gettext strings."
41119 msgstr "Переклади простих рядків gettext."
41122 #: ../src/guestfs.pod:2982
41124 msgstr "C<po-docs>"
41127 #: ../src/guestfs.pod:2984
41129 "The build infrastructure and PO files for translations of manpages and POD "
41130 "files. Eventually this will be combined with the C<po> directory, but that "
41131 "is rather complicated."
41135 #: ../src/guestfs.pod:2988
41136 msgid "C<regressions>"
41137 msgstr "C<regressions>"
41140 #: ../src/guestfs.pod:2990
41141 msgid "Regression tests."
41142 msgstr "Тести на регресії."
41145 #: ../src/guestfs.pod:2992
41150 #: ../src/guestfs.pod:2994
41151 msgid "L<virt-rescue(1)> command and documentation."
41155 #: ../src/guestfs.pod:2996
41157 #| msgid "C<rescue>"
41162 #: ../src/guestfs.pod:2998
41163 msgid "L<virt-resize(1)> command and documentation."
41167 #: ../src/guestfs.pod:3000
41168 msgid "C<sparsify>"
41172 #: ../src/guestfs.pod:3002
41173 msgid "L<virt-sparsify(1)> command and documentation."
41177 #: ../src/guestfs.pod:3004
41182 #: ../src/guestfs.pod:3006
41183 msgid "Source code to the C library."
41187 #: ../src/guestfs.pod:3008
41192 #: ../src/guestfs.pod:3010
41194 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
41198 #: ../src/guestfs.pod:3012
41199 msgid "C<test-tool>"
41200 msgstr "C<test-tool>"
41203 #: ../src/guestfs.pod:3014
41205 "Test tool for end users to test if their qemu/kernel combination will work "
41210 #: ../src/guestfs.pod:3017
41215 #: ../src/guestfs.pod:3019
41220 #: ../src/guestfs.pod:3021
41222 msgstr "C<haskell>"
41225 #: ../src/guestfs.pod:3023
41230 #: ../src/guestfs.pod:3025
41235 #: ../src/guestfs.pod:3027
41240 #: ../src/guestfs.pod:3029
41245 #: ../src/guestfs.pod:3031
41250 #: ../src/guestfs.pod:3033
41255 #: ../src/guestfs.pod:3035
41256 msgid "Language bindings."
41257 msgstr "Прив’язки до мов програмування."
41260 #: ../src/guestfs.pod:3039
41261 msgid "MAKING A STABLE RELEASE"
41265 #: ../src/guestfs.pod:3041
41267 "When we make a stable release, there are several steps documented here. See "
41268 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
41273 #: ../src/guestfs.pod:3049
41275 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
41279 #: ../src/guestfs.pod:3054
41280 msgid "Finalize RELEASE-NOTES."
41284 #: ../src/guestfs.pod:3058
41285 msgid "Update ROADMAP."
41289 #: ../src/guestfs.pod:3062
41290 msgid "Run C<src/api-support/update-from-tarballs.sh>."
41294 #: ../src/guestfs.pod:3066
41295 msgid "Push and pull from Transifex."
41299 #: ../src/guestfs.pod:3068
41304 #: ../src/guestfs.pod:3070
41312 #: ../src/guestfs.pod:3072
41313 msgid "to push the latest POT files to Transifex. Then run:"
41317 #: ../src/guestfs.pod:3074
41325 #: ../src/guestfs.pod:3076
41326 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41330 #: ../src/guestfs.pod:3080
41332 "Create new stable and development directories under L<http://libguestfs.org/"
41337 #: ../src/guestfs.pod:3085
41338 msgid "Create the branch in git:"
41342 #: ../src/guestfs.pod:3087
41345 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41346 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41347 " git branch stable-1.XX\n"
41348 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41353 #: ../src/guestfs.pod:3094
41358 #: ../src/guestfs.pod:3096
41359 msgid "PROTOCOL LIMITS"
41360 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
41363 #: ../src/guestfs.pod:3098
41365 "Internally libguestfs uses a message-based protocol to pass API calls and "
41366 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41367 "plenty more detail about this). The maximum message size used by the "
41368 "protocol is slightly less than 4 MB. For some API calls you may need to be "
41369 "aware of this limit. The API calls which may be affected are individually "
41370 "documented, with a link back to this section of the documentation."
41374 #: ../src/guestfs.pod:3106
41376 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41377 "a simple string. Because this string is at some point internally encoded as "
41378 "a message, the maximum size that it can return is slightly under 4 MB. If "
41379 "the requested file is larger than this then you will get an error."
41383 #: ../src/guestfs.pod:3112
41385 "In order to transfer large files into and out of the guest filesystem, you "
41386 "need to use particular calls that support this. The sections L</UPLOADING> "
41387 "and L</DOWNLOADING> document how to do this."
41391 #: ../src/guestfs.pod:3116
41393 "You might also consider mounting the disk image using our FUSE filesystem "
41394 "support (L<guestmount(1)>)."
41398 #: ../src/guestfs.pod:3119
41399 msgid "MAXIMUM NUMBER OF DISKS"
41403 #: ../src/guestfs.pod:3121
41404 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41408 #: ../src/guestfs.pod:3124
41410 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41411 "slots. However febootstrap only understands disks with names C</dev/vda> "
41412 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41417 #: ../src/guestfs.pod:3129
41419 "We are working to substantially raise this limit in future versions but it "
41420 "requires complex changes to qemu."
41424 #: ../src/guestfs.pod:3132
41426 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41427 "disks (add and remove disks after calling L</guestfs_launch>). This also "
41428 "requires changes to qemu."
41432 #: ../src/guestfs.pod:3136
41433 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41437 #: ../src/guestfs.pod:3138
41438 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41442 #: ../src/guestfs.pod:3140
41444 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41445 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41449 #: ../src/guestfs.pod:3143
41451 "If you attach a disk with more than 15 partitions, the extra partitions are "
41452 "ignored by libguestfs."
41456 #: ../src/guestfs.pod:3146
41457 msgid "MAXIMUM SIZE OF A DISK"
41461 #: ../src/guestfs.pod:3148
41462 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41466 #: ../src/guestfs.pod:3150
41468 "We have tested block devices up to 1 exabyte (2**60 or "
41469 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41474 #: ../src/guestfs.pod:3154
41476 "Although libguestfs probably does not impose any limit, the underlying host "
41477 "storage will. If you store disk images on a host ext4 filesystem, then the "
41478 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41479 "TB). If you store disk images as host logical volumes then you are limited "
41480 "by the maximum size of an LV."
41484 #: ../src/guestfs.pod:3160
41486 "For the hugest disk image files, we recommend using XFS on the host for "
41491 #: ../src/guestfs.pod:3163
41492 msgid "MAXIMUM SIZE OF A PARTITION"
41496 #: ../src/guestfs.pod:3165
41498 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41499 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
41500 "address a partition located beyond 2 TB on the disk."
41504 #: ../src/guestfs.pod:3169
41506 "It is recommended that you use GPT partitions on disks which are larger than "
41507 "this size. GPT uses 64 bit sector numbers and so can address partitions "
41508 "which are theoretically larger than the largest disk we could support."
41512 #: ../src/guestfs.pod:3174
41513 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41517 #: ../src/guestfs.pod:3176
41519 "This depends on the filesystem type. libguestfs itself does not impose any "
41520 "known limit. Consult Wikipedia or the filesystem documentation to find out "
41521 "what these limits are."
41525 #: ../src/guestfs.pod:3180
41526 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41530 #: ../src/guestfs.pod:3182
41532 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41533 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41534 "uploads and downloads."
41538 #: ../src/guestfs.pod:3186
41539 msgid "INSPECTION LIMITS"
41543 #: ../src/guestfs.pod:3188
41545 "The inspection code has several arbitrary limits on things like the size of "
41546 "Windows Registry hive it will read, and the length of product name. These "
41547 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41548 "memory and disk space on the host, and should not be reached in practice. "
41549 "See the source code for more information."
41553 #: ../src/guestfs.pod:3214
41555 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
41556 "effect as calling C<guestfs_set_verbose (g, 1)>."
41560 #: ../src/guestfs.pod:3226
41562 "Set the path that libguestfs uses to search for a supermin appliance. See "
41563 "the discussion of paths in section L</PATH> above."
41567 #: ../src/guestfs.pod:3235
41568 msgid "See also L</QEMU WRAPPERS> above."
41572 #: ../src/guestfs.pod:3239
41574 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
41575 "effect as calling C<guestfs_set_trace (g, 1)>."
41579 #: ../src/guestfs.pod:3257
41581 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41582 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41583 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41584 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41585 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41586 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41587 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41588 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
41589 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
41590 ">, L<http://libguestfs.org/>."
41594 #: ../src/guestfs.pod:3293
41596 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41597 "(8)>, L<disktype(1)>."
41601 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:553
41602 #: ../tools/virt-win-reg.pl:761
41607 #: ../src/guestfs.pod:3302
41608 msgid "To get a list of bugs against libguestfs use this link:"
41610 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
41614 #: ../src/guestfs.pod:3304
41616 "L<https://bugzilla.redhat.com/buglist.cgi?"
41617 "component=libguestfs&product=Virtualization+Tools>"
41619 "L<https://bugzilla.redhat.com/buglist.cgi?"
41620 "component=libguestfs&product=Virtualization+Tools>"
41623 #: ../src/guestfs.pod:3306
41624 msgid "To report a new bug against libguestfs use this link:"
41625 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
41628 #: ../src/guestfs.pod:3308
41630 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41631 "component=libguestfs&product=Virtualization+Tools>"
41633 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41634 "component=libguestfs&product=Virtualization+Tools>"
41637 #: ../src/guestfs.pod:3310
41638 msgid "When reporting a bug, please check:"
41642 #: ../src/guestfs.pod:3316
41643 msgid "That the bug hasn't been reported already."
41647 #: ../src/guestfs.pod:3320
41648 msgid "That you are testing a recent version."
41652 #: ../src/guestfs.pod:3324
41653 msgid "Describe the bug accurately, and give a way to reproduce it."
41657 #: ../src/guestfs.pod:3328
41659 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41664 #: ../test-tool/libguestfs-test-tool.pod:5
41665 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41669 #: ../test-tool/libguestfs-test-tool.pod:9
41672 " libguestfs-test-tool [--options]\n"
41677 #: ../test-tool/libguestfs-test-tool.pod:13
41679 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41680 "to check basic libguestfs functionality is working. This is needed because "
41681 "libguestfs occasionally breaks for reasons beyond our control: usually "
41682 "because of changes in the underlying qemu or kernel packages, or the host "
41687 #: ../test-tool/libguestfs-test-tool.pod:19
41688 msgid "If you suspect a problem in libguestfs, then just run:"
41692 #: ../test-tool/libguestfs-test-tool.pod:21
41695 " libguestfs-test-tool\n"
41700 #: ../test-tool/libguestfs-test-tool.pod:23
41701 msgid "It will print lots of diagnostic messages."
41705 #: ../test-tool/libguestfs-test-tool.pod:25
41706 msgid "If it runs to completion successfully, you will see this near the end:"
41710 #: ../test-tool/libguestfs-test-tool.pod:27
41713 " ===== TEST FINISHED OK =====\n"
41718 #: ../test-tool/libguestfs-test-tool.pod:29
41719 msgid "and the test tool will exit with code 0."
41723 #: ../test-tool/libguestfs-test-tool.pod:31
41725 "If it fails (and/or exits with non-zero error code), please paste the "
41726 "I<complete, unedited> output of the test tool into a bug report. More "
41727 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41732 #: ../test-tool/libguestfs-test-tool.pod:42
41733 msgid "Display short usage information and exit."
41737 #: ../test-tool/libguestfs-test-tool.pod:44
41739 #| msgid "I<--qemu qemu_binary>"
41740 msgid "B<--qemu qemu_binary>"
41741 msgstr "I<--qemu виконуваний_файл_qemu>"
41744 #: ../test-tool/libguestfs-test-tool.pod:46
41746 "If you have downloaded another qemu binary, point this option at the full "
41747 "path of the binary to try it."
41751 #: ../test-tool/libguestfs-test-tool.pod:49
41753 #| msgid "I<--qemu qemu_binary>"
41754 msgid "B<--qemudir qemu_source_dir>"
41755 msgstr "I<--qemu виконуваний_файл_qemu>"
41758 #: ../test-tool/libguestfs-test-tool.pod:51
41760 "If you have compiled qemu from source, point this option at the source "
41761 "directory to try it."
41765 #: ../test-tool/libguestfs-test-tool.pod:54
41770 #: ../test-tool/libguestfs-test-tool.pod:56
41772 #| msgid "I<--timeout N>"
41773 msgid "B<--timeout N>"
41774 msgstr "I<--timeout N>"
41777 #: ../test-tool/libguestfs-test-tool.pod:58
41779 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
41780 "minutes) which does not usually need to be adjusted."
41784 #: ../test-tool/libguestfs-test-tool.pod:63
41785 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41789 #: ../test-tool/libguestfs-test-tool.pod:65
41791 "If you have compiled another version of qemu from source and would like to "
41792 "try that, then you can use the I<--qemudir> option to point to the qemu "
41793 "source directory."
41797 #: ../test-tool/libguestfs-test-tool.pod:69
41799 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41800 "option to point to the binary."
41804 #: ../test-tool/libguestfs-test-tool.pod:72
41806 "Note when using these options, you can ignore the business of qemu wrapper "
41807 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41808 "wrapper script for you if one is needed."
41812 #: ../test-tool/libguestfs-test-tool.pod:76
41813 msgid "TRYING OUT A DIFFERENT KERNEL"
41817 #: ../test-tool/libguestfs-test-tool.pod:78
41819 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41820 "libguestfs tries. You do this by setting the environment variables "
41821 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41825 #: ../test-tool/libguestfs-test-tool.pod:82
41827 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41832 #: ../test-tool/libguestfs-test-tool.pod:85
41833 msgid "SELF-DIAGNOSIS"
41837 #: ../test-tool/libguestfs-test-tool.pod:87
41839 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41840 "produced by libguestfs-test-tool and/or possible errors."
41844 #: ../test-tool/libguestfs-test-tool.pod:92
41846 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41847 "I<1> if there was an error."
41851 #: ../test-tool/libguestfs-test-tool.pod:97
41853 "For the full list of environment variables which may affect libguestfs, "
41854 "please see the L<guestfs(3)> manual page."
41858 #: ../test-tool/libguestfs-test-tool.pod:102
41859 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41863 #: ../tools/virt-list-filesystems.pl:32
41865 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41869 #: ../tools/virt-list-filesystems.pl:36
41872 " virt-list-filesystems [--options] domname\n"
41877 #: ../tools/virt-list-filesystems.pl:38
41880 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41885 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41887 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
41892 #: ../tools/virt-list-filesystems.pl:45
41894 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41895 "are contained in a virtual machine or disk image."
41899 #: ../tools/virt-list-filesystems.pl:49
41901 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41902 "functionality. For more complex cases you should look at the L<guestfish(1)"
41907 #: ../tools/virt-list-filesystems.pl:112
41909 "With this option, C<virt-list-filesystems> displays the type of each "
41910 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41914 #: ../tools/virt-list-filesystems.pl:119
41916 #| msgid "B<-a image>"
41918 msgstr "B<-a образ>"
41921 #: ../tools/virt-list-filesystems.pl:123
41923 "Normally we only show mountable filesystems. If this option is given then "
41924 "swap devices are shown too."
41928 #: ../tools/virt-list-filesystems.pl:197
41930 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41931 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41932 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41934 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41935 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41936 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41939 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41940 msgid "Copyright (C) 2009 Red Hat Inc."
41941 msgstr "© Red Hat Inc., 2009"
41944 #: ../tools/virt-list-partitions.pl:32
41946 "virt-list-partitions - List partitions in a virtual machine or disk image"
41950 #: ../tools/virt-list-partitions.pl:36
41953 " virt-list-partitions [--options] domname\n"
41956 " virt-list-partitions [--параметри] назва_домену\n"
41960 #: ../tools/virt-list-partitions.pl:38
41963 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41966 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
41970 #: ../tools/virt-list-partitions.pl:45
41972 "C<virt-list-partitions> is a command line tool to list the partitions that "
41973 "are contained in a virtual machine or disk image. It is mainly useful as a "
41974 "first step to using L<virt-resize(1)>."
41978 #: ../tools/virt-list-partitions.pl:50
41980 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41981 "functionality. For more complex cases you should look at the L<guestfish(1)"
41986 #: ../tools/virt-list-partitions.pl:113
41987 msgid "Show sizes in human-readable form (eg. \"1G\")."
41991 #: ../tools/virt-list-partitions.pl:123
41993 "With this option, C<virt-list-partitions> displays the type and size of each "
41994 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41998 #: ../tools/virt-list-partitions.pl:130
42003 #: ../tools/virt-list-partitions.pl:132
42005 #| msgid "B<-t> | B<--total>"
42007 msgstr "B<-t> | B<--total>"
42010 #: ../tools/virt-list-partitions.pl:134
42012 "Display the total size of each block device (as a separate row or rows)."
42016 #: ../tools/virt-list-partitions.pl:267
42018 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42019 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42020 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42022 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42023 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42024 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42027 #: ../tools/virt-list-partitions.pl:283
42028 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42029 msgstr "© Red Hat Inc., 2009–2010"
42032 #: ../tools/virt-make-fs.pl:37
42033 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42037 #: ../tools/virt-make-fs.pl:41
42040 " virt-make-fs [--options] input.tar output.img\n"
42045 #: ../tools/virt-make-fs.pl:43
42048 " virt-make-fs [--options] input.tar.gz output.img\n"
42053 #: ../tools/virt-make-fs.pl:45
42056 " virt-make-fs [--options] directory output.img\n"
42061 #: ../tools/virt-make-fs.pl:49
42063 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42064 "archive or some files in a directory. It is similar to tools like L<mkisofs"
42065 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
42066 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42067 "you want to attach these filesystems to existing virtual machines (eg. to "
42068 "import large amounts of read-only data to a VM)."
42072 #: ../tools/virt-make-fs.pl:57
42073 msgid "Basic usage is:"
42077 #: ../tools/virt-make-fs.pl:59
42080 " virt-make-fs input output\n"
42085 #: ../tools/virt-make-fs.pl:61
42087 "where C<input> is either a directory containing files that you want to add, "
42088 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42089 "C<output> is a disk image. The input type is detected automatically. The "
42090 "output disk image defaults to a raw ext2 image unless you specify extra "
42091 "flags (see L</OPTIONS> below)."
42095 #: ../tools/virt-make-fs.pl:67
42096 msgid "EXTRA SPACE"
42100 #: ../tools/virt-make-fs.pl:69
42102 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
42103 "the files that it contains, but might have extra space. Depending on how "
42104 "you are going to use the output, you might think this extra space is wasted "
42105 "and want to minimize it, or you might want to leave space so that more files "
42106 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
42107 "but you can use the I<--size> flag to leave space in the filesystem if you "
42112 #: ../tools/virt-make-fs.pl:77
42114 "An alternative way to leave extra space but not make the output image any "
42115 "bigger is to use an alternative disk image format (instead of the default "
42116 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
42117 "image format (check your hypervisor supports this before using it). This "
42118 "allows you to choose a large I<--size> but the extra space won't actually be "
42119 "allocated in the image until you try to store something in it."
42123 #: ../tools/virt-make-fs.pl:85
42125 "Don't forget that you can also use local commands including L<resize2fs(8)> "
42126 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
42127 "to build another image from scratch."
42131 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
42132 #: ../tools/virt-make-fs.pl:142
42137 #: ../tools/virt-make-fs.pl:91
42140 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42143 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42147 #: ../tools/virt-make-fs.pl:93
42148 msgid "FILESYSTEM TYPE"
42149 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
42152 #: ../tools/virt-make-fs.pl:95
42154 "The default filesystem type is C<ext2>. Just about any filesystem type that "
42155 "libguestfs supports can be used (but I<not> read-only formats like "
42156 "ISO9660). Here are some of the more common choices:"
42160 #: ../tools/virt-make-fs.pl:101
42165 #: ../tools/virt-make-fs.pl:103
42167 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
42168 "you are not going to use the filesystem in a way that requires the journal, "
42169 "then this is just wasted overhead."
42173 #: ../tools/virt-make-fs.pl:107
42174 msgid "I<ntfs> or I<vfat>"
42175 msgstr "I<ntfs> або I<vfat>"
42178 #: ../tools/virt-make-fs.pl:109
42179 msgid "Useful if exporting data to a Windows guest."
42183 #: ../tools/virt-make-fs.pl:111
42185 "I<Note for vfat>: The tar archive or local directory must only contain files "
42186 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
42187 "program running within libguestfs is unable to change the ownership of non-"
42188 "root files, since vfat itself does not support this."
42192 #: ../tools/virt-make-fs.pl:116
42197 #: ../tools/virt-make-fs.pl:118
42199 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42200 "total filesystem size."
42204 #: ../tools/virt-make-fs.pl:125
42207 " virt-make-fs --type=minix input minixfs.img\n"
42212 #: ../tools/virt-make-fs.pl:127
42213 msgid "TO PARTITION OR NOT TO PARTITION"
42217 #: ../tools/virt-make-fs.pl:129
42218 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42222 #: ../tools/virt-make-fs.pl:131
42224 "Adding a partition can make the disk image more compatible with certain "
42225 "virtualized operating systems which don't expect to see a filesystem "
42226 "directly located on a block device (Linux doesn't care and will happily "
42227 "handle both types)."
42231 #: ../tools/virt-make-fs.pl:136
42233 "On the other hand, if you have a partition table then the output image is no "
42234 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
42235 "directly on a partitioned disk image. (However libguestfs tools such as "
42236 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
42240 #: ../tools/virt-make-fs.pl:144
42241 msgid "Add an MBR partition:"
42245 #: ../tools/virt-make-fs.pl:146
42248 " virt-make-fs --partition -- input disk.img\n"
42253 #: ../tools/virt-make-fs.pl:148
42255 "If the output disk image could be terabyte-sized or larger, it's better to "
42256 "use an EFI/GPT-compatible partition table:"
42260 #: ../tools/virt-make-fs.pl:151
42263 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
42268 #: ../tools/virt-make-fs.pl:179
42269 msgid "Enable debugging information."
42270 msgstr "Увімкнути виведення діагностичних даних."
42273 #: ../tools/virt-make-fs.pl:185
42274 msgid "B<--size=E<lt>NE<gt>>"
42275 msgstr "B<--size=E<lt>NE<gt>>"
42278 #: ../tools/virt-make-fs.pl:187
42279 msgid "B<--size=+E<lt>NE<gt>>"
42280 msgstr "B<--size=+E<lt>NE<gt>>"
42283 #: ../tools/virt-make-fs.pl:189
42284 msgid "B<-s E<lt>NE<gt>>"
42285 msgstr "B<-s E<lt>NE<gt>>"
42288 #: ../tools/virt-make-fs.pl:191
42289 msgid "B<-s +E<lt>NE<gt>>"
42290 msgstr "B<-s +E<lt>NE<gt>>"
42293 #: ../tools/virt-make-fs.pl:193
42295 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
42299 #: ../tools/virt-make-fs.pl:196
42301 "If this option is I<not> given, then the output image will be just large "
42302 "enough to contain all the files, with not much wasted space."
42306 #: ../tools/virt-make-fs.pl:199
42308 "To choose a fixed size output disk, specify an absolute number followed by b/"
42309 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42310 "Petabytes or Exabytes. This must be large enough to contain all the input "
42311 "files, else you will get an error."
42315 #: ../tools/virt-make-fs.pl:204
42317 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
42318 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42319 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
42320 "the input files, and (approximately) an extra 200 MB free space."
42324 #: ../tools/virt-make-fs.pl:210
42326 "Note that virt-make-fs estimates free space, and therefore will not produce "
42327 "filesystems containing precisely the free space requested. (It is much more "
42328 "expensive and time-consuming to produce a filesystem which has precisely the "
42329 "desired free space)."
42333 #: ../tools/virt-make-fs.pl:219
42334 msgid "B<--format=E<lt>fmtE<gt>>"
42338 #: ../tools/virt-make-fs.pl:221
42339 msgid "B<-F E<lt>fmtE<gt>>"
42343 #: ../tools/virt-make-fs.pl:223
42344 msgid "Choose the output disk image format."
42348 #: ../tools/virt-make-fs.pl:225
42349 msgid "The default is C<raw> (raw disk image)."
42353 #: ../tools/virt-make-fs.pl:227
42355 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
42356 "that would really make sense here is C<qcow2>."
42360 #: ../tools/virt-make-fs.pl:234
42361 msgid "B<--type=E<lt>fsE<gt>>"
42365 #: ../tools/virt-make-fs.pl:236
42366 msgid "B<-t E<lt>fsE<gt>>"
42370 #: ../tools/virt-make-fs.pl:238
42371 msgid "Choose the output filesystem type."
42375 #: ../tools/virt-make-fs.pl:240
42376 msgid "The default is C<ext2>."
42377 msgstr "Типовим значенням є C<ext2>."
42380 #: ../tools/virt-make-fs.pl:242
42382 "Any filesystem which is supported read-write by libguestfs can be used here."
42386 #: ../tools/virt-make-fs.pl:249
42387 msgid "B<--partition>"
42388 msgstr "B<--partition>"
42391 #: ../tools/virt-make-fs.pl:251
42392 msgid "B<--partition=E<lt>parttypeE<gt>>"
42396 #: ../tools/virt-make-fs.pl:253
42398 "If specified, this flag adds an MBR partition table to the output disk image."
42402 #: ../tools/virt-make-fs.pl:256
42404 "You can change the partition table type, eg. I<--partition=gpt> for large "
42409 #: ../tools/virt-make-fs.pl:259
42411 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42412 "might consider the next parameter to be the partition type. For example:"
42416 #: ../tools/virt-make-fs.pl:263
42419 " virt-make-fs --partition input.tar ...\n"
42424 #: ../tools/virt-make-fs.pl:265
42426 "would cause virt-make-fs to think you wanted to use a partition type of "
42427 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
42428 "dash) between options and the input file argument:"
42432 #: ../tools/virt-make-fs.pl:269
42435 " virt-make-fs --partition -- input.tar ...\n"
42438 " virt-make-fs --partition -- input.tar ...\n"
42442 #: ../tools/virt-make-fs.pl:541
42444 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42445 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42446 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42448 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42449 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42450 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42453 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
42455 "When reporting bugs, please enable debugging and capture the I<complete> "
42460 #: ../tools/virt-make-fs.pl:558
42463 " export LIBGUESTFS_DEBUG=1\n"
42464 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42467 " export LIBGUESTFS_DEBUG=1\n"
42468 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42472 #: ../tools/virt-make-fs.pl:561
42474 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42479 #: ../tools/virt-tar.pl:33
42480 msgid "virt-tar - Extract or upload files to a virtual machine"
42484 #: ../tools/virt-tar.pl:37
42487 " virt-tar [--options] -x domname directory tarball\n"
42492 #: ../tools/virt-tar.pl:39
42495 " virt-tar [--options] -u domname tarball directory\n"
42500 #: ../tools/virt-tar.pl:41
42503 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42508 #: ../tools/virt-tar.pl:43
42511 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42516 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42521 #: ../tools/virt-tar.pl:47
42523 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42524 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42528 #: ../tools/virt-tar.pl:52
42529 msgid "Download C</home> from the VM into a local tarball:"
42533 #: ../tools/virt-tar.pl:54
42536 " virt-tar -x domname /home home.tar\n"
42541 #: ../tools/virt-tar.pl:56
42544 " virt-tar -zx domname /home home.tar.gz\n"
42549 #: ../tools/virt-tar.pl:58
42550 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42554 #: ../tools/virt-tar.pl:60
42557 " virt-tar -u domname uploadstuff.tar /tmp\n"
42562 #: ../tools/virt-tar.pl:62
42565 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42570 #: ../tools/virt-tar.pl:66
42572 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42573 "virtual machines. If you do this, you risk disk corruption in the VM. "
42574 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42578 #: ../tools/virt-tar.pl:71
42580 "You can use I<-x> (extract) on live virtual machines, but you might get "
42581 "inconsistent results or errors if there is filesystem activity inside the "
42582 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
42583 "work, but the only way to guarantee consistent results is if the virtual "
42584 "machine is shut down."
42588 #: ../tools/virt-tar.pl:79
42590 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42591 "parts of a guest filesystem. There are many possibilities: making backups, "
42592 "uploading data files, snooping on guest activity, fixing or customizing "
42597 #: ../tools/virt-tar.pl:84
42599 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
42600 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
42601 "should look at the L<guestfish(1)> tool."
42605 #: ../tools/virt-tar.pl:88
42607 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42608 "its contents (recursively) from the virtual machine into a local tarball. "
42609 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42610 "virtual machine. You cannot use these two options together."
42614 #: ../tools/virt-tar.pl:94
42616 "In addition, you may need to use the I<-z> (gZip) option to enable "
42617 "compression. When uploading, you have to specify I<-z> if the upload file "
42618 "is compressed because virt-tar won't detect this on its own."
42622 #: ../tools/virt-tar.pl:98
42624 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
42625 "example it cannot do PKZip files or bzip2 compression. If you want that "
42626 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
42627 "the L<libguestfs(3)> API)."
42631 #: ../tools/virt-tar.pl:160
42633 #| msgid "B<--format>"
42634 msgid "B<--extract>"
42635 msgstr "B<--format>"
42638 #: ../tools/virt-tar.pl:162
42640 #| msgid "download"
42641 msgid "B<--download>"
42645 #: ../tools/virt-tar.pl:164
42650 #: ../tools/virt-tar.pl:166
42652 #| msgid "B<-u> | B<--upload>"
42653 msgid "B<--upload>"
42654 msgstr "B<-u> | B<--upload>"
42657 #: ../tools/virt-tar.pl:168
42659 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42664 #: ../tools/virt-tar.pl:171
42666 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
42667 "Please read the L</WARNING> section above before using this option."
42671 #: ../tools/virt-tar.pl:175
42672 msgid "You must specify exactly one of these options."
42676 #: ../tools/virt-tar.pl:181
42681 #: ../tools/virt-tar.pl:183
42683 #| msgid "B<-z> | B<--gzip>"
42685 msgstr "B<-z> | B<--gzip>"
42688 #: ../tools/virt-tar.pl:185
42689 msgid "Specify that the input or output tarball is gzip-compressed."
42693 #: ../tools/virt-tar.pl:298
42695 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42696 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42697 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42700 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42701 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42702 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42706 #: ../tools/virt-win-reg.pl:37
42708 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42712 #: ../tools/virt-win-reg.pl:41
42715 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42720 #: ../tools/virt-win-reg.pl:43
42723 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42728 #: ../tools/virt-win-reg.pl:45
42731 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42736 #: ../tools/virt-win-reg.pl:47
42739 " virt-win-reg --merge domname [input.reg ...]\n"
42744 #: ../tools/virt-win-reg.pl:49
42747 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42752 #: ../tools/virt-win-reg.pl:53
42754 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42755 "virtual machines. If you do this, you I<will> get irreversible disk "
42756 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
42757 "but doesn't catch all cases."
42761 #: ../tools/virt-win-reg.pl:58
42763 "Modifying the Windows Registry is an inherently risky operation. The format "
42764 "is deliberately obscure and undocumented, and Registry changes can leave the "
42765 "system unbootable. Therefore when using the I<--merge> option, make sure "
42766 "you have a reliable backup first."
42770 #: ../tools/virt-win-reg.pl:65
42772 "This program can export and merge Windows Registry entries from a Windows "
42777 #: ../tools/virt-win-reg.pl:68
42779 "The first parameter is the libvirt guest name or the raw disk image of a "
42784 #: ../tools/virt-win-reg.pl:71
42786 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42787 "exported (recursively). For example:"
42791 #: ../tools/virt-win-reg.pl:74
42794 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42799 #: ../tools/virt-win-reg.pl:76
42801 "You can also display single values from within registry keys, for example:"
42805 #: ../tools/virt-win-reg.pl:79
42808 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42809 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42810 " Windows 7 Enterprise\n"
42815 #: ../tools/virt-win-reg.pl:83
42817 "With I<--merge>, you can merge a textual regedit file into the Windows "
42822 #: ../tools/virt-win-reg.pl:86
42825 " $ virt-win-reg --merge Windows7 changes.reg\n"
42830 #: ../tools/virt-win-reg.pl:90
42832 "This program is only meant for simple access to the registry. If you want "
42833 "to do complicated things with the registry, we suggest you download the "
42834 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42835 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42836 "L<hivexregedit(1)>."
42840 #: ../tools/virt-win-reg.pl:159
42842 msgstr "B<--merge>"
42845 #: ../tools/virt-win-reg.pl:161
42847 "In merge mode, this merges a textual regedit file into the Windows Registry "
42848 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
42849 "displays or exports Registry entries instead."
42853 #: ../tools/virt-win-reg.pl:165
42855 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42856 "result in disk corruption. However exporting (without this flag) is always "
42861 #: ../tools/virt-win-reg.pl:173
42862 msgid "B<--encoding> UTF-16LE|ASCII"
42866 #: ../tools/virt-win-reg.pl:175
42868 "When merging (only), you may need to specify the encoding for strings to be "
42869 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
42870 "(3)/ENCODING STRINGS>."
42874 #: ../tools/virt-win-reg.pl:179
42876 "The default is to use UTF-16LE, which should work with recent versions of "
42881 #: ../tools/virt-win-reg.pl:186
42882 msgid "B<--unsafe-printable-strings>"
42886 #: ../tools/virt-win-reg.pl:188
42888 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42889 "instead of hex sequences. Remove the final zero codepoint from strings if "
42894 #: ../tools/virt-win-reg.pl:192
42896 "This is unsafe and does not preserve the fidelity of strings in the original "
42897 "Registry for various reasons:"
42901 #: ../tools/virt-win-reg.pl:199
42903 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
42904 "other encodings will be corrupted by this transformation."
42908 #: ../tools/virt-win-reg.pl:204
42910 "Assumes that everything which has type 1 or 2 is really a string and that "
42911 "everything else is not a string, but the type field in real Registries is "
42916 #: ../tools/virt-win-reg.pl:210
42918 "Loses information about whether a zero codepoint followed the string in the "
42923 #: ../tools/virt-win-reg.pl:215
42925 "This all happens because the Registry itself contains no information about "
42926 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42930 #: ../tools/virt-win-reg.pl:219
42932 "You should only use this option for quick hacking and debugging of the "
42933 "Registry contents, and I<never> use it if the output is going to be passed "
42934 "into another program or stored in another Registry."
42938 #: ../tools/virt-win-reg.pl:556
42939 msgid "SUPPORTED SYSTEMS"
42943 #: ../tools/virt-win-reg.pl:558
42945 "The program currently supports Windows NT-derived guests starting with "
42946 "Windows XP through to at least Windows 7."
42950 #: ../tools/virt-win-reg.pl:561
42951 msgid "The following Registry keys are supported:"
42955 #: ../tools/virt-win-reg.pl:565
42956 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42960 #: ../tools/virt-win-reg.pl:567
42961 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42965 #: ../tools/virt-win-reg.pl:569
42966 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42970 #: ../tools/virt-win-reg.pl:571
42971 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42975 #: ../tools/virt-win-reg.pl:573
42976 msgid "C<HKEY_USERS\\.DEFAULT>"
42980 #: ../tools/virt-win-reg.pl:575
42981 msgid "C<HKEY_USERS\\I<SID>>"
42985 #: ../tools/virt-win-reg.pl:577
42986 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42990 #: ../tools/virt-win-reg.pl:579
42991 msgid "C<HKEY_USERS\\I<username>>"
42995 #: ../tools/virt-win-reg.pl:581
42997 "where I<username> is a local user name (this is a libguestfs extension)."
43001 #: ../tools/virt-win-reg.pl:585
43003 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43008 #: ../tools/virt-win-reg.pl:588
43010 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43011 "supported (there is no \"current user\")."
43015 #: ../tools/virt-win-reg.pl:591
43020 #: ../tools/virt-win-reg.pl:593
43022 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43023 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
43024 "style line endings. Since Windows regedit files are often in UTF-16LE with "
43025 "Windows-style line endings, you may need to reencode the whole file before "
43026 "or after processing."
43030 #: ../tools/virt-win-reg.pl:599
43032 "To reencode a file from Windows format to Linux (before processing it with "
43033 "the I<--merge> option), you would do something like this:"
43037 #: ../tools/virt-win-reg.pl:602
43040 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43045 #: ../tools/virt-win-reg.pl:604
43047 "To go in the opposite direction, after exporting and before sending the file "
43048 "to a Windows user, do something like this:"
43052 #: ../tools/virt-win-reg.pl:607
43055 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43060 #: ../tools/virt-win-reg.pl:609
43061 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43065 #: ../tools/virt-win-reg.pl:611
43067 "If you are unsure about the current encoding, use the L<file(1)> command. "
43068 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43069 "style (CRLF) line endings, like this:"
43073 #: ../tools/virt-win-reg.pl:615
43076 " $ file software.reg\n"
43077 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43078 " with CRLF line terminators\n"
43083 #: ../tools/virt-win-reg.pl:619
43084 msgid "This file would need conversion before you could I<--merge> it."
43088 #: ../tools/virt-win-reg.pl:621
43089 msgid "CurrentControlSet etc."
43093 #: ../tools/virt-win-reg.pl:623
43095 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43096 "Registry at the level of the hive file, and therefore you cannot modify "
43101 #: ../tools/virt-win-reg.pl:627
43103 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
43104 "circumstances it might refer to another control set. The way to find out is "
43105 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43109 #: ../tools/virt-win-reg.pl:631
43112 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43113 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43114 " \"Current\"=dword:00000001\n"
43115 " \"Default\"=dword:00000001\n"
43116 " \"Failed\"=dword:00000000\n"
43117 " \"LastKnownGood\"=dword:00000002\n"
43122 #: ../tools/virt-win-reg.pl:638
43123 msgid "\"Current\" is the one which Windows will choose when it boots."
43127 #: ../tools/virt-win-reg.pl:640
43129 "Similarly, other C<Current...> keys in the path may need to be replaced."
43133 #: ../tools/virt-win-reg.pl:643
43134 msgid "WINDOWS TIPS"
43138 #: ../tools/virt-win-reg.pl:645
43140 "Note that some of these tips modify the guest disk image. The guest I<must> "
43141 "be shut off, else you will get disk corruption."
43145 #: ../tools/virt-win-reg.pl:648
43146 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
43150 #: ../tools/virt-win-reg.pl:650
43152 "Prepare a DOS batch script, VBScript or executable. Upload this using "
43153 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
43154 "is uploaded into C<C:\\>:"
43158 #: ../tools/virt-win-reg.pl:654
43161 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43166 #: ../tools/virt-win-reg.pl:656
43167 msgid "Prepare a regedit file containing the registry change:"
43171 #: ../tools/virt-win-reg.pl:658
43174 " cat > test.reg <<'EOF'\n"
43175 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43176 " \"Test\"=\"c:\\\\test.bat\"\n"
43182 #: ../tools/virt-win-reg.pl:663
43184 "In this example we use the key C<RunOnce> which means that the script will "
43185 "run precisely once when the first user logs in. If you want it to run every "
43186 "time a user logs in, replace C<RunOnce> with C<Run>."
43190 #: ../tools/virt-win-reg.pl:667
43191 msgid "Now update the registry:"
43195 #: ../tools/virt-win-reg.pl:669
43198 " virt-win-reg --merge WindowsGuest test.reg\n"
43203 #: ../tools/virt-win-reg.pl:671
43204 msgid "INSTALLING A SERVICE"
43208 #: ../tools/virt-win-reg.pl:673
43210 "This section assumes you are familiar with Windows services, and you either "
43211 "have a program which handles the Windows Service Control Protocol directly "
43212 "or you want to run any program using a service wrapper like SrvAny or the "
43217 #: ../tools/virt-win-reg.pl:678
43219 "First upload the program and optionally the service wrapper. In this case "
43220 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
43224 #: ../tools/virt-win-reg.pl:682
43227 " guestfish -i -d WindowsGuest <<EOF\n"
43228 " upload rhsrvany.exe /rhsrvany.exe\n"
43229 " upload test.exe /test.exe\n"
43235 #: ../tools/virt-win-reg.pl:687
43237 "Prepare a regedit file containing the registry changes. In this example, "
43238 "the first registry change is needed for the service itself or the service "
43239 "wrapper (if used). The second registry change is only needed because I am "
43240 "using the RHSrvAny service wrapper."
43244 #: ../tools/virt-win-reg.pl:692
43247 " cat > service.reg <<'EOF'\n"
43248 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43249 " \"Type\"=dword:00000010\n"
43250 " \"Start\"=dword:00000002\n"
43251 " \"ErrorControl\"=dword:00000001\n"
43252 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43253 " \"DisplayName\"=\"RHSrvAny\"\n"
43254 " \"ObjectName\"=\"NetworkService\"\n"
43259 #: ../tools/virt-win-reg.pl:701
43262 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43263 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43264 " \"PWD\"=\"c:\\\\Temp\"\n"
43270 #: ../tools/virt-win-reg.pl:712
43272 "For use of C<ControlSet001> see the section above in this manual page. You "
43273 "may need to adjust this according to the control set that is in use by the "
43278 #: ../tools/virt-win-reg.pl:718
43280 "C<\"ObjectName\"> controls the privileges that the service will have. An "
43281 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
43282 "privileged account."
43286 #: ../tools/virt-win-reg.pl:724
43288 "For the meaning of the magic numbers, see this Microsoft KB article: "
43289 "L<http://support.microsoft.com/kb/103000>."
43293 #: ../tools/virt-win-reg.pl:729
43294 msgid "Update the registry:"
43298 #: ../tools/virt-win-reg.pl:731
43301 " virt-win-reg --merge WindowsGuest service.reg\n"
43306 #: ../tools/virt-win-reg.pl:735
43308 "Be careful when passing parameters containing C<\\> (backslash) in the "
43309 "shell. Usually you will have to use 'single quotes' or double backslashes "
43310 "(but not both) to protect them from the shell."
43314 #: ../tools/virt-win-reg.pl:739
43315 msgid "Paths and value names are case-insensitive."
43319 #: ../tools/virt-win-reg.pl:748
43321 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43322 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43323 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43327 #: ../tools/virt-win-reg.pl:766
43330 " export LIBGUESTFS_DEBUG=1\n"
43331 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43336 #: ../tools/virt-win-reg.pl:769
43338 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
43344 #~| " guestfish --ro -d myguest -i\n"
43347 #~ " guestfish --remote run\n"
43351 #~ " guestfish --ro -d myguest -i\n"
43356 #~| " virt-list-partitions [--options] domname\n"
43359 #~ " virt-alignment-scan [--options]\n"
43362 #~ " virt-list-partitions [--параметри] назва_домену\n"
43367 #~| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43368 #~| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
43369 #~| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43371 #~ "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
43372 #~ "libguestfs.org/>."
43374 #~ "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43375 #~ "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
43376 #~ "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43378 #~ msgid "I<--help>"
43379 #~ msgstr "I<--help>"
43381 #~ msgid "EXIT CODE"
43382 #~ msgstr "КОД ВИХОДУ"
43384 #~ msgid "B<-a> | B<--all>"
43385 #~ msgstr "B<-a> | B<--all>"
43387 #~ msgid "B<-x> | B<--extract> | B<--download>"
43388 #~ msgstr "B<-x> | B<--extract> | B<--download>"