1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
6 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
9 "Project-Id-Version: libguestfs\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-11-17 13:11+0000\n"
12 "PO-Revision-Date: 2011-10-27 09:15+0000\n"
13 "Last-Translator: rjones <rjones@redhat.com>\n"
14 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
20 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
28 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
29 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
30 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
31 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
32 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
33 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
34 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
35 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
36 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
38 #: ../tools/virt-win-reg.pl:35
43 #: ../align/virt-alignment-scan.pod:5
44 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
48 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
49 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
50 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
51 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
52 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
53 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
54 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
55 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
56 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
57 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
58 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
59 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
60 #: ../test-tool/libguestfs-test-tool.pod:7
61 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
62 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
63 #: ../tools/virt-win-reg.pl:39
65 msgstr "КОРОТКИЙ ОПИС"
68 #: ../align/virt-alignment-scan.pod:9
71 " virt-alignment-scan [--options] -d domname\n"
76 #: ../align/virt-alignment-scan.pod:11
79 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
84 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
85 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
86 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
87 #: ../erlang/examples/guestfs-erlang.pod:16
88 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
89 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
90 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
91 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
92 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
93 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
94 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:31
95 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
96 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
97 #: ../test-tool/libguestfs-test-tool.pod:11
98 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
99 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
100 #: ../tools/virt-win-reg.pl:63
105 #: ../align/virt-alignment-scan.pod:15
107 "When older operating systems install themselves, the partitioning tools "
108 "place partitions at a sector misaligned with the underlying storage "
109 "(commonly the first partition starts on sector C<63>). Misaligned "
110 "partitions can result in an operating system issuing more I/O than should be "
115 #: ../align/virt-alignment-scan.pod:21
117 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
118 "machines and disk images and warns you if there are alignment problems."
122 #: ../align/virt-alignment-scan.pod:25
124 "Currently there is no virt tool for fixing alignment problems. You can only "
125 "reinstall the guest operating system. The following NetApp document "
126 "summarises the problem and possible solutions: L<http://media.netapp.com/"
127 "documents/tr-3747.pdf>"
131 #: ../align/virt-alignment-scan.pod:30
136 #: ../align/virt-alignment-scan.pod:32
137 msgid "To run this tool on a disk image directly, use the I<-a> option:"
141 #: ../align/virt-alignment-scan.pod:34
144 " $ virt-alignment-scan -a winxp.img\n"
145 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
150 #: ../align/virt-alignment-scan.pod:37
153 " $ virt-alignment-scan -a fedora16.img\n"
154 " /dev/sda1 1048576 1024K ok\n"
155 " /dev/sda2 2097152 2048K ok\n"
156 " /dev/sda3 526385152 2048K ok\n"
161 #: ../align/virt-alignment-scan.pod:42
163 "To run the tool on a guest known to libvirt, use the I<-d> option and "
164 "possibly the I<-c> option:"
168 #: ../align/virt-alignment-scan.pod:45
171 " # virt-alignment-scan -d RHEL5\n"
172 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
173 " /dev/sda2 106928640 512 bad (alignment < 4K)\n"
178 #: ../align/virt-alignment-scan.pod:49
181 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
182 " /dev/sda1 1048576 1024K ok\n"
183 " /dev/sda2 105906176 1024K ok\n"
184 " /dev/sdb1 65536 64K ok\n"
189 #: ../align/virt-alignment-scan.pod:54
191 "The output consists of 4 or more whitespace-separated columns. Only the "
192 "first 4 columns are signficant if you want to parse this from a program. "
197 #: ../align/virt-alignment-scan.pod:60
202 #: ../align/virt-alignment-scan.pod:62
204 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
205 "on the first block device)"
209 #: ../align/virt-alignment-scan.pod:65
214 #: ../align/virt-alignment-scan.pod:67
215 msgid "the start of the partition in bytes"
219 #: ../align/virt-alignment-scan.pod:69
224 #: ../align/virt-alignment-scan.pod:71
225 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
229 #: ../align/virt-alignment-scan.pod:73
234 #: ../align/virt-alignment-scan.pod:75
236 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
237 "can cause performance problems"
241 #: ../align/virt-alignment-scan.pod:78
246 #: ../align/virt-alignment-scan.pod:80
247 msgid "optional free-text explanation."
251 #: ../align/virt-alignment-scan.pod:84
253 "The exit code from the program changes depending on whether poorly aligned "
254 "partitions were found. See L</EXIT STATUS> below."
258 #: ../align/virt-alignment-scan.pod:87
259 msgid "If you just want the exit code with no output, use the I<-q> option."
263 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
264 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
265 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
266 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
267 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
268 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
269 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:112
270 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
271 #: ../test-tool/libguestfs-test-tool.pod:36
272 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
273 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
274 #: ../tools/virt-win-reg.pl:96
279 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
280 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
281 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
282 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
283 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:116
284 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
285 #: ../test-tool/libguestfs-test-tool.pod:40
286 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
287 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
288 #: ../tools/virt-win-reg.pl:104
293 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
294 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
295 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
296 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:118
297 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
298 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
299 #: ../tools/virt-win-reg.pl:106
300 msgid "Display brief help."
301 msgstr "Показати коротку довідку."
304 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
305 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
306 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
307 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:120
312 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
313 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
314 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
315 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:122
316 msgid "B<--add> file"
317 msgstr "B<--add> файл"
320 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
321 msgid "Add I<file> which should be a disk image from a virtual machine."
325 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
326 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
327 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
328 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
329 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:128
331 "The format of the disk image is auto-detected. To override this and force a "
332 "particular format use the I<--format=..> option."
336 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
337 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
338 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
339 #: ../rescue/virt-rescue.pod:135
341 msgstr "B<-c> адреса"
344 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
345 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
346 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
347 #: ../rescue/virt-rescue.pod:137
348 msgid "B<--connect> URI"
349 msgstr "B<--connect> адреса"
352 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
353 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
354 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
355 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:139
356 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
357 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
359 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
360 "to the default libvirt hypervisor."
364 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
365 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
366 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
367 #: ../rescue/virt-rescue.pod:142
369 "If you specify guest block devices directly (I<-a>), then libvirt is not "
374 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
375 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
376 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
377 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:145
382 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
383 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
384 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
385 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:147
386 msgid "B<--domain> guest"
387 msgstr "B<--domain> гість"
390 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
391 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
392 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
393 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:149
395 "Add all the disks from the named libvirt guest. Domain UUIDs can be used "
400 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
401 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
402 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
403 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
404 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:152
405 msgid "B<--format=raw|qcow2|..>"
406 msgstr "B<--format=raw|qcow2|..>"
409 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
410 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
411 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
412 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
413 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
414 #: ../rescue/virt-rescue.pod:154
419 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
420 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
421 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
422 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
423 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:156
425 "The default for the I<-a> option is to auto-detect the format of the disk "
426 "image. Using this forces the disk format for I<-a> options which follow on "
427 "the command line. Using I<--format> with no argument switches back to auto-"
428 "detection for subsequent I<-a> options."
432 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
433 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
434 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
435 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
436 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351
437 #: ../rescue/virt-rescue.pod:161 ../src/guestfs.pod:2877
442 #: ../align/virt-alignment-scan.pod:134
445 " virt-alignment-scan --format=raw -a disk.img\n"
450 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
451 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
452 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
453 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
454 #: ../rescue/virt-rescue.pod:165
455 msgid "forces raw format (no auto-detection) for C<disk.img>."
459 #: ../align/virt-alignment-scan.pod:138
462 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
467 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
468 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
469 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
470 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
471 #: ../rescue/virt-rescue.pod:169
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
478 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
479 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
480 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
481 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:172
483 "If you have untrusted raw-format guest disk images, you should use this "
484 "option to specify the disk format. This avoids a possible security problem "
485 "with malicious guests (CVE-2010-3851)."
489 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:491
490 #: ../sparsify/virt-sparsify.pod:153
495 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
496 #: ../sparsify/virt-sparsify.pod:155
501 #: ../align/virt-alignment-scan.pod:151
503 "Don't produce any output. Just set the exit code (see L</EXIT STATUS> "
508 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
509 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
510 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
511 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
512 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
513 #: ../rescue/virt-rescue.pod:219 ../sparsify/virt-sparsify.pod:159
518 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
519 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
520 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
521 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
522 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
523 #: ../rescue/virt-rescue.pod:221 ../sparsify/virt-sparsify.pod:161
525 msgstr "B<--verbose>"
528 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
529 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
530 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
531 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
532 #: ../rescue/virt-rescue.pod:223 ../sparsify/virt-sparsify.pod:163
533 msgid "Enable verbose messages for debugging."
537 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
538 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
539 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
540 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
541 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
542 #: ../rescue/virt-rescue.pod:225 ../resize/virt-resize.pod:561
543 #: ../sparsify/virt-sparsify.pod:165
548 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
549 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
550 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
551 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
552 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
553 #: ../rescue/virt-rescue.pod:227 ../resize/virt-resize.pod:563
554 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
555 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
556 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
558 msgstr "B<--version>"
561 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
562 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
563 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
564 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
565 #: ../rescue/virt-rescue.pod:229 ../resize/virt-resize.pod:565
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr "Показати дані щодо версії і завершити роботу."
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod:240 ../sparsify/virt-sparsify.pod:171
579 #: ../tools/virt-tar.pl:158
584 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
585 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
586 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
587 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
588 #: ../rescue/virt-rescue.pod:242 ../sparsify/virt-sparsify.pod:173
589 msgid "Enable tracing of libguestfs API calls."
593 #: ../align/virt-alignment-scan.pod:172
594 msgid "RECOMMENDED ALIGNMENT"
598 #: ../align/virt-alignment-scan.pod:174
600 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
601 "first sector of the first partition at sector 63, with a 512 byte sector "
602 "size. This happens because of a historical accident. Drives have to report "
603 "a cylinder / head / sector (CHS) geometry to the BIOS. The geometry is "
604 "completely meaningless on modern drives, but it happens that the geometry "
605 "reported always has 63 sectors per track. The operating system therefore "
606 "places the first partition at the start of the second \"track\", at sector "
611 #: ../align/virt-alignment-scan.pod:183
613 "When the guest OS is virtualized, the host operating system and hypervisor "
614 "may prefer accesses aligned to one of:"
618 #: ../align/virt-alignment-scan.pod:188
623 #: ../align/virt-alignment-scan.pod:190
625 "if the host OS uses local storage directly on hard drive partitions, and the "
626 "hard drive has 512 byte physical sectors."
630 #: ../align/virt-alignment-scan.pod:193
635 #: ../align/virt-alignment-scan.pod:195
637 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
638 "backed storage on filesystems with 4Kbyte block size; or for some types of "
639 "network-attached storage."
643 #: ../align/virt-alignment-scan.pod:199
648 #: ../align/virt-alignment-scan.pod:201
650 "for high-end network-attached storage. This is the optimal block size for "
651 "some NetApp hardware."
655 #: ../align/virt-alignment-scan.pod:204
660 #: ../align/virt-alignment-scan.pod:206
661 msgid "see L</1 MB PARTITION ALIGNMENT> below."
665 #: ../align/virt-alignment-scan.pod:210
667 "Partitions which are not aligned correctly to the underlying storage cause "
668 "extra I/O. For example:"
672 #: ../align/virt-alignment-scan.pod:213
676 " +--------------------------+------\n"
678 " | filesystem block |\n"
679 " ---+------------------+------+-------------------+-----+---\n"
680 " | host block | host block |\n"
682 " ---+-------------------------+-------------------------+---\n"
687 #: ../align/virt-alignment-scan.pod:222
689 "In this example, each time a 4K guest block is read, two blocks on the host "
690 "must be accessed (so twice as much I/O is done). When a 4K guest block is "
691 "written, two host blocks must first be read, the old and new data combined, "
692 "and the two blocks written back (4x I/O)."
696 #: ../align/virt-alignment-scan.pod:227
697 msgid "LINUX HOST BLOCK AND I/O SIZE"
701 #: ../align/virt-alignment-scan.pod:229
703 "New versions of the Linux kernel expose the physical and logical block size, "
704 "and minimum and recommended I/O size."
708 #: ../align/virt-alignment-scan.pod:232
709 msgid "For a typical consumer hard drive with 512 byte sectors:"
713 #: ../align/virt-alignment-scan.pod:234
716 " $ cat /sys/block/sda/queue/hw_sector_size\n"
718 " $ cat /sys/block/sda/queue/physical_block_size\n"
720 " $ cat /sys/block/sda/queue/logical_block_size\n"
722 " $ cat /sys/block/sda/queue/minimum_io_size\n"
724 " $ cat /sys/block/sda/queue/optimal_io_size\n"
730 #: ../align/virt-alignment-scan.pod:245
731 msgid "For a new consumer hard drive with 4Kbyte sectors:"
735 #: ../align/virt-alignment-scan.pod:247
738 " $ cat /sys/block/sda/queue/hw_sector_size\n"
740 " $ cat /sys/block/sda/queue/physical_block_size\n"
742 " $ cat /sys/block/sda/queue/logical_block_size\n"
744 " $ cat /sys/block/sda/queue/minimum_io_size\n"
746 " $ cat /sys/block/sda/queue/optimal_io_size\n"
752 #: ../align/virt-alignment-scan.pod:258
753 msgid "For a NetApp LUN:"
757 #: ../align/virt-alignment-scan.pod:260
760 " $ cat /sys/block/sdc/queue/logical_block_size\n"
762 " $ cat /sys/block/sdc/queue/physical_block_size\n"
764 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
766 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
772 #: ../align/virt-alignment-scan.pod:269
774 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
775 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
779 #: ../align/virt-alignment-scan.pod:273
781 "For detailed information about what these numbers mean, see L<http://docs."
782 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
783 "Storage_Administration_Guide/newstorage-iolimits.html>"
787 #: ../align/virt-alignment-scan.pod:276
789 "[Thanks to Matt Booth for providing 4K drive data. Thanks to Mike Snitzer "
790 "for providing NetApp data and additional information.]"
794 #: ../align/virt-alignment-scan.pod:279
795 msgid "1 MB PARTITION ALIGNMENT"
799 #: ../align/virt-alignment-scan.pod:281
801 "Microsoft picked 1 MB as the default alignment for all partitions starting "
802 "with Windows 2008 Server, and Linux has followed this."
806 #: ../align/virt-alignment-scan.pod:284
808 "Assuming 512 byte sectors in the guest, you will now see the first partition "
809 "starting at sector 2048, and subsequent partitions (if any) will start at a "
810 "multiple of 2048 sectors."
814 #: ../align/virt-alignment-scan.pod:288
816 "1 MB alignment is compatible with all current alignment requirements (4K, "
817 "64K) and provides room for future growth in physical block sizes."
821 #: ../align/virt-alignment-scan.pod:291
822 msgid "SETTING ALIGNMENT"
826 #: ../align/virt-alignment-scan.pod:293
828 "L<virt-resize(1)> can change the alignment of the partitions of some "
829 "guests. Currently it can fully align all the partitions of all Windows "
830 "guests, and it will fix the bootloader where necessary. For Linux guests, "
831 "it can align the second and subsequent partitions, so the majority of OS "
832 "accesses except at boot will be aligned."
836 #: ../align/virt-alignment-scan.pod:299
838 "Another way to correct partition alignment problems is to reinstall your "
839 "guest operating systems. If you install operating systems from templates, "
840 "ensure these have correct partition alignment too."
844 #: ../align/virt-alignment-scan.pod:303
846 "For older versions of Windows, the following NetApp document contains useful "
847 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
851 #: ../align/virt-alignment-scan.pod:306
853 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
854 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
855 ">. Do not use the Kickstart C<part> command. The NetApp document above "
856 "contains an example."
860 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231
861 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
862 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
863 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367
864 #: ../rescue/virt-rescue.pod:303 ../resize/virt-resize.pod:676
865 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
866 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
867 #: ../tools/virt-win-reg.pl:744
868 msgid "SHELL QUOTING"
872 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233
873 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
874 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
875 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369
876 #: ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:678
877 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
878 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
879 #: ../tools/virt-win-reg.pl:752
881 "Libvirt guest names can contain arbitrary characters, some of which have "
882 "meaning to the shell such as C<#> and space. You may need to quote or "
883 "escape these characters on the command line. See the shell manual page L<sh"
888 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238
889 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
890 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
891 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
892 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390
893 #: ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:227
894 #: ../test-tool/libguestfs-test-tool.pod:90
899 #: ../align/virt-alignment-scan.pod:320
900 msgid "This program returns:"
904 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330
905 #: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343
906 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
907 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
908 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
909 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
910 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
911 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
912 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
913 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
914 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
915 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
916 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
917 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
918 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
919 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
920 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
921 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
922 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
923 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449
924 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463
925 #: ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266
926 #: ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274
927 #: ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286
928 #: ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300
929 #: ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308
930 #: ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402
931 #: ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412
932 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458
933 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719
934 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733
935 #: ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142
936 #: ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157
937 #: ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445
938 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
939 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:408
940 #: ../inspector/virt-inspector.pod:412 ../resize/virt-resize.pod:359
941 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372
942 #: ../resize/virt-resize.pod:378 ../sparsify/virt-sparsify.pod:32
943 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
944 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
945 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
946 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
947 #: ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:649
948 #: ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663
949 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083
950 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2091
951 #: ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2103
952 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:2117
953 #: ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2125
954 #: ../src/guestfs-actions.pod:2263 ../src/guestfs-actions.pod:2267
955 #: ../src/guestfs-actions.pod:2272 ../src/guestfs-actions.pod:2277
956 #: ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2342
957 #: ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2762
958 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2776
959 #: ../src/guestfs-actions.pod:3321 ../src/guestfs-actions.pod:3327
960 #: ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3342
961 #: ../src/guestfs-actions.pod:3349 ../src/guestfs.pod:403
962 #: ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417
963 #: ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431
964 #: ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113
965 #: ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130
966 #: ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179
967 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191
968 #: ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689
969 #: ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800
970 #: ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819
971 #: ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119
972 #: ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651
973 #: ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3062
974 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075
975 #: ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098
976 #: ../src/guestfs.pod:3329 ../src/guestfs.pod:3333 ../src/guestfs.pod:3337
977 #: ../src/guestfs.pod:3341 ../tools/virt-win-reg.pl:197
978 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
979 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
980 #: ../tools/virt-win-reg.pl:733
985 #: ../align/virt-alignment-scan.pod:326
990 #: ../align/virt-alignment-scan.pod:328
992 "successful exit, all partitions are aligned E<ge> 64K for best performance"
996 #: ../align/virt-alignment-scan.pod:332
1001 #: ../align/virt-alignment-scan.pod:334
1002 msgid "an error scanning the disk image or guest"
1006 #: ../align/virt-alignment-scan.pod:338
1011 #: ../align/virt-alignment-scan.pod:340
1013 "successful exit, some partitions have alignment E<lt> 64K which can result "
1014 "in poor performance on high end network storage"
1018 #: ../align/virt-alignment-scan.pod:345
1023 #: ../align/virt-alignment-scan.pod:347
1025 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1026 "poor performance on most hypervisors"
1030 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1031 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1032 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1033 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1034 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1035 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1036 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1037 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1038 #: ../inspector/virt-inspector.pod:395 ../java/examples/guestfs-java.pod:45
1039 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1040 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:325
1041 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1042 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3270
1043 #: ../test-tool/libguestfs-test-tool.pod:100
1044 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1045 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1046 #: ../tools/virt-win-reg.pl:757
1048 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1051 #: ../align/virt-alignment-scan.pod:354
1053 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1054 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1058 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252
1059 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1060 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1061 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:334
1062 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:264
1063 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1064 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1065 #: ../tools/virt-win-reg.pl:783
1070 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254
1071 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1072 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1073 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410
1074 #: ../rescue/virt-rescue.pod:336 ../resize/virt-resize.pod:713
1075 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1076 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1077 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1078 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1079 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1082 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256
1083 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1084 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1085 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1086 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1087 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1088 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1089 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1090 #: ../inspector/virt-inspector.pod:418 ../java/examples/guestfs-java.pod:62
1091 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1092 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:338
1093 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1094 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3352
1095 #: ../test-tool/libguestfs-test-tool.pod:110
1096 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1097 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1098 #: ../tools/virt-win-reg.pl:787
1100 msgstr "АВТОРСЬКІ ПРАВА"
1103 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507
1104 #: ../sparsify/virt-sparsify.pod:270
1105 msgid "Copyright (C) 2011 Red Hat Inc."
1109 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260
1110 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1111 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1112 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1113 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1114 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1115 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422
1116 #: ../rescue/virt-rescue.pod:342 ../resize/virt-resize.pod:719
1117 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1118 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1119 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1120 #: ../tools/virt-win-reg.pl:791
1122 "This program is free software; you can redistribute it and/or modify it "
1123 "under the terms of the GNU General Public License as published by the Free "
1124 "Software Foundation; either version 2 of the License, or (at your option) "
1125 "any later version."
1129 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265
1130 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1131 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1132 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1133 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1134 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1135 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427
1136 #: ../rescue/virt-rescue.pod:347 ../resize/virt-resize.pod:724
1137 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1138 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1139 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1140 #: ../tools/virt-win-reg.pl:796
1142 "This program is distributed in the hope that it will be useful, but WITHOUT "
1143 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1144 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
1147 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1148 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1149 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1150 "дізнатися з GNU General Public License."
1153 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270
1154 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1155 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1156 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1157 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1158 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1159 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432
1160 #: ../rescue/virt-rescue.pod:352 ../resize/virt-resize.pod:729
1161 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1162 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1163 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1164 #: ../tools/virt-win-reg.pl:801
1166 "You should have received a copy of the GNU General Public License along with "
1167 "this program; if not, write to the Free Software Foundation, Inc., 51 "
1168 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1170 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1171 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1172 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1175 #: ../cat/virt-cat.pod:5
1176 msgid "virt-cat - Display files in a virtual machine"
1177 msgstr "virt-cat — показ файлів у віртуальній машині"
1180 #: ../cat/virt-cat.pod:9
1183 " virt-cat [--options] -d domname file [file ...]\n"
1186 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1190 #: ../cat/virt-cat.pod:11
1193 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1196 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1200 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1201 #: ../inspector/virt-inspector.pod:13
1203 msgstr "Застарілий стиль:"
1206 #: ../cat/virt-cat.pod:15
1209 " virt-cat domname file\n"
1212 " virt-cat назва_домену файл\n"
1216 #: ../cat/virt-cat.pod:17
1219 " virt-cat disk.img file\n"
1222 " virt-cat диск.img файл\n"
1226 #: ../cat/virt-cat.pod:21
1228 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1229 "C<file> exists in the named virtual machine (or disk image)."
1231 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1232 "зберігається у вказаній віртуальній машині (або образі диска)."
1235 #: ../cat/virt-cat.pod:24
1237 "Multiple filenames can be given, in which case they are concatenated "
1238 "together. Each filename must be a full path, starting at the root directory "
1239 "(starting with '/')."
1241 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1242 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1243 "кореневого каталогу (тобто назва має починатися з «/»)."
1246 #: ../cat/virt-cat.pod:28
1248 "C<virt-cat> can be used to quickly view a file. To edit a file, use C<virt-"
1249 "edit>. For more complex cases you should look at the L<guestfish(1)> tool "
1250 "(see L</USING GUESTFISH> below)."
1252 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1253 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1254 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1258 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1259 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1260 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1261 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1262 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1263 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1264 #: ../tools/virt-tar.pl:50
1269 #: ../cat/virt-cat.pod:34
1271 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1273 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1276 #: ../cat/virt-cat.pod:37
1279 " virt-cat -d mydomain /etc/fstab\n"
1282 " virt-cat -d mydomain /etc/fstab\n"
1286 #: ../cat/virt-cat.pod:39
1287 msgid "List syslog messages from a VM disk image file:"
1289 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1292 #: ../cat/virt-cat.pod:41
1295 " virt-cat -a disk.img /var/log/messages | tail\n"
1298 " virt-cat -a disk.img /var/log/messages | tail\n"
1302 #: ../cat/virt-cat.pod:43
1303 msgid "Find out what DHCP IP address a VM acquired:"
1304 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1307 #: ../cat/virt-cat.pod:45
1310 " virt-cat -d mydomain /var/log/messages | \\\n"
1311 " grep 'dhclient: bound to' | tail\n"
1314 " virt-cat -d mydomain /var/log/messages | \\\n"
1315 " grep 'dhclient: bound to' | tail\n"
1319 #: ../cat/virt-cat.pod:48
1320 msgid "Find out what packages were recently installed:"
1321 msgstr "Пошук нещодавно встановлених пакунків:"
1324 #: ../cat/virt-cat.pod:50
1327 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1330 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1334 #: ../cat/virt-cat.pod:52
1335 msgid "Find out who is logged on inside a virtual machine:"
1336 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1339 #: ../cat/virt-cat.pod:54
1342 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1346 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1351 #: ../cat/virt-cat.pod:57
1352 msgid "or who was logged on:"
1353 msgstr "або тих, які у ній працювали:"
1356 #: ../cat/virt-cat.pod:59
1359 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1360 " last -f /tmp/wtmp\n"
1363 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1364 " last -f /tmp/wtmp\n"
1368 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1369 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1370 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:124
1372 "Add I<file> which should be a disk image from a virtual machine. If the "
1373 "virtual machine has multiple block devices, you must supply all of them with "
1374 "separate I<-a> options."
1378 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1379 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1380 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1381 msgid "B<--echo-keys>"
1382 msgstr "B<--echo-keys>"
1385 #: ../cat/virt-cat.pod:100
1387 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1388 "so you cannot see what you are typing. If you are not worried about Tempest "
1389 "attacks and there is no one else in the room you can specify this flag to "
1390 "see what you are typing."
1394 #: ../cat/virt-cat.pod:116
1397 " virt-cat --format=raw -a disk.img file\n"
1400 " virt-cat --format=raw -a disk.img file\n"
1404 #: ../cat/virt-cat.pod:120
1407 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1410 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1414 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1415 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1416 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1417 msgid "B<--keys-from-stdin>"
1418 msgstr "B<--keys-from-stdin>"
1421 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1422 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1423 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1425 "Read key or passphrase parameters from stdin. The default is to try to read "
1426 "passphrases from the user by opening C</dev/tty>."
1430 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1431 #: ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:246
1432 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1436 #: ../cat/virt-cat.pod:154
1437 msgid "Previous versions of virt-cat allowed you to write either:"
1441 #: ../cat/virt-cat.pod:156
1444 " virt-cat disk.img [disk.img ...] file\n"
1449 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1450 #: ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:252
1455 #: ../cat/virt-cat.pod:160
1458 " virt-cat guestname file\n"
1463 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1464 #: ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:256
1466 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1467 "the confusing case where a disk image might have the same name as a guest."
1471 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1472 #: ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:260
1473 msgid "For compatibility the old style is still supported."
1477 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1478 msgid "WINDOWS PATHS"
1479 msgstr "ШЛЯХИ У WINDOWS"
1482 #: ../cat/virt-cat.pod:170
1484 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1485 "paths (eg. C<E:\\foo\\bar.txt>)."
1489 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1490 msgid "If and only if the guest is running Windows then:"
1494 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1496 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1497 "to the correct filesystem."
1501 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1503 "Any backslash (C<\\>) characters in the path are replaced with forward "
1504 "slashes so that libguestfs can process it."
1508 #: ../cat/virt-cat.pod:189
1510 "The path is resolved case insensitively to locate the file that should be "
1515 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1516 msgid "There are some known shortcomings:"
1520 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1521 msgid "Some NTFS symbolic links may not be followed correctly."
1525 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1526 msgid "NTFS junction points that cross filesystems are not followed."
1530 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1531 msgid "USING GUESTFISH"
1532 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1535 #: ../cat/virt-cat.pod:210
1537 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1538 "C<virt-cat> doesn't work."
1542 #: ../cat/virt-cat.pod:213
1543 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1547 #: ../cat/virt-cat.pod:215
1550 " guestfish --ro -i -d domname download file -\n"
1555 #: ../cat/virt-cat.pod:217
1557 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1558 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
1562 #: ../cat/virt-cat.pod:221
1564 "The command above uses libguestfs's guest inspection feature and so does not "
1565 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1566 "disk images that don't contain guests. To display a file from a disk image "
1571 #: ../cat/virt-cat.pod:226
1574 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1579 #: ../cat/virt-cat.pod:228
1581 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1582 "the disk image, and C<file> is the full path to the file."
1586 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1587 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1588 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392
1589 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
1591 "This program returns 0 if successful, or non-zero if there was an error."
1595 #: ../cat/virt-cat.pod:245
1597 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1598 "tar-out(1)>, L<http://libguestfs.org/>."
1600 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1601 "tar-out(1)>, L<http://libguestfs.org/>."
1604 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420
1605 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1606 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1607 msgstr "©Red Hat Inc., 2010–2011"
1610 #: ../cat/virt-filesystems.pod:5
1612 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1613 "virtual machine or disk image"
1617 #: ../cat/virt-filesystems.pod:9
1620 " virt-filesystems [--options] -d domname\n"
1623 " virt-filesystems [--параметри] -d назва_домену\n"
1627 #: ../cat/virt-filesystems.pod:11
1630 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1635 #: ../cat/virt-filesystems.pod:15
1637 "This tool allows you to discover filesystems, partitions, logical volumes, "
1638 "and their sizes in a disk image or virtual machine. It is a replacement for "
1639 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1643 #: ../cat/virt-filesystems.pod:20
1645 "One use for this tool is from shell scripts to iterate over all filesystems "
1646 "from a disk image:"
1650 #: ../cat/virt-filesystems.pod:23
1653 " for fs in $(virt-filesystems -a disk.img); do\n"
1658 " for fs in $(virt-filesystems -a disk.img); do\n"
1664 #: ../cat/virt-filesystems.pod:27
1666 "Another use is to list partitions before using another tool to modify those "
1667 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
1668 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1672 #: ../cat/virt-filesystems.pod:32
1674 "Various command line options control what this program displays. You need "
1675 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1676 "guest respectively. If you just specify that then the program shows "
1677 "filesystems found, one per line, like this:"
1681 #: ../cat/virt-filesystems.pod:37
1684 " $ virt-filesystems -a disk.img\n"
1686 " /dev/vg_guest/lv_root\n"
1689 " $ virt-filesystems -a disk.img\n"
1691 " /dev/vg_guest/lv_root\n"
1695 #: ../cat/virt-filesystems.pod:41
1697 "If you add I<-l> or I<--long> then the output includes extra information:"
1701 #: ../cat/virt-filesystems.pod:44
1704 " $ virt-filesystems -a disk.img -l\n"
1705 " Name Type VFS Label Size\n"
1706 " /dev/sda1 filesystem ext4 boot 524288000\n"
1707 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
1712 #: ../cat/virt-filesystems.pod:49
1714 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1719 #: ../cat/virt-filesystems.pod:52
1722 " $ virt-filesystems -a disk.img --extra\n"
1724 " /dev/vg_guest/lv_root\n"
1725 " /dev/vg_guest/lv_swap\n"
1726 " /dev/vg_guest/lv_data\n"
1729 " $ virt-filesystems -a disk.img --extra\n"
1731 " /dev/vg_guest/lv_root\n"
1732 " /dev/vg_guest/lv_swap\n"
1733 " /dev/vg_guest/lv_data\n"
1737 #: ../cat/virt-filesystems.pod:58
1739 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1743 #: ../cat/virt-filesystems.pod:60
1746 " $ virt-filesystems -a disk.img --partitions\n"
1751 " $ virt-filesystems -a disk.img --partitions\n"
1757 #: ../cat/virt-filesystems.pod:64
1759 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1760 "volumes>, I<--block-devices> to list those items."
1764 #: ../cat/virt-filesystems.pod:67
1766 "You can use these options in combination as well (if you want a combination "
1767 "including filesystems, you have to add I<--filesystems>). Notice that some "
1768 "items fall into several categories (eg. C</dev/sda1> might be both a "
1769 "partition and a filesystem). These items are listed several times. To get "
1770 "a list which includes absolutely everything that virt-filesystems knows "
1771 "about, use the I<--all> option."
1775 #: ../cat/virt-filesystems.pod:74
1777 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
1778 "uuid> option to display device and filesystem UUIDs in the long output."
1782 #: ../cat/virt-filesystems.pod:78
1784 "I<--all --long --uuid> is a useful combination to display all possible "
1785 "information about everything."
1789 #: ../cat/virt-filesystems.pod:81
1792 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1793 " Name Type VFS Label Size Parent UUID\n"
1794 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1795 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1796 " /dev/sda1 partition - - 100M /dev/sda -\n"
1797 " /dev/sda2 partition - - 20G /dev/sda -\n"
1798 " /dev/sda device - - 20G - -\n"
1803 #: ../cat/virt-filesystems.pod:89
1805 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1809 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1814 #: ../cat/virt-filesystems.pod:112
1816 "Display everything. This is currently the same as specifying these options: "
1817 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1818 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1819 "added to this list in future)."
1823 #: ../cat/virt-filesystems.pod:117
1824 msgid "See also I<--long>."
1825 msgstr "Див. також I<--long>."
1828 #: ../cat/virt-filesystems.pod:119
1829 msgid "B<--blkdevs>"
1830 msgstr "B<--blkdevs>"
1833 #: ../cat/virt-filesystems.pod:121
1834 msgid "B<--block-devices>"
1835 msgstr "B<--block-devices>"
1838 #: ../cat/virt-filesystems.pod:123
1839 msgid "Display block devices."
1840 msgstr "Показати список блокових пристроїв."
1843 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1848 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1850 "Write out the results in CSV format (comma-separated values). This format "
1851 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1852 "ABOUT CSV FORMAT> below."
1856 #: ../cat/virt-filesystems.pod:150
1858 "When prompting for keys and passphrases, virt-filesystems normally turns "
1859 "echoing off so you cannot see what you are typing. If you are not worried "
1860 "about Tempest attacks and there is no one else in the room you can specify "
1861 "this flag to see what you are typing."
1865 #: ../cat/virt-filesystems.pod:155
1870 #: ../cat/virt-filesystems.pod:157
1872 "This causes filesystems that are not ordinary, mountable filesystems to be "
1873 "displayed. This category includes swapspace, and filesystems that are empty "
1874 "or contain unknown data."
1878 #: ../cat/virt-filesystems.pod:161
1879 msgid "This option implies I<--filesystems>."
1883 #: ../cat/virt-filesystems.pod:163
1884 msgid "B<--filesystems>"
1885 msgstr "B<--filesystems>"
1888 #: ../cat/virt-filesystems.pod:165
1890 "Display mountable filesystems. If no display option was selected then this "
1891 "option is implied."
1895 #: ../cat/virt-filesystems.pod:168
1896 msgid "With I<--extra>, non-mountable filesystems are shown too."
1900 #: ../cat/virt-filesystems.pod:181
1903 " virt-filesystems --format=raw -a disk.img\n"
1906 " virt-filesystems --format=raw -a диск.img\n"
1910 #: ../cat/virt-filesystems.pod:185
1913 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1918 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1919 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1920 #: ../tools/virt-list-partitions.pl:109
1925 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1926 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1927 msgid "B<--human-readable>"
1928 msgstr "B<--human-readable>"
1931 #: ../cat/virt-filesystems.pod:198
1932 msgid "In I<--long> mode, display sizes in human-readable format."
1936 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1937 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1942 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1943 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1948 #: ../cat/virt-filesystems.pod:209
1949 msgid "Display extra columns of data (\"long format\")."
1953 #: ../cat/virt-filesystems.pod:211
1954 msgid "A title row is added unless you also specify I<--no-title>."
1958 #: ../cat/virt-filesystems.pod:213
1960 "The extra columns displayed depend on what output you select, and the "
1961 "ordering of columns may change in future versions. Use the title row, I<--"
1962 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1967 #: ../cat/virt-filesystems.pod:218
1969 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1970 "default is to show raw numbers of I<bytes>."
1974 #: ../cat/virt-filesystems.pod:221
1975 msgid "Use I<--uuid> to display UUIDs too."
1979 #: ../cat/virt-filesystems.pod:223
1984 #: ../cat/virt-filesystems.pod:225
1985 msgid "B<--logvols>"
1986 msgstr "B<--logvols>"
1989 #: ../cat/virt-filesystems.pod:227
1990 msgid "B<--logical-volumes>"
1991 msgstr "B<--logical-volumes>"
1994 #: ../cat/virt-filesystems.pod:229
1996 "Display LVM logical volumes. In this mode, these are displayed irrespective "
1997 "of whether the LVs contain filesystems."
2001 #: ../cat/virt-filesystems.pod:232
2002 msgid "B<--no-title>"
2003 msgstr "B<--no-title>"
2006 #: ../cat/virt-filesystems.pod:234
2007 msgid "In I<--long> mode, don't add a title row."
2011 #: ../cat/virt-filesystems.pod:236
2013 "Note that the order of the columns is not fixed, and may change in future "
2014 "versions of virt-filesystems, so using this option may give you unexpected "
2019 #: ../cat/virt-filesystems.pod:240
2024 #: ../cat/virt-filesystems.pod:242
2025 msgid "B<--partitions>"
2026 msgstr "B<--partitions>"
2029 #: ../cat/virt-filesystems.pod:244
2031 "Display partitions. In this mode, these are displayed irrespective of "
2032 "whether the partitions contain filesystems."
2036 #: ../cat/virt-filesystems.pod:247
2041 #: ../cat/virt-filesystems.pod:249
2042 msgid "B<--physvols>"
2043 msgstr "B<--physvols>"
2046 #: ../cat/virt-filesystems.pod:251
2047 msgid "B<--physical-volumes>"
2048 msgstr "B<--physical-volumes>"
2051 #: ../cat/virt-filesystems.pod:253
2052 msgid "Display LVM physical volumes."
2056 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
2061 #: ../cat/virt-filesystems.pod:257
2066 #: ../cat/virt-filesystems.pod:259
2067 msgid "In I<--long> mode, display UUIDs as well."
2071 #: ../cat/virt-filesystems.pod:273
2076 #: ../cat/virt-filesystems.pod:275
2077 msgid "B<--volgroups>"
2078 msgstr "B<--volgroups>"
2081 #: ../cat/virt-filesystems.pod:277
2082 msgid "B<--volume-groups>"
2083 msgstr "B<--volume-groups>"
2086 #: ../cat/virt-filesystems.pod:279
2087 msgid "Display LVM volume groups."
2091 #: ../cat/virt-filesystems.pod:287
2096 #: ../cat/virt-filesystems.pod:289
2098 "Note that columns in the output are subject to reordering and change in "
2099 "future versions of this tool."
2103 #: ../cat/virt-filesystems.pod:294
2108 #: ../cat/virt-filesystems.pod:296
2109 msgid "The filesystem, partition, block device or LVM name."
2113 #: ../cat/virt-filesystems.pod:298
2115 "For device and partition names these are displayed as canonical libguestfs "
2116 "names, so that for example C</dev/sda2> is the second partition on the first "
2121 #: ../cat/virt-filesystems.pod:302
2123 "If the I<--long> option is B<not> specified, then only the name column is "
2124 "shown in the output."
2128 #: ../cat/virt-filesystems.pod:305
2133 #: ../cat/virt-filesystems.pod:307
2134 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2138 #: ../cat/virt-filesystems.pod:309
2143 #: ../cat/virt-filesystems.pod:311
2145 "If there is a filesystem, then this column displays the filesystem type if "
2146 "one could be detected, eg. C<ext4>."
2150 #: ../cat/virt-filesystems.pod:314
2155 #: ../cat/virt-filesystems.pod:316
2157 "If the object has a label (used for identifying and mounting filesystems) "
2158 "then this column contains the label."
2162 #: ../cat/virt-filesystems.pod:319
2167 #: ../cat/virt-filesystems.pod:321
2169 "The partition type byte, displayed as a two digit hexadecimal number. A "
2170 "comprehensive list of partition types can be found here: L<http://www.win."
2171 "tue.nl/~aeb/partitions/partition_types-1.html>"
2175 #: ../cat/virt-filesystems.pod:325
2176 msgid "This is only applicable for DOS (MBR) partitions."
2180 #: ../cat/virt-filesystems.pod:327
2185 #: ../cat/virt-filesystems.pod:329
2187 "The size of the object in bytes. If the I<--human> option is used then the "
2188 "size is displayed in a human-readable form."
2192 #: ../cat/virt-filesystems.pod:332
2197 #: ../cat/virt-filesystems.pod:334
2199 "The parent column records the parent relationship between objects. For "
2200 "example, if the object is a partition, then this column contains the name of "
2201 "the containing device. If the object is a logical volume, then this column "
2202 "is the name of the volume group."
2206 #: ../cat/virt-filesystems.pod:339
2211 #: ../cat/virt-filesystems.pod:341
2213 "If the object has a UUID (used for identifying and mounting filesystems and "
2214 "block devices) then this column contains the UUID as a string."
2218 #: ../cat/virt-filesystems.pod:345
2219 msgid "The UUID is only displayed if the I<--uuid> option is given."
2223 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2224 #: ../df/virt-df.pod:191
2225 msgid "NOTE ABOUT CSV FORMAT"
2229 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2230 #: ../df/virt-df.pod:193
2232 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
2233 "should be easy to parse, but it is definitely not easy to parse."
2237 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2238 #: ../df/virt-df.pod:196
2240 "Myth: Just split fields at commas. Reality: This does I<not> work "
2241 "reliably. This example has two columns:"
2245 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2246 #: ../df/virt-df.pod:199
2249 " \"foo,bar\",baz\n"
2254 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2255 #: ../df/virt-df.pod:201
2257 "Myth: Read the file one line at a time. Reality: This does I<not> work "
2258 "reliably. This example has one row:"
2262 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2263 #: ../df/virt-df.pod:204
2272 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2273 #: ../df/virt-df.pod:207
2275 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2276 "packaged in major Linux distributions)."
2280 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2281 #: ../df/virt-df.pod:210
2283 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2284 "or Python's built-in csv library)."
2288 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2289 #: ../df/virt-df.pod:213
2290 msgid "Most spreadsheets and databases can import CSV directly."
2294 #: ../cat/virt-filesystems.pod:387
2296 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2297 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2300 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2301 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2305 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2306 msgid "Copyright (C) 2010 Red Hat Inc."
2307 msgstr "©Red Hat Inc., 2010"
2310 #: ../cat/virt-ls.pod:5
2311 msgid "virt-ls - List files in a virtual machine"
2315 #: ../cat/virt-ls.pod:9
2318 " virt-ls [--options] -d domname directory [directory ...]\n"
2323 #: ../cat/virt-ls.pod:11
2326 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2331 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:15
2333 msgstr "Старий стиль:"
2336 #: ../cat/virt-ls.pod:15
2339 " virt-ls [--options] domname directory\n"
2344 #: ../cat/virt-ls.pod:17
2347 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2352 #: ../cat/virt-ls.pod:21
2354 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2355 "more from a virtual machine or disk image."
2359 #: ../cat/virt-ls.pod:24
2361 "Multiple directory names can be given, in which case the output from each is "
2366 #: ../cat/virt-ls.pod:27
2368 "To list directories from a libvirt guest use the I<-d> option to specify the "
2369 "name of the guest. For a disk image, use the I<-a> option."
2373 #: ../cat/virt-ls.pod:31
2375 "C<virt-ls> can do many simple file listings. For more complicated cases you "
2376 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2381 #: ../cat/virt-ls.pod:37
2382 msgid "Get a list of all files and directories in a virtual machine:"
2386 #: ../cat/virt-ls.pod:39
2389 " virt-ls -R -d guest /\n"
2394 #: ../cat/virt-ls.pod:41
2395 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2399 #: ../cat/virt-ls.pod:43
2402 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2407 #: ../cat/virt-ls.pod:45
2408 msgid "List all public-writable directories in a Linux virtual machine:"
2412 #: ../cat/virt-ls.pod:47
2415 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2420 #: ../cat/virt-ls.pod:49
2421 msgid "List all Unix domain sockets in a Linux virtual machine:"
2425 #: ../cat/virt-ls.pod:51
2428 " virt-ls -lR -d guest / | grep '^s'\n"
2433 #: ../cat/virt-ls.pod:53
2434 msgid "List all regular files with filenames ending in '.png':"
2438 #: ../cat/virt-ls.pod:55
2441 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2446 #: ../cat/virt-ls.pod:57
2447 msgid "To display files larger than 10MB in home directories:"
2451 #: ../cat/virt-ls.pod:59
2454 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2459 #: ../cat/virt-ls.pod:61
2460 msgid "Find everything modified in the last 7 days:"
2464 #: ../cat/virt-ls.pod:63
2467 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2472 #: ../cat/virt-ls.pod:65
2473 msgid "Find regular files modified in the last 24 hours:"
2477 #: ../cat/virt-ls.pod:67
2480 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2485 #: ../cat/virt-ls.pod:69
2486 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2490 #: ../cat/virt-ls.pod:71
2492 "Find the differences between files in a guest and an earlier snapshot of the "
2497 #: ../cat/virt-ls.pod:74
2500 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2501 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2502 " diff -u old new | less\n"
2507 #: ../cat/virt-ls.pod:78
2509 "The commands above won't find files where the content has changed but the "
2510 "metadata (eg. file size and modification date) is the same. To do that, you "
2511 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
2512 "checksum> can be quite slow since it has to read and compute a checksum of "
2513 "every regular file in the virtual machine."
2517 #: ../cat/virt-ls.pod:84
2518 msgid "OUTPUT MODES"
2519 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2522 #: ../cat/virt-ls.pod:86
2524 "C<virt-ls> has four output modes, controlled by different combinations of "
2525 "the I<-l> and I<-R> options."
2529 #: ../cat/virt-ls.pod:89
2530 msgid "SIMPLE LISTING"
2531 msgstr "ПРОСТИЙ СПИСОК"
2534 #: ../cat/virt-ls.pod:91
2535 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2539 #: ../cat/virt-ls.pod:93
2542 " $ virt-ls -d guest /\n"
2548 " $ virt-ls -d guest /\n"
2555 #: ../cat/virt-ls.pod:98
2556 msgid "LONG LISTING"
2557 msgstr "ДОВГИЙ СПИСОК"
2560 #: ../cat/virt-ls.pod:100
2562 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2563 "(more specifically, like the C<guestfs_ll> function)."
2567 #: ../cat/virt-ls.pod:103
2570 " $ virt-ls -l -d guest /\n"
2572 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2573 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2577 " $ virt-ls -l -d guest /\n"
2579 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2580 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2585 #: ../cat/virt-ls.pod:109
2587 "Note that while this is useful for displaying a directory, do not try "
2588 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
2593 #: ../cat/virt-ls.pod:113
2594 msgid "RECURSIVE LISTING"
2595 msgstr "РЕКУРСИВНИЙ СПИСОК"
2598 #: ../cat/virt-ls.pod:115
2600 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2601 "and directories recursively:"
2605 #: ../cat/virt-ls.pod:118
2608 " $ virt-ls -R -d guest /tmp\n"
2614 " $ virt-ls -R -d guest /tmp\n"
2621 #: ../cat/virt-ls.pod:123
2623 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2624 "converts C<\\0> characters to C<\\n>."
2628 #: ../cat/virt-ls.pod:126
2629 msgid "RECURSIVE LONG LISTING"
2630 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2633 #: ../cat/virt-ls.pod:128
2635 "Using I<-lR> options together changes the output to display directories "
2636 "recursively, with file stats, and optionally other features such as "
2637 "checksums and extended attributes."
2641 #: ../cat/virt-ls.pod:132
2643 "Most of the interesting features of C<virt-ls> are only available when using "
2648 #: ../cat/virt-ls.pod:135
2650 "The fields are normally space-separated. Filenames are B<not> quoted, so "
2651 "you cannot use the output in another program (because filenames can contain "
2652 "spaces and other unsafe characters). If the guest was untrusted and someone "
2653 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2654 "on you by creating filenames with embedded newline characters. To B<safely> "
2655 "parse the output in another program, use the I<--csv> (Comma-Separated "
2660 #: ../cat/virt-ls.pod:143
2662 "Note that this output format is completely unrelated to the C<ls -lR> "
2667 #: ../cat/virt-ls.pod:146
2670 " $ virt-ls -lR -d guest /bin\n"
2671 " d 0555 4096 /bin\n"
2672 " - 0755 123 /bin/alsaunmute\n"
2673 " - 0755 28328 /bin/arch\n"
2674 " l 0777 4 /bin/awk -> gawk\n"
2675 " - 0755 27216 /bin/basename\n"
2676 " - 0755 943360 /bin/bash\n"
2680 " $ virt-ls -lR -d guest /bin\n"
2681 " d 0555 4096 /bin\n"
2682 " - 0755 123 /bin/alsaunmute\n"
2683 " - 0755 28328 /bin/arch\n"
2684 " l 0777 4 /bin/awk -> gawk\n"
2685 " - 0755 27216 /bin/basename\n"
2686 " - 0755 943360 /bin/bash\n"
2691 #: ../cat/virt-ls.pod:155
2692 msgid "These basic fields are always shown:"
2696 #: ../cat/virt-ls.pod:159
2701 #: ../cat/virt-ls.pod:161
2703 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2704 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2705 "link), C<s> (socket) or C<u> (unknown)."
2709 #: ../cat/virt-ls.pod:171
2711 msgstr "права доступу"
2714 #: ../cat/virt-ls.pod:173
2715 msgid "The Unix permissions, displayed as a 4 digit octal number."
2719 #: ../cat/virt-ls.pod:175
2724 #: ../cat/virt-ls.pod:177
2726 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2727 "readable> option is given, in which case this is shown as a human-readable "
2732 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4477
2737 #: ../cat/virt-ls.pod:183
2738 msgid "The full path of the file or directory."
2742 #: ../cat/virt-ls.pod:185
2747 #: ../cat/virt-ls.pod:187
2748 msgid "For symbolic links only, the link target."
2752 #: ../cat/virt-ls.pod:191
2754 "In I<-lR> mode, additional command line options enable the display of more "
2759 #: ../cat/virt-ls.pod:194
2761 "With the I<--uids> flag, these additional fields are displayed before the "
2766 #: ../cat/virt-ls.pod:199
2771 #: ../cat/virt-ls.pod:201
2776 #: ../cat/virt-ls.pod:203
2778 "The UID and GID of the owner of the file (displayed numerically). Note "
2779 "these only make sense in the context of a Unix-like guest."
2783 #: ../cat/virt-ls.pod:208
2784 msgid "With the I<--times> flag, these additional fields are displayed:"
2788 #: ../cat/virt-ls.pod:212
2793 #: ../cat/virt-ls.pod:214
2794 msgid "The time of last access."
2795 msgstr "Час останнього доступу."
2798 #: ../cat/virt-ls.pod:216
2803 #: ../cat/virt-ls.pod:218
2804 msgid "The time of last modification."
2805 msgstr "Час останнього внесення змін."
2808 #: ../cat/virt-ls.pod:220
2813 #: ../cat/virt-ls.pod:222
2814 msgid "The time of last status change."
2815 msgstr "Час останньої зміни стану."
2818 #: ../cat/virt-ls.pod:226
2820 "The time fields are displayed as string dates and times, unless one of the "
2821 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2825 #: ../cat/virt-ls.pod:229
2826 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2830 #: ../cat/virt-ls.pod:233
2835 #: ../cat/virt-ls.pod:235
2837 "The device containing the file (displayed as major:minor). This may not "
2838 "match devices as known to the guest."
2842 #: ../cat/virt-ls.pod:238
2847 #: ../cat/virt-ls.pod:240
2848 msgid "The inode number."
2852 #: ../cat/virt-ls.pod:242
2857 #: ../cat/virt-ls.pod:244
2858 msgid "The number of hard links."
2859 msgstr "Кількість жорстких посилань."
2862 #: ../cat/virt-ls.pod:246
2867 #: ../cat/virt-ls.pod:248
2869 "For block and char special files, the device (displayed as major:minor)."
2873 #: ../cat/virt-ls.pod:251
2878 #: ../cat/virt-ls.pod:253
2879 msgid "The number of 512 byte blocks allocated to the file."
2883 #: ../cat/virt-ls.pod:257
2885 "With the I<--checksum> flag, the checksum of the file contents is shown "
2886 "(only for regular files). Computing file checksums can take a considerable "
2891 #: ../cat/virt-ls.pod:280
2892 msgid "B<--checksum>"
2893 msgstr "B<--checksum>"
2896 #: ../cat/virt-ls.pod:282
2897 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2898 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2901 #: ../cat/virt-ls.pod:284
2903 "Display checksum over file contents for regular files. With no argument, "
2904 "this defaults to using I<md5>. Using an argument, you can select the "
2905 "checksum type to use."
2909 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2910 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2911 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2913 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2918 #: ../cat/virt-ls.pod:316
2920 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2921 "so you cannot see what you are typing. If you are not worried about Tempest "
2922 "attacks and there is no one else in the room you can specify this flag to "
2923 "see what you are typing."
2927 #: ../cat/virt-ls.pod:321
2928 msgid "B<--extra-stats>"
2929 msgstr "B<--extra-stats>"
2932 #: ../cat/virt-ls.pod:323
2933 msgid "Display extra stats."
2934 msgstr "Показати додаткові дані."
2937 #: ../cat/virt-ls.pod:339
2940 " virt-ls --format=raw -a disk.img /dir\n"
2945 #: ../cat/virt-ls.pod:343
2948 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2953 #: ../cat/virt-ls.pod:356
2954 msgid "Display file sizes in human-readable format."
2958 #: ../cat/virt-ls.pod:370
2963 #: ../cat/virt-ls.pod:372
2964 msgid "B<--recursive>"
2965 msgstr "B<--recursive>"
2968 #: ../cat/virt-ls.pod:374
2970 "Select the mode. With neither of these options, C<virt-ls> produces a "
2971 "simple, flat list of the files in the named directory. See L</SIMPLE "
2976 #: ../cat/virt-ls.pod:378
2978 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
2983 #: ../cat/virt-ls.pod:381
2985 "C<virt-ls -R> produces a recursive list of files starting at the named "
2986 "directory. See L</RECURSIVE LISTING>."
2990 #: ../cat/virt-ls.pod:384
2992 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2993 "parsed. See L</RECURSIVE LONG LISTING>."
2997 #: ../cat/virt-ls.pod:387
3002 #: ../cat/virt-ls.pod:389
3003 msgid "Display time fields."
3007 #: ../cat/virt-ls.pod:394
3008 msgid "B<--time-days>"
3009 msgstr "B<--time-days>"
3012 #: ../cat/virt-ls.pod:396
3013 msgid "Display time fields as days before now (negative if in the future)."
3017 #: ../cat/virt-ls.pod:398
3019 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
3020 "of the file is between 0 and 86399 seconds."
3024 #: ../cat/virt-ls.pod:404
3025 msgid "B<--time-relative>"
3026 msgstr "B<--time-relative>"
3029 #: ../cat/virt-ls.pod:406
3030 msgid "Display time fields as seconds before now (negative if in the future)."
3034 #: ../cat/virt-ls.pod:411
3036 msgstr "B<--time-t>"
3039 #: ../cat/virt-ls.pod:413
3040 msgid "Display time fields as seconds since the Unix epoch."
3044 #: ../cat/virt-ls.pod:418
3049 #: ../cat/virt-ls.pod:420
3050 msgid "Display UID and GID fields."
3054 #: ../cat/virt-ls.pod:445
3055 msgid "Previous versions of virt-ls allowed you to write either:"
3059 #: ../cat/virt-ls.pod:447
3062 " virt-ls disk.img [disk.img ...] /dir\n"
3067 #: ../cat/virt-ls.pod:451
3070 " virt-ls guestname /dir\n"
3075 #: ../cat/virt-ls.pod:497
3077 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3078 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3079 "L<http://libguestfs.org/>."
3081 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3082 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3083 "L<http://libguestfs.org/>."
3086 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
3087 #: ../rescue/virt-rescue.pod:340
3088 msgid "Copyright (C) 2009-2011 Red Hat Inc."
3089 msgstr "©Red Hat Inc., 2009–2011"
3092 #: ../clone/virt-sysprep.pod:5
3094 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3098 #: ../clone/virt-sysprep.pod:9
3101 " virt-sysprep [--options] -d domname\n"
3106 #: ../clone/virt-sysprep.pod:11
3109 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3114 #: ../clone/virt-sysprep.pod:15
3116 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3117 "can be made from it. Steps in this process include removing SSH host keys, "
3118 "removing persistent network MAC configuration, and removing user accounts. "
3119 "Each step can be enabled or disabled as required."
3123 #: ../clone/virt-sysprep.pod:21
3125 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3126 "customization by the system administrator."
3130 #: ../clone/virt-sysprep.pod:24
3132 "Virt-sysprep modifies the guest or disk image I<in place>. The guest must "
3133 "be shut down. If you want to preserve the existing contents of the guest, "
3134 "you I<must copy or clone the disk first>. See L</COPYING AND CLONING> below."
3138 #: ../clone/virt-sysprep.pod:29
3140 "You do I<not> need to run virt-sysprep as root. In fact we'd generally "
3141 "recommend that you don't. The time you might want to run it as root is when "
3142 "you need root in order to access the disk image, but even in this case it "
3143 "would be better to change the permissions on the disk image to be writable "
3144 "as the non-root user running virt-sysprep."
3148 #: ../clone/virt-sysprep.pod:35
3150 "\"Sysprep\" stands for \"system preparation\" tool. The name comes from the "
3151 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3152 "machines in preparation for cloning them. Having said that, virt-sysprep "
3153 "does I<not> currently work on Microsoft Windows guests. We plan to support "
3154 "Windows sysprepping in a future version, and we already have code to do it."
3158 #: ../clone/virt-sysprep.pod:76
3159 msgid "B<--enable=...>"
3163 #: ../clone/virt-sysprep.pod:78
3165 "Choose which sysprep operations to perform. Give a comma-separated list of "
3166 "operations, for example:"
3170 #: ../clone/virt-sysprep.pod:81
3173 " --enable=ssh-hostkeys,udev-persistent-net\n"
3178 #: ../clone/virt-sysprep.pod:83
3180 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3184 #: ../clone/virt-sysprep.pod:85
3186 "If the I<--enable> option is not given, then we default to trying all "
3187 "possible sysprep operations. But some sysprep operations are skipped for "
3192 #: ../clone/virt-sysprep.pod:89
3194 "Use I<--list-operations> to list operations supported by a particular "
3195 "version of virt-sysprep."
3199 #: ../clone/virt-sysprep.pod:92
3201 "See L</OPERATIONS> below for a list and an explanation of each operation."
3205 #: ../clone/virt-sysprep.pod:106
3208 " virt-sysprep --format=raw -a disk.img\n"
3213 #: ../clone/virt-sysprep.pod:110
3216 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3221 #: ../clone/virt-sysprep.pod:119
3222 msgid "B<--hostname> newhostname"
3226 #: ../clone/virt-sysprep.pod:121
3228 "Change the hostname. See the L</hostname> operation below. If not given, "
3229 "defaults to C<localhost.localdomain>."
3233 #: ../clone/virt-sysprep.pod:124
3234 msgid "B<--list-operations>"
3238 #: ../clone/virt-sysprep.pod:126
3239 msgid "List the operations supported by the virt-sysprep program."
3243 #: ../clone/virt-sysprep.pod:128
3244 msgid "B<--selinux-relabel>"
3248 #: ../clone/virt-sysprep.pod:130
3249 msgid "B<--no-selinux-relabel>"
3253 #: ../clone/virt-sysprep.pod:132
3255 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots. "
3256 "I<--no-selinux-relabel> disables relabelling."
3260 #: ../clone/virt-sysprep.pod:135
3262 "The default is to try to detect if SELinux relabelling is required. See L</"
3263 "SELINUX RELABELLING> below for more details."
3267 #: ../clone/virt-sysprep.pod:156
3272 #: ../clone/virt-sysprep.pod:158
3274 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3275 "enabled>, although some are skipped depending on the type of guest."
3279 #: ../clone/virt-sysprep.pod:162
3281 "Operations can be individually enabled using the I<--enable> option. Use a "
3282 "comma-separated list, for example:"
3286 #: ../clone/virt-sysprep.pod:165
3289 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3294 #: ../clone/virt-sysprep.pod:167
3296 "To list the operations supported by the current version of virt-sysprep, use "
3297 "I<--list-operations>."
3301 #: ../clone/virt-sysprep.pod:170
3303 "Future versions of virt-sysprep may add more operations. If you are using "
3304 "virt-sysprep and want predictable behaviour, specify only the operations "
3305 "that you want to have enabled."
3309 #: ../clone/virt-sysprep.pod:174
3314 #: ../clone/virt-sysprep.pod:176
3315 msgid "Remove user at-jobs and cron-jobs."
3319 #: ../clone/virt-sysprep.pod:178
3320 msgid "dhcp-client-state"
3324 #: ../clone/virt-sysprep.pod:180
3325 msgid "Remove DHCP client leases."
3329 #: ../clone/virt-sysprep.pod:182
3330 msgid "dhcp-server-state"
3334 #: ../clone/virt-sysprep.pod:184
3335 msgid "Remove DHCP server leases."
3339 #: ../clone/virt-sysprep.pod:186
3344 #: ../clone/virt-sysprep.pod:188
3346 "Changes the hostname of the guest to the value given in the I<--hostname> "
3351 #: ../clone/virt-sysprep.pod:191
3353 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3354 "C<localhost.localdomain>."
3358 #: ../clone/virt-sysprep.pod:194
3363 #: ../clone/virt-sysprep.pod:196
3364 msgid "Remove many log files."
3368 #: ../clone/virt-sysprep.pod:198
3373 #: ../clone/virt-sysprep.pod:200
3374 msgid "Remove email from the local mail spool directory."
3378 #: ../clone/virt-sysprep.pod:202
3383 #: ../clone/virt-sysprep.pod:204
3385 "Remove HWADDR (hard-coded MAC address) configuration. For Fedora and Red "
3386 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3390 #: ../clone/virt-sysprep.pod:207
3395 #: ../clone/virt-sysprep.pod:209
3397 "Write some random bytes from the host into the random seed file of the guest."
3401 #: ../clone/virt-sysprep.pod:212
3402 msgid "See L</RANDOM SEED> below."
3406 #: ../clone/virt-sysprep.pod:214
3407 msgid "rhn-systemid"
3411 #: ../clone/virt-sysprep.pod:216
3412 msgid "Remove the RHN system ID."
3416 #: ../clone/virt-sysprep.pod:218
3421 #: ../clone/virt-sysprep.pod:220
3422 msgid "Remove the Smolt hardware UUID."
3426 #: ../clone/virt-sysprep.pod:222
3427 msgid "ssh-hostkeys"
3431 #: ../clone/virt-sysprep.pod:224
3432 msgid "Remove the SSH host keys in the guest."
3436 #: ../clone/virt-sysprep.pod:226
3438 "The SSH host keys are regenerated (differently) next time the guest is "
3443 #: ../clone/virt-sysprep.pod:229
3445 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3446 "stark warning about the host key changing:"
3450 #: ../clone/virt-sysprep.pod:232
3453 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3454 " @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\n"
3455 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3456 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3461 #: ../clone/virt-sysprep.pod:237
3462 msgid "udev-persistent-net"
3466 #: ../clone/virt-sysprep.pod:239
3468 "Remove udev persistent net rules which map the guest's existing MAC address "
3469 "to a fixed ethernet device (eg. eth0)."
3473 #: ../clone/virt-sysprep.pod:242
3475 "After a guest is cloned, the MAC address usually changes. Since the old MAC "
3476 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3477 "is assigned to a new name (eg. eth1) and this is usually undesirable. "
3478 "Erasing the udev persistent net rules avoids this."
3482 #: ../clone/virt-sysprep.pod:247
3487 #: ../clone/virt-sysprep.pod:249
3488 msgid "Remove the utmp file."
3492 #: ../clone/virt-sysprep.pod:251
3494 "This records who is currently logged in on a machine. In modern Linux "
3495 "distros it is stored in a ramdisk and hence not part of the virtual "
3496 "machine's disk, but it was stored on disk in older distros."
3500 #: ../clone/virt-sysprep.pod:255
3505 #: ../clone/virt-sysprep.pod:257
3506 msgid "Remove the yum UUID."
3510 #: ../clone/virt-sysprep.pod:259
3512 "Yum creates a fresh UUID the next time it runs when it notices that the "
3513 "original UUID has been erased."
3517 #: ../clone/virt-sysprep.pod:262
3518 msgid "COPYING AND CLONING"
3522 #: ../clone/virt-sysprep.pod:264
3524 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3525 "prepare a template from which guests can be cloned. There are many "
3526 "different ways to achieve this using the virt tools, and this section is "
3527 "just an introduction."
3531 #: ../clone/virt-sysprep.pod:269
3532 msgid "A virtual machine (when switched off) consists of two parts:"
3536 #: ../clone/virt-sysprep.pod:273
3537 msgid "I<configuration>"
3541 #: ../clone/virt-sysprep.pod:275
3543 "The configuration or description of the guest. eg. The libvirt XML (see "
3544 "C<virsh dumpxml>), the running configuration of the guest, or another "
3545 "external format like OVF."
3549 #: ../clone/virt-sysprep.pod:279
3550 msgid "Some configuration items that might need to be changed:"
3554 #: ../clone/virt-sysprep.pod:285
3559 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3564 #: ../clone/virt-sysprep.pod:293
3565 msgid "path to block device(s)"
3569 #: ../clone/virt-sysprep.pod:297
3570 msgid "network card MAC address"
3574 #: ../clone/virt-sysprep.pod:301
3575 msgid "I<block device(s)>"
3579 #: ../clone/virt-sysprep.pod:303
3581 "One or more hard disk images, themselves containing files, directories, "
3582 "applications, kernels, configuration, etc."
3586 #: ../clone/virt-sysprep.pod:306
3587 msgid "Some things inside the block devices that might need to be changed:"
3591 #: ../clone/virt-sysprep.pod:312
3592 msgid "hostname and other net configuration"
3596 #: ../clone/virt-sysprep.pod:320
3597 msgid "SSH host keys"
3601 #: ../clone/virt-sysprep.pod:324
3602 msgid "Windows unique security ID (SID)"
3606 #: ../clone/virt-sysprep.pod:328
3607 msgid "Puppet registration"
3611 #: ../clone/virt-sysprep.pod:334
3612 msgid "COPYING THE BLOCK DEVICE"
3616 #: ../clone/virt-sysprep.pod:336
3618 "Starting with an original guest, you probably wish to copy the guest block "
3619 "device and its configuration to make a template. Then once you are happy "
3620 "with the template, you will want to make many clones from it."
3624 #: ../clone/virt-sysprep.pod:341
3630 " original guest --------> template ---------->\n"
3631 " \\------> cloned\n"
3632 " \\-----> guests\n"
3638 #: ../clone/virt-sysprep.pod:349
3640 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3645 #: ../clone/virt-sysprep.pod:352
3649 " original guest --------> template ---------->\n"
3650 " \\------> cloned\n"
3651 " \\-----> guests\n"
3657 #: ../clone/virt-sysprep.pod:358
3658 msgid "There are some smarter (and faster) ways too:"
3662 #: ../clone/virt-sysprep.pod:364
3666 " template ---------->\n"
3667 " \\------> cloned\n"
3668 " \\-----> guests\n"
3674 #: ../clone/virt-sysprep.pod:370
3676 "Use the block device as a backing file and create a snapshot on top for each "
3677 "guest. The advantage is that you don't need to copy the block device (very "
3678 "fast) and only changes are stored (less storage required)."
3682 #: ../clone/virt-sysprep.pod:375
3684 "Note that writing to the backing file once you have created guests on top of "
3685 "it is not possible: you will corrupt the guests."
3689 #: ../clone/virt-sysprep.pod:378
3691 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3692 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option). Some "
3693 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3694 "also create cheap snapshots from files or LUNs."
3698 #: ../clone/virt-sysprep.pod:386
3699 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3703 #: ../clone/virt-sysprep.pod:390
3704 msgid "Prepare your template using L<virt-sparsify(1)>. See below."
3708 #: ../clone/virt-sysprep.pod:394
3713 #: ../clone/virt-sysprep.pod:396
3715 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3716 "and/or modify the external libvirt configuration of a guest. It will reset "
3717 "the name, UUID and MAC address of the guest in the libvirt XML."
3721 #: ../clone/virt-sysprep.pod:401
3723 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3724 "image. This was the original motivation to write virt-sysprep."
3728 #: ../clone/virt-sysprep.pod:404
3733 #: ../clone/virt-sysprep.pod:406
3737 " original guest --------> template\n"
3742 #: ../clone/virt-sysprep.pod:409
3744 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3745 "it easier to compress and/or faster to copy."
3749 #: ../clone/virt-sysprep.pod:412
3751 "Notice that since virt-sparsify also copies the image, you can use it to "
3752 "make the initial copy (instead of C<dd>)."
3756 #: ../clone/virt-sysprep.pod:415
3761 #: ../clone/virt-sysprep.pod:417
3765 " template ---------->\n"
3766 " \\------> cloned\n"
3767 " \\-----> guests\n"
3773 #: ../clone/virt-sysprep.pod:423
3775 "If you want to give people cloned guests, but let them pick the size of the "
3776 "guest themselves (eg. depending on how much they are prepared to pay for "
3777 "disk space), then instead of copying the template, you can run L<virt-resize"
3778 "(1)>. Virt-resize performs a copy and resize, and thus is ideal for cloning "
3779 "guests from a template."
3783 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3788 #: ../clone/virt-sysprep.pod:431
3790 "Although virt-sysprep removes some sensitive information from the guest, it "
3791 "does not pretend to remove all of it. You should examine the L</OPERATIONS> "
3792 "above, and the implementation of the operations in the shell script. You "
3793 "should also examine the guest afterwards."
3797 #: ../clone/virt-sysprep.pod:436
3799 "Sensitive files are simply removed. The data they contained may still exist "
3800 "on the disk, easily recovered with a hex editor or undelete tool. Use "
3801 "L<virt-sparsify(1)> as one way to remove this content. See also the L<scrub"
3802 "(1)> command to get rid of deleted content in directory entries and inodes."
3806 #: ../clone/virt-sysprep.pod:442
3811 #: ../clone/virt-sysprep.pod:444
3812 msgid "I<(This section applies to Linux guests only)>"
3816 #: ../clone/virt-sysprep.pod:446
3818 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3819 "from the host into the guest's random seed file."
3823 #: ../clone/virt-sysprep.pod:449
3825 "If this is just done once and the guest is cloned from the same template, "
3826 "then each guest will start with the same entropy, and things like SSH host "
3827 "keys and TCP sequence numbers may be predictable."
3831 #: ../clone/virt-sysprep.pod:453
3833 "Therefore you should arrange to add more randomness I<after> cloning from a "
3834 "template too, which can be done by just enabling the C<random-seed> "
3839 #: ../clone/virt-sysprep.pod:457
3842 " cp template.img newguest.img\n"
3843 " virt-sysprep --enable=random-seed -a newguest.img\n"
3848 #: ../clone/virt-sysprep.pod:460
3849 msgid "SELINUX RELABELLING"
3853 #: ../clone/virt-sysprep.pod:462
3854 msgid "I<(This section applies to Linux guests using SELinux only)>"
3858 #: ../clone/virt-sysprep.pod:464
3860 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3861 "autorelabel> so that these will be correctly labelled by SELinux the next "
3862 "time the guest is booted. This process interrupts boot and can take some "
3867 #: ../clone/virt-sysprep.pod:469
3869 "You can force relabelling for all guests by supplying the I<--selinux-"
3874 #: ../clone/virt-sysprep.pod:472
3876 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3881 #: ../clone/virt-sysprep.pod:484
3882 msgid "This program returns 0 on success, or 1 if there was an error."
3886 #: ../clone/virt-sysprep.pod:488
3888 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3889 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3890 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3894 #: ../df/virt-df.pod:5
3895 msgid "virt-df - Display free space on virtual filesystems"
3899 #: ../df/virt-df.pod:9
3902 " virt-df [--options]\n"
3905 " virt-df [--параметри]\n"
3909 #: ../df/virt-df.pod:11
3912 " virt-df [--options] -d domname\n"
3917 #: ../df/virt-df.pod:13
3920 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3925 #: ../df/virt-df.pod:17
3928 " virt-df [--options] domname\n"
3933 #: ../df/virt-df.pod:19
3936 " virt-df [--options] disk.img [disk.img ...]\n"
3941 #: ../df/virt-df.pod:23
3943 "C<virt-df> is a command line tool to display free space on virtual machine "
3944 "filesystems. Unlike other tools, it doesn't just display the size of disk "
3945 "allocated to a virtual machine, but can look inside disk images to see how "
3946 "much space is really being used."
3950 #: ../df/virt-df.pod:28
3952 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3953 "to get a list of all active and inactive guests, and performs a C<df>-type "
3954 "operation on each one in turn, printing out the results."
3958 #: ../df/virt-df.pod:32
3960 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3961 "type operation on either the single named libvirt domain, or on the disk "
3962 "image(s) listed on the command line (which must all belong to a single VM). "
3963 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3964 "guest>. If you want to run on multiple guests, then you have to invoke "
3965 "C<virt-df> multiple times."
3969 #: ../df/virt-df.pod:39
3971 "Use the I<--csv> option to get a format which can be easily parsed by other "
3972 "programs. Other options are similar to the standard L<df(1)> command."
3976 #: ../df/virt-df.pod:45
3978 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
3979 "output human-readable:"
3983 #: ../df/virt-df.pod:48
3986 " # virt-df -d F14x64 -h\n"
3987 " Filesystem Size Used Available Use%\n"
3988 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
3989 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
3994 #: ../df/virt-df.pod:53
3995 msgid "Show disk usage for a disk image file called C<test.img>:"
3999 #: ../df/virt-df.pod:55
4002 " $ virt-df -a test1.img\n"
4003 " Filesystem 1K-blocks Used Available Use%\n"
4004 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
4009 #: ../df/virt-df.pod:112
4012 " virt-df --format=raw -a disk.img\n"
4017 #: ../df/virt-df.pod:116
4020 " virt-df --format=raw -a disk.img --format -a another.img\n"
4025 #: ../df/virt-df.pod:129
4026 msgid "Print sizes in human-readable format."
4030 #: ../df/virt-df.pod:131
4031 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
4035 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
4040 #: ../df/virt-df.pod:135
4042 msgstr "B<--inodes>"
4045 #: ../df/virt-df.pod:137
4046 msgid "Print inodes instead of blocks."
4050 #: ../df/virt-df.pod:139
4051 msgid "B<--one-per-guest>"
4052 msgstr "B<--one-per-guest>"
4055 #: ../df/virt-df.pod:141
4057 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
4058 "disks from several guests to a single libguestfs appliance."
4062 #: ../df/virt-df.pod:144
4063 msgid "You might use this option in the following circumstances:"
4067 #: ../df/virt-df.pod:150
4069 "If you think an untrusted guest might actively try to exploit the libguestfs "
4070 "appliance kernel, then this prevents one guest from interfering with the "
4071 "stats printed for another guest."
4075 #: ../df/virt-df.pod:156
4077 "If the kernel has a bug which stops it from accessing a filesystem in one "
4078 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
4079 "and report stats for further guests."
4083 #: ../df/virt-df.pod:165
4085 "Print UUIDs instead of names. This is useful for following a guest even "
4086 "when the guest is migrated or renamed, or when two guests happen to have the "
4091 #: ../df/virt-df.pod:169
4093 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
4094 "images, we still print the disk image name even when this option is "
4099 #: ../df/virt-df.pod:229
4101 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4106 #: ../edit/virt-edit.pod:5
4107 msgid "virt-edit - Edit a file in a virtual machine"
4111 #: ../edit/virt-edit.pod:9
4114 " virt-edit [--options] -d domname file [file ...]\n"
4119 #: ../edit/virt-edit.pod:11
4122 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4127 #: ../edit/virt-edit.pod:13
4130 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4135 #: ../edit/virt-edit.pod:17
4138 " virt-edit domname file\n"
4143 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4146 " virt-edit disk.img [disk.img ...] file\n"
4151 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4152 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4153 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:21
4154 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4156 msgstr "ПОПЕРЕДЖЕННЯ"
4159 #: ../edit/virt-edit.pod:23
4161 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
4162 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
4163 "doing this, but doesn't catch all cases."
4167 #: ../edit/virt-edit.pod:29
4169 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4170 "exists in the named virtual machine (or disk image)."
4174 #: ../edit/virt-edit.pod:32
4176 "Multiple filenames can be given, in which case they are each edited in "
4177 "turn. Each filename must be a full path, starting at the root directory "
4178 "(starting with '/')."
4182 #: ../edit/virt-edit.pod:36
4183 msgid "If you want to just view a file, use L<virt-cat(1)>."
4187 #: ../edit/virt-edit.pod:38
4189 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4190 "USING GUESTFISH> below)."
4194 #: ../edit/virt-edit.pod:41
4196 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
4197 "that and much more."
4201 #: ../edit/virt-edit.pod:46
4202 msgid "Edit the named files interactively:"
4206 #: ../edit/virt-edit.pod:48
4209 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4214 #: ../edit/virt-edit.pod:50
4217 " virt-edit -d mydomain /etc/passwd\n"
4222 #: ../edit/virt-edit.pod:52
4223 msgid "For Windows guests, some Windows paths are understood:"
4227 #: ../edit/virt-edit.pod:54
4230 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4235 #: ../edit/virt-edit.pod:56
4237 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4238 "INTERACTIVE EDITING> below). To change the init default level to 5:"
4242 #: ../edit/virt-edit.pod:60
4245 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4250 #: ../edit/virt-edit.pod:81
4251 msgid "B<-b> extension"
4255 #: ../edit/virt-edit.pod:83
4256 msgid "B<--backup> extension"
4260 #: ../edit/virt-edit.pod:85
4262 "Create a backup of the original file I<in the guest disk image>. The backup "
4263 "has the original filename with C<extension> added."
4267 #: ../edit/virt-edit.pod:88
4269 "Usually the first character of C<extension> would be a dot C<.> so you would "
4274 #: ../edit/virt-edit.pod:91
4277 " virt-edit -b .orig [etc]\n"
4282 #: ../edit/virt-edit.pod:93
4283 msgid "By default, no backup file is made."
4287 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4288 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4289 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4290 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4292 msgstr "B<-c адреса>"
4295 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4296 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4297 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4298 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4299 msgid "B<--connect URI>"
4300 msgstr "B<--connect адреса>"
4303 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4304 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4305 #: ../tools/virt-win-reg.pl:135
4307 "If you specify guest block devices directly, then libvirt is not used at all."
4311 #: ../edit/virt-edit.pod:114
4313 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4314 "off so you cannot see what you are typing. If you are not worried about "
4315 "Tempest attacks and there is no one else in the room you can specify this "
4316 "flag to see what you are typing."
4320 #: ../edit/virt-edit.pod:119
4322 msgstr "B<-e> вираз"
4325 #: ../edit/virt-edit.pod:121
4326 msgid "B<--expr> EXPR"
4327 msgstr "B<--expr> вираз"
4330 #: ../edit/virt-edit.pod:123
4332 "Instead of launching the external editor, non-interactively apply the Perl "
4333 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
4338 #: ../edit/virt-edit.pod:127
4340 "Be careful to properly quote the expression to prevent it from being altered "
4345 #: ../edit/virt-edit.pod:130
4346 msgid "Note that this option is only available when Perl 5 is installed."
4350 #: ../edit/virt-edit.pod:132
4351 msgid "B<--format> raw|qcow2|..."
4352 msgstr "B<--format> raw|qcow2|..."
4355 #: ../edit/virt-edit.pod:143
4358 " virt-edit --format=raw -a disk.img file\n"
4363 #: ../edit/virt-edit.pod:147
4366 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4371 #: ../edit/virt-edit.pod:181
4372 msgid "Previous versions of virt-edit allowed you to write either:"
4376 #: ../edit/virt-edit.pod:187
4379 " virt-edit guestname file\n"
4384 #: ../edit/virt-edit.pod:195
4385 msgid "NON-INTERACTIVE EDITING"
4386 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4389 #: ../edit/virt-edit.pod:197
4391 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4392 "administrator can interactively edit the file."
4396 #: ../edit/virt-edit.pod:200
4398 "There are two ways also to use C<virt-edit> from scripts in order to make "
4399 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
4400 "like this, it's less error-prone to write scripts directly using the "
4401 "libguestfs API and Augeas for configuration file editing.)"
4405 #: ../edit/virt-edit.pod:206
4407 "The first method is to temporarily set C<$EDITOR> to any script or program "
4408 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
4409 "update C<tmpfile> in place however it likes."
4413 #: ../edit/virt-edit.pod:210
4415 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4416 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
4417 "instances of C<foo> with C<bar> in a file:"
4421 #: ../edit/virt-edit.pod:214
4424 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4429 #: ../edit/virt-edit.pod:216
4431 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
4432 "For example to delete root's password you could do:"
4436 #: ../edit/virt-edit.pod:219
4439 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4442 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4446 #: ../edit/virt-edit.pod:221
4448 "What really happens is that the snippet is evaluated as a Perl expression "
4449 "for each line of the file. The line, including the final C<\\n>, is passed "
4450 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4454 #: ../edit/virt-edit.pod:226
4456 "To delete a line, set C<$_> to the empty string. For example, to delete the "
4457 "C<apache> user account from the password file you can do:"
4461 #: ../edit/virt-edit.pod:229
4464 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4467 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4471 #: ../edit/virt-edit.pod:231
4473 "To insert a line, prepend or append it to C<$_>. However appending lines to "
4474 "the end of the file is rather difficult this way since there is no concept "
4475 "of \"last line of the file\" - your expression just doesn't get called "
4476 "again. You might want to use the first method (setting C<$EDITOR>) if you "
4481 #: ../edit/virt-edit.pod:237
4483 "The variable C<$lineno> contains the current line number. As is "
4484 "traditional, the first line in the file is number C<1>."
4488 #: ../edit/virt-edit.pod:240
4490 "The return value from the expression is ignored, but the expression may call "
4491 "C<die> in order to abort the whole program, leaving the original file "
4496 #: ../edit/virt-edit.pod:244
4498 "Remember when matching the end of a line that C<$_> may contain the final C<"
4499 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4500 "newline then neither of these. Thus to match or substitute some text at the "
4501 "end of a line, use this regular expression:"
4505 #: ../edit/virt-edit.pod:249
4508 " /some text(\\r?\\n)?$/\n"
4511 " /якийсь текст(\\r?\\n)?$/\n"
4515 #: ../edit/virt-edit.pod:251
4517 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4518 "$_> itself (since that would remove all newlines from the file):"
4522 #: ../edit/virt-edit.pod:255
4525 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4528 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4532 #: ../edit/virt-edit.pod:259
4534 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4535 "paths (eg. C<E:\\foo\\bar.txt>)."
4539 #: ../edit/virt-edit.pod:278
4541 "The path is resolved case insensitively to locate the file that should be "
4546 #: ../edit/virt-edit.pod:299
4548 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4549 "C<virt-edit> doesn't work."
4553 #: ../edit/virt-edit.pod:302
4554 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4558 #: ../edit/virt-edit.pod:304
4561 " guestfish --rw -i -d domname edit /file\n"
4566 #: ../edit/virt-edit.pod:306
4568 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4573 #: ../edit/virt-edit.pod:309
4575 "The command above uses libguestfs's guest inspection feature and so does not "
4576 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4577 "disk images that don't contain guests. To edit a file on a disk image "
4582 #: ../edit/virt-edit.pod:314
4585 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4590 #: ../edit/virt-edit.pod:316
4592 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4593 "the disk image to edit, and C</file> is the full path to the file."
4597 #: ../edit/virt-edit.pod:320
4599 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
4600 "C<write> or C<upload> instead:"
4604 #: ../edit/virt-edit.pod:323
4607 " guestfish --rw -i -d domname touch /newfile\n"
4612 #: ../edit/virt-edit.pod:325
4615 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4620 #: ../edit/virt-edit.pod:327
4623 " guestfish --rw -i -d domname upload localfile /newfile\n"
4628 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4629 #: ../rescue/virt-rescue.pod:298 ../sparsify/virt-sparsify.pod:232
4630 #: ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4631 msgid "ENVIRONMENT VARIABLES"
4632 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4635 #: ../edit/virt-edit.pod:333
4640 #: ../edit/virt-edit.pod:335
4642 "If set, this string is used as the editor. It may contain arguments, eg. C<"
4647 #: ../edit/virt-edit.pod:338
4648 msgid "If not set, C<vi> is used."
4652 #: ../edit/virt-edit.pod:356
4654 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4655 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4656 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4658 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4659 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4660 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4663 #: ../erlang/examples/guestfs-erlang.pod:5
4664 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4668 #: ../erlang/examples/guestfs-erlang.pod:9
4671 " {ok, G} = guestfs:create(),\n"
4672 " ok = guestfs:add_drive_opts(G, Disk,\n"
4673 " [{format, \"raw\"}, {readonly, true}]),\n"
4674 " ok = guestfs:launch(G),\n"
4675 " [Device] = guestfs:list_devices(G),\n"
4676 " ok = guestfs:close(G).\n"
4681 #: ../erlang/examples/guestfs-erlang.pod:18
4683 "This manual page documents how to call libguestfs from the Erlang "
4684 "programming language. This page just documents the differences from the C "
4685 "API and gives some examples. If you are not familiar with using libguestfs, "
4686 "you also need to read L<guestfs(3)>."
4690 #: ../erlang/examples/guestfs-erlang.pod:23
4691 msgid "OPENING AND CLOSING THE HANDLE"
4695 #: ../erlang/examples/guestfs-erlang.pod:25
4697 "The Erlang bindings are implemented using an external program called C<erl-"
4698 "guestfs>. This program must be on the current PATH, or else you should "
4699 "specify the full path to the program:"
4703 #: ../erlang/examples/guestfs-erlang.pod:29
4706 " {ok, G} = guestfs:create().\n"
4711 #: ../erlang/examples/guestfs-erlang.pod:31
4714 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4719 #: ../erlang/examples/guestfs-erlang.pod:33
4720 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4724 #: ../erlang/examples/guestfs-erlang.pod:36
4725 msgid "To close the handle:"
4729 #: ../erlang/examples/guestfs-erlang.pod:38
4732 " ok = guestfs:close(G).\n"
4737 #: ../erlang/examples/guestfs-erlang.pod:40
4738 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4742 #: ../erlang/examples/guestfs-erlang.pod:42
4744 "For functions that take optional arguments, the first arguments are the non-"
4745 "optional ones. The last argument is a list of tuples supplying the "
4746 "remaining optional arguments."
4750 #: ../erlang/examples/guestfs-erlang.pod:46
4753 " ok = guestfs:add_drive_opts(G, Disk,\n"
4754 " [{format, \"raw\"}, {readonly, true}]).\n"
4759 #: ../erlang/examples/guestfs-erlang.pod:49
4760 msgid "If the last argument would be an empty list, you can also omit it:"
4764 #: ../erlang/examples/guestfs-erlang.pod:51
4767 " ok = guestfs:add_drive_opts(G, Disk).\n"
4772 #: ../erlang/examples/guestfs-erlang.pod:53
4773 msgid "RETURN VALUES AND ERRORS"
4777 #: ../erlang/examples/guestfs-erlang.pod:55
4779 "On success, most functions return a C<Result> term (which could be a list, "
4780 "string, tuple etc.). If there is nothing for the function to return, then "
4781 "the atom C<ok> is returned."
4785 #: ../erlang/examples/guestfs-erlang.pod:59
4786 msgid "On error, you would see one of the following tuples:"
4790 #: ../erlang/examples/guestfs-erlang.pod:63
4791 msgid "C<{error, Msg, Errno}>"
4795 #: ../erlang/examples/guestfs-erlang.pod:65
4796 msgid "This indicates an ordinary error from the function."
4800 #: ../erlang/examples/guestfs-erlang.pod:67
4802 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4807 #: ../erlang/examples/guestfs-erlang.pod:70
4808 msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
4812 #: ../erlang/examples/guestfs-erlang.pod:72
4813 msgid "C<{unknown, Function}>"
4817 #: ../erlang/examples/guestfs-erlang.pod:74
4819 "This indicates that the function you called is not known. Generally this "
4820 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4821 "which you should not do."
4825 #: ../erlang/examples/guestfs-erlang.pod:78
4826 msgid "C<Function> is the name of the unknown function."
4830 #: ../erlang/examples/guestfs-erlang.pod:80
4831 msgid "C<{unknownarg, Arg}>"
4835 #: ../erlang/examples/guestfs-erlang.pod:82
4837 "This indicates that you called a function with optional arguments, with an "
4838 "unknown argument name."
4842 #: ../erlang/examples/guestfs-erlang.pod:85
4843 msgid "C<Arg> is the name of the unknown argument."
4847 #: ../erlang/examples/guestfs-erlang.pod:89
4848 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4849 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4850 #: ../python/examples/guestfs-python.pod:34
4851 #: ../ruby/examples/guestfs-ruby.pod:28
4852 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4853 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4856 #: ../erlang/examples/guestfs-erlang.pod:91
4857 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4858 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4859 #: ../python/examples/guestfs-python.pod:36
4860 #: ../ruby/examples/guestfs-ruby.pod:30
4865 #: ../erlang/examples/guestfs-erlang.pod:93
4866 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4867 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4868 #: ../python/examples/guestfs-python.pod:38
4869 #: ../ruby/examples/guestfs-ruby.pod:32
4870 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4871 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4874 #: ../erlang/examples/guestfs-erlang.pod:95
4875 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4876 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4877 #: ../python/examples/guestfs-python.pod:40
4878 #: ../ruby/examples/guestfs-ruby.pod:34
4883 #: ../erlang/examples/guestfs-erlang.pod:99
4885 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4886 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4887 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
4891 #: ../erlang/examples/guestfs-erlang.pod:110
4892 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4893 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4894 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4895 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4896 #: ../inspector/virt-inspector.pod:404 ../java/examples/guestfs-java.pod:58
4897 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4898 #: ../python/examples/guestfs-python.pod:54
4899 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3348
4900 #: ../test-tool/libguestfs-test-tool.pod:106
4905 #: ../erlang/examples/guestfs-erlang.pod:112
4906 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4907 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4908 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4909 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4910 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4911 #: ../perl/examples/guestfs-perl.pod:54
4912 #: ../python/examples/guestfs-python.pod:56
4913 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3350
4914 #: ../test-tool/libguestfs-test-tool.pod:108
4915 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4916 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4919 #: ../erlang/examples/guestfs-erlang.pod:116
4920 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4921 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4925 #: ../erlang/examples/guestfs-erlang.pod:118
4926 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4927 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4928 #: ../perl/examples/guestfs-perl.pod:60
4929 #: ../python/examples/guestfs-python.pod:62
4930 #: ../ruby/examples/guestfs-ruby.pod:56
4932 "The examples in this manual page may be freely copied, modified and "
4933 "distributed without any restrictions."
4937 #: ../erlang/examples/guestfs-erlang.pod:121
4938 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4939 #: ../java/examples/guestfs-java.pod:69
4940 #: ../ocaml/examples/guestfs-ocaml.pod:102
4941 #: ../perl/examples/guestfs-perl.pod:63
4942 #: ../python/examples/guestfs-python.pod:65
4943 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3357
4945 "This library is free software; you can redistribute it and/or modify it "
4946 "under the terms of the GNU Lesser General Public License as published by the "
4947 "Free Software Foundation; either version 2 of the License, or (at your "
4948 "option) any later version."
4952 #: ../erlang/examples/guestfs-erlang.pod:126
4953 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4954 #: ../java/examples/guestfs-java.pod:74
4955 #: ../ocaml/examples/guestfs-ocaml.pod:107
4956 #: ../perl/examples/guestfs-perl.pod:68
4957 #: ../python/examples/guestfs-python.pod:70
4958 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3362
4960 "This library is distributed in the hope that it will be useful, but WITHOUT "
4961 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4962 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
4967 #: ../erlang/examples/guestfs-erlang.pod:131
4968 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4969 #: ../java/examples/guestfs-java.pod:79
4970 #: ../ocaml/examples/guestfs-ocaml.pod:112
4971 #: ../perl/examples/guestfs-perl.pod:73
4972 #: ../python/examples/guestfs-python.pod:75
4973 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3367
4975 "You should have received a copy of the GNU Lesser General Public License "
4976 "along with this library; if not, write to the Free Software Foundation, "
4977 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4981 #: ../examples/guestfs-examples.pod:5
4982 msgid "guestfs-examples - Examples of using libguestfs from C"
4986 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4989 " #include <guestfs.h>\n"
4992 " #include <guestfs.h>\n"
4996 #: ../examples/guestfs-examples.pod:11
4999 " guestfs_h *g = guestfs_create ();\n"
5000 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5001 " guestfs_launch (g);\n"
5004 " guestfs_h *g = guestfs_create ();\n"
5005 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5006 " guestfs_launch (g);\n"
5010 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
5013 " cc prog.c -o prog -lguestfs\n"
5015 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5018 " cc prog.c -o prog -lguestfs\n"
5020 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5024 #: ../examples/guestfs-examples.pod:21
5026 "This manual page contains examples of calling libguestfs from the C "
5027 "programming language. If you are not familiar with using libguestfs, you "
5028 "also need to read L<guestfs(3)>."
5032 #: ../examples/guestfs-examples.pod:35
5034 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5035 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5036 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5040 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
5041 #: ../python/examples/guestfs-python.pod:60
5042 #: ../ruby/examples/guestfs-ruby.pod:54
5043 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5047 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5052 #: ../examples/guestfs-recipes.pod:5
5054 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5055 "here. The only way which works for both sorts of output is to just write "
5056 "the URL directly. Do NOT use L<...> for URLs."
5060 #: ../examples/guestfs-recipes.pod:9
5062 "We break with tradition here and don't use ALL CAPS for the section "
5063 "headings, as this makes them much easier to read."
5067 #: ../examples/guestfs-recipes.pod:16
5068 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5072 #: ../examples/guestfs-recipes.pod:20
5074 "This page contains recipes for and links to things you can do using "
5075 "libguestfs, L<guestfish(1)> and the virt tools."
5079 #: ../examples/guestfs-recipes.pod:23
5080 msgid "Audit a virtual machine for setuid files"
5084 #: ../examples/guestfs-recipes.pod:25
5086 "The link below contains a small program which can be used to audit a Linux "
5087 "virtual machine to see what setuid and setgid files it contains."
5091 #: ../examples/guestfs-recipes.pod:28
5093 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5098 #: ../examples/guestfs-recipes.pod:30
5099 msgid "Change the background image in a Windows XP VM"
5103 #: ../examples/guestfs-recipes.pod:32
5105 "The links below explain how to use L<guestfish(1)> to change the background "
5106 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
5107 "be substantially different for each version of Windows."
5111 #: ../examples/guestfs-recipes.pod:37
5113 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5114 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5118 #: ../examples/guestfs-recipes.pod:40
5119 msgid "Cloning a virtual machine (Linux)"
5123 #: ../examples/guestfs-recipes.pod:42
5125 "The guestfish technique described in the link below works well for most "
5126 "Linux VMs. Depending on the Linux distro you may need to change the paths "
5131 #: ../examples/guestfs-recipes.pod:46
5133 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5138 #: ../examples/guestfs-recipes.pod:48
5140 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
5145 #: ../examples/guestfs-recipes.pod:51
5146 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5150 #: ../examples/guestfs-recipes.pod:53
5151 msgid "Cloning a virtual machine (Windows)"
5155 #: ../examples/guestfs-recipes.pod:55
5157 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5158 "straightforward. Currently there is code in the Aeolus Oz project which "
5159 "does this (using libguestfs). As part of our review of the virt-clone tool, "
5160 "we may add sysprepping ability."
5164 #: ../examples/guestfs-recipes.pod:60
5166 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5167 "list/2011-May/msg00019.html"
5171 #: ../examples/guestfs-recipes.pod:63
5172 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5176 #: ../examples/guestfs-recipes.pod:65
5177 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5181 #: ../examples/guestfs-recipes.pod:67
5184 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5189 #: ../examples/guestfs-recipes.pod:69
5190 msgid "To export just a subdirectory, eg. C</files>, do:"
5194 #: ../examples/guestfs-recipes.pod:71
5197 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5202 #: ../examples/guestfs-recipes.pod:73
5203 msgid "Create empty disk images"
5207 #: ../examples/guestfs-recipes.pod:75
5209 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
5210 "The useful guide below explains the options available."
5214 #: ../examples/guestfs-recipes.pod:78
5216 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5221 #: ../examples/guestfs-recipes.pod:80
5222 msgid "Dump raw filesystem content from inside a disk image or VM"
5226 #: ../examples/guestfs-recipes.pod:82
5228 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5229 "filesystem content from any filesystem in a disk image or a VM (even one "
5230 "which is encrypted or buried inside an LV):"
5234 #: ../examples/guestfs-recipes.pod:86
5237 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5242 #: ../examples/guestfs-recipes.pod:88
5245 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5250 #: ../examples/guestfs-recipes.pod:90
5251 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5255 #: ../examples/guestfs-recipes.pod:92
5256 msgid "Edit grub configuration in a VM"
5260 #: ../examples/guestfs-recipes.pod:94
5261 msgid "You can use this to:"
5265 #: ../examples/guestfs-recipes.pod:100
5266 msgid "Fix a virtual machine that does not boot."
5270 #: ../examples/guestfs-recipes.pod:104
5271 msgid "Change which kernel is used to boot the VM."
5275 #: ../examples/guestfs-recipes.pod:108
5276 msgid "Change kernel command line options."
5280 #: ../examples/guestfs-recipes.pod:112
5281 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5285 #: ../examples/guestfs-recipes.pod:114
5288 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5293 #: ../examples/guestfs-recipes.pod:116
5295 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5300 #: ../examples/guestfs-recipes.pod:119
5303 " virt-rescue -d BrokenGuest\n"
5308 #: ../examples/guestfs-recipes.pod:121
5309 msgid "Export any directory from a VM"
5313 #: ../examples/guestfs-recipes.pod:123
5315 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5319 #: ../examples/guestfs-recipes.pod:126
5322 " virt-copy-out -d Guest /home .\n"
5327 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5328 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5329 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5330 #: ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758
5331 #: ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685
5332 #: ../tools/virt-win-reg.pl:717
5337 #: ../examples/guestfs-recipes.pod:134
5339 "The final dot of the command is not a printing error. It means we want to "
5340 "copy out to the current directory."
5344 #: ../examples/guestfs-recipes.pod:139
5345 msgid "This creates a directory called C<home> under the current directory."
5349 #: ../examples/guestfs-recipes.pod:143
5351 "If the guest is a Windows guest then you can use drive letters and "
5352 "backslashes, but you must prefix the path with C<win:> and quote it to "
5353 "protect it from the shell, like this:"
5357 #: ../examples/guestfs-recipes.pod:147
5360 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5365 #: ../examples/guestfs-recipes.pod:149
5366 msgid "To get the output as a compressed tarball, do:"
5370 #: ../examples/guestfs-recipes.pod:151
5373 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5378 #: ../examples/guestfs-recipes.pod:153
5380 "Although it sounds tempting, this is usually not a reliable way to get a "
5381 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
5382 "org/FAQ.html#backup"
5386 #: ../examples/guestfs-recipes.pod:157
5387 msgid "Find out which user is using the most space"
5391 #: ../examples/guestfs-recipes.pod:159
5393 "This simple script examines a Linux guest to find out which user is using "
5394 "the most space in their home directory:"
5398 #: ../examples/guestfs-recipes.pod:162
5406 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5414 #: ../examples/guestfs-recipes.pod:166
5423 #: ../examples/guestfs-recipes.pod:169
5426 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5431 #: ../examples/guestfs-recipes.pod:171
5434 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5435 " echo -n \"$dir/$d\"\n"
5437 " guestfish --remote du \"$dir/$d\";\n"
5438 " done | sort -nr -k 2\n"
5443 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5446 " guestfish --remote exit\n"
5451 #: ../examples/guestfs-recipes.pod:179
5452 msgid "Get DHCP address from a VM"
5456 #: ../examples/guestfs-recipes.pod:181
5458 "The link below explains the many different possible techniques for getting "
5459 "the last assigned DHCP address of a virtual machine."
5463 #: ../examples/guestfs-recipes.pod:184
5465 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5466 "a-virtual-machine-disk-image/#content"
5470 #: ../examples/guestfs-recipes.pod:186
5472 "In the libguestfs source examples directory you will find the latest version "
5473 "of the C<virt-dhcp-address.c> program."
5477 #: ../examples/guestfs-recipes.pod:189
5478 msgid "Get the operating system product name string"
5482 #: ../examples/guestfs-recipes.pod:191
5483 msgid "Save the following script into a file called C<product-name.sh>:"
5487 #: ../examples/guestfs-recipes.pod:193
5492 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5493 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5494 " guestfish --remote inspect-get-product-name \"$root\"\n"
5495 " guestfish --remote exit\n"
5500 #: ../examples/guestfs-recipes.pod:200
5501 msgid "Make the script executable and run it on a named guest:"
5505 #: ../examples/guestfs-recipes.pod:202
5508 " # product-name.sh RHEL60x64\n"
5509 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5514 #: ../examples/guestfs-recipes.pod:205
5516 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5517 "C<xpath> command line tool or from your favourite programming language:"
5521 #: ../examples/guestfs-recipes.pod:209
5524 " # virt-inspector RHEL60x64 > xml\n"
5525 " # xpath '//product_name' < xml\n"
5528 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5533 #: ../examples/guestfs-recipes.pod:215
5534 msgid "Get the default boot kernel for a Linux VM"
5538 #: ../examples/guestfs-recipes.pod:217
5540 "The link below contains a program to print the default boot kernel for a "
5545 #: ../examples/guestfs-recipes.pod:220
5547 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5548 "kernel-for-a-vm/#content"
5552 #: ../examples/guestfs-recipes.pod:222
5554 "It uses Augeas, and the technique is generally applicable for many different "
5559 #: ../examples/guestfs-recipes.pod:229
5560 msgid "listing the user accounts in the guest"
5564 #: ../examples/guestfs-recipes.pod:233
5565 msgid "what repositories is it configured to use"
5569 #: ../examples/guestfs-recipes.pod:237
5570 msgid "what NTP servers does it connect to"
5574 #: ../examples/guestfs-recipes.pod:241
5575 msgid "what were the boot messages last time it booted"
5579 #: ../examples/guestfs-recipes.pod:245
5580 msgid "listing who was logged in recently"
5584 #: ../examples/guestfs-recipes.pod:249
5585 msgid "http://augeas.net/"
5589 #: ../examples/guestfs-recipes.pod:251
5590 msgid "Install RPMs in a guest"
5594 #: ../examples/guestfs-recipes.pod:253
5596 "The link below contains a method to install RPMs in a guest. In fact the "
5597 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5598 "installs them next time the guest is booted. You could use this technique "
5599 "to install vital security updates in an offline guest."
5603 #: ../examples/guestfs-recipes.pod:259
5605 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5609 #: ../examples/guestfs-recipes.pod:261
5610 msgid "List applications installed in a VM"
5614 #: ../examples/guestfs-recipes.pod:263
5615 msgid "Save the following to a file C<list-apps.sh>:"
5619 #: ../examples/guestfs-recipes.pod:265
5624 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5625 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5626 " guestfish --remote inspect-list-applications \"$root\"\n"
5627 " guestfish --remote exit\n"
5632 #: ../examples/guestfs-recipes.pod:272
5634 "Make the file executable and then you can run it on any named virtual "
5639 #: ../examples/guestfs-recipes.pod:275
5642 " # list-apps.sh WinGuest\n"
5644 " app_name: Mozilla Firefox (3.6.12)\n"
5645 " app_display_name: Mozilla Firefox (3.6.12)\n"
5647 " app_version: 3.6.12 (en-GB)\n"
5649 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5650 " app_trans_path:\n"
5651 " app_publisher: Mozilla\n"
5652 " app_url: http://www.mozilla.com/en-GB/\n"
5653 " app_source_package:\n"
5655 " app_description: Mozilla Firefox\n"
5658 " app_name: VLC media player\n"
5659 " app_display_name: VLC media player 1.1.5\n"
5661 " app_version: 1.1.5\n"
5663 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5664 " app_trans_path:\n"
5665 " app_publisher: VideoLAN\n"
5666 " app_url: http://www.videolan.org/\n"
5667 " app_source_package:\n"
5669 " app_description:\n"
5675 #: ../examples/guestfs-recipes.pod:305
5677 "If you want to run the script on disk images (instead of libvirt virtual "
5678 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
5683 #: ../examples/guestfs-recipes.pod:309
5684 msgid "List files and directories in a VM"
5688 #: ../examples/guestfs-recipes.pod:311
5689 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5693 #: ../examples/guestfs-recipes.pod:313
5696 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5701 #: ../examples/guestfs-recipes.pod:315
5702 msgid "List services in a Windows VM"
5706 #: ../examples/guestfs-recipes.pod:317
5708 "The link below contains a script that can be used to list out the services "
5709 "from a Windows VM, and whether those services run at boot time or are loaded "
5714 #: ../examples/guestfs-recipes.pod:321
5716 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5721 #: ../examples/guestfs-recipes.pod:323
5722 msgid "Make a disk image sparse"
5726 #: ../examples/guestfs-recipes.pod:325
5728 "The link below contains some guides for making a disk image sparse (or "
5729 "reintroducing sparseness)."
5733 #: ../examples/guestfs-recipes.pod:328
5735 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5739 #: ../examples/guestfs-recipes.pod:330
5740 msgid "Monitor disk usage over time"
5744 #: ../examples/guestfs-recipes.pod:332
5746 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
5747 "The link below contains a guide."
5751 #: ../examples/guestfs-recipes.pod:335
5752 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5756 #: ../examples/guestfs-recipes.pod:337
5757 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5761 #: ../examples/guestfs-recipes.pod:339
5763 "L<guestfish(1)> plus the tools described in the link below can be used to "
5764 "read out the Windows Event Log from any virtual machine running Windows "
5765 "Vista or a later version."
5769 #: ../examples/guestfs-recipes.pod:343
5771 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5772 "guestfish/#content"
5776 #: ../examples/guestfs-recipes.pod:345
5777 msgid "Remove root password (Linux)"
5781 #: ../examples/guestfs-recipes.pod:347
5783 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5784 "files. One use is to remove the root password from a Linux guest:"
5788 #: ../examples/guestfs-recipes.pod:350
5791 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5796 #: ../examples/guestfs-recipes.pod:352
5797 msgid "Remove Administrator password (Windows)"
5801 #: ../examples/guestfs-recipes.pod:354
5803 "The link below contains one technique for removing the Administrator "
5804 "password from a Windows VM, or to be more precise, it gives you a command "
5805 "prompt the next time you log in which you can use to bypass any security:"
5809 #: ../examples/guestfs-recipes.pod:359
5811 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5812 "administrator-password-with-guestfish/"
5816 #: ../examples/guestfs-recipes.pod:361
5817 msgid "Unpack a live CD"
5821 #: ../examples/guestfs-recipes.pod:363
5823 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5824 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
5825 "layers, as outlined in the guide below."
5829 #: ../examples/guestfs-recipes.pod:367
5831 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5836 #: ../examples/guestfs-recipes.pod:369
5837 msgid "Uploading and downloading files"
5841 #: ../examples/guestfs-recipes.pod:371
5843 "The link below contains general tips on uploading (copying in) and "
5844 "downloading (copying out) files from VMs."
5848 #: ../examples/guestfs-recipes.pod:374
5850 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5854 #: ../examples/guestfs-recipes.pod:376
5855 msgid "Use libguestfs tools on VMware ESX guests"
5859 #: ../examples/guestfs-recipes.pod:378
5861 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5862 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5866 #: ../examples/guestfs-recipes.pod:382
5868 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5873 #: ../examples/guestfs-recipes.pod:386
5875 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5876 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5877 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5881 #: ../examples/guestfs-recipes.pod:403
5882 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5886 #: ../fish/guestfish-actions.pod:1
5891 #: ../fish/guestfish-actions.pod:3
5894 " add-cdrom filename\n"
5899 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5900 msgid "This function adds a virtual CD-ROM disk image to the guest."
5904 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5905 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5909 #: ../fish/guestfish-actions.pod:15
5911 "This call checks for the existence of C<filename>. This stops you from "
5912 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5913 "and C<http:> URLs. To specify those, use the general L</config> call "
5918 #: ../fish/guestfish-actions.pod:22
5920 "If you just want to add an ISO file (often you use this as an efficient way "
5921 "to transfer large files into the guest), then you should probably use L</add-"
5922 "drive-ro> instead."
5926 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
5927 #: ../fish/guestfish-actions.pod:228
5929 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5934 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
5935 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
5936 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
5937 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
5938 #: ../fish/guestfish-actions.pod:3381 ../fish/guestfish-actions.pod:3692
5939 #: ../fish/guestfish-actions.pod:3740 ../fish/guestfish-actions.pod:4658
5940 #: ../fish/guestfish-actions.pod:4678 ../fish/guestfish-actions.pod:4697
5941 #: ../fish/guestfish-actions.pod:4735 ../fish/guestfish-actions.pod:5463
5942 #: ../fish/guestfish-actions.pod:5566 ../src/guestfs-actions.pod:10
5943 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
5944 #: ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637
5945 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419
5946 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5225
5947 #: ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:5847
5948 #: ../src/guestfs-actions.pod:7143 ../src/guestfs-actions.pod:7184
5949 #: ../src/guestfs-actions.pod:7215 ../src/guestfs-actions.pod:7275
5950 #: ../src/guestfs-actions.pod:8327 ../src/guestfs-actions.pod:8436
5951 #: ../src/guestfs-actions.pod:8616
5953 "Deprecated functions will not be removed from the API, but the fact that "
5954 "they are deprecated indicates that there are problems with correct use of "
5959 #: ../fish/guestfish-actions.pod:35
5964 #: ../fish/guestfish-actions.pod:37
5969 #: ../fish/guestfish-actions.pod:39
5972 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
5977 #: ../fish/guestfish-actions.pod:41
5979 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
5980 "It works by connecting to libvirt, requesting the domain and domain XML from "
5981 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5985 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
5987 "The number of disks added is returned. This operation is atomic: if an "
5988 "error is returned, then no disks are added."
5992 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
5994 "This function does some minimal checks to make sure the libvirt domain is "
5995 "not running (unless C<readonly> is true). In a future version we will try "
5996 "to acquire the libvirt lock on each disk."
6000 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6002 "Disks must be accessible locally. This often means that adding disks from a "
6003 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
6004 "unless those disks are accessible via the same device path locally too."
6008 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6010 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6011 "libvirt.org/uri.html>). If this is not set then we connect to the default "
6012 "libvirt URI (or one set through an environment variable, see the libvirt "
6013 "documentation for full details)."
6017 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6019 "The optional C<live> flag controls whether this call will try to connect to "
6020 "a running virtual machine C<guestfsd> process if it sees a suitable "
6021 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
6022 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
6023 "DAEMONS> for more information."
6027 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6029 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6030 "passed instead of the domain name. The C<dom> string is treated as a UUID "
6031 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6036 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6038 "The optional C<readonlydisk> parameter controls what we do for disks which "
6039 "are marked E<lt>readonly/E<gt> in the libvirt XML. Possible values are:"
6043 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6044 msgid "readonlydisk = \"error\""
6048 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
6049 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
6050 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6051 msgid "If C<readonly> is false:"
6055 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6057 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
6058 "E<gt> flag is found."
6062 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
6063 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
6064 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6065 msgid "If C<readonly> is true:"
6069 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
6070 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
6071 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6072 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6076 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6077 msgid "readonlydisk = \"read\""
6081 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6083 "Disks with the E<lt>readonly/E<gt> flag are added read-only. Other disks "
6084 "are added read/write."
6088 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6089 msgid "readonlydisk = \"write\" (default)"
6093 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6094 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6098 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6099 msgid "readonlydisk = \"ignore\""
6103 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6104 msgid "If C<readonly> is true or false:"
6108 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6109 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6113 #: ../fish/guestfish-actions.pod:122
6115 "The other optional parameters are passed directly through to L</add-drive-"
6120 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6121 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6122 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6123 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6124 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6125 #: ../fish/guestfish-actions.pod:3215 ../fish/guestfish-actions.pod:3430
6126 #: ../fish/guestfish-actions.pod:3593 ../fish/guestfish-actions.pod:3728
6127 #: ../fish/guestfish-actions.pod:5099
6129 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
6133 #: ../fish/guestfish-actions.pod:127
6138 #: ../fish/guestfish-actions.pod:129
6141 " add-drive filename\n"
6144 " add-drive назва_файла\n"
6148 #: ../fish/guestfish-actions.pod:131
6150 "This function is the equivalent of calling L</add-drive-opts> with no "
6151 "optional parameters, so the disk is added writable, with the format being "
6152 "detected automatically."
6156 #: ../fish/guestfish-actions.pod:135
6158 "Automatic detection of the format opens you up to a potential security hole "
6159 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6160 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
6161 "you should think about replacing calls to this function with calls to L</add-"
6162 "drive-opts>, and specifying the format."
6166 #: ../fish/guestfish-actions.pod:142
6167 msgid "add-drive-opts"
6168 msgstr "add-drive-opts"
6171 #: ../fish/guestfish-actions.pod:144
6176 #: ../fish/guestfish-actions.pod:146
6179 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n"
6184 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6186 "This function adds a virtual machine disk image C<filename> to libguestfs. "
6187 "The first time you call this function, the disk appears as C</dev/sda>, the "
6188 "second time as C</dev/sdb>, and so on."
6192 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6194 "You don't necessarily need to be root when using libguestfs. However you "
6195 "obviously do need sufficient permissions to access the filename for whatever "
6196 "operations you want to perform (ie. read access if you just want to read the "
6197 "image or write access if you want to modify the image)."
6201 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6202 msgid "This call checks that C<filename> exists."
6206 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3392
6207 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5262
6208 msgid "The optional arguments are:"
6212 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6214 msgstr "C<readonly>"
6217 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6219 "If true then the image is treated as read-only. Writes are still allowed, "
6220 "but they are stored in a temporary snapshot overlay which is discarded at "
6221 "the end. The disk that you add is not modified."
6225 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6230 #: ../fish/guestfish-actions.pod:173
6232 "This forces the image format. If you omit this (or use L</add-drive> or L</"
6233 "add-drive-ro>) then the format is automatically detected. Possible formats "
6234 "include C<raw> and C<qcow2>."
6238 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6240 "Automatic detection of the format opens you up to a potential security hole "
6241 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6242 "RHBZ#642934. Specifying the format closes this security hole."
6246 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6251 #: ../fish/guestfish-actions.pod:184
6253 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6254 "add-drive-with-if> call (q.v.)"
6258 #: ../fish/guestfish-actions.pod:187 ../fish/guestfish-actions.pod:3242
6259 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:4994
6264 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6266 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6267 "a hint to the guest inspection process if it is available."
6271 #: ../fish/guestfish-actions.pod:196
6272 msgid "add-drive-ro"
6273 msgstr "add-drive-ro"
6276 #: ../fish/guestfish-actions.pod:198
6281 #: ../fish/guestfish-actions.pod:200
6284 " add-drive-ro filename\n"
6289 #: ../fish/guestfish-actions.pod:202
6291 "This function is the equivalent of calling L</add-drive-opts> with the "
6292 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6293 "is added read-only, with the format being detected automatically."
6297 #: ../fish/guestfish-actions.pod:207
6298 msgid "add-drive-ro-with-if"
6302 #: ../fish/guestfish-actions.pod:209
6305 " add-drive-ro-with-if filename iface\n"
6310 #: ../fish/guestfish-actions.pod:211
6312 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6313 "interface emulation to use at run time."
6317 #: ../fish/guestfish-actions.pod:221
6318 msgid "add-drive-with-if"
6322 #: ../fish/guestfish-actions.pod:223
6325 " add-drive-with-if filename iface\n"
6330 #: ../fish/guestfish-actions.pod:225
6332 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6333 "interface emulation to use at run time."
6337 #: ../fish/guestfish-actions.pod:235
6342 #: ../fish/guestfish-actions.pod:237
6345 " aug-clear augpath\n"
6350 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6352 "Set the value associated with C<path> to C<NULL>. This is the same as the "
6353 "L<augtool(1)> C<clear> command."
6357 #: ../fish/guestfish-actions.pod:242
6362 #: ../fish/guestfish-actions.pod:244
6370 #: ../fish/guestfish-actions.pod:246
6372 "Close the current Augeas handle and free up any resources used by it. After "
6373 "calling this, you have to call L</aug-init> again before you can use any "
6374 "other Augeas functions."
6378 #: ../fish/guestfish-actions.pod:251
6383 #: ../fish/guestfish-actions.pod:253
6386 " aug-defnode name expr val\n"
6391 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6393 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6397 #: ../fish/guestfish-actions.pod:258
6399 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6400 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
6401 "containing that single node."
6405 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6407 "On success this returns a pair containing the number of nodes in the "
6408 "nodeset, and a boolean flag if a node was created."
6412 #: ../fish/guestfish-actions.pod:266
6417 #: ../fish/guestfish-actions.pod:268
6420 " aug-defvar name expr\n"
6425 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6427 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6428 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
6432 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6434 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6435 "evaluates to something which is not a nodeset."
6439 #: ../fish/guestfish-actions.pod:277
6444 #: ../fish/guestfish-actions.pod:279
6447 " aug-get augpath\n"
6452 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6454 "Look up the value associated with C<path>. If C<path> matches exactly one "
6455 "node, the C<value> is returned."
6459 #: ../fish/guestfish-actions.pod:284
6464 #: ../fish/guestfish-actions.pod:286
6467 " aug-init root flags\n"
6472 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6474 "Create a new Augeas handle for editing configuration files. If there was "
6475 "any previous Augeas handle associated with this guestfs session, then it is "
6480 #: ../fish/guestfish-actions.pod:292
6481 msgid "You must call this before using any other L</aug-*> commands."
6485 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6487 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
6491 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6493 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6494 "logical I<or> of the following integers:"
6498 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6499 msgid "C<AUG_SAVE_BACKUP> = 1"
6500 msgstr "C<AUG_SAVE_BACKUP> = 1"
6503 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6504 msgid "Keep the original file with a C<.augsave> extension."
6508 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6509 msgid "C<AUG_SAVE_NEWFILE> = 2"
6510 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6513 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6515 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6516 "original. Overrides C<AUG_SAVE_BACKUP>."
6520 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6521 msgid "C<AUG_TYPE_CHECK> = 4"
6522 msgstr "C<AUG_TYPE_CHECK> = 4"
6525 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6526 msgid "Typecheck lenses."
6530 #: ../fish/guestfish-actions.pod:317
6532 "This option is only useful when debugging Augeas lenses. Use of this option "
6533 "may require additional memory for the libguestfs appliance. You may need to "
6534 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6538 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6539 msgid "C<AUG_NO_STDINC> = 8"
6540 msgstr "C<AUG_NO_STDINC> = 8"
6543 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6544 msgid "Do not use standard load path for modules."
6548 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6549 msgid "C<AUG_SAVE_NOOP> = 16"
6550 msgstr "C<AUG_SAVE_NOOP> = 16"
6553 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6554 msgid "Make save a no-op, just record what would have been changed."
6558 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6559 msgid "C<AUG_NO_LOAD> = 32"
6560 msgstr "C<AUG_NO_LOAD> = 32"
6563 #: ../fish/guestfish-actions.pod:332
6564 msgid "Do not load the tree in L</aug-init>."
6568 #: ../fish/guestfish-actions.pod:336
6569 msgid "To close the handle, you can call L</aug-close>."
6573 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6574 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6578 #: ../fish/guestfish-actions.pod:340
6583 #: ../fish/guestfish-actions.pod:342
6586 " aug-insert augpath label true|false\n"
6591 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6593 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6594 "or after C<path> (depending on the boolean flag C<before>)."
6598 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6600 "C<path> must match exactly one existing node in the tree, and C<label> must "
6601 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6605 #: ../fish/guestfish-actions.pod:352
6610 #: ../fish/guestfish-actions.pod:354
6618 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6619 msgid "Load files into the tree."
6620 msgstr "Завантажити файли до ієрархії."
6623 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6624 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6628 #: ../fish/guestfish-actions.pod:361
6633 #: ../fish/guestfish-actions.pod:363
6641 #: ../fish/guestfish-actions.pod:365
6643 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6644 "resulting nodes into alphabetical order."
6648 #: ../fish/guestfish-actions.pod:368
6653 #: ../fish/guestfish-actions.pod:370
6656 " aug-match augpath\n"
6661 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6663 "Returns a list of paths which match the path expression C<path>. The "
6664 "returned paths are sufficiently qualified so that they match exactly one "
6665 "node in the current tree."
6669 #: ../fish/guestfish-actions.pod:376
6674 #: ../fish/guestfish-actions.pod:378
6677 " aug-mv src dest\n"
6682 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6684 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
6685 "C<dest> is overwritten if it exists."
6689 #: ../fish/guestfish-actions.pod:383
6694 #: ../fish/guestfish-actions.pod:385
6702 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6703 msgid "Remove C<path> and all of its children."
6707 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6708 msgid "On success this returns the number of entries which were removed."
6712 #: ../fish/guestfish-actions.pod:391
6717 #: ../fish/guestfish-actions.pod:393
6725 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6726 msgid "This writes all pending changes to disk."
6730 #: ../fish/guestfish-actions.pod:397
6732 "The flags which were passed to L</aug-init> affect exactly how files are "
6737 #: ../fish/guestfish-actions.pod:400
6742 #: ../fish/guestfish-actions.pod:402
6745 " aug-set augpath val\n"
6750 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6751 msgid "Set the value associated with C<path> to C<val>."
6755 #: ../fish/guestfish-actions.pod:406
6757 "In the Augeas API, it is possible to clear a node by setting the value to "
6758 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
6759 "this call. Instead you must use the L</aug-clear> call."
6763 #: ../fish/guestfish-actions.pod:411
6768 #: ../fish/guestfish-actions.pod:413
6771 " available 'groups ...'\n"
6776 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6778 "This command is used to check the availability of some groups of "
6779 "functionality in the appliance, which not all builds of the libguestfs "
6780 "appliance will be able to provide."
6784 #: ../fish/guestfish-actions.pod:419
6786 "The libguestfs groups, and the functions that those groups correspond to, "
6787 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
6788 "runtime by calling L</available-all-groups>."
6792 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6794 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6795 "\"]> would check for the availability of the Linux inotify functions and "
6796 "Augeas (configuration file editing) functions."
6800 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6801 msgid "The command returns no error if I<all> requested groups are available."
6805 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6807 "It fails with an error if one or more of the requested groups is unavailable "
6812 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6814 "If an unknown group name is included in the list of groups then an error is "
6819 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6821 msgstr "I<Нотатки:>"
6824 #: ../fish/guestfish-actions.pod:443
6825 msgid "You must call L</launch> before calling this function."
6829 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6831 "The reason is because we don't know what groups are supported by the "
6832 "appliance/daemon until it is running and can be queried."
6836 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6838 "If a group of functions is available, this does not necessarily mean that "
6839 "they will work. You still have to check for errors when calling individual "
6840 "API functions even if they are available."
6844 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6846 "It is usually the job of distro packagers to build complete functionality "
6847 "into the libguestfs appliance. Upstream libguestfs, if built from source "
6848 "with all requirements satisfied, will support everything."
6852 #: ../fish/guestfish-actions.pod:465
6854 "This call was added in version C<1.0.80>. In previous versions of "
6855 "libguestfs all you could do would be to speculatively execute a command to "
6856 "find out if the daemon implemented it. See also L</version>."
6860 #: ../fish/guestfish-actions.pod:472
6861 msgid "available-all-groups"
6865 #: ../fish/guestfish-actions.pod:474
6868 " available-all-groups\n"
6873 #: ../fish/guestfish-actions.pod:476
6875 "This command returns a list of all optional groups that this daemon knows "
6876 "about. Note this returns both supported and unsupported groups. To find "
6877 "out which ones the daemon can actually support you have to call L</"
6878 "available> on each member of the returned list."
6882 #: ../fish/guestfish-actions.pod:482
6883 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6887 #: ../fish/guestfish-actions.pod:484
6892 #: ../fish/guestfish-actions.pod:486
6895 " base64-in (base64file|-) filename\n"
6900 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6902 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6906 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
6907 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
6908 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
6909 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
6910 #: ../fish/guestfish-actions.pod:4955 ../fish/guestfish-actions.pod:4967
6911 #: ../fish/guestfish-actions.pod:4978 ../fish/guestfish-actions.pod:4989
6912 #: ../fish/guestfish-actions.pod:5120 ../fish/guestfish-actions.pod:5129
6913 #: ../fish/guestfish-actions.pod:5183 ../fish/guestfish-actions.pod:5206
6914 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6918 #: ../fish/guestfish-actions.pod:493
6923 #: ../fish/guestfish-actions.pod:495
6926 " base64-out filename (base64file|-)\n"
6931 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
6933 "This command downloads the contents of C<filename>, writing it out to local "
6934 "file C<base64file> encoded as base64."
6938 #: ../fish/guestfish-actions.pod:502
6939 msgid "blockdev-flushbufs"
6943 #: ../fish/guestfish-actions.pod:504
6946 " blockdev-flushbufs device\n"
6951 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
6953 "This tells the kernel to flush internal buffers associated with C<device>."
6957 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
6958 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
6959 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
6960 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
6961 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
6962 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
6963 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
6964 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
6965 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
6966 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
6967 msgid "This uses the L<blockdev(8)> command."
6971 #: ../fish/guestfish-actions.pod:511
6972 msgid "blockdev-getbsz"
6976 #: ../fish/guestfish-actions.pod:513
6979 " blockdev-getbsz device\n"
6984 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
6985 msgid "This returns the block size of a device."
6989 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
6990 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
6992 "(Note this is different from both I<size in blocks> and I<filesystem block "
6997 #: ../fish/guestfish-actions.pod:522
6998 msgid "blockdev-getro"
7002 #: ../fish/guestfish-actions.pod:524
7005 " blockdev-getro device\n"
7010 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7012 "Returns a boolean indicating if the block device is read-only (true if read-"
7013 "only, false if not)."
7017 #: ../fish/guestfish-actions.pod:531
7018 msgid "blockdev-getsize64"
7022 #: ../fish/guestfish-actions.pod:533
7025 " blockdev-getsize64 device\n"
7030 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7031 msgid "This returns the size of the device in bytes."
7035 #: ../fish/guestfish-actions.pod:537
7036 msgid "See also L</blockdev-getsz>."
7037 msgstr "Див. також L</blockdev-getsz>."
7040 #: ../fish/guestfish-actions.pod:541
7041 msgid "blockdev-getss"
7045 #: ../fish/guestfish-actions.pod:543
7048 " blockdev-getss device\n"
7053 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7055 "This returns the size of sectors on a block device. Usually 512, but can be "
7056 "larger for modern devices."
7060 #: ../fish/guestfish-actions.pod:548
7062 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7066 #: ../fish/guestfish-actions.pod:553
7067 msgid "blockdev-getsz"
7071 #: ../fish/guestfish-actions.pod:555
7074 " blockdev-getsz device\n"
7079 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7081 "This returns the size of the device in units of 512-byte sectors (even if "
7082 "the sectorsize isn't 512 bytes ... weird)."
7086 #: ../fish/guestfish-actions.pod:560
7088 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7089 "blockdev-getsize64> for the more useful I<size in bytes>."
7093 #: ../fish/guestfish-actions.pod:566
7094 msgid "blockdev-rereadpt"
7098 #: ../fish/guestfish-actions.pod:568
7101 " blockdev-rereadpt device\n"
7106 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7107 msgid "Reread the partition table on C<device>."
7111 #: ../fish/guestfish-actions.pod:574
7112 msgid "blockdev-setbsz"
7116 #: ../fish/guestfish-actions.pod:576
7119 " blockdev-setbsz device blocksize\n"
7124 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7125 msgid "This sets the block size of a device."
7129 #: ../fish/guestfish-actions.pod:585
7130 msgid "blockdev-setro"
7134 #: ../fish/guestfish-actions.pod:587
7137 " blockdev-setro device\n"
7142 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7143 msgid "Sets the block device named C<device> to read-only."
7147 #: ../fish/guestfish-actions.pod:593
7148 msgid "blockdev-setrw"
7152 #: ../fish/guestfish-actions.pod:595
7155 " blockdev-setrw device\n"
7160 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7161 msgid "Sets the block device named C<device> to read-write."
7165 #: ../fish/guestfish-actions.pod:601
7166 msgid "btrfs-filesystem-resize"
7170 #: ../fish/guestfish-actions.pod:603
7173 " btrfs-filesystem-resize mountpoint [size:N]\n"
7178 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7179 msgid "This command resizes a btrfs filesystem."
7183 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7185 "Note that unlike other resize calls, the filesystem has to be mounted and "
7186 "the parameter is the mountpoint not the device (this is a requirement of "
7191 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3164
7192 #: ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:5029
7193 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:4890
7194 #: ../src/guestfs-actions.pod:5786 ../src/guestfs-actions.pod:7762
7195 msgid "The optional parameters are:"
7199 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3707
7200 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5790
7205 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7207 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
7208 "resized to the maximum size."
7212 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7213 msgid "See also L<btrfs(8)>."
7214 msgstr "Див. також L<btrfs(8)>."
7217 #: ../fish/guestfish-actions.pod:626
7218 msgid "case-sensitive-path"
7222 #: ../fish/guestfish-actions.pod:628
7225 " case-sensitive-path path\n"
7230 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7232 "This can be used to resolve case insensitive paths on a filesystem which is "
7233 "case sensitive. The use case is to resolve paths which you have read from "
7234 "Windows configuration files or the Windows Registry, to the true path."
7238 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7240 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7241 "(and probably others), which is that although the underlying filesystem is "
7242 "case-insensitive, the driver exports the filesystem to Linux as case-"
7247 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7249 "One consequence of this is that special directories such as C<c:\\windows> "
7250 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7251 "precise details of how they were created. In Windows itself this would not "
7256 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7258 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7263 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7265 "This function resolves the true case of each element in the path and returns "
7266 "the case-sensitive path."
7270 #: ../fish/guestfish-actions.pod:652
7272 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
7273 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7274 "the directories were originally created under Windows)."
7278 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7279 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7283 #: ../fish/guestfish-actions.pod:660
7284 msgid "See also L</realpath>."
7285 msgstr "Див. також L</realpath>."
7288 #: ../fish/guestfish-actions.pod:662
7293 #: ../fish/guestfish-actions.pod:664
7303 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4134
7304 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6446
7305 msgid "Return the contents of the file named C<path>."
7309 #: ../fish/guestfish-actions.pod:668
7311 "Note that this function cannot correctly handle binary files (specifically, "
7312 "files containing C<\\0> character which is treated as end of string). For "
7313 "those you need to use the L</read-file> or L</download> functions which have "
7314 "a more complex interface."
7318 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7319 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7320 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7321 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7322 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7323 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7324 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7325 #: ../fish/guestfish-actions.pod:4004 ../fish/guestfish-actions.pod:4019
7326 #: ../fish/guestfish-actions.pod:4095 ../fish/guestfish-actions.pod:4112
7327 #: ../fish/guestfish-actions.pod:4127 ../fish/guestfish-actions.pod:4796
7328 #: ../fish/guestfish-actions.pod:4842 ../fish/guestfish-actions.pod:4927
7329 #: ../fish/guestfish-actions.pod:4942 ../fish/guestfish-actions.pod:5427
7330 #: ../fish/guestfish-actions.pod:5439 ../fish/guestfish-actions.pod:5457
7331 #: ../fish/guestfish-actions.pod:5474 ../fish/guestfish-actions.pod:5484
7332 #: ../fish/guestfish-actions.pod:5538 ../fish/guestfish-actions.pod:5548
7333 #: ../fish/guestfish-actions.pod:5577 ../fish/guestfish-actions.pod:5587
7334 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7335 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855
7336 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977
7337 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242
7338 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743
7339 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832
7340 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878
7341 #: ../src/guestfs-actions.pod:6228 ../src/guestfs-actions.pod:6254
7342 #: ../src/guestfs-actions.pod:6385 ../src/guestfs-actions.pod:6411
7343 #: ../src/guestfs-actions.pod:6435 ../src/guestfs-actions.pod:7390
7344 #: ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7591
7345 #: ../src/guestfs-actions.pod:7615 ../src/guestfs-actions.pod:8400
7346 #: ../src/guestfs-actions.pod:8420 ../src/guestfs-actions.pod:8453
7347 #: ../src/guestfs-actions.pod:8472 ../src/guestfs-actions.pod:8491
7348 #: ../src/guestfs-actions.pod:8582 ../src/guestfs-actions.pod:8601
7349 #: ../src/guestfs-actions.pod:8647 ../src/guestfs-actions.pod:8666
7351 "Because of the message protocol, there is a transfer limit of somewhere "
7352 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
7356 #: ../fish/guestfish-actions.pod:676
7361 #: ../fish/guestfish-actions.pod:678
7364 " checksum csumtype path\n"
7369 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7371 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7375 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7377 "The type of checksum to compute is given by the C<csumtype> parameter which "
7378 "must have one of the following values:"
7382 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7387 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7389 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7394 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7399 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7400 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7404 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7409 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7410 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7414 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7419 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7420 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7424 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7429 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7430 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7434 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7439 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7440 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7444 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7449 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7450 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7454 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7455 msgid "The checksum is returned as a printable string."
7459 #: ../fish/guestfish-actions.pod:721
7460 msgid "To get the checksum for a device, use L</checksum-device>."
7464 #: ../fish/guestfish-actions.pod:723
7465 msgid "To get the checksums for many files, use L</checksums-out>."
7469 #: ../fish/guestfish-actions.pod:725
7470 msgid "checksum-device"
7471 msgstr "checksum-device"
7474 #: ../fish/guestfish-actions.pod:727
7477 " checksum-device csumtype device\n"
7482 #: ../fish/guestfish-actions.pod:729
7484 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7485 "device named C<device>. For the types of checksums supported see the L</"
7486 "checksum> command."
7490 #: ../fish/guestfish-actions.pod:733
7491 msgid "checksums-out"
7495 #: ../fish/guestfish-actions.pod:735
7498 " checksums-out csumtype directory (sumsfile|-)\n"
7503 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7505 "This command computes the checksums of all regular files in C<directory> and "
7506 "then emits a list of those checksums to the local output file C<sumsfile>."
7510 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7512 "This can be used for verifying the integrity of a virtual machine. However "
7513 "to be properly secure you should pay attention to the output of the checksum "
7514 "command (it uses the ones from GNU coreutils). In particular when the "
7515 "filename is not printable, coreutils uses a special backslash syntax. For "
7516 "more information, see the GNU coreutils info file."
7520 #: ../fish/guestfish-actions.pod:751
7525 #: ../fish/guestfish-actions.pod:753
7528 " chmod mode path\n"
7533 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7535 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
7540 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7542 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7543 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7548 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3356
7549 #: ../fish/guestfish-actions.pod:3495 ../fish/guestfish-actions.pod:3505
7550 #: ../fish/guestfish-actions.pod:3515 ../src/guestfs-actions.pod:1117
7551 #: ../src/guestfs-actions.pod:5193 ../src/guestfs-actions.pod:5402
7552 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5440
7553 msgid "The mode actually set is affected by the umask."
7557 #: ../fish/guestfish-actions.pod:764
7562 #: ../fish/guestfish-actions.pod:766
7565 " chown owner group path\n"
7570 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7571 msgid "Change the file owner to C<owner> and group to C<group>."
7575 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
7576 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
7578 "Only numeric uid and gid are supported. If you want to use names, you will "
7579 "need to locate and parse the password file yourself (Augeas support makes "
7580 "this relatively easy)."
7584 #: ../fish/guestfish-actions.pod:774
7589 #: ../fish/guestfish-actions.pod:776
7592 " command 'arguments ...'\n"
7595 " command 'параметри...'\n"
7599 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7601 "This call runs a command from the guest filesystem. The filesystem must be "
7602 "mounted, and must contain a compatible operating system (ie. something "
7603 "Linux, with the same or compatible processor architecture)."
7607 #: ../fish/guestfish-actions.pod:783
7609 "The single parameter is an argv-style list of arguments. The first element "
7610 "is the name of the program to run. Subsequent elements are parameters. The "
7611 "list must be non-empty (ie. must contain a program name). Note that the "
7612 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7616 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7617 msgid "The return value is anything printed to I<stdout> by the command."
7621 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7623 "If the command returns a non-zero exit status, then this function returns an "
7624 "error message. The error message string is the content of I<stderr> from "
7629 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7631 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7632 "bin>. If you require a program from another location, you should provide "
7633 "the full path in the first parameter."
7637 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7639 "Shared libraries and data files required by the program must be available on "
7640 "filesystems which are mounted in the correct places. It is the caller's "
7641 "responsibility to ensure all filesystems that are needed are mounted at the "
7646 #: ../fish/guestfish-actions.pod:811
7647 msgid "command-lines"
7651 #: ../fish/guestfish-actions.pod:813
7654 " command-lines 'arguments ...'\n"
7659 #: ../fish/guestfish-actions.pod:815
7661 "This is the same as L</command>, but splits the result into a list of lines."
7665 #: ../fish/guestfish-actions.pod:818
7666 msgid "See also: L</sh-lines>"
7667 msgstr "Див. також L</sh-lines>"
7670 #: ../fish/guestfish-actions.pod:823
7671 msgid "compress-device-out"
7675 #: ../fish/guestfish-actions.pod:825
7678 " compress-device-out ctype device (zdevice|-) [level:N]\n"
7683 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7685 "This command compresses C<device> and writes it out to the local file "
7690 #: ../fish/guestfish-actions.pod:830
7692 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7697 #: ../fish/guestfish-actions.pod:837
7698 msgid "compress-out"
7702 #: ../fish/guestfish-actions.pod:839
7705 " compress-out ctype file (zfile|-) [level:N]\n"
7710 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7712 "This command compresses C<file> and writes it out to the local file C<zfile>."
7716 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7718 "The compression program used is controlled by the C<ctype> parameter. "
7719 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
7720 "Some compression types may not be supported by particular builds of "
7721 "libguestfs, in which case you will get an error containing the substring "
7722 "\"not supported\"."
7726 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7728 "The optional C<level> parameter controls compression level. The meaning and "
7729 "default for this parameter depends on the compression program being used."
7733 #: ../fish/guestfish-actions.pod:858
7738 #: ../fish/guestfish-actions.pod:860
7741 " config qemuparam qemuvalue\n"
7746 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7748 "This can be used to add arbitrary qemu command line parameters of the form "
7749 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
7750 "setting some parameters which would interfere with parameters that we use."
7754 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7755 msgid "The first character of C<param> string must be a C<-> (dash)."
7759 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7760 msgid "C<value> can be NULL."
7764 #: ../fish/guestfish-actions.pod:871
7765 msgid "copy-device-to-device"
7769 #: ../fish/guestfish-actions.pod:873
7772 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7777 #: ../fish/guestfish-actions.pod:875
7779 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
7780 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
7781 "(device|file) to a destination (device|file)."
7785 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7787 "Partial copies can be made since you can specify optionally the source "
7788 "offset, destination offset and size to copy. These values are all specified "
7789 "in bytes. If not given, the offsets both default to zero, and the size "
7790 "defaults to copying as much as possible until we hit the end of the source."
7794 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7796 "The source and destination may be the same object. However overlapping "
7797 "regions may not be copied correctly."
7801 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7803 "If the destination is a file, it is created if required. If the destination "
7804 "file is not large enough, it is extended."
7808 #: ../fish/guestfish-actions.pod:896
7809 msgid "copy-device-to-file"
7813 #: ../fish/guestfish-actions.pod:898
7816 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7821 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
7822 #: ../fish/guestfish-actions.pod:918
7823 msgid "See L</copy-device-to-device> for a general overview of this call."
7827 #: ../fish/guestfish-actions.pod:905
7828 msgid "copy-file-to-device"
7832 #: ../fish/guestfish-actions.pod:907
7835 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7840 #: ../fish/guestfish-actions.pod:914
7841 msgid "copy-file-to-file"
7845 #: ../fish/guestfish-actions.pod:916
7848 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7853 #: ../fish/guestfish-actions.pod:921
7855 "This is B<not> the function you want for copying files. This is for copying "
7856 "blocks within existing files. See L</cp>, L</cp-a> and L</mv> for general "
7857 "file copying and moving functions."
7861 #: ../fish/guestfish-actions.pod:928
7866 #: ../fish/guestfish-actions.pod:930
7869 " copy-size src dest size\n"
7874 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
7876 "This command copies exactly C<size> bytes from one source device or file "
7877 "C<src> to another destination device or file C<dest>."
7881 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
7883 "Note this will fail if the source is too short or if the destination is not "
7888 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7890 "I<This function is deprecated.> In new code, use the L</"
7891 "copy_device_to_device> call instead."
7895 #: ../fish/guestfish-actions.pod:945
7900 #: ../fish/guestfish-actions.pod:947
7908 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
7910 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7911 "destination filename or destination directory."
7915 #: ../fish/guestfish-actions.pod:952
7920 #: ../fish/guestfish-actions.pod:954
7928 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
7930 "This copies a file or directory from C<src> to C<dest> recursively using the "
7935 #: ../fish/guestfish-actions.pod:959
7940 #: ../fish/guestfish-actions.pod:961
7948 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
7950 "This command copies from one source device or file C<src> to another "
7951 "destination device or file C<dest>. Normally you would use this to copy to "
7952 "or from a device or partition, for example to duplicate a filesystem."
7956 #: ../fish/guestfish-actions.pod:968
7958 "If the destination is a device, it must be as large or larger than the "
7959 "source file or device, otherwise the copy will fail. This command cannot do "
7960 "partial copies (see L</copy-device-to-device>)."
7964 #: ../fish/guestfish-actions.pod:980
7969 #: ../fish/guestfish-actions.pod:982
7979 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
7980 msgid "This command runs the C<df> command to report disk space used."
7984 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
7986 "This command is mostly useful for interactive sessions. It is I<not> "
7987 "intended that you try to parse the output string. Use L</statvfs> from "
7992 #: ../fish/guestfish-actions.pod:990
7997 #: ../fish/guestfish-actions.pod:992
8007 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8009 "This command runs the C<df -h> command to report disk space used in human-"
8014 #: ../fish/guestfish-actions.pod:1001
8019 #: ../fish/guestfish-actions.pod:1003
8029 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8031 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
8032 "This is sometimes useful for extended debugging of problems."
8036 #: ../fish/guestfish-actions.pod:1009
8038 "Another way to get the same information is to enable verbose messages with "
8039 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8040 "before running the program."
8044 #: ../fish/guestfish-actions.pod:1014
8049 #: ../fish/guestfish-actions.pod:1016
8052 " download remotefilename (filename|-)\n"
8057 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
8058 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8060 "Download file C<remotefilename> and save it as C<filename> on the local "
8065 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5179
8066 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7970
8067 msgid "C<filename> can also be a named pipe."
8071 #: ../fish/guestfish-actions.pod:1023
8072 msgid "See also L</upload>, L</cat>."
8076 #: ../fish/guestfish-actions.pod:1027
8077 msgid "download-offset"
8078 msgstr "download-offset"
8081 #: ../fish/guestfish-actions.pod:1029
8084 " download-offset remotefilename (filename|-) offset size\n"
8089 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8091 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8092 "region must be within the file or device)."
8096 #: ../fish/guestfish-actions.pod:1037
8098 "Note that there is no limit on the amount of data that can be downloaded "
8099 "with this call, unlike with L</pread>, and this call always reads the full "
8100 "amount unless an error occurs."
8104 #: ../fish/guestfish-actions.pod:1042
8105 msgid "See also L</download>, L</pread>."
8109 #: ../fish/guestfish-actions.pod:1046
8114 #: ../fish/guestfish-actions.pod:1048
8117 " drop-caches whattodrop\n"
8122 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8124 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8125 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
8126 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8130 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8131 msgid "Setting C<whattodrop> to 3 should drop everything."
8135 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8137 "This automatically calls L<sync(2)> before the operation, so that the "
8138 "maximum guest memory is freed."
8142 #: ../fish/guestfish-actions.pod:1060
8147 #: ../fish/guestfish-actions.pod:1062
8157 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8159 "This command runs the C<du -s> command to estimate file space usage for "
8164 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8166 "C<path> can be a file or a directory. If C<path> is a directory then the "
8167 "estimate includes the contents of the directory and all subdirectories "
8172 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8174 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8178 #: ../fish/guestfish-actions.pod:1074
8183 #: ../fish/guestfish-actions.pod:1076
8186 " e2fsck-f device\n"
8191 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8193 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8194 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8199 #: ../fish/guestfish-actions.pod:1082
8201 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
8202 "should use L</fsck>."
8206 #: ../fish/guestfish-actions.pod:1085
8211 #: ../fish/guestfish-actions.pod:1087
8214 " echo-daemon 'words ...'\n"
8219 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8221 "This command concatenates the list of C<words> passed with single spaces "
8222 "between them and returns the resulting string."
8226 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8227 msgid "You can use this command to test the connection through to the daemon."
8231 #: ../fish/guestfish-actions.pod:1094
8232 msgid "See also L</ping-daemon>."
8233 msgstr "Див. також L</ping-daemon>."
8236 #: ../fish/guestfish-actions.pod:1096
8241 #: ../fish/guestfish-actions.pod:1098
8244 " egrep regex path\n"
8249 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8251 "This calls the external C<egrep> program and returns the matching lines."
8255 #: ../fish/guestfish-actions.pod:1106
8260 #: ../fish/guestfish-actions.pod:1108
8263 " egrepi regex path\n"
8268 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8270 "This calls the external C<egrep -i> program and returns the matching lines."
8274 #: ../fish/guestfish-actions.pod:1116
8279 #: ../fish/guestfish-actions.pod:1118
8282 " equal file1 file2\n"
8285 " equal файл1 файл2\n"
8289 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8291 "This compares the two files C<file1> and C<file2> and returns true if their "
8292 "content is exactly equal, or false otherwise."
8296 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8297 msgid "The external L<cmp(1)> program is used for the comparison."
8301 #: ../fish/guestfish-actions.pod:1125
8306 #: ../fish/guestfish-actions.pod:1127
8316 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8318 "This returns C<true> if and only if there is a file, directory (or anything) "
8319 "with the given C<path> name."
8323 #: ../fish/guestfish-actions.pod:1132
8324 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8325 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8328 #: ../fish/guestfish-actions.pod:1134
8333 #: ../fish/guestfish-actions.pod:1136
8336 " fallocate path len\n"
8339 " fallocate шлях довжина\n"
8343 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8344 #: ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8346 "This command preallocates a file (containing zero bytes) named C<path> of "
8347 "size C<len> bytes. If the file exists already, it is overwritten."
8351 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8353 "Do not confuse this with the guestfish-specific C<alloc> command which "
8354 "allocates a file in the host and attaches it as a device."
8358 #: ../fish/guestfish-actions.pod:1146
8360 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8365 #: ../fish/guestfish-actions.pod:1153
8367 msgstr "fallocate64"
8370 #: ../fish/guestfish-actions.pod:1155
8373 " fallocate64 path len\n"
8376 " fallocate64 шлях довжина\n"
8380 #: ../fish/guestfish-actions.pod:1161
8382 "Note that this call allocates disk blocks for the file. To create a sparse "
8383 "file use L</truncate-size> instead."
8387 #: ../fish/guestfish-actions.pod:1164
8389 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8390 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8391 "maximum size of files created through that call to 1GB."
8395 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
8397 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8398 "commands which create a file in the host and attach it as a device."
8402 #: ../fish/guestfish-actions.pod:1173
8407 #: ../fish/guestfish-actions.pod:1175
8410 " fgrep pattern path\n"
8413 " fgrep шаблон шлях\n"
8417 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
8419 "This calls the external C<fgrep> program and returns the matching lines."
8423 #: ../fish/guestfish-actions.pod:1183
8428 #: ../fish/guestfish-actions.pod:1185
8431 " fgrepi pattern path\n"
8434 " fgrepi шаблон шлях\n"
8438 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
8440 "This calls the external C<fgrep -i> program and returns the matching lines."
8444 #: ../fish/guestfish-actions.pod:1193
8449 #: ../fish/guestfish-actions.pod:1195
8459 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
8461 "This call uses the standard L<file(1)> command to determine the type or "
8462 "contents of the file."
8466 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
8468 "This call will also transparently look inside various types of compressed "
8473 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
8475 "The exact command which runs is C<file -zb path>. Note in particular that "
8476 "the filename is not prepended to the output (the I<-b> option)."
8480 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
8482 "The output depends on the output of the underlying L<file(1)> command and it "
8483 "can change in future in ways beyond our control. In other words, the output "
8484 "is not guaranteed by the ABI."
8488 #: ../fish/guestfish-actions.pod:1211
8490 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8491 "(etc), L</is-zero>."
8495 #: ../fish/guestfish-actions.pod:1214
8496 msgid "file-architecture"
8497 msgstr "file-architecture"
8500 #: ../fish/guestfish-actions.pod:1216
8503 " file-architecture filename\n"
8506 " file-architecture назва_файла\n"
8510 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
8512 "This detects the architecture of the binary C<filename>, and returns it if "
8517 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
8518 msgid "Currently defined architectures are:"
8522 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
8527 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
8529 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8530 "irrespective of the precise processor requirements of the binary."
8534 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
8539 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
8540 msgid "64 bit x86-64."
8544 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
8549 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
8550 msgid "32 bit SPARC."
8554 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
8559 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
8560 msgid "64 bit SPARC V9 and above."
8564 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
8569 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
8570 msgid "Intel Itanium."
8571 msgstr "Intel Itanium."
8574 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
8579 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
8580 msgid "32 bit Power PC."
8584 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
8589 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
8590 msgid "64 bit Power PC."
8594 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
8595 msgid "Libguestfs may return other architecture strings in future."
8599 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
8600 msgid "The function works on at least the following types of files:"
8604 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
8605 msgid "many types of Un*x and Linux binary"
8609 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
8610 msgid "many types of Un*x and Linux shared library"
8614 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
8615 msgid "Windows Win32 and Win64 binaries"
8619 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
8620 msgid "Windows Win32 and Win64 DLLs"
8624 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
8625 msgid "Win32 binaries and DLLs return C<i386>."
8629 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
8630 msgid "Win64 binaries and DLLs return C<x86_64>."
8634 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
8635 msgid "Linux kernel modules"
8639 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
8640 msgid "Linux new-style initrd images"
8644 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
8645 msgid "some non-x86 Linux vmlinuz kernels"
8649 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
8650 msgid "What it can't do currently:"
8654 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
8655 msgid "static libraries (libfoo.a)"
8659 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
8660 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8664 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
8665 msgid "x86 Linux vmlinuz kernels"
8669 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
8671 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8672 "compressed code, and are horribly hard to unpack. If you want to find the "
8673 "architecture of a kernel, use the architecture of the associated initrd or "
8674 "kernel module(s) instead."
8678 #: ../fish/guestfish-actions.pod:1319
8683 #: ../fish/guestfish-actions.pod:1321
8693 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
8694 msgid "This command returns the size of C<file> in bytes."
8698 #: ../fish/guestfish-actions.pod:1325
8700 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8701 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
8705 #: ../fish/guestfish-actions.pod:1329
8710 #: ../fish/guestfish-actions.pod:1331
8713 " fill c len path\n"
8718 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
8720 "This command creates a new file called C<path>. The initial content of the "
8721 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8726 #: ../fish/guestfish-actions.pod:1337
8728 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8729 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
8734 #: ../fish/guestfish-actions.pod:1342
8735 msgid "fill-pattern"
8736 msgstr "fill-pattern"
8739 #: ../fish/guestfish-actions.pod:1344
8742 " fill-pattern pattern len path\n"
8747 #: ../fish/guestfish-actions.pod:1346
8749 "This function is like L</fill> except that it creates a new file of length "
8750 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
8751 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8756 #: ../fish/guestfish-actions.pod:1351
8761 #: ../fish/guestfish-actions.pod:1353
8771 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
8773 "This command lists out all files and directories, recursively, starting at "
8774 "C<directory>. It is essentially equivalent to running the shell command "
8775 "C<find directory -print> but some post-processing happens on the output, "
8780 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
8782 "This returns a list of strings I<without any prefix>. Thus if the directory "
8787 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8797 #: ../fish/guestfish-actions.pod:1367
8798 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8802 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
8813 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
8814 msgid "If C<directory> is not a directory, then this command returns an error."
8818 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
8819 msgid "The returned list is sorted."
8823 #: ../fish/guestfish-actions.pod:1380
8824 msgid "See also L</find0>."
8825 msgstr "Див. також L</find0>."
8828 #: ../fish/guestfish-actions.pod:1385
8833 #: ../fish/guestfish-actions.pod:1387
8836 " find0 directory (files|-)\n"
8839 " find0 каталог (файли|-)\n"
8843 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
8845 "This command lists out all files and directories, recursively, starting at "
8846 "C<directory>, placing the resulting list in the external file called "
8851 #: ../fish/guestfish-actions.pod:1393
8853 "This command works the same way as L</find> with the following exceptions:"
8857 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
8858 msgid "The resulting list is written to an external file."
8862 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
8864 "Items (filenames) in the result are separated by C<\\0> characters. See "
8865 "L<find(1)> option I<-print0>."
8869 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
8870 msgid "This command is not limited in the number of names that it can return."
8874 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
8875 msgid "The result list is not sorted."
8879 #: ../fish/guestfish-actions.pod:1420
8880 msgid "findfs-label"
8881 msgstr "findfs-label"
8884 #: ../fish/guestfish-actions.pod:1422
8887 " findfs-label label\n"
8890 " findfs-label мітка\n"
8894 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
8896 "This command searches the filesystems and returns the one which has the "
8897 "given label. An error is returned if no such filesystem can be found."
8901 #: ../fish/guestfish-actions.pod:1428
8902 msgid "To find the label of a filesystem, use L</vfs-label>."
8903 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8906 #: ../fish/guestfish-actions.pod:1430
8908 msgstr "findfs-uuid"
8911 #: ../fish/guestfish-actions.pod:1432
8914 " findfs-uuid uuid\n"
8917 " findfs-uuid uuid\n"
8921 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
8923 "This command searches the filesystems and returns the one which has the "
8924 "given UUID. An error is returned if no such filesystem can be found."
8928 #: ../fish/guestfish-actions.pod:1438
8929 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8930 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8933 #: ../fish/guestfish-actions.pod:1440
8938 #: ../fish/guestfish-actions.pod:1442
8941 " fsck fstype device\n"
8944 " fsck тип_файлової_системи пристрій\n"
8948 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
8950 "This runs the filesystem checker (fsck) on C<device> which should have "
8951 "filesystem type C<fstype>."
8955 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
8957 "The returned integer is the status. See L<fsck(8)> for the list of status "
8958 "codes from C<fsck>."
8962 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
8963 msgid "Multiple status codes can be summed together."
8967 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
8969 "A non-zero return code can mean \"success\", for example if errors have been "
8970 "corrected on the filesystem."
8974 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
8975 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8979 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
8981 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8985 #: ../fish/guestfish-actions.pod:1472
8990 #: ../fish/guestfish-actions.pod:1474
9000 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
9002 "Return the additional kernel options which are added to the guest kernel "
9007 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
9008 msgid "If C<NULL> then no options are added."
9012 #: ../fish/guestfish-actions.pod:1481
9013 msgid "get-attach-method"
9014 msgstr "get-attach-method"
9017 #: ../fish/guestfish-actions.pod:1483
9020 " get-attach-method\n"
9023 " get-attach-method\n"
9027 #: ../fish/guestfish-actions.pod:1485
9028 msgid "Return the current attach method. See L</set-attach-method>."
9032 #: ../fish/guestfish-actions.pod:1487
9033 msgid "get-autosync"
9034 msgstr "get-autosync"
9037 #: ../fish/guestfish-actions.pod:1489
9047 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9048 msgid "Get the autosync flag."
9052 #: ../fish/guestfish-actions.pod:1493
9057 #: ../fish/guestfish-actions.pod:1495
9067 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9068 msgid "Return the direct appliance mode flag."
9072 #: ../fish/guestfish-actions.pod:1499
9074 msgstr "get-e2label"
9077 #: ../fish/guestfish-actions.pod:1501
9080 " get-e2label device\n"
9083 " get-e2label пристрій\n"
9087 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9089 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9093 #: ../fish/guestfish-actions.pod:1506
9095 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9100 #: ../fish/guestfish-actions.pod:1513
9105 #: ../fish/guestfish-actions.pod:1515
9108 " get-e2uuid device\n"
9111 " get-e2uuid пристрій\n"
9115 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9117 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9121 #: ../fish/guestfish-actions.pod:1520
9123 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9128 #: ../fish/guestfish-actions.pod:1527
9130 msgstr "get-memsize"
9133 #: ../fish/guestfish-actions.pod:1529
9143 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
9145 "This gets the memory size in megabytes allocated to the qemu subprocess."
9149 #: ../fish/guestfish-actions.pod:1534
9151 "If L</set-memsize> was not called on this handle, and if "
9152 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9153 "value for memsize."
9157 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
9158 #: ../fish/guestfish-actions.pod:4457 ../fish/guestfish-actions.pod:4559
9159 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
9160 #: ../src/guestfs-actions.pod:6904 ../src/guestfs-actions.pod:7030
9162 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9166 #: ../fish/guestfish-actions.pod:1541
9168 msgstr "get-network"
9171 #: ../fish/guestfish-actions.pod:1543
9181 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9182 msgid "This returns the enable network flag."
9186 #: ../fish/guestfish-actions.pod:1547
9191 #: ../fish/guestfish-actions.pod:1549
9201 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9202 msgid "Return the current search path."
9206 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9208 "This is always non-NULL. If it wasn't set already, then this will return "
9213 #: ../fish/guestfish-actions.pod:1556
9218 #: ../fish/guestfish-actions.pod:1558
9226 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9227 msgid "This returns the process group flag."
9231 #: ../fish/guestfish-actions.pod:1562
9236 #: ../fish/guestfish-actions.pod:1564
9241 #: ../fish/guestfish-actions.pod:1566
9251 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9253 "Return the process ID of the qemu subprocess. If there is no qemu "
9254 "subprocess, then this will return an error."
9258 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9259 msgid "This is an internal call used for debugging and testing."
9263 #: ../fish/guestfish-actions.pod:1573
9268 #: ../fish/guestfish-actions.pod:1575
9278 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9279 msgid "Return the current qemu binary."
9283 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9285 "This is always non-NULL. If it wasn't set already, then this will return "
9286 "the default qemu binary name."
9290 #: ../fish/guestfish-actions.pod:1582
9291 msgid "get-recovery-proc"
9292 msgstr "get-recovery-proc"
9295 #: ../fish/guestfish-actions.pod:1584
9298 " get-recovery-proc\n"
9301 " get-recovery-proc\n"
9305 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9306 msgid "Return the recovery process enabled flag."
9310 #: ../fish/guestfish-actions.pod:1588
9312 msgstr "get-selinux"
9315 #: ../fish/guestfish-actions.pod:1590
9325 #: ../fish/guestfish-actions.pod:1592
9327 "This returns the current setting of the selinux flag which is passed to the "
9328 "appliance at boot time. See L</set-selinux>."
9332 #: ../fish/guestfish-actions.pod:1598
9337 #: ../fish/guestfish-actions.pod:1600
9345 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9346 msgid "This returns the number of virtual CPUs assigned to the appliance."
9350 #: ../fish/guestfish-actions.pod:1604
9355 #: ../fish/guestfish-actions.pod:1606
9365 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9367 "This returns the current state as an opaque integer. This is only useful "
9368 "for printing debug and internal error messages."
9372 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
9373 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
9374 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582
9375 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930
9376 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
9377 msgid "For more information on states, see L<guestfs(3)>."
9381 #: ../fish/guestfish-actions.pod:1613
9386 #: ../fish/guestfish-actions.pod:1615
9396 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9397 msgid "Return the command trace flag."
9401 #: ../fish/guestfish-actions.pod:1619
9406 #: ../fish/guestfish-actions.pod:1621
9416 #: ../fish/guestfish-actions.pod:1623
9418 "Return the current umask. By default the umask is C<022> unless it has been "
9419 "set by calling L</umask>."
9423 #: ../fish/guestfish-actions.pod:1626
9425 msgstr "get-verbose"
9428 #: ../fish/guestfish-actions.pod:1628
9438 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
9439 msgid "This returns the verbose messages flag."
9443 #: ../fish/guestfish-actions.pod:1632
9448 #: ../fish/guestfish-actions.pod:1634
9458 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
9459 msgid "This gets the SELinux security context of the daemon."
9463 #: ../fish/guestfish-actions.pod:1638
9464 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9468 #: ../fish/guestfish-actions.pod:1641
9473 #: ../fish/guestfish-actions.pod:1643
9476 " getxattr path name\n"
9479 " getxattr шлях назва\n"
9483 #: ../fish/guestfish-actions.pod:1645
9485 "Get a single extended attribute from file C<path> named C<name>. This call "
9486 "follows symlinks. If you want to lookup an extended attribute for the "
9487 "symlink itself, use L</lgetxattr>."
9491 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9493 "Normally it is better to get all extended attributes from a file in one go "
9494 "by calling L</getxattrs>. However some Linux filesystem implementations are "
9495 "buggy and do not provide a way to list out attributes. For these "
9496 "filesystems (notably ntfs-3g) you have to know the names of the extended "
9497 "attributes you want in advance and call this function."
9501 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
9502 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
9504 "Extended attribute values are blobs of binary data. If there is no extended "
9505 "attribute named C<name>, this returns an error."
9509 #: ../fish/guestfish-actions.pod:1659
9510 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9511 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9514 #: ../fish/guestfish-actions.pod:1661
9519 #: ../fish/guestfish-actions.pod:1663
9529 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
9531 "This call lists the extended attributes of the file or directory C<path>."
9535 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
9537 "At the system call level, this is a combination of the L<listxattr(2)> and "
9538 "L<getxattr(2)> calls."
9542 #: ../fish/guestfish-actions.pod:1671
9543 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9544 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9547 #: ../fish/guestfish-actions.pod:1673
9549 msgstr "glob-expand"
9552 #: ../fish/guestfish-actions.pod:1675
9555 " glob-expand pattern\n"
9558 " glob-expand шаблон\n"
9562 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
9564 "This command searches for all the pathnames matching C<pattern> according to "
9565 "the wildcard expansion rules used by the shell."
9569 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
9571 "If no paths match, then this returns an empty list (note: not an error)."
9575 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
9577 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9578 "GLOB_BRACE>. See that manual page for more details."
9582 #: ../fish/guestfish-actions.pod:1688
9587 #: ../fish/guestfish-actions.pod:1690
9590 " grep regex path\n"
9593 " grepi формальний_вираз шлях\n"
9597 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
9598 msgid "This calls the external C<grep> program and returns the matching lines."
9602 #: ../fish/guestfish-actions.pod:1698
9607 #: ../fish/guestfish-actions.pod:1700
9610 " grepi regex path\n"
9613 " grepi формальний_вираз шлях\n"
9617 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
9619 "This calls the external C<grep -i> program and returns the matching lines."
9623 #: ../fish/guestfish-actions.pod:1708
9624 msgid "grub-install"
9625 msgstr "grub-install"
9628 #: ../fish/guestfish-actions.pod:1710
9631 " grub-install root device\n"
9634 " grub-install кореневий пристрій\n"
9638 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
9640 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9641 "with the root directory being C<root>."
9645 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
9647 "There is currently no way in the API to install grub2, which is used by most "
9648 "modern Linux guests. It is possible to run the grub2 command from the "
9649 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9653 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
9655 "This uses C<grub-install> from the host. Unfortunately grub is not always "
9656 "compatible with itself, so this only works in rather narrow circumstances. "
9657 "Careful testing with each guest version is advisable."
9661 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
9663 "If grub-install reports the error \"No suitable drive was found in the "
9664 "generated device map.\" it may be that you need to create a C</boot/grub/"
9665 "device.map> file first that contains the mapping between grub device names "
9666 "and Linux device names. It is usually sufficient to create a file "
9671 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
9679 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
9680 msgid "replacing C</dev/vda> with the name of the installation device."
9684 #: ../fish/guestfish-actions.pod:1748
9689 #: ../fish/guestfish-actions.pod:1750
9699 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
9701 "This command returns up to the first 10 lines of a file as a list of strings."
9705 #: ../fish/guestfish-actions.pod:1758
9710 #: ../fish/guestfish-actions.pod:1760
9713 " head-n nrlines path\n"
9718 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
9720 "If the parameter C<nrlines> is a positive number, this returns the first "
9721 "C<nrlines> lines of the file C<path>."
9725 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
9727 "If the parameter C<nrlines> is a negative number, this returns lines from "
9728 "the file C<path>, excluding the last C<nrlines> lines."
9732 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4940
9733 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7609
9734 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9738 #: ../fish/guestfish-actions.pod:1773
9743 #: ../fish/guestfish-actions.pod:1775
9753 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
9755 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
9756 "readable, canonical hex dump of the file."
9760 #: ../fish/guestfish-actions.pod:1783
9765 #: ../fish/guestfish-actions.pod:1785
9768 " initrd-cat initrdpath filename\n"
9771 " initrd-cat шлях_initrd назва_файла\n"
9775 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
9777 "This command unpacks the file C<filename> from the initrd file called "
9778 "C<initrdpath>. The filename must be given I<without> the initial C</> "
9783 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
9785 "For example, in guestfish you could use the following command to examine the "
9786 "boot script (usually called C</init>) contained in a Linux initrd or "
9791 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
9794 " initrd-cat /boot/initrd-<version>.img init\n"
9799 #: ../fish/guestfish-actions.pod:1797
9800 msgid "See also L</initrd-list>."
9801 msgstr "Див. також L</initrd-list>."
9804 #: ../fish/guestfish-actions.pod:1802
9806 msgstr "initrd-list"
9809 #: ../fish/guestfish-actions.pod:1804
9812 " initrd-list path\n"
9815 " initrd-list шлях\n"
9819 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
9820 msgid "This command lists out files contained in an initrd."
9824 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
9826 "The files are listed without any initial C</> character. The files are "
9827 "listed in the order they appear (not necessarily alphabetical). Directory "
9828 "names are listed as separate items."
9832 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
9834 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9835 "initrd. We I<only> support the newer initramfs format (compressed cpio "
9840 #: ../fish/guestfish-actions.pod:1816
9841 msgid "inotify-add-watch"
9842 msgstr "inotify-add-watch"
9845 #: ../fish/guestfish-actions.pod:1818
9848 " inotify-add-watch path mask\n"
9851 " inotify-add-watch шлях маска\n"
9855 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
9856 msgid "Watch C<path> for the events listed in C<mask>."
9860 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
9862 "Note that if C<path> is a directory then events within that directory are "
9863 "watched, but this does I<not> happen recursively (in subdirectories)."
9867 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
9869 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9870 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9874 #: ../fish/guestfish-actions.pod:1830
9875 msgid "inotify-close"
9876 msgstr "inotify-close"
9879 #: ../fish/guestfish-actions.pod:1832
9889 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
9891 "This closes the inotify handle which was previously opened by inotify_init. "
9892 "It removes all watches, throws away any pending events, and deallocates all "
9897 #: ../fish/guestfish-actions.pod:1838
9898 msgid "inotify-files"
9899 msgstr "inotify-files"
9902 #: ../fish/guestfish-actions.pod:1840
9912 #: ../fish/guestfish-actions.pod:1842
9914 "This function is a helpful wrapper around L</inotify-read> which just "
9915 "returns a list of pathnames of objects that were touched. The returned "
9916 "pathnames are sorted and deduplicated."
9920 #: ../fish/guestfish-actions.pod:1846
9921 msgid "inotify-init"
9922 msgstr "inotify-init"
9925 #: ../fish/guestfish-actions.pod:1848
9928 " inotify-init maxevents\n"
9933 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
9935 "This command creates a new inotify handle. The inotify subsystem can be "
9936 "used to notify events which happen to objects in the guest filesystem."
9940 #: ../fish/guestfish-actions.pod:1854
9942 "C<maxevents> is the maximum number of events which will be queued up between "
9943 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
9944 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
9945 "default was 16384 events. Beyond this limit, the kernel throws away events, "
9946 "but records the fact that it threw them away by setting a flag "
9947 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9951 #: ../fish/guestfish-actions.pod:1864
9953 "Before any events are generated, you have to add some watches to the "
9954 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9955 "L</inotify-watch-all>."
9959 #: ../fish/guestfish-actions.pod:1870
9961 "Queued up events should be read periodically by calling L</inotify-read> (or "
9962 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
9963 "If you don't read the events out often enough then you risk the internal "
9964 "queue overflowing."
9968 #: ../fish/guestfish-actions.pod:1877
9970 "The handle should be closed after use by calling L</inotify-close>. This "
9971 "also removes any watches automatically."
9975 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
9977 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9978 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
9979 "that there is one global inotify handle per libguestfs instance."
9983 #: ../fish/guestfish-actions.pod:1886
9984 msgid "inotify-read"
9985 msgstr "inotify-read"
9988 #: ../fish/guestfish-actions.pod:1888
9998 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
10000 "Return the complete queue of events that have happened since the previous "
10005 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
10006 msgid "If no events have happened, this returns an empty list."
10010 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
10012 "I<Note>: In order to make sure that all events have been read, you must call "
10013 "this function repeatedly until it returns an empty list. The reason is that "
10014 "the call will read events up to the maximum appliance-to-host message size "
10015 "and leave remaining events in the queue."
10019 #: ../fish/guestfish-actions.pod:1901
10020 msgid "inotify-rm-watch"
10021 msgstr "inotify-rm-watch"
10024 #: ../fish/guestfish-actions.pod:1903
10027 " inotify-rm-watch wd\n"
10032 #: ../fish/guestfish-actions.pod:1905
10033 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
10037 #: ../fish/guestfish-actions.pod:1908
10038 msgid "inspect-get-arch"
10039 msgstr "inspect-get-arch"
10042 #: ../fish/guestfish-actions.pod:1910
10045 " inspect-get-arch root\n"
10048 " inspect-get-arch корінь\n"
10052 #: ../fish/guestfish-actions.pod:1912
10054 "This returns the architecture of the inspected operating system. The "
10055 "possible return values are listed under L</file-architecture>."
10059 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
10061 "If the architecture could not be determined, then the string C<unknown> is "
10066 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
10067 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
10068 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
10069 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
10070 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
10071 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
10072 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
10073 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
10074 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3048
10075 #: ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254
10076 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404
10077 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516
10078 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590
10079 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3654
10080 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691
10081 #: ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725
10082 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
10083 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10087 #: ../fish/guestfish-actions.pod:1921
10088 msgid "inspect-get-distro"
10089 msgstr "inspect-get-distro"
10092 #: ../fish/guestfish-actions.pod:1923
10095 " inspect-get-distro root\n"
10098 " inspect-get-distro корінь\n"
10102 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
10104 "This returns the distro (distribution) of the inspected operating system."
10108 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
10109 msgid "Currently defined distros are:"
10113 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
10114 msgid "\"archlinux\""
10115 msgstr "\"archlinux\""
10118 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
10119 msgid "Arch Linux."
10120 msgstr "Arch Linux."
10123 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10128 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10133 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10135 msgstr "\"debian\""
10138 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
10143 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
10145 msgstr "\"fedora\""
10148 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
10153 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
10155 msgstr "\"gentoo\""
10158 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
10163 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
10164 msgid "\"linuxmint\""
10165 msgstr "\"linuxmint\""
10168 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
10169 msgid "Linux Mint."
10170 msgstr "Linux Mint."
10173 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
10178 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
10183 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
10184 msgid "\"mandriva\""
10185 msgstr "\"mandriva\""
10188 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
10193 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
10198 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
10203 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
10204 msgid "\"opensuse\""
10208 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
10213 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
10215 msgstr "\"pardus\""
10218 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
10223 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
10224 msgid "\"redhat-based\""
10225 msgstr "\"redhat-based\""
10228 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
10229 msgid "Some Red Hat-derived distro."
10230 msgstr "Дистрибутив, що походить від Red Hat."
10233 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10238 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10239 msgid "Red Hat Enterprise Linux."
10240 msgstr "Red Hat Enterprise Linux."
10243 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10244 msgid "\"scientificlinux\""
10245 msgstr "\"scientificlinux\""
10248 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10249 msgid "Scientific Linux."
10250 msgstr "Scientific Linux."
10253 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10254 msgid "\"slackware\""
10255 msgstr "\"slackware\""
10258 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10260 msgstr "Slackware."
10263 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10264 msgid "\"ttylinux\""
10268 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10273 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10275 msgstr "\"ubuntu\""
10278 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10283 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10284 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3136
10285 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
10286 msgid "\"unknown\""
10287 msgstr "\"unknown\""
10290 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10291 msgid "The distro could not be determined."
10292 msgstr "Дистрибутив, тип якого не вдалося визначити."
10295 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10296 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10297 msgid "\"windows\""
10298 msgstr "\"windows\""
10301 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10303 "Windows does not have distributions. This string is returned if the OS type "
10308 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10309 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3147
10310 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
10312 "Future versions of libguestfs may return other strings here. The caller "
10313 "should be prepared to handle any string."
10317 #: ../fish/guestfish-actions.pod:2016
10318 msgid "inspect-get-drive-mappings"
10322 #: ../fish/guestfish-actions.pod:2018
10325 " inspect-get-drive-mappings root\n"
10330 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10332 "This call is useful for Windows which uses a primitive system of assigning "
10333 "drive letters (like \"C:\") to partitions. This inspection API examines the "
10334 "Windows Registry to find out how disks/partitions are mapped to drive "
10335 "letters, and returns a hash table as in the example below:"
10339 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10342 " C => /dev/vda2\n"
10343 " E => /dev/vdb1\n"
10344 " F => /dev/vdc1\n"
10349 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10351 "Note that keys are drive letters. For Windows, the key is case insensitive "
10352 "and just contains the drive letter, without the customary colon separator "
10357 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10359 "In future we may support other operating systems that also used drive "
10360 "letters, but the keys for those might not be case insensitive and might be "
10361 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
10366 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10368 "For Windows guests, currently only hard drive mappings are returned. "
10369 "Removable disks (eg. DVD-ROMs) are ignored."
10373 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10375 "For guests that do not use drive mappings, or if the drive mappings could "
10376 "not be determined, this returns an empty hash table."
10380 #: ../fish/guestfish-actions.pod:2045
10382 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10383 "get-mountpoints>, L</inspect-get-filesystems>."
10387 #: ../fish/guestfish-actions.pod:2049
10388 msgid "inspect-get-filesystems"
10389 msgstr "inspect-get-filesystems"
10392 #: ../fish/guestfish-actions.pod:2051
10395 " inspect-get-filesystems root\n"
10398 " inspect-get-filesystems корінь\n"
10402 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10404 "This returns a list of all the filesystems that we think are associated with "
10405 "this operating system. This includes the root filesystem, other ordinary "
10406 "filesystems, and non-mounted devices like swap partitions."
10410 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10412 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10413 "to be shared between operating systems."
10417 #: ../fish/guestfish-actions.pod:2061
10419 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10420 "get-mountpoints>."
10424 #: ../fish/guestfish-actions.pod:2064
10425 msgid "inspect-get-format"
10426 msgstr "inspect-get-format"
10429 #: ../fish/guestfish-actions.pod:2066
10432 " inspect-get-format root\n"
10435 " inspect-get-format корінь\n"
10439 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10441 "This returns the format of the inspected operating system. You can use it "
10442 "to detect install images, live CDs and similar."
10446 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10447 msgid "Currently defined formats are:"
10451 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10452 msgid "\"installed\""
10453 msgstr "\"installed\""
10456 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10457 msgid "This is an installed operating system."
10458 msgstr "Це встановлена операційна система."
10461 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10462 msgid "\"installer\""
10466 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10468 "The disk image being inspected is not an installed operating system, but a "
10469 "I<bootable> install disk, live CD, or similar."
10473 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
10474 msgid "The format of this disk image is not known."
10478 #: ../fish/guestfish-actions.pod:2095
10479 msgid "inspect-get-hostname"
10480 msgstr "inspect-get-hostname"
10483 #: ../fish/guestfish-actions.pod:2097
10486 " inspect-get-hostname root\n"
10489 " inspect-get-hostname корінь\n"
10493 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
10495 "This function returns the hostname of the operating system as found by "
10496 "inspection of the guest's configuration files."
10500 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
10502 "If the hostname could not be determined, then the string C<unknown> is "
10507 #: ../fish/guestfish-actions.pod:2107
10508 msgid "inspect-get-icon"
10512 #: ../fish/guestfish-actions.pod:2109
10515 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
10520 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
10522 "This function returns an icon corresponding to the inspected operating "
10523 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
10524 "to PNG if necessary)."
10528 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
10530 "If it was not possible to get an icon this function returns a zero-length "
10531 "(non-NULL) buffer. I<Callers must check for this case>."
10535 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
10537 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10538 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10539 "this file will be returned. You can disable favicons by passing the "
10540 "optional C<favicon> boolean as false (default is true)."
10544 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
10546 "If finding the favicon fails, then we look in other places in the guest for "
10551 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
10553 "If the optional C<highquality> boolean is true then only high quality icons "
10554 "are returned, which means only icons of high resolution with an alpha "
10555 "channel. The default (false) is to return any icon we can, even if it is of "
10556 "substandard quality."
10560 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
10562 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10563 "before you call this, since it needs to read information from the guest "
10564 "filesystem during the call."
10568 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
10570 "B<Security:> The icon data comes from the untrusted guest, and should be "
10571 "treated with caution. PNG files have been known to contain exploits. "
10572 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10573 "trying to process or display the icon."
10577 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
10579 "The PNG image returned can be any size. It might not be square. Libguestfs "
10580 "tries to return the largest, highest quality icon available. The "
10581 "application must scale the icon to the required size."
10585 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
10587 "Extracting icons from Windows guests requires the external C<wrestool> "
10588 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10589 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
10590 "installed separately."
10594 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
10596 "Operating system icons are usually trademarks. Seek legal advice before "
10597 "using trademarks in applications."
10601 #: ../fish/guestfish-actions.pod:2173
10602 msgid "inspect-get-major-version"
10603 msgstr "inspect-get-major-version"
10606 #: ../fish/guestfish-actions.pod:2175
10609 " inspect-get-major-version root\n"
10612 " inspect-get-major-version корінь\n"
10616 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
10618 "This returns the major version number of the inspected operating system."
10622 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
10624 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10625 "popular public names used by the operating system. Notably the operating "
10626 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10627 "1). You can find out the real versions corresponding to releases of Windows "
10628 "by consulting Wikipedia or MSDN."
10632 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
10633 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
10634 msgid "If the version could not be determined, then C<0> is returned."
10638 #: ../fish/guestfish-actions.pod:2191
10639 msgid "inspect-get-minor-version"
10640 msgstr "inspect-get-minor-version"
10643 #: ../fish/guestfish-actions.pod:2193
10646 " inspect-get-minor-version root\n"
10649 " inspect-get-minor-version корінь\n"
10653 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
10655 "This returns the minor version number of the inspected operating system."
10659 #: ../fish/guestfish-actions.pod:2200
10661 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10662 "get-major-version>."
10666 #: ../fish/guestfish-actions.pod:2203
10667 msgid "inspect-get-mountpoints"
10668 msgstr "inspect-get-mountpoints"
10671 #: ../fish/guestfish-actions.pod:2205
10674 " inspect-get-mountpoints root\n"
10677 " inspect-get-mountpoints корінь\n"
10681 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
10683 "This returns a hash of where we think the filesystems associated with this "
10684 "operating system should be mounted. Callers should note that this is at "
10685 "best an educated guess made by reading configuration files such as C</etc/"
10686 "fstab>. I<In particular note> that this may return filesystems which are "
10687 "non-existent or not mountable and callers should be prepared to handle or "
10688 "ignore failures if they try to mount them."
10692 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
10694 "Each element in the returned hashtable has a key which is the path of the "
10695 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10696 "mounted there (eg. C</dev/sda1>)."
10700 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
10702 "Non-mounted devices such as swap devices are I<not> returned in this list."
10706 #: ../fish/guestfish-actions.pod:2224
10708 "For operating systems like Windows which still use drive letters, this call "
10709 "will only return an entry for the first drive \"mounted on\" C</>. For "
10710 "information about the mapping of drive letters to partitions, see L</inspect-"
10711 "get-drive-mappings>."
10715 #: ../fish/guestfish-actions.pod:2230
10717 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10718 "get-filesystems>."
10722 #: ../fish/guestfish-actions.pod:2233
10723 msgid "inspect-get-package-format"
10724 msgstr "inspect-get-package-format"
10727 #: ../fish/guestfish-actions.pod:2235
10730 " inspect-get-package-format root\n"
10733 " inspect-get-package-format корінь\n"
10737 #: ../fish/guestfish-actions.pod:2237
10739 "This function and L</inspect-get-package-management> return the package "
10740 "format and package management tool used by the inspected operating system. "
10741 "For example for Fedora these functions would return C<rpm> (package format) "
10742 "and C<yum> (package management)."
10746 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
10748 "This returns the string C<unknown> if we could not determine the package "
10749 "format I<or> if the operating system does not have a real packaging system "
10754 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
10756 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10757 "C<pkgsrc>. Future versions of libguestfs may return other strings."
10761 #: ../fish/guestfish-actions.pod:2253
10762 msgid "inspect-get-package-management"
10763 msgstr "inspect-get-package-management"
10766 #: ../fish/guestfish-actions.pod:2255
10769 " inspect-get-package-management root\n"
10772 " inspect-get-package-management корінь\n"
10776 #: ../fish/guestfish-actions.pod:2257
10778 "L</inspect-get-package-format> and this function return the package format "
10779 "and package management tool used by the inspected operating system. For "
10780 "example for Fedora these functions would return C<rpm> (package format) and "
10781 "C<yum> (package management)."
10785 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
10787 "This returns the string C<unknown> if we could not determine the package "
10788 "management tool I<or> if the operating system does not have a real packaging "
10789 "system (eg. Windows)."
10793 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
10795 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10796 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>. Future "
10797 "versions of libguestfs may return other strings."
10801 #: ../fish/guestfish-actions.pod:2274
10802 msgid "inspect-get-product-name"
10803 msgstr "inspect-get-product-name"
10806 #: ../fish/guestfish-actions.pod:2276
10809 " inspect-get-product-name root\n"
10812 " inspect-get-product-name корінь\n"
10816 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
10818 "This returns the product name of the inspected operating system. The "
10819 "product name is generally some freeform string which can be displayed to the "
10820 "user, but should not be parsed by programs."
10824 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
10826 "If the product name could not be determined, then the string C<unknown> is "
10831 #: ../fish/guestfish-actions.pod:2288
10832 msgid "inspect-get-product-variant"
10836 #: ../fish/guestfish-actions.pod:2290
10839 " inspect-get-product-variant root\n"
10844 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
10845 msgid "This returns the product variant of the inspected operating system."
10849 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
10851 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10852 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10853 "is usually a string such as C<Client> or C<Server> (other values are "
10854 "possible). This can be used to distinguish consumer and enterprise versions "
10855 "of Windows that have the same version number (for example, Windows 7 and "
10856 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10857 "the latter is C<Server>)."
10861 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
10863 "For enterprise Linux guests, in future we intend this to return the product "
10864 "variant such as C<Desktop>, C<Server> and so on. But this is not "
10865 "implemented at present."
10869 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
10871 "If the product variant could not be determined, then the string C<unknown> "
10876 #: ../fish/guestfish-actions.pod:2311
10878 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10879 "get-product-name>, L</inspect-get-major-version>."
10883 #: ../fish/guestfish-actions.pod:2315
10884 msgid "inspect-get-roots"
10885 msgstr "inspect-get-roots"
10888 #: ../fish/guestfish-actions.pod:2317
10891 " inspect-get-roots\n"
10894 " inspect-get-roots\n"
10898 #: ../fish/guestfish-actions.pod:2319
10900 "This function is a convenient way to get the list of root devices, as "
10901 "returned from a previous call to L</inspect-os>, but without redoing the "
10902 "whole inspection process."
10906 #: ../fish/guestfish-actions.pod:2323
10908 "This returns an empty list if either no root devices were found or the "
10909 "caller has not called L</inspect-os>."
10913 #: ../fish/guestfish-actions.pod:2328
10914 msgid "inspect-get-type"
10915 msgstr "inspect-get-type"
10918 #: ../fish/guestfish-actions.pod:2330
10921 " inspect-get-type root\n"
10924 " inspect-get-type корінь\n"
10928 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
10930 "This returns the type of the inspected operating system. Currently defined "
10935 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
10940 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
10941 msgid "Any Linux-based operating system."
10945 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
10946 msgid "Any Microsoft Windows operating system."
10950 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
10951 msgid "\"freebsd\""
10952 msgstr "\"freebsd\""
10955 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
10960 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
10965 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
10970 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
10971 msgid "The operating system type could not be determined."
10975 #: ../fish/guestfish-actions.pod:2364
10976 msgid "inspect-get-windows-current-control-set"
10980 #: ../fish/guestfish-actions.pod:2366
10983 " inspect-get-windows-current-control-set root\n"
10988 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
10990 "This returns the Windows CurrentControlSet of the inspected guest. The "
10991 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10995 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
10997 "This call assumes that the guest is Windows and that the Registry could be "
10998 "examined by inspection. If this is not the case then an error is returned."
11002 #: ../fish/guestfish-actions.pod:2377
11003 msgid "inspect-get-windows-systemroot"
11004 msgstr "inspect-get-windows-systemroot"
11007 #: ../fish/guestfish-actions.pod:2379
11010 " inspect-get-windows-systemroot root\n"
11013 " inspect-get-windows-systemroot корінь\n"
11017 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
11019 "This returns the Windows systemroot of the inspected guest. The systemroot "
11020 "is a directory path such as C</WINDOWS>."
11024 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
11026 "This call assumes that the guest is Windows and that the systemroot could be "
11027 "determined by inspection. If this is not the case then an error is returned."
11031 #: ../fish/guestfish-actions.pod:2390
11032 msgid "inspect-is-live"
11033 msgstr "inspect-is-live"
11036 #: ../fish/guestfish-actions.pod:2392
11039 " inspect-is-live root\n"
11042 " inspect-is-live корінь\n"
11046 #: ../fish/guestfish-actions.pod:2394
11048 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11049 "then this returns true if a live image was detected on the disk."
11053 #: ../fish/guestfish-actions.pod:2400
11054 msgid "inspect-is-multipart"
11055 msgstr "inspect-is-multipart"
11058 #: ../fish/guestfish-actions.pod:2402
11061 " inspect-is-multipart root\n"
11064 " inspect-is-multipart корінь\n"
11068 #: ../fish/guestfish-actions.pod:2404
11070 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11071 "then this returns true if the disk is part of a set."
11075 #: ../fish/guestfish-actions.pod:2410
11076 msgid "inspect-is-netinst"
11077 msgstr "inspect-is-netinst"
11080 #: ../fish/guestfish-actions.pod:2412
11083 " inspect-is-netinst root\n"
11086 " inspect-is-netinst корінь\n"
11090 #: ../fish/guestfish-actions.pod:2414
11092 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11093 "then this returns true if the disk is a network installer, ie. not a self-"
11094 "contained install CD but one which is likely to require network access to "
11095 "complete the install."
11099 #: ../fish/guestfish-actions.pod:2422
11100 msgid "inspect-list-applications"
11101 msgstr "inspect-list-applications"
11104 #: ../fish/guestfish-actions.pod:2424
11107 " inspect-list-applications root\n"
11110 " inspect-list-applications кореневий_каталог\n"
11114 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
11115 msgid "Return the list of applications installed in the operating system."
11119 #: ../fish/guestfish-actions.pod:2428
11121 "I<Note:> This call works differently from other parts of the inspection "
11122 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11123 "then mount up the disks, before calling this. Listing applications is a "
11124 "significantly more difficult operation which requires access to the full "
11125 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
11126 "are just returning data cached in the libguestfs handle, this call actually "
11127 "reads parts of the mounted filesystems during the call."
11131 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
11133 "This returns an empty list if the inspection code was not able to determine "
11134 "the list of applications."
11138 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
11139 msgid "The application structure contains the following fields:"
11143 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
11144 msgid "C<app_name>"
11145 msgstr "C<app_name>"
11148 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
11150 "The name of the application. For Red Hat-derived and Debian-derived Linux "
11151 "guests, this is the package name."
11155 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
11156 msgid "C<app_display_name>"
11157 msgstr "C<app_display_name>"
11160 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
11162 "The display name of the application, sometimes localized to the install "
11163 "language of the guest operating system."
11167 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
11169 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
11170 "to display something can use C<app_name> instead."
11174 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
11175 msgid "C<app_epoch>"
11176 msgstr "C<app_epoch>"
11179 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
11181 "For package managers which use epochs, this contains the epoch of the "
11182 "package (an integer). If unavailable, this is returned as C<0>."
11186 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
11187 msgid "C<app_version>"
11188 msgstr "C<app_version>"
11191 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
11193 "The version string of the application or package. If unavailable this is "
11194 "returned as an empty string C<\"\">."
11198 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
11199 msgid "C<app_release>"
11200 msgstr "C<app_release>"
11203 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
11205 "The release string of the application or package, for package managers that "
11206 "use this. If unavailable this is returned as an empty string C<\"\">."
11210 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
11211 msgid "C<app_install_path>"
11212 msgstr "C<app_install_path>"
11215 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
11217 "The installation path of the application (on operating systems such as "
11218 "Windows which use installation paths). This path is in the format used by "
11219 "the guest operating system, it is not a libguestfs path."
11223 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
11224 msgid "If unavailable this is returned as an empty string C<\"\">."
11228 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
11229 msgid "C<app_trans_path>"
11230 msgstr "C<app_trans_path>"
11233 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
11235 "The install path translated into a libguestfs path. If unavailable this is "
11236 "returned as an empty string C<\"\">."
11240 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
11241 msgid "C<app_publisher>"
11242 msgstr "C<app_publisher>"
11245 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
11247 "The name of the publisher of the application, for package managers that use "
11248 "this. If unavailable this is returned as an empty string C<\"\">."
11252 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
11254 msgstr "C<app_url>"
11257 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
11259 "The URL (eg. upstream URL) of the application. If unavailable this is "
11260 "returned as an empty string C<\"\">."
11264 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
11265 msgid "C<app_source_package>"
11266 msgstr "C<app_source_package>"
11269 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
11271 "For packaging systems which support this, the name of the source package. "
11272 "If unavailable this is returned as an empty string C<\"\">."
11276 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
11277 msgid "C<app_summary>"
11278 msgstr "C<app_summary>"
11281 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
11283 "A short (usually one line) description of the application or package. If "
11284 "unavailable this is returned as an empty string C<\"\">."
11288 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
11289 msgid "C<app_description>"
11290 msgstr "C<app_description>"
11293 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
11295 "A longer description of the application or package. If unavailable this is "
11296 "returned as an empty string C<\"\">."
11300 #: ../fish/guestfish-actions.pod:2518
11302 msgstr "inspect-os"
11305 #: ../fish/guestfish-actions.pod:2520
11315 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
11317 "This function uses other libguestfs functions and certain heuristics to "
11318 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11319 "for operating systems."
11323 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11324 msgid "The list returned is empty if no operating systems were found."
11328 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
11330 "If one operating system was found, then this returns a list with a single "
11331 "element, which is the name of the root filesystem of this operating system. "
11332 "It is also possible for this function to return a list containing more than "
11333 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11334 "element being the root filesystem of one of the operating systems."
11338 #: ../fish/guestfish-actions.pod:2535
11340 "You can pass the root string(s) returned to other L</inspect-get-*> "
11341 "functions in order to query further information about each operating system, "
11342 "such as the name and version."
11346 #: ../fish/guestfish-actions.pod:2540
11348 "This function uses other libguestfs features such as L</mount-ro> and L</"
11349 "umount-all> in order to mount and unmount filesystems and look at the "
11350 "contents. This should be called with no disks currently mounted. The "
11351 "function may also use Augeas, so any existing Augeas handle will be closed."
11355 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
11357 "This function cannot decrypt encrypted disks. The caller must do that first "
11358 "(supplying the necessary keys) if the disk is encrypted."
11362 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
11363 #: ../fish/guestfish-actions.pod:2815
11364 msgid "See also L</list-filesystems>."
11365 msgstr "Див. також L</list-filesystems>."
11368 #: ../fish/guestfish-actions.pod:2554
11369 msgid "is-blockdev"
11370 msgstr "is-blockdev"
11373 #: ../fish/guestfish-actions.pod:2556
11376 " is-blockdev path\n"
11379 " is-blockdev шлях\n"
11383 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
11385 "This returns C<true> if and only if there is a block device with the given "
11390 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
11391 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
11392 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
11393 #: ../fish/guestfish-actions.pod:2660
11394 msgid "See also L</stat>."
11395 msgstr "Див. також L</stat>."
11398 #: ../fish/guestfish-actions.pod:2563
11403 #: ../fish/guestfish-actions.pod:2565
11413 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
11415 "This returns true iff this handle is busy processing a command (in the "
11420 #: ../fish/guestfish-actions.pod:2572
11422 msgstr "is-chardev"
11425 #: ../fish/guestfish-actions.pod:2574
11428 " is-chardev path\n"
11431 " is-chardev шлях\n"
11435 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
11437 "This returns C<true> if and only if there is a character device with the "
11438 "given C<path> name."
11442 #: ../fish/guestfish-actions.pod:2581
11447 #: ../fish/guestfish-actions.pod:2583
11457 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
11459 "This returns true iff this handle is being configured (in the C<CONFIG> "
11464 #: ../fish/guestfish-actions.pod:2590
11469 #: ../fish/guestfish-actions.pod:2592
11479 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
11481 "This returns C<true> if and only if there is a directory with the given "
11482 "C<path> name. Note that it returns false for other objects like files."
11486 #: ../fish/guestfish-actions.pod:2600
11491 #: ../fish/guestfish-actions.pod:2602
11501 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
11503 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
11504 "given C<path> name."
11508 #: ../fish/guestfish-actions.pod:2609
11513 #: ../fish/guestfish-actions.pod:2611
11523 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
11525 "This returns C<true> if and only if there is a regular file with the given "
11526 "C<path> name. Note that it returns false for other objects like directories."
11530 #: ../fish/guestfish-actions.pod:2619
11531 msgid "is-launching"
11532 msgstr "is-launching"
11535 #: ../fish/guestfish-actions.pod:2621
11545 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
11547 "This returns true iff this handle is launching the subprocess (in the "
11548 "C<LAUNCHING> state)."
11552 #: ../fish/guestfish-actions.pod:2628
11557 #: ../fish/guestfish-actions.pod:2630
11563 " is-lv пристрій\n"
11567 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
11569 "This command tests whether C<device> is a logical volume, and returns true "
11570 "iff this is the case."
11574 #: ../fish/guestfish-actions.pod:2635
11579 #: ../fish/guestfish-actions.pod:2637
11589 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
11591 "This returns true iff this handle is ready to accept commands (in the "
11596 #: ../fish/guestfish-actions.pod:2644
11601 #: ../fish/guestfish-actions.pod:2646
11604 " is-socket path\n"
11607 " is-socket шлях\n"
11611 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
11613 "This returns C<true> if and only if there is a Unix domain socket with the "
11614 "given C<path> name."
11618 #: ../fish/guestfish-actions.pod:2653
11620 msgstr "is-symlink"
11623 #: ../fish/guestfish-actions.pod:2655
11626 " is-symlink path\n"
11629 " is-symlink шлях\n"
11633 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
11635 "This returns C<true> if and only if there is a symbolic link with the given "
11640 #: ../fish/guestfish-actions.pod:2662
11645 #: ../fish/guestfish-actions.pod:2664
11653 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
11655 "This returns true iff the file exists and the file is empty or it contains "
11660 #: ../fish/guestfish-actions.pod:2669
11661 msgid "is-zero-device"
11665 #: ../fish/guestfish-actions.pod:2671
11668 " is-zero-device device\n"
11673 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
11674 msgid "This returns true iff the device exists and contains all zero bytes."
11678 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
11679 msgid "Note that for large devices this can take a long time to run."
11683 #: ../fish/guestfish-actions.pod:2677
11684 msgid "kill-subprocess"
11685 msgstr "kill-subprocess"
11688 #: ../fish/guestfish-actions.pod:2679
11691 " kill-subprocess\n"
11694 " kill-subprocess\n"
11698 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
11699 msgid "This kills the qemu subprocess. You should never need to call this."
11703 #: ../fish/guestfish-actions.pod:2683
11708 #: ../fish/guestfish-actions.pod:2685
11713 #: ../fish/guestfish-actions.pod:2687
11723 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
11725 "Internally libguestfs is implemented by running a virtual machine using "
11730 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
11732 "You should call this after configuring the handle (eg. adding drives) but "
11733 "before performing any actions."
11737 #: ../fish/guestfish-actions.pod:2695
11742 #: ../fish/guestfish-actions.pod:2697
11745 " lchown owner group path\n"
11748 " lchown власник група шлях\n"
11752 #: ../fish/guestfish-actions.pod:2699
11754 "Change the file owner to C<owner> and group to C<group>. This is like L</"
11755 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11760 #: ../fish/guestfish-actions.pod:2707
11765 #: ../fish/guestfish-actions.pod:2709
11768 " lgetxattr path name\n"
11771 " lgetxattr шлях назва\n"
11775 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
11777 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
11778 "is a symlink, then this call returns an extended attribute from the symlink."
11782 #: ../fish/guestfish-actions.pod:2725
11783 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11784 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11787 #: ../fish/guestfish-actions.pod:2727
11789 msgstr "lgetxattrs"
11792 #: ../fish/guestfish-actions.pod:2729
11795 " lgetxattrs path\n"
11798 " lgetxattrs шлях\n"
11802 #: ../fish/guestfish-actions.pod:2731
11804 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11805 "it returns the extended attributes of the link itself."
11809 #: ../fish/guestfish-actions.pod:2735
11814 #: ../fish/guestfish-actions.pod:2737
11822 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
11824 "List all 9p filesystems attached to the guest. A list of mount tags is "
11829 #: ../fish/guestfish-actions.pod:2742
11830 msgid "list-devices"
11831 msgstr "list-devices"
11834 #: ../fish/guestfish-actions.pod:2744
11844 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
11845 msgid "List all the block devices."
11849 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
11850 msgid "The full block device names are returned, eg. C</dev/sda>."
11854 #: ../fish/guestfish-actions.pod:2752
11855 msgid "list-dm-devices"
11859 #: ../fish/guestfish-actions.pod:2754
11862 " list-dm-devices\n"
11867 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
11868 msgid "List all device mapper devices."
11872 #: ../fish/guestfish-actions.pod:2758
11874 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11875 "previous call to L</luks-open>."
11879 #: ../fish/guestfish-actions.pod:2761
11881 "Device mapper devices which correspond to logical volumes are I<not> "
11882 "returned in this list. Call L</lvs> if you want to list logical volumes."
11886 #: ../fish/guestfish-actions.pod:2765
11887 msgid "list-filesystems"
11888 msgstr "list-filesystems"
11891 #: ../fish/guestfish-actions.pod:2767
11894 " list-filesystems\n"
11897 " list-filesystems\n"
11901 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
11903 "This inspection command looks for filesystems on partitions, block devices "
11904 "and logical volumes, returning a list of devices containing filesystems and "
11909 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
11911 "The return value is a hash, where the keys are the devices containing "
11912 "filesystems, and the values are the filesystem types. For example:"
11916 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
11919 " \"/dev/sda1\" => \"ntfs\"\n"
11920 " \"/dev/sda2\" => \"ext2\"\n"
11921 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11922 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11927 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
11929 "The value can have the special value \"unknown\", meaning the content of the "
11930 "device is undetermined or empty. \"swap\" means a Linux swap partition."
11934 #: ../fish/guestfish-actions.pod:2786
11936 "This command runs other libguestfs commands, which might include L</mount> "
11937 "and L</umount>, and therefore you should use this soon after launch and only "
11938 "when nothing is mounted."
11942 #: ../fish/guestfish-actions.pod:2790
11944 "Not all of the filesystems returned will be mountable. In particular, swap "
11945 "partitions are returned in the list. Also this command does not check that "
11946 "each filesystem found is valid and mountable, and some filesystems might be "
11947 "mountable but require special options. Filesystems may not all belong to a "
11948 "single logical operating system (use L</inspect-os> to look for OSes)."
11952 #: ../fish/guestfish-actions.pod:2798
11954 #| msgid "list-devices"
11955 msgid "list-md-devices"
11956 msgstr "list-devices"
11959 #: ../fish/guestfish-actions.pod:2800
11962 #| " list-devices\n"
11965 " list-md-devices\n"
11972 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
11973 msgid "List all Linux md devices."
11977 #: ../fish/guestfish-actions.pod:2804
11978 msgid "list-partitions"
11979 msgstr "list-partitions"
11982 #: ../fish/guestfish-actions.pod:2806
11985 " list-partitions\n"
11988 " list-partitions\n"
11992 #: ../fish/guestfish-actions.pod:2808 ../src/guestfs-actions.pod:4287
11993 msgid "List all the partitions detected on all block devices."
11997 #: ../fish/guestfish-actions.pod:2810 ../src/guestfs-actions.pod:4289
11998 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12002 #: ../fish/guestfish-actions.pod:2812
12004 "This does not return logical volumes. For that you will need to call L</"
12009 #: ../fish/guestfish-actions.pod:2817
12014 #: ../fish/guestfish-actions.pod:2819
12024 #: ../fish/guestfish-actions.pod:2821 ../src/guestfs-actions.pod:4308
12026 "List the files in C<directory> (relative to the root directory, there is no "
12027 "cwd) in the format of 'ls -la'."
12031 #: ../fish/guestfish-actions.pod:2824 ../src/guestfs-actions.pod:4311
12033 "This command is mostly useful for interactive sessions. It is I<not> "
12034 "intended that you try to parse the output string."
12038 #: ../fish/guestfish-actions.pod:2827
12043 #: ../fish/guestfish-actions.pod:2829
12046 " ln target linkname\n"
12049 " ln призначення назва_посилання\n"
12053 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4326
12054 msgid "This command creates a hard link using the C<ln> command."
12058 #: ../fish/guestfish-actions.pod:2833
12063 #: ../fish/guestfish-actions.pod:2835
12066 " ln-f target linkname\n"
12069 " ln-f призначення назва_посилання\n"
12073 #: ../fish/guestfish-actions.pod:2837 ../src/guestfs-actions.pod:4339
12075 "This command creates a hard link using the C<ln -f> command. The I<-f> "
12076 "option removes the link (C<linkname>) if it exists already."
12080 #: ../fish/guestfish-actions.pod:2840
12085 #: ../fish/guestfish-actions.pod:2842
12088 " ln-s target linkname\n"
12091 " ln-s призначення назва_посилання\n"
12095 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4353
12096 msgid "This command creates a symbolic link using the C<ln -s> command."
12100 #: ../fish/guestfish-actions.pod:2846
12105 #: ../fish/guestfish-actions.pod:2848
12108 " ln-sf target linkname\n"
12111 " ln-sf призначення назва_посилання\n"
12115 #: ../fish/guestfish-actions.pod:2850 ../src/guestfs-actions.pod:4366
12117 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12118 "option removes the link (C<linkname>) if it exists already."
12122 #: ../fish/guestfish-actions.pod:2853
12123 msgid "lremovexattr"
12124 msgstr "lremovexattr"
12127 #: ../fish/guestfish-actions.pod:2855
12130 " lremovexattr xattr path\n"
12135 #: ../fish/guestfish-actions.pod:2857
12137 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12138 "it removes an extended attribute of the link itself."
12142 #: ../fish/guestfish-actions.pod:2861
12147 #: ../fish/guestfish-actions.pod:2863
12157 #: ../fish/guestfish-actions.pod:2865 ../src/guestfs-actions.pod:4394
12159 "List the files in C<directory> (relative to the root directory, there is no "
12160 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
12164 #: ../fish/guestfish-actions.pod:2869
12166 "This command is mostly useful for interactive sessions. Programs should "
12167 "probably use L</readdir> instead."
12171 #: ../fish/guestfish-actions.pod:2872
12176 #: ../fish/guestfish-actions.pod:2874
12179 " lsetxattr xattr val vallen path\n"
12184 #: ../fish/guestfish-actions.pod:2876
12186 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12187 "sets an extended attribute of the link itself."
12191 #: ../fish/guestfish-actions.pod:2880
12196 #: ../fish/guestfish-actions.pod:2882
12206 #: ../fish/guestfish-actions.pod:2884 ../fish/guestfish-actions.pod:4775
12207 #: ../src/guestfs-actions.pod:4430 ../src/guestfs-actions.pod:7349
12208 msgid "Returns file information for the given C<path>."
12212 #: ../fish/guestfish-actions.pod:2886
12214 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12215 "the link is stat-ed, not the file it refers to."
12219 #: ../fish/guestfish-actions.pod:2890 ../src/guestfs-actions.pod:4436
12220 msgid "This is the same as the C<lstat(2)> system call."
12224 #: ../fish/guestfish-actions.pod:2892
12229 #: ../fish/guestfish-actions.pod:2894
12232 " lstatlist path 'names ...'\n"
12237 #: ../fish/guestfish-actions.pod:2896
12239 "This call allows you to perform the L</lstat> operation on multiple files, "
12240 "where all files are in the directory C<path>. C<names> is the list of files "
12241 "from this directory."
12245 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4455
12247 "On return you get a list of stat structs, with a one-to-one correspondence "
12248 "to the C<names> list. If any name did not exist or could not be lstat'd, "
12249 "then the C<ino> field of that structure is set to C<-1>."
12253 #: ../fish/guestfish-actions.pod:2905
12255 "This call is intended for programs that want to efficiently list a directory "
12256 "contents without making many round-trips. See also L</lxattrlist> for a "
12257 "similarly efficient call for getting extended attributes. Very long "
12258 "directory listings might cause the protocol message size to be exceeded, "
12259 "causing this call to fail. The caller must split up such requests into "
12260 "smaller groups of names."
12264 #: ../fish/guestfish-actions.pod:2913
12265 msgid "luks-add-key"
12266 msgstr "luks-add-key"
12269 #: ../fish/guestfish-actions.pod:2915
12272 " luks-add-key device keyslot\n"
12277 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4483
12279 "This command adds a new key on LUKS device C<device>. C<key> is any "
12280 "existing key, and is used to access the device. C<newkey> is the new key to "
12281 "add. C<keyslot> is the key slot that will be replaced."
12285 #: ../fish/guestfish-actions.pod:2922
12287 "Note that if C<keyslot> already contains a key, then this command will "
12288 "fail. You have to use L</luks-kill-slot> first to remove that key."
12292 #: ../fish/guestfish-actions.pod:2926 ../fish/guestfish-actions.pod:2948
12293 #: ../fish/guestfish-actions.pod:2958 ../fish/guestfish-actions.pod:2969
12294 #: ../fish/guestfish-actions.pod:2995 ../fish/guestfish-actions.pod:3005
12296 "This command has one or more key or passphrase parameters. Guestfish will "
12297 "prompt for these separately."
12301 #: ../fish/guestfish-actions.pod:2929
12303 msgstr "luks-close"
12306 #: ../fish/guestfish-actions.pod:2931
12309 " luks-close device\n"
12312 " luks-close пристрій\n"
12316 #: ../fish/guestfish-actions.pod:2933
12318 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12319 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
12320 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12325 #: ../fish/guestfish-actions.pod:2939
12326 msgid "luks-format"
12327 msgstr "luks-format"
12330 #: ../fish/guestfish-actions.pod:2941
12333 " luks-format device keyslot\n"
12338 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4524
12340 "This command erases existing data on C<device> and formats the device as a "
12341 "LUKS encrypted device. C<key> is the initial key, which is added to key "
12342 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
12346 #: ../fish/guestfish-actions.pod:2951
12347 msgid "luks-format-cipher"
12348 msgstr "luks-format-cipher"
12351 #: ../fish/guestfish-actions.pod:2953
12354 " luks-format-cipher device keyslot cipher\n"
12359 #: ../fish/guestfish-actions.pod:2955
12361 "This command is the same as L</luks-format> but it also allows you to set "
12362 "the C<cipher> used."
12366 #: ../fish/guestfish-actions.pod:2961
12367 msgid "luks-kill-slot"
12368 msgstr "luks-kill-slot"
12371 #: ../fish/guestfish-actions.pod:2963
12374 " luks-kill-slot device keyslot\n"
12379 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4565
12381 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12382 "device C<device>. C<key> must be one of the I<other> keys."
12386 #: ../fish/guestfish-actions.pod:2972
12391 #: ../fish/guestfish-actions.pod:2974
12394 " luks-open device mapname\n"
12399 #: ../fish/guestfish-actions.pod:2976 ../src/guestfs-actions.pod:4585
12401 "This command opens a block device which has been encrypted according to the "
12402 "Linux Unified Key Setup (LUKS) standard."
12406 #: ../fish/guestfish-actions.pod:2979 ../src/guestfs-actions.pod:4588
12407 msgid "C<device> is the encrypted block device or partition."
12411 #: ../fish/guestfish-actions.pod:2981 ../src/guestfs-actions.pod:4590
12413 "The caller must supply one of the keys associated with the LUKS block "
12414 "device, in the C<key> parameter."
12418 #: ../fish/guestfish-actions.pod:2984 ../src/guestfs-actions.pod:4593
12420 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
12421 "writes to this block device are decrypted from and encrypted to the "
12422 "underlying C<device> respectively."
12426 #: ../fish/guestfish-actions.pod:2988
12428 "If this block device contains LVM volume groups, then calling L</vgscan> "
12429 "followed by L</vg-activate-all> will make them visible."
12433 #: ../fish/guestfish-actions.pod:2992
12434 msgid "Use L</list-dm-devices> to list all device mapper devices."
12438 #: ../fish/guestfish-actions.pod:2998
12439 msgid "luks-open-ro"
12440 msgstr "luks-open-ro"
12443 #: ../fish/guestfish-actions.pod:3000
12446 " luks-open-ro device mapname\n"
12451 #: ../fish/guestfish-actions.pod:3002
12453 "This is the same as L</luks-open> except that a read-only mapping is created."
12457 #: ../fish/guestfish-actions.pod:3008
12462 #: ../fish/guestfish-actions.pod:3010
12465 " lvcreate logvol volgroup mbytes\n"
12470 #: ../fish/guestfish-actions.pod:3012 ../src/guestfs-actions.pod:4639
12472 "This creates an LVM logical volume called C<logvol> on the volume group "
12473 "C<volgroup>, with C<size> megabytes."
12477 #: ../fish/guestfish-actions.pod:3015
12478 msgid "lvm-canonical-lv-name"
12479 msgstr "lvm-canonical-lv-name"
12482 #: ../fish/guestfish-actions.pod:3017
12485 " lvm-canonical-lv-name lvname\n"
12490 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4652
12492 "This converts alternative naming schemes for LVs that you might find to the "
12493 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12498 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4656
12500 "This command returns an error if the C<lvname> parameter does not refer to a "
12505 #: ../fish/guestfish-actions.pod:3026
12506 msgid "See also L</is-lv>."
12507 msgstr "Див. також L</is-lv>."
12510 #: ../fish/guestfish-actions.pod:3028
12511 msgid "lvm-clear-filter"
12512 msgstr "lvm-clear-filter"
12515 #: ../fish/guestfish-actions.pod:3030
12518 " lvm-clear-filter\n"
12521 " lvm-clear-filter\n"
12525 #: ../fish/guestfish-actions.pod:3032
12527 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
12532 #: ../fish/guestfish-actions.pod:3035 ../fish/guestfish-actions.pod:3063
12533 #: ../src/guestfs-actions.pod:4674 ../src/guestfs-actions.pod:4713
12535 "This command also clears the LVM cache and performs a volume group scan."
12539 #: ../fish/guestfish-actions.pod:3038
12540 msgid "lvm-remove-all"
12541 msgstr "lvm-remove-all"
12544 #: ../fish/guestfish-actions.pod:3040
12547 " lvm-remove-all\n"
12550 " lvm-remove-all\n"
12554 #: ../fish/guestfish-actions.pod:3042 ../src/guestfs-actions.pod:4686
12556 "This command removes all LVM logical volumes, volume groups and physical "
12561 #: ../fish/guestfish-actions.pod:3045
12562 msgid "lvm-set-filter"
12563 msgstr "lvm-set-filter"
12566 #: ../fish/guestfish-actions.pod:3047
12569 " lvm-set-filter 'devices ...'\n"
12572 " lvm-set-filter 'пристрої...'\n"
12576 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4699
12578 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12579 "block devices in the list C<devices>, and will ignore all other attached "
12584 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4703
12586 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12587 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
12588 "there are two types of duplication possible: either cloned PVs/VGs which "
12589 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12590 "same name. In normal operation you cannot create this situation, but you "
12591 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
12592 "inside the LVM metadata."
12596 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4716
12597 msgid "You can filter whole block devices or individual partitions."
12601 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4718
12603 "You cannot use this if any VG is currently in use (eg. contains a mounted "
12604 "filesystem), even if you are not filtering out that VG."
12608 #: ../fish/guestfish-actions.pod:3072
12613 #: ../fish/guestfish-actions.pod:3074
12616 " lvremove device\n"
12619 " lvremove пристрій\n"
12623 #: ../fish/guestfish-actions.pod:3076 ../src/guestfs-actions.pod:4732
12625 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12626 "LV, such as C</dev/VG/LV>."
12630 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4735
12632 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12637 #: ../fish/guestfish-actions.pod:3082
12642 #: ../fish/guestfish-actions.pod:3084
12645 " lvrename logvol newlogvol\n"
12650 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4749
12651 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12655 #: ../fish/guestfish-actions.pod:3088
12660 #: ../fish/guestfish-actions.pod:3090
12663 " lvresize device mbytes\n"
12668 #: ../fish/guestfish-actions.pod:3092 ../src/guestfs-actions.pod:4762
12670 "This resizes (expands or shrinks) an existing LVM logical volume to "
12671 "C<mbytes>. When reducing, data in the reduced part is lost."
12675 #: ../fish/guestfish-actions.pod:3096
12676 msgid "lvresize-free"
12677 msgstr "lvresize-free"
12680 #: ../fish/guestfish-actions.pod:3098
12683 " lvresize-free lv percent\n"
12688 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4777
12690 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12691 "remaining free space in the volume group. Commonly you would call this with "
12692 "pc = 100 which expands the logical volume as much as possible, using all "
12693 "remaining free space in the volume group."
12697 #: ../fish/guestfish-actions.pod:3106
12702 #: ../fish/guestfish-actions.pod:3108
12712 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4792
12714 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12719 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4795
12721 "This returns a list of the logical volume device names (eg. C</dev/"
12722 "VolGroup00/LogVol00>)."
12726 #: ../fish/guestfish-actions.pod:3116
12727 msgid "See also L</lvs-full>, L</list-filesystems>."
12728 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12731 #: ../fish/guestfish-actions.pod:3118
12736 #: ../fish/guestfish-actions.pod:3120
12746 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4811
12748 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12749 "(8)> command. The \"full\" version includes all fields."
12753 #: ../fish/guestfish-actions.pod:3125
12758 #: ../fish/guestfish-actions.pod:3127
12764 " lvuuid пристрій\n"
12768 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4826
12769 msgid "This command returns the UUID of the LVM LV C<device>."
12773 #: ../fish/guestfish-actions.pod:3131
12775 msgstr "lxattrlist"
12778 #: ../fish/guestfish-actions.pod:3133
12781 " lxattrlist path 'names ...'\n"
12786 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4840
12788 "This call allows you to get the extended attributes of multiple files, where "
12789 "all files are in the directory C<path>. C<names> is the list of files from "
12794 #: ../fish/guestfish-actions.pod:3139 ../src/guestfs-actions.pod:4844
12796 "On return you get a flat list of xattr structs which must be interpreted "
12797 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
12798 "C<attrval> in this struct is zero-length to indicate there was an error "
12799 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12800 "number (the number of following attributes for this file, which could be C<"
12801 "\"0\">). Then after the first xattr struct are the zero or more attributes "
12802 "for the first named file. This repeats for the second and subsequent files."
12806 #: ../fish/guestfish-actions.pod:3149
12808 "This call is intended for programs that want to efficiently list a directory "
12809 "contents without making many round-trips. See also L</lstatlist> for a "
12810 "similarly efficient call for getting standard stats. Very long directory "
12811 "listings might cause the protocol message size to be exceeded, causing this "
12812 "call to fail. The caller must split up such requests into smaller groups of "
12817 #: ../fish/guestfish-actions.pod:3157
12819 #| msgid "lvcreate"
12820 msgid "mdadm-create"
12824 #: ../fish/guestfish-actions.pod:3159
12827 " mdadm-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] [chunk:N] [level:..]\n"
12832 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4887
12834 "Create a Linux md (RAID) device named C<name> on the devices in the list "
12839 #: ../fish/guestfish-actions.pod:3168 ../src/guestfs-actions.pod:4894
12840 msgid "C<missingbitmap>"
12844 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4896
12846 "A bitmap of missing devices. If a bit is set it means that a missing device "
12847 "is added to the array. The least significant bit corresponds to the first "
12848 "device in the array."
12852 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4900
12854 #| msgid "For example:"
12855 msgid "As examples:"
12859 #: ../fish/guestfish-actions.pod:3176 ../src/guestfs-actions.pod:4902
12861 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
12862 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
12866 #: ../fish/guestfish-actions.pod:3179 ../src/guestfs-actions.pod:4905
12868 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
12869 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
12873 #: ../fish/guestfish-actions.pod:3182 ../src/guestfs-actions.pod:4908
12874 msgid "This defaults to C<0> (no missing devices)."
12878 #: ../fish/guestfish-actions.pod:3184 ../src/guestfs-actions.pod:4910
12880 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
12881 "equal C<nrdevices> + C<spare>."
12885 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4913
12888 msgid "C<nrdevices>"
12892 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4915
12894 #| msgid "The number of hard links."
12895 msgid "The number of active RAID devices."
12896 msgstr "Кількість жорстких посилань."
12899 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4917
12901 "If not set, this defaults to the length of C<devices> plus the number of "
12902 "bits set in C<missingbitmap>."
12906 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4920
12913 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4922
12915 #| msgid "The number of hard links."
12916 msgid "The number of spare devices."
12917 msgstr "Кількість жорстких посилань."
12920 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4924
12921 msgid "If not set, this defaults to C<0>."
12925 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4926
12930 #: ../fish/guestfish-actions.pod:3202 ../src/guestfs-actions.pod:4928
12932 #| msgid "The size in SI 1000 byte units."
12933 msgid "The chunk size in bytes."
12934 msgstr "Розмір у одиницях СІ: 1000 байтів."
12937 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3226
12938 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:4978
12943 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4932
12945 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
12946 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
12947 "I<raid10>, I<10>. Some of these are synonymous, and more levels may be "
12952 #: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:4937
12953 msgid "If not set, this defaults to C<raid1>."
12957 #: ../fish/guestfish-actions.pod:3217
12958 msgid "mdadm-detail"
12962 #: ../fish/guestfish-actions.pod:3219
12965 " mdadm-detail md\n"
12970 #: ../fish/guestfish-actions.pod:3221 ../src/guestfs-actions.pod:4973
12972 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
12973 "are usually present in the returned hash. Other fields may also be present."
12977 #: ../fish/guestfish-actions.pod:3228 ../src/guestfs-actions.pod:4980
12978 msgid "The raid level of the MD device."
12982 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4982
12989 #: ../fish/guestfish-actions.pod:3232 ../src/guestfs-actions.pod:4984
12990 msgid "The number of underlying devices in the MD device."
12994 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4986
12995 msgid "C<metadata>"
12999 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4988
13000 msgid "The metadata version used."
13004 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4990
13006 #| msgid "B<--uuid>"
13011 #: ../fish/guestfish-actions.pod:3240 ../src/guestfs-actions.pod:4992
13012 msgid "The UUID of the MD device."
13016 #: ../fish/guestfish-actions.pod:3244 ../src/guestfs-actions.pod:4996
13018 #| msgid "The time of last access."
13019 msgid "The name of the MD device."
13020 msgstr "Час останнього доступу."
13023 #: ../fish/guestfish-actions.pod:3248
13028 #: ../fish/guestfish-actions.pod:3250
13038 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:5012
13039 msgid "Create a directory named C<path>."
13043 #: ../fish/guestfish-actions.pod:3254
13045 msgstr "mkdir-mode"
13048 #: ../fish/guestfish-actions.pod:3256
13051 " mkdir-mode path mode\n"
13054 " mkdir-mode шлях режим\n"
13058 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:5025
13060 "This command creates a directory, setting the initial permissions of the "
13061 "directory to C<mode>."
13065 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:5028
13067 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13068 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
13073 #: ../fish/guestfish-actions.pod:3265
13074 msgid "See also L</mkdir>, L</umask>"
13075 msgstr "Див. також L</mkdir>, L</umask>"
13078 #: ../fish/guestfish-actions.pod:3267
13083 #: ../fish/guestfish-actions.pod:3269
13093 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:5044
13095 "Create a directory named C<path>, creating any parent directories as "
13096 "necessary. This is like the C<mkdir -p> shell command."
13100 #: ../fish/guestfish-actions.pod:3274
13105 #: ../fish/guestfish-actions.pod:3276
13108 " mkdtemp template\n"
13111 " mkdtemp шаблон\n"
13115 #: ../fish/guestfish-actions.pod:3278 ../src/guestfs-actions.pod:5057
13117 "This command creates a temporary directory. The C<template> parameter "
13118 "should be a full pathname for the temporary directory name with the final "
13119 "six characters being \"XXXXXX\"."
13123 #: ../fish/guestfish-actions.pod:3283 ../src/guestfs-actions.pod:5062
13125 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13126 "being suitable for Windows filesystems."
13130 #: ../fish/guestfish-actions.pod:3286 ../src/guestfs-actions.pod:5065
13131 msgid "The name of the temporary directory that was created is returned."
13135 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:5068
13136 msgid "The temporary directory is created with mode 0700 and is owned by root."
13140 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:5071
13142 "The caller is responsible for deleting the temporary directory and its "
13143 "contents after use."
13147 #: ../fish/guestfish-actions.pod:3295 ../src/guestfs-actions.pod:5074
13148 msgid "See also: L<mkdtemp(3)>"
13149 msgstr "Див. також L<mkdtemp(3)>"
13152 #: ../fish/guestfish-actions.pod:3297
13157 #: ../fish/guestfish-actions.pod:3299
13160 " mke2fs-J fstype blocksize device journal\n"
13165 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5090
13167 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13168 "C<journal>. It is equivalent to the command:"
13172 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5094
13175 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13178 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
13182 #: ../fish/guestfish-actions.pod:3307
13183 msgid "See also L</mke2journal>."
13184 msgstr "Див. також L</mke2journal>."
13187 #: ../fish/guestfish-actions.pod:3309
13192 #: ../fish/guestfish-actions.pod:3311
13195 " mke2fs-JL fstype blocksize device label\n"
13200 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5111
13202 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13203 "the journal labeled C<label>."
13207 #: ../fish/guestfish-actions.pod:3316
13208 msgid "See also L</mke2journal-L>."
13209 msgstr "Див. також L</mke2journal-L>."
13212 #: ../fish/guestfish-actions.pod:3318
13217 #: ../fish/guestfish-actions.pod:3320
13220 " mke2fs-JU fstype blocksize device uuid\n"
13225 #: ../fish/guestfish-actions.pod:3322 ../src/guestfs-actions.pod:5129
13227 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13228 "the journal with UUID C<uuid>."
13232 #: ../fish/guestfish-actions.pod:3325
13233 msgid "See also L</mke2journal-U>."
13234 msgstr "Див. також L</mke2journal-U>."
13237 #: ../fish/guestfish-actions.pod:3327
13238 msgid "mke2journal"
13239 msgstr "mke2journal"
13242 #: ../fish/guestfish-actions.pod:3329
13245 " mke2journal blocksize device\n"
13250 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5145
13252 "This creates an ext2 external journal on C<device>. It is equivalent to the "
13257 #: ../fish/guestfish-actions.pod:3334 ../src/guestfs-actions.pod:5148
13260 " mke2fs -O journal_dev -b blocksize device\n"
13265 #: ../fish/guestfish-actions.pod:3336
13266 msgid "mke2journal-L"
13267 msgstr "mke2journal-L"
13270 #: ../fish/guestfish-actions.pod:3338
13273 " mke2journal-L blocksize label device\n"
13278 #: ../fish/guestfish-actions.pod:3340 ../src/guestfs-actions.pod:5162
13279 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13283 #: ../fish/guestfish-actions.pod:3342
13284 msgid "mke2journal-U"
13285 msgstr "mke2journal-U"
13288 #: ../fish/guestfish-actions.pod:3344
13291 " mke2journal-U blocksize uuid device\n"
13296 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5176
13297 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13301 #: ../fish/guestfish-actions.pod:3348
13306 #: ../fish/guestfish-actions.pod:3350
13309 " mkfifo mode path\n"
13312 " mkfifo режим шлях\n"
13316 #: ../fish/guestfish-actions.pod:3352
13318 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
13319 "is just a convenient wrapper around L</mknod>."
13323 #: ../fish/guestfish-actions.pod:3358
13328 #: ../fish/guestfish-actions.pod:3360
13331 " mkfs fstype device\n"
13334 " mkfs тип_файлової_системи пристрій\n"
13338 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5206
13340 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13341 "volume). The filesystem type is C<fstype>, for example C<ext3>."
13345 #: ../fish/guestfish-actions.pod:3366
13350 #: ../fish/guestfish-actions.pod:3368
13353 " mkfs-b fstype blocksize device\n"
13358 #: ../fish/guestfish-actions.pod:3370
13360 "This call is similar to L</mkfs>, but it allows you to control the block "
13361 "size of the resulting filesystem. Supported block sizes depend on the "
13362 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13366 #: ../fish/guestfish-actions.pod:3375 ../fish/guestfish-actions.pod:3402
13367 #: ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5272
13369 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13374 #: ../fish/guestfish-actions.pod:3378
13376 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13381 #: ../fish/guestfish-actions.pod:3385
13386 #: ../fish/guestfish-actions.pod:3387
13389 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
13394 #: ../fish/guestfish-actions.pod:3389 ../src/guestfs-actions.pod:5259
13396 "This function creates a filesystem on C<device>. The filesystem type is "
13397 "C<fstype>, for example C<ext3>."
13401 #: ../fish/guestfish-actions.pod:3396 ../src/guestfs-actions.pod:5266
13402 msgid "C<blocksize>"
13403 msgstr "C<blocksize>"
13406 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5268
13408 "The filesystem block size. Supported block sizes depend on the filesystem "
13409 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13414 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5275
13415 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13419 #: ../fish/guestfish-actions.pod:3407 ../src/guestfs-actions.pod:5277
13420 msgid "C<features>"
13421 msgstr "C<features>"
13424 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5279
13425 msgid "This passes the I<-O> parameter to the external mkfs program."
13429 #: ../fish/guestfish-actions.pod:3411 ../src/guestfs-actions.pod:5281
13431 "For certain filesystem types, this allows extra filesystem features to be "
13432 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13436 #: ../fish/guestfish-actions.pod:3415 ../src/guestfs-actions.pod:5285
13438 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13443 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5288
13448 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5290
13450 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13451 "sets the inode size (only for ext2/3/4 filesystems at present)."
13455 #: ../fish/guestfish-actions.pod:3423 ../src/guestfs-actions.pod:5293
13456 msgid "C<sectorsize>"
13457 msgstr "C<sectorsize>"
13460 #: ../fish/guestfish-actions.pod:3425 ../src/guestfs-actions.pod:5295
13462 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13463 "sets sector size for ufs filesystem."
13467 #: ../fish/guestfish-actions.pod:3432
13468 msgid "mkmountpoint"
13469 msgstr "mkmountpoint"
13472 #: ../fish/guestfish-actions.pod:3434
13475 " mkmountpoint exemptpath\n"
13480 #: ../fish/guestfish-actions.pod:3436
13482 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13483 "to create extra mountpoints before mounting the first filesystem."
13487 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5338
13489 "These calls are I<only> necessary in some very limited circumstances, mainly "
13490 "the case where you want to mount a mix of unrelated and/or read-only "
13491 "filesystems together."
13495 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5342
13497 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13498 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13499 "inside that. You can unpack this as follows in guestfish:"
13503 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5347
13506 " add-ro Fedora-11-i686-Live.iso\n"
13508 " mkmountpoint /cd\n"
13509 " mkmountpoint /sqsh\n"
13510 " mkmountpoint /ext3fs\n"
13511 " mount /dev/sda /cd\n"
13512 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13513 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13516 " add-ro Fedora-11-i686-Live.iso\n"
13518 " mkmountpoint /cd\n"
13519 " mkmountpoint /sqsh\n"
13520 " mkmountpoint /ext3fs\n"
13521 " mount /dev/sda /cd\n"
13522 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13523 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13527 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5356
13528 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13532 #: ../fish/guestfish-actions.pod:3460
13534 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
13535 "unexpected errors if you try to mix these calls. It is safest to manually "
13536 "unmount filesystems and remove mountpoints after use."
13540 #: ../fish/guestfish-actions.pod:3464
13542 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13543 "for this to work for manual mountpoints, you must ensure that the innermost "
13544 "mountpoints have the longest pathnames, as in the example code above."
13548 #: ../fish/guestfish-actions.pod:3469 ../src/guestfs-actions.pod:5367
13550 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13554 #: ../fish/guestfish-actions.pod:3471
13556 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13557 "L</umount-all> to be called when the handle is closed which can also trigger "
13562 #: ../fish/guestfish-actions.pod:3475
13567 #: ../fish/guestfish-actions.pod:3477
13570 " mknod mode devmajor devminor path\n"
13575 #: ../fish/guestfish-actions.pod:3479 ../src/guestfs-actions.pod:5386
13577 "This call creates block or character special devices, or named pipes (FIFOs)."
13581 #: ../fish/guestfish-actions.pod:3482 ../src/guestfs-actions.pod:5389
13583 "The C<mode> parameter should be the mode, using the standard constants. "
13584 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13585 "used when creating block and character special devices."
13589 #: ../fish/guestfish-actions.pod:3487
13591 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13592 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13593 "regular file). These constants are available in the standard Linux header "
13594 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13595 "wrappers around this command which bitwise OR in the appropriate constant "
13600 #: ../fish/guestfish-actions.pod:3497
13605 #: ../fish/guestfish-actions.pod:3499
13608 " mknod-b mode devmajor devminor path\n"
13613 #: ../fish/guestfish-actions.pod:3501
13615 "This call creates a block device node called C<path> with mode C<mode> and "
13616 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13617 "wrapper around L</mknod>."
13621 #: ../fish/guestfish-actions.pod:3507
13626 #: ../fish/guestfish-actions.pod:3509
13629 " mknod-c mode devmajor devminor path\n"
13634 #: ../fish/guestfish-actions.pod:3511
13636 "This call creates a char device node called C<path> with mode C<mode> and "
13637 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13638 "wrapper around L</mknod>."
13642 #: ../fish/guestfish-actions.pod:3517
13647 #: ../fish/guestfish-actions.pod:3519
13653 " mkswap пристрій\n"
13657 #: ../fish/guestfish-actions.pod:3521 ../src/guestfs-actions.pod:5452
13658 msgid "Create a swap partition on C<device>."
13662 #: ../fish/guestfish-actions.pod:3523
13667 #: ../fish/guestfish-actions.pod:3525
13670 " mkswap-L label device\n"
13673 " mkswap-L мітка пристрій\n"
13677 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5465
13678 msgid "Create a swap partition on C<device> with label C<label>."
13682 #: ../fish/guestfish-actions.pod:3529 ../src/guestfs-actions.pod:5467
13684 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13685 "sda>), just to a partition. This appears to be a limitation of the kernel "
13690 #: ../fish/guestfish-actions.pod:3533
13695 #: ../fish/guestfish-actions.pod:3535
13698 " mkswap-U uuid device\n"
13701 " mkswap-U uuid пристрій\n"
13705 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5482
13706 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13710 #: ../fish/guestfish-actions.pod:3539
13711 msgid "mkswap-file"
13712 msgstr "mkswap-file"
13715 #: ../fish/guestfish-actions.pod:3541
13718 " mkswap-file path\n"
13721 " mkswap-file шлях\n"
13725 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5494
13726 msgid "Create a swap file."
13727 msgstr "Створити файл резервної пам’яті."
13730 #: ../fish/guestfish-actions.pod:3545
13732 "This command just writes a swap file signature to an existing file. To "
13733 "create the file itself, use something like L</fallocate>."
13737 #: ../fish/guestfish-actions.pod:3548
13742 #: ../fish/guestfish-actions.pod:3550
13745 " modprobe modulename\n"
13748 " modprobe назва_модуля\n"
13752 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5509
13753 msgid "This loads a kernel module in the appliance."
13757 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5511
13759 "The kernel module must have been whitelisted when libguestfs was built (see "
13760 "C<appliance/kmod.whitelist.in> in the source)."
13764 #: ../fish/guestfish-actions.pod:3557
13769 #: ../fish/guestfish-actions.pod:3559
13772 " mount device mountpoint\n"
13775 " mount пристрій точка_монтування\n"
13779 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5525
13781 "Mount a guest disk at a position in the filesystem. Block devices are named "
13782 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
13783 "those block devices contain partitions, they will have the usual names (eg. "
13784 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
13788 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5531
13790 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13791 "mounted on C</> before others can be mounted. Other filesystems can only be "
13792 "mounted on directories which already exist."
13796 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5536
13798 "The mounted filesystem is writable, if we have sufficient permissions on the "
13799 "underlying device."
13803 #: ../fish/guestfish-actions.pod:3575
13805 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13806 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
13807 "problems for users. If your program might need to work with older versions "
13808 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13809 "first parameter if you don't want any options)."
13813 #: ../fish/guestfish-actions.pod:3582
13818 #: ../fish/guestfish-actions.pod:3584
13821 " mount-9p mounttag mountpoint [options:..]\n"
13826 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5565
13828 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13833 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5568
13835 "If required, C<trans=virtio> will be automatically added to the options. "
13836 "Any other options required can be passed in the optional C<options> "
13841 #: ../fish/guestfish-actions.pod:3595
13843 msgstr "mount-loop"
13846 #: ../fish/guestfish-actions.pod:3597
13849 " mount-loop file mountpoint\n"
13854 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5607
13856 "This command lets you mount C<file> (a filesystem image in a file) on a "
13857 "mount point. It is entirely equivalent to the command C<mount -o loop file "
13862 #: ../fish/guestfish-actions.pod:3603
13863 msgid "mount-options"
13864 msgstr "mount-options"
13867 #: ../fish/guestfish-actions.pod:3605
13870 " mount-options options device mountpoint\n"
13875 #: ../fish/guestfish-actions.pod:3607
13877 "This is the same as the L</mount> command, but it allows you to set the "
13878 "mount options as for the L<mount(8)> I<-o> flag."
13882 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5627
13884 "If the C<options> parameter is an empty string, then no options are passed "
13885 "(all options default to whatever the filesystem uses)."
13889 #: ../fish/guestfish-actions.pod:3615
13894 #: ../fish/guestfish-actions.pod:3617
13897 " mount-ro device mountpoint\n"
13900 " mount-ro пристрій точка_монтування\n"
13904 #: ../fish/guestfish-actions.pod:3619
13906 "This is the same as the L</mount> command, but it mounts the filesystem with "
13907 "the read-only (I<-o ro>) flag."
13911 #: ../fish/guestfish-actions.pod:3622
13916 #: ../fish/guestfish-actions.pod:3624
13919 " mount-vfs options vfstype device mountpoint\n"
13924 #: ../fish/guestfish-actions.pod:3626
13926 "This is the same as the L</mount> command, but it allows you to set both the "
13927 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13931 #: ../fish/guestfish-actions.pod:3630
13932 msgid "mountpoints"
13933 msgstr "mountpoints"
13936 #: ../fish/guestfish-actions.pod:3632
13946 #: ../fish/guestfish-actions.pod:3634
13948 "This call is similar to L</mounts>. That call returns a list of devices. "
13949 "This one returns a hash table (map) of device name to directory where the "
13950 "device is mounted."
13954 #: ../fish/guestfish-actions.pod:3638
13959 #: ../fish/guestfish-actions.pod:3640
13969 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5688
13971 "This returns the list of currently mounted filesystems. It returns the list "
13972 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13976 #: ../fish/guestfish-actions.pod:3645 ../src/guestfs-actions.pod:5691
13977 msgid "Some internal mounts are not shown."
13981 #: ../fish/guestfish-actions.pod:3647
13982 msgid "See also: L</mountpoints>"
13983 msgstr "Див. також L</mountpoints>"
13986 #: ../fish/guestfish-actions.pod:3649
13991 #: ../fish/guestfish-actions.pod:3651
13997 " mv джерело призначення\n"
14001 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5708
14003 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14004 "destination filename or destination directory."
14008 #: ../fish/guestfish-actions.pod:3656
14009 msgid "ntfs-3g-probe"
14010 msgstr "ntfs-3g-probe"
14013 #: ../fish/guestfish-actions.pod:3658
14016 " ntfs-3g-probe true|false device\n"
14021 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5722
14023 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14024 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
14025 "write, and some cannot be mounted at all)."
14029 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5726
14031 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
14032 "can be mounted read-write. Set it to false if you want to test if the "
14033 "volume can be mounted read-only."
14037 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5730
14039 "The return value is an integer which C<0> if the operation would succeed, or "
14040 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14044 #: ../fish/guestfish-actions.pod:3672
14046 msgstr "ntfsresize"
14049 #: ../fish/guestfish-actions.pod:3674
14052 " ntfsresize device\n"
14055 " ntfsresize пристрій\n"
14059 #: ../fish/guestfish-actions.pod:3676 ../fish/guestfish-actions.pod:3700
14060 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5783
14062 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14063 "size of the underlying device."
14067 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5754
14069 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
14070 "consistency check (for safety). You have to boot into Windows to perform "
14071 "this check and clear this condition. Furthermore, ntfsresize refuses to "
14072 "resize filesystems which have been marked in this way. So in effect it is "
14073 "not possible to call ntfsresize multiple times on a single filesystem "
14074 "without booting into Windows between each resize."
14078 #: ../fish/guestfish-actions.pod:3687 ../fish/guestfish-actions.pod:3726
14079 #: ../src/guestfs-actions.pod:5762 ../src/guestfs-actions.pod:5809
14080 msgid "See also L<ntfsresize(8)>."
14081 msgstr "Див. також L<ntfsresize(8)>."
14084 #: ../fish/guestfish-actions.pod:3689 ../fish/guestfish-actions.pod:3737
14086 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
14091 #: ../fish/guestfish-actions.pod:3696
14092 msgid "ntfsresize-opts"
14096 #: ../fish/guestfish-actions.pod:3698
14099 " ntfsresize-opts device [size:N] [force:true|false]\n"
14104 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5792
14106 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
14107 "resized to fit the container (eg. partition)."
14111 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:5033
14112 #: ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:7766
14117 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5797
14119 "If this option is true, then force the resize of the filesystem even if the "
14120 "filesystem is marked as requiring a consistency check."
14124 #: ../fish/guestfish-actions.pod:3717
14126 "After the resize operation, the filesystem is always marked as requiring a "
14127 "consistency check (for safety). You have to boot into Windows to perform "
14128 "this check and clear this condition. If you I<don't> set the C<force> "
14129 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
14130 "a single filesystem without booting into Windows between each resize."
14134 #: ../fish/guestfish-actions.pod:3730
14135 msgid "ntfsresize-size"
14136 msgstr "ntfsresize-size"
14139 #: ../fish/guestfish-actions.pod:3732
14142 " ntfsresize-size device size\n"
14147 #: ../fish/guestfish-actions.pod:3734
14149 "This command is the same as L</ntfsresize> except that it allows you to "
14150 "specify the new size (in bytes) explicitly."
14154 #: ../fish/guestfish-actions.pod:3744
14159 #: ../fish/guestfish-actions.pod:3746
14162 " part-add device prlogex startsect endsect\n"
14167 #: ../fish/guestfish-actions.pod:3748
14169 "This command adds a partition to C<device>. If there is no partition table "
14170 "on the device, call L</part-init> first."
14174 #: ../fish/guestfish-actions.pod:3751 ../src/guestfs-actions.pod:5870
14176 "The C<prlogex> parameter is the type of partition. Normally you should pass "
14177 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14178 "C<logical>) and C<e> (or C<extended>) partition types."
14182 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5875
14184 "C<startsect> and C<endsect> are the start and end of the partition in "
14185 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
14186 "from the end of the disk (C<-1> is the last sector)."
14190 #: ../fish/guestfish-actions.pod:3760
14192 "Creating a partition which covers the whole disk is not so easy. Use L</"
14193 "part-disk> to do that."
14197 #: ../fish/guestfish-actions.pod:3763
14202 #: ../fish/guestfish-actions.pod:3765
14205 " part-del device partnum\n"
14210 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5893
14211 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14215 #: ../fish/guestfish-actions.pod:3769 ../src/guestfs-actions.pod:5895
14217 "Note that in the case of MBR partitioning, deleting an extended partition "
14218 "also deletes any logical partitions it contains."
14222 #: ../fish/guestfish-actions.pod:3773
14227 #: ../fish/guestfish-actions.pod:3775
14230 " part-disk device parttype\n"
14233 " part-disk пристрій тип_розділу\n"
14237 #: ../fish/guestfish-actions.pod:3777
14239 "This command is simply a combination of L</part-init> followed by L</part-"
14240 "add> to create a single primary partition covering the whole disk."
14244 #: ../fish/guestfish-actions.pod:3781
14246 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14247 "possible values are described in L</part-init>."
14251 #: ../fish/guestfish-actions.pod:3784
14252 msgid "part-get-bootable"
14253 msgstr "part-get-bootable"
14256 #: ../fish/guestfish-actions.pod:3786
14259 " part-get-bootable device partnum\n"
14264 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5928
14266 "This command returns true if the partition C<partnum> on C<device> has the "
14267 "bootable flag set."
14271 #: ../fish/guestfish-actions.pod:3791
14272 msgid "See also L</part-set-bootable>."
14273 msgstr "Див. також L</part-set-bootable>."
14276 #: ../fish/guestfish-actions.pod:3793
14277 msgid "part-get-mbr-id"
14278 msgstr "part-get-mbr-id"
14281 #: ../fish/guestfish-actions.pod:3795
14284 " part-get-mbr-id device partnum\n"
14289 #: ../fish/guestfish-actions.pod:3797 ../src/guestfs-actions.pod:5944
14291 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14292 "partition C<partnum>."
14296 #: ../fish/guestfish-actions.pod:3800 ../fish/guestfish-actions.pod:3944
14298 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
14299 "undefined results for other partition table types (see L</part-get-"
14304 #: ../fish/guestfish-actions.pod:3804
14305 msgid "part-get-parttype"
14306 msgstr "part-get-parttype"
14309 #: ../fish/guestfish-actions.pod:3806
14312 " part-get-parttype device\n"
14315 " part-get-parttype пристрій\n"
14319 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5961
14321 "This command examines the partition table on C<device> and returns the "
14322 "partition table type (format) being used."
14326 #: ../fish/guestfish-actions.pod:3811
14328 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14329 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
14330 "possible, although unusual. See L</part-init> for a full list."
14334 #: ../fish/guestfish-actions.pod:3816
14339 #: ../fish/guestfish-actions.pod:3818
14342 " part-init device parttype\n"
14347 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5981
14349 "This creates an empty partition table on C<device> of one of the partition "
14350 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
14351 "(for large disks)."
14355 #: ../fish/guestfish-actions.pod:3824
14357 "Initially there are no partitions. Following this, you should call L</part-"
14358 "add> for each partition required."
14362 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5988
14363 msgid "Possible values for C<parttype> are:"
14367 #: ../fish/guestfish-actions.pod:3831 ../src/guestfs-actions.pod:5992
14372 #: ../fish/guestfish-actions.pod:3833 ../src/guestfs-actions.pod:5994
14377 #: ../fish/guestfish-actions.pod:3835 ../src/guestfs-actions.pod:5996
14378 msgid "Intel EFI / GPT partition table."
14382 #: ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:5998
14384 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14385 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
14386 "the C<mbr> format."
14390 #: ../fish/guestfish-actions.pod:3841 ../src/guestfs-actions.pod:6002
14395 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:6004
14400 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:6006
14402 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14403 "Windows. This partition type will B<only> work for device sizes up to 2 "
14404 "TB. For large disks we recommend using C<gpt>."
14408 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:6013
14410 "Other partition table types that may work but are not supported include:"
14414 #: ../fish/guestfish-actions.pod:3857 ../src/guestfs-actions.pod:6018
14419 #: ../fish/guestfish-actions.pod:3859 ../src/guestfs-actions.pod:6020
14420 msgid "AIX disk labels."
14421 msgstr "Мітки дисків AIX."
14424 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:6022
14429 #: ../fish/guestfish-actions.pod:3863 ../src/guestfs-actions.pod:6024
14434 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6026
14435 msgid "Amiga \"Rigid Disk Block\" format."
14436 msgstr "Формат \"Rigid Disk Block\" Amiga."
14439 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:6028
14444 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:6030
14445 msgid "BSD disk labels."
14446 msgstr "Мітки дисків BSD."
14449 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:6032
14454 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:6034
14455 msgid "DASD, used on IBM mainframes."
14456 msgstr "DASD, використовувалися у мейнфреймах IBM."
14459 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:6036
14464 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6038
14465 msgid "MIPS/SGI volumes."
14466 msgstr "Томи MIPS/SGI."
14469 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:6040
14474 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:6042
14475 msgid "Old Mac partition format. Modern Macs use C<gpt>."
14476 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14479 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:6044
14484 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:6046
14485 msgid "NEC PC-98 format, common in Japan apparently."
14486 msgstr "Формат NEC PC-98, поширений у Японії."
14489 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:6048
14494 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:6050
14495 msgid "Sun disk labels."
14496 msgstr "Мітки дисків Sun."
14499 #: ../fish/guestfish-actions.pod:3893
14504 #: ../fish/guestfish-actions.pod:3895
14507 " part-list device\n"
14510 " part-list device\n"
14514 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:6064
14516 "This command parses the partition table on C<device> and returns the list of "
14517 "partitions found."
14521 #: ../fish/guestfish-actions.pod:3900 ../src/guestfs-actions.pod:6067
14522 msgid "The fields in the returned structure are:"
14526 #: ../fish/guestfish-actions.pod:3904 ../src/guestfs-actions.pod:6071
14527 msgid "B<part_num>"
14528 msgstr "B<part_num>"
14531 #: ../fish/guestfish-actions.pod:3906 ../src/guestfs-actions.pod:6073
14532 msgid "Partition number, counting from 1."
14536 #: ../fish/guestfish-actions.pod:3908 ../src/guestfs-actions.pod:6075
14537 msgid "B<part_start>"
14538 msgstr "B<part_start>"
14541 #: ../fish/guestfish-actions.pod:3910
14543 "Start of the partition I<in bytes>. To get sectors you have to divide by "
14544 "the device's sector size, see L</blockdev-getss>."
14548 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:6080
14549 msgid "B<part_end>"
14550 msgstr "B<part_end>"
14553 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6082
14554 msgid "End of the partition in bytes."
14558 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6084
14559 msgid "B<part_size>"
14560 msgstr "B<part_size>"
14563 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6086
14564 msgid "Size of the partition in bytes."
14568 #: ../fish/guestfish-actions.pod:3923
14569 msgid "part-set-bootable"
14570 msgstr "part-set-bootable"
14573 #: ../fish/guestfish-actions.pod:3925
14576 " part-set-bootable device partnum true|false\n"
14581 #: ../fish/guestfish-actions.pod:3927 ../src/guestfs-actions.pod:6104
14583 "This sets the bootable flag on partition numbered C<partnum> on device "
14584 "C<device>. Note that partitions are numbered from 1."
14588 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6107
14590 "The bootable flag is used by some operating systems (notably Windows) to "
14591 "determine which partition to boot from. It is by no means universally "
14596 #: ../fish/guestfish-actions.pod:3934
14597 msgid "part-set-mbr-id"
14598 msgstr "part-set-mbr-id"
14601 #: ../fish/guestfish-actions.pod:3936
14604 " part-set-mbr-id device partnum idbyte\n"
14609 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6123
14611 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14612 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
14613 "documentation are in fact hexadecimal numbers, but usually documented "
14614 "without any leading \"0x\" which might be confusing."
14618 #: ../fish/guestfish-actions.pod:3948
14619 msgid "part-set-name"
14620 msgstr "part-set-name"
14623 #: ../fish/guestfish-actions.pod:3950
14626 " part-set-name device partnum name\n"
14631 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6145
14633 "This sets the partition name on partition numbered C<partnum> on device "
14634 "C<device>. Note that partitions are numbered from 1."
14638 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6148
14640 "The partition name can only be set on certain types of partition table. "
14641 "This works on C<gpt> but not on C<mbr> partitions."
14645 #: ../fish/guestfish-actions.pod:3958
14646 msgid "part-to-dev"
14647 msgstr "part-to-dev"
14650 #: ../fish/guestfish-actions.pod:3960
14653 " part-to-dev partition\n"
14656 " part-to-dev розділ\n"
14660 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6161
14662 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14663 "partition number, returning the device name (eg. \"/dev/sdb\")."
14667 #: ../fish/guestfish-actions.pod:3966 ../fish/guestfish-actions.pod:3978
14669 "The named partition must exist, for example as a string returned from L</"
14670 "list-partitions>."
14674 #: ../fish/guestfish-actions.pod:3969
14675 msgid "See also L</part-to-partnum>."
14679 #: ../fish/guestfish-actions.pod:3971
14680 msgid "part-to-partnum"
14684 #: ../fish/guestfish-actions.pod:3973
14687 " part-to-partnum partition\n"
14692 #: ../fish/guestfish-actions.pod:3975 ../src/guestfs-actions.pod:6181
14694 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14695 "partition number (eg. C<1>)."
14699 #: ../fish/guestfish-actions.pod:3981
14700 msgid "See also L</part-to-dev>."
14704 #: ../fish/guestfish-actions.pod:3983
14705 msgid "ping-daemon"
14706 msgstr "ping-daemon"
14709 #: ../fish/guestfish-actions.pod:3985
14719 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6198
14721 "This is a test probe into the guestfs daemon running inside the qemu "
14722 "subprocess. Calling this function checks that the daemon responds to the "
14723 "ping message, without affecting the daemon or attached block device(s) in "
14728 #: ../fish/guestfish-actions.pod:3992
14733 #: ../fish/guestfish-actions.pod:3994
14736 " pread path count offset\n"
14741 #: ../fish/guestfish-actions.pod:3996 ../src/guestfs-actions.pod:6216
14743 "This command lets you read part of a file. It reads C<count> bytes of the "
14744 "file, starting at C<offset>, from file C<path>."
14748 #: ../fish/guestfish-actions.pod:3999 ../fish/guestfish-actions.pod:4014
14749 #: ../src/guestfs-actions.pod:6219 ../src/guestfs-actions.pod:6245
14751 "This may read fewer bytes than requested. For further details see the "
14752 "L<pread(2)> system call."
14756 #: ../fish/guestfish-actions.pod:4002
14757 msgid "See also L</pwrite>, L</pread-device>."
14758 msgstr "Див. також L</pwrite>, L</pread-device>."
14761 #: ../fish/guestfish-actions.pod:4007
14762 msgid "pread-device"
14763 msgstr "pread-device"
14766 #: ../fish/guestfish-actions.pod:4009
14769 " pread-device device count offset\n"
14774 #: ../fish/guestfish-actions.pod:4011 ../src/guestfs-actions.pod:6242
14776 "This command lets you read part of a file. It reads C<count> bytes of "
14777 "C<device>, starting at C<offset>."
14781 #: ../fish/guestfish-actions.pod:4017
14782 msgid "See also L</pread>."
14783 msgstr "Див. також L</pread>."
14786 #: ../fish/guestfish-actions.pod:4022
14791 #: ../fish/guestfish-actions.pod:4024
14794 " pvcreate device\n"
14797 " pvcreate пристрій\n"
14801 #: ../fish/guestfish-actions.pod:4026 ../src/guestfs-actions.pod:6265
14803 "This creates an LVM physical volume on the named C<device>, where C<device> "
14804 "should usually be a partition name such as C</dev/sda1>."
14808 #: ../fish/guestfish-actions.pod:4030
14813 #: ../fish/guestfish-actions.pod:4032
14816 " pvremove device\n"
14819 " pvremove пристрій\n"
14823 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6279
14825 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14830 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6282
14832 "The implementation uses the C<pvremove> command which refuses to wipe "
14833 "physical volumes that contain any volume groups, so you have to remove those "
14838 #: ../fish/guestfish-actions.pod:4041
14843 #: ../fish/guestfish-actions.pod:4043
14846 " pvresize device\n"
14849 " pvresize пристрій\n"
14853 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6296
14855 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14856 "the new size of the underlying device."
14860 #: ../fish/guestfish-actions.pod:4048
14861 msgid "pvresize-size"
14862 msgstr "pvresize-size"
14865 #: ../fish/guestfish-actions.pod:4050
14868 " pvresize-size device size\n"
14873 #: ../fish/guestfish-actions.pod:4052
14875 "This command is the same as L</pvresize> except that it allows you to "
14876 "specify the new size (in bytes) explicitly."
14880 #: ../fish/guestfish-actions.pod:4055
14885 #: ../fish/guestfish-actions.pod:4057
14895 #: ../fish/guestfish-actions.pod:4059 ../src/guestfs-actions.pod:6322
14897 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14902 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6325
14904 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14909 #: ../fish/guestfish-actions.pod:4065
14910 msgid "See also L</pvs-full>."
14911 msgstr "Див. також L</pvs-full>."
14914 #: ../fish/guestfish-actions.pod:4067
14919 #: ../fish/guestfish-actions.pod:4069
14929 #: ../fish/guestfish-actions.pod:4071 ../src/guestfs-actions.pod:6341
14931 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14932 "(8)> command. The \"full\" version includes all fields."
14936 #: ../fish/guestfish-actions.pod:4074
14941 #: ../fish/guestfish-actions.pod:4076
14947 " pvuuid пристрій\n"
14951 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6356
14952 msgid "This command returns the UUID of the LVM PV C<device>."
14956 #: ../fish/guestfish-actions.pod:4080
14961 #: ../fish/guestfish-actions.pod:4082
14964 " pwrite path content offset\n"
14969 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6372
14971 "This command writes to part of a file. It writes the data buffer C<content> "
14972 "to the file C<path> starting at offset C<offset>."
14976 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6375
14978 "This command implements the L<pwrite(2)> system call, and like that system "
14979 "call it may not write the full data requested. The return value is the "
14980 "number of bytes that were actually written to the file. This could even be "
14981 "0, although short writes are unlikely for regular files in ordinary "
14986 #: ../fish/guestfish-actions.pod:4093
14987 msgid "See also L</pread>, L</pwrite-device>."
14988 msgstr "Див. також L</pread>, L</pwrite-device>."
14991 #: ../fish/guestfish-actions.pod:4098
14992 msgid "pwrite-device"
14993 msgstr "pwrite-device"
14996 #: ../fish/guestfish-actions.pod:4100
14999 " pwrite-device device content offset\n"
15004 #: ../fish/guestfish-actions.pod:4102 ../src/guestfs-actions.pod:6399
15006 "This command writes to part of a device. It writes the data buffer "
15007 "C<content> to C<device> starting at offset C<offset>."
15011 #: ../fish/guestfish-actions.pod:4105 ../src/guestfs-actions.pod:6402
15013 "This command implements the L<pwrite(2)> system call, and like that system "
15014 "call it may not write the full data requested (although short writes to disk "
15015 "devices and partitions are probably impossible with standard Linux kernels)."
15019 #: ../fish/guestfish-actions.pod:4110
15020 msgid "See also L</pwrite>."
15021 msgstr "Див. також L</pwrite>."
15024 #: ../fish/guestfish-actions.pod:4115
15029 #: ../fish/guestfish-actions.pod:4117
15032 " read-file path\n"
15035 " read-file шлях\n"
15039 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6423
15040 msgid "This calls returns the contents of the file C<path> as a buffer."
15044 #: ../fish/guestfish-actions.pod:4122
15046 "Unlike L</cat>, this function can correctly handle files that contain "
15047 "embedded ASCII NUL characters. However unlike L</download>, this function "
15048 "is limited in the total size of file that can be handled."
15052 #: ../fish/guestfish-actions.pod:4130
15054 msgstr "read-lines"
15057 #: ../fish/guestfish-actions.pod:4132
15060 " read-lines path\n"
15063 " read-lines шлях\n"
15067 #: ../fish/guestfish-actions.pod:4136 ../src/guestfs-actions.pod:6448
15069 "The file contents are returned as a list of lines. Trailing C<LF> and "
15070 "C<CRLF> character sequences are I<not> returned."
15074 #: ../fish/guestfish-actions.pod:4139
15076 "Note that this function cannot correctly handle binary files (specifically, "
15077 "files containing C<\\0> character which is treated as end of line). For "
15078 "those you need to use the L</read-file> function which has a more complex "
15083 #: ../fish/guestfish-actions.pod:4144
15088 #: ../fish/guestfish-actions.pod:4146
15094 " readdir каталог\n"
15098 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6468
15099 msgid "This returns the list of directory entries in directory C<dir>."
15103 #: ../fish/guestfish-actions.pod:4150 ../src/guestfs-actions.pod:6470
15105 "All entries in the directory are returned, including C<.> and C<..>. The "
15106 "entries are I<not> sorted, but returned in the same order as the underlying "
15111 #: ../fish/guestfish-actions.pod:4154 ../src/guestfs-actions.pod:6474
15113 "Also this call returns basic file type information about each file. The "
15114 "C<ftyp> field will contain one of the following characters:"
15118 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6479
15123 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6481
15124 msgid "Block special"
15125 msgstr "Блоковий особливий"
15128 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6483
15133 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6485
15134 msgid "Char special"
15135 msgstr "Символьний особливий"
15138 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6487
15143 #: ../fish/guestfish-actions.pod:4169 ../src/guestfs-actions.pod:6489
15148 #: ../fish/guestfish-actions.pod:4171 ../src/guestfs-actions.pod:6491
15153 #: ../fish/guestfish-actions.pod:4173 ../src/guestfs-actions.pod:6493
15154 msgid "FIFO (named pipe)"
15155 msgstr "FIFO (іменований канал)"
15158 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6495
15163 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6497
15164 msgid "Symbolic link"
15165 msgstr "Символічне посилання"
15168 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6499
15173 #: ../fish/guestfish-actions.pod:4181 ../src/guestfs-actions.pod:6501
15174 msgid "Regular file"
15175 msgstr "Звичайний файл"
15178 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6503
15183 #: ../fish/guestfish-actions.pod:4185 ../src/guestfs-actions.pod:6505
15188 #: ../fish/guestfish-actions.pod:4187 ../src/guestfs-actions.pod:6507
15193 #: ../fish/guestfish-actions.pod:4189 ../src/guestfs-actions.pod:6509
15194 msgid "Unknown file type"
15195 msgstr "Невідомий тип файла"
15198 #: ../fish/guestfish-actions.pod:4191 ../src/guestfs-actions.pod:6511
15203 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6513
15205 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15209 #: ../fish/guestfish-actions.pod:4198
15211 "This function is primarily intended for use by programs. To get a simple "
15212 "list of names, use L</ls>. To get a printable directory for human "
15213 "consumption, use L</ll>."
15217 #: ../fish/guestfish-actions.pod:4202
15222 #: ../fish/guestfish-actions.pod:4204
15232 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6534
15233 msgid "This command reads the target of a symbolic link."
15237 #: ../fish/guestfish-actions.pod:4208
15238 msgid "readlinklist"
15239 msgstr "readlinklist"
15242 #: ../fish/guestfish-actions.pod:4210
15245 " readlinklist path 'names ...'\n"
15250 #: ../fish/guestfish-actions.pod:4212 ../src/guestfs-actions.pod:6548
15252 "This call allows you to do a C<readlink> operation on multiple files, where "
15253 "all files are in the directory C<path>. C<names> is the list of files from "
15258 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6552
15260 "On return you get a list of strings, with a one-to-one correspondence to the "
15261 "C<names> list. Each string is the value of the symbolic link."
15265 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6556
15267 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15268 "result string is the empty string C<\"\">. However the whole operation is "
15269 "completed even if there were C<readlink(2)> errors, and so you can call this "
15270 "function with names where you don't know if they are symbolic links already "
15271 "(albeit slightly less efficient)."
15275 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6563
15277 "This call is intended for programs that want to efficiently list a directory "
15278 "contents without making many round-trips. Very long directory listings "
15279 "might cause the protocol message size to be exceeded, causing this call to "
15280 "fail. The caller must split up such requests into smaller groups of names."
15284 #: ../fish/guestfish-actions.pod:4234
15289 #: ../fish/guestfish-actions.pod:4236
15299 #: ../fish/guestfish-actions.pod:4238 ../src/guestfs-actions.pod:6582
15301 "Return the canonicalized absolute pathname of C<path>. The returned path "
15302 "has no C<.>, C<..> or symbolic link path elements."
15306 #: ../fish/guestfish-actions.pod:4241
15307 msgid "removexattr"
15308 msgstr "removexattr"
15311 #: ../fish/guestfish-actions.pod:4243
15314 " removexattr xattr path\n"
15319 #: ../fish/guestfish-actions.pod:4245 ../src/guestfs-actions.pod:6597
15321 "This call removes the extended attribute named C<xattr> of the file C<path>."
15325 #: ../fish/guestfish-actions.pod:4248
15326 msgid "See also: L</lremovexattr>, L<attr(5)>."
15327 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
15330 #: ../fish/guestfish-actions.pod:4250
15335 #: ../fish/guestfish-actions.pod:4252
15338 " resize2fs device\n"
15341 " resize2fs пристрій\n"
15345 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6612
15347 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15348 "underlying device."
15352 #: ../fish/guestfish-actions.pod:4257
15354 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15355 "before calling this command. For unknown reasons C<resize2fs> sometimes "
15356 "gives an error about this and sometimes not. In any case, it is always safe "
15357 "to call L</e2fsck-f> before calling this function."
15361 #: ../fish/guestfish-actions.pod:4263
15362 msgid "resize2fs-M"
15363 msgstr "resize2fs-M"
15366 #: ../fish/guestfish-actions.pod:4265
15369 " resize2fs-M device\n"
15372 " resize2fs-M пристрій\n"
15376 #: ../fish/guestfish-actions.pod:4267
15378 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15379 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
15384 #: ../fish/guestfish-actions.pod:4271
15386 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15387 "and read the C<Block size> and C<Block count> values. These two numbers, "
15388 "multiplied together, give the resulting size of the minimal filesystem in "
15393 #: ../fish/guestfish-actions.pod:4276
15394 msgid "resize2fs-size"
15395 msgstr "resize2fs-size"
15398 #: ../fish/guestfish-actions.pod:4278
15401 " resize2fs-size device size\n"
15406 #: ../fish/guestfish-actions.pod:4280
15408 "This command is the same as L</resize2fs> except that it allows you to "
15409 "specify the new size (in bytes) explicitly."
15413 #: ../fish/guestfish-actions.pod:4283
15418 #: ../fish/guestfish-actions.pod:4285
15428 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6664
15429 msgid "Remove the single file C<path>."
15433 #: ../fish/guestfish-actions.pod:4289
15438 #: ../fish/guestfish-actions.pod:4291
15448 #: ../fish/guestfish-actions.pod:4293 ../src/guestfs-actions.pod:6676
15450 "Remove the file or directory C<path>, recursively removing the contents if "
15451 "its a directory. This is like the C<rm -rf> shell command."
15455 #: ../fish/guestfish-actions.pod:4297
15460 #: ../fish/guestfish-actions.pod:4299
15470 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6690
15471 msgid "Remove the single directory C<path>."
15475 #: ../fish/guestfish-actions.pod:4303
15476 msgid "rmmountpoint"
15477 msgstr "rmmountpoint"
15480 #: ../fish/guestfish-actions.pod:4305
15483 " rmmountpoint exemptpath\n"
15488 #: ../fish/guestfish-actions.pod:4307
15490 "This calls removes a mountpoint that was previously created with L</"
15491 "mkmountpoint>. See L</mkmountpoint> for full details."
15495 #: ../fish/guestfish-actions.pod:4311
15496 msgid "scrub-device"
15497 msgstr "scrub-device"
15500 #: ../fish/guestfish-actions.pod:4313
15503 " scrub-device device\n"
15506 " scrub-device пристрій\n"
15510 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6716
15512 "This command writes patterns over C<device> to make data retrieval more "
15517 #: ../fish/guestfish-actions.pod:4318 ../fish/guestfish-actions.pod:4330
15518 #: ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6719
15519 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6756
15521 "It is an interface to the L<scrub(1)> program. See that manual page for "
15526 #: ../fish/guestfish-actions.pod:4321
15528 msgstr "scrub-file"
15531 #: ../fish/guestfish-actions.pod:4323
15534 " scrub-file file\n"
15537 " scrub-file файл\n"
15541 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6732
15543 "This command writes patterns over a file to make data retrieval more "
15548 #: ../fish/guestfish-actions.pod:4328 ../src/guestfs-actions.pod:6735
15549 msgid "The file is I<removed> after scrubbing."
15553 #: ../fish/guestfish-actions.pod:4333
15554 msgid "scrub-freespace"
15555 msgstr "scrub-freespace"
15558 #: ../fish/guestfish-actions.pod:4335
15561 " scrub-freespace dir\n"
15564 " scrub-freespace каталог\n"
15568 #: ../fish/guestfish-actions.pod:4337
15570 "This command creates the directory C<dir> and then fills it with files until "
15571 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15572 "deletes them. The intention is to scrub any free space on the partition "
15573 "containing C<dir>."
15577 #: ../fish/guestfish-actions.pod:4346
15579 msgstr "set-append"
15582 #: ../fish/guestfish-actions.pod:4348
15587 #: ../fish/guestfish-actions.pod:4350
15590 " set-append append\n"
15595 #: ../fish/guestfish-actions.pod:4352 ../src/guestfs-actions.pod:6769
15597 "This function is used to add additional options to the guest kernel command "
15602 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6772
15604 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15605 "environment variable."
15609 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6775
15611 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15612 "(libguestfs always adds a few of its own)."
15616 #: ../fish/guestfish-actions.pod:4361
15617 msgid "set-attach-method"
15618 msgstr "set-attach-method"
15621 #: ../fish/guestfish-actions.pod:4363
15622 msgid "attach-method"
15626 #: ../fish/guestfish-actions.pod:4365
15629 " set-attach-method attachmethod\n"
15634 #: ../fish/guestfish-actions.pod:4367 ../src/guestfs-actions.pod:6788
15636 "Set the method that libguestfs uses to connect to the back end guestfsd "
15637 "daemon. Possible methods are:"
15641 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6793
15642 #: ../src/guestfs.pod:2916
15643 msgid "C<appliance>"
15644 msgstr "C<appliance>"
15647 #: ../fish/guestfish-actions.pod:4374 ../src/guestfs-actions.pod:6795
15649 "Launch an appliance and connect to it. This is the ordinary method and the "
15654 #: ../fish/guestfish-actions.pod:4377 ../src/guestfs-actions.pod:6798
15655 msgid "C<unix:I<path>>"
15656 msgstr "C<unix:I<шлях>>"
15659 #: ../fish/guestfish-actions.pod:4379 ../src/guestfs-actions.pod:6800
15660 msgid "Connect to the Unix domain socket I<path>."
15661 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15664 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6802
15666 "This method lets you connect to an existing daemon or (using virtio-serial) "
15667 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
15668 "RUNNING DAEMONS>."
15672 #: ../fish/guestfish-actions.pod:4387
15673 msgid "set-autosync"
15674 msgstr "set-autosync"
15677 #: ../fish/guestfish-actions.pod:4389
15682 #: ../fish/guestfish-actions.pod:4391
15685 " set-autosync true|false\n"
15688 " set-autosync true|false\n"
15692 #: ../fish/guestfish-actions.pod:4393 ../src/guestfs-actions.pod:6818
15694 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
15695 "effort attempt to make filesystems consistent and synchronized when the "
15696 "handle is closed (also if the program exits without closing handles)."
15700 #: ../fish/guestfish-actions.pod:4398 ../src/guestfs-actions.pod:6823
15702 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15703 "disabled by default)."
15707 #: ../fish/guestfish-actions.pod:4401
15709 msgstr "set-direct"
15712 #: ../fish/guestfish-actions.pod:4403
15717 #: ../fish/guestfish-actions.pod:4405
15720 " set-direct true|false\n"
15723 " set-direct true|false\n"
15727 #: ../fish/guestfish-actions.pod:4407 ../src/guestfs-actions.pod:6836
15729 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15730 "passed directly through to the appliance once it is launched."
15734 #: ../fish/guestfish-actions.pod:4411
15736 "One consequence of this is that log messages aren't caught by the library "
15737 "and handled by L</set-log-message-callback>, but go straight to stdout."
15741 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6844
15742 msgid "You probably don't want to use this unless you know what you are doing."
15746 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6847
15747 msgid "The default is disabled."
15751 #: ../fish/guestfish-actions.pod:4420
15752 msgid "set-e2label"
15753 msgstr "set-e2label"
15756 #: ../fish/guestfish-actions.pod:4422
15759 " set-e2label device label\n"
15764 #: ../fish/guestfish-actions.pod:4424 ../src/guestfs-actions.pod:6860
15766 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15767 "C<label>. Filesystem labels are limited to 16 characters."
15771 #: ../fish/guestfish-actions.pod:4428
15773 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15774 "label on a filesystem."
15778 #: ../fish/guestfish-actions.pod:4431
15780 msgstr "set-e2uuid"
15783 #: ../fish/guestfish-actions.pod:4433
15786 " set-e2uuid device uuid\n"
15791 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6878
15793 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15794 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
15795 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15799 #: ../fish/guestfish-actions.pod:4440
15801 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15802 "UUID of a filesystem."
15806 #: ../fish/guestfish-actions.pod:4443
15807 msgid "set-memsize"
15808 msgstr "set-memsize"
15811 #: ../fish/guestfish-actions.pod:4445
15816 #: ../fish/guestfish-actions.pod:4447
15819 " set-memsize memsize\n"
15824 #: ../fish/guestfish-actions.pod:4449
15826 "This sets the memory size in megabytes allocated to the qemu subprocess. "
15827 "This only has any effect if called before L</launch>."
15831 #: ../fish/guestfish-actions.pod:4453 ../src/guestfs-actions.pod:6900
15833 "You can also change this by setting the environment variable "
15834 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15838 #: ../fish/guestfish-actions.pod:4460
15839 msgid "set-network"
15840 msgstr "set-network"
15843 #: ../fish/guestfish-actions.pod:4462
15848 #: ../fish/guestfish-actions.pod:4464
15851 " set-network true|false\n"
15854 " set-network true|false\n"
15858 #: ../fish/guestfish-actions.pod:4466 ../src/guestfs-actions.pod:6917
15860 "If C<network> is true, then the network is enabled in the libguestfs "
15861 "appliance. The default is false."
15865 #: ../fish/guestfish-actions.pod:4469 ../src/guestfs-actions.pod:6920
15867 "This affects whether commands are able to access the network (see L<guestfs"
15868 "(3)/RUNNING COMMANDS>)."
15872 #: ../fish/guestfish-actions.pod:4472
15874 "You must call this before calling L</launch>, otherwise it has no effect."
15878 #: ../fish/guestfish-actions.pod:4475
15883 #: ../fish/guestfish-actions.pod:4479
15886 " set-path searchpath\n"
15891 #: ../fish/guestfish-actions.pod:4481 ../src/guestfs-actions.pod:6936
15892 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15896 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6938
15898 "The default is C<$libdir/guestfs> unless overridden by setting "
15899 "C<LIBGUESTFS_PATH> environment variable."
15903 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6941
15904 msgid "Setting C<path> to C<NULL> restores the default path."
15908 #: ../fish/guestfish-actions.pod:4488
15913 #: ../fish/guestfish-actions.pod:4490
15918 #: ../fish/guestfish-actions.pod:4492
15921 " set-pgroup true|false\n"
15926 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6953
15928 "If C<pgroup> is true, child processes are placed into their own process "
15933 #: ../fish/guestfish-actions.pod:4497 ../src/guestfs-actions.pod:6956
15935 "The practical upshot of this is that signals like C<SIGINT> (from users "
15936 "pressing C<^C>) won't be received by the child process."
15940 #: ../fish/guestfish-actions.pod:4500 ../src/guestfs-actions.pod:6959
15942 "The default for this flag is false, because usually you want C<^C> to kill "
15947 #: ../fish/guestfish-actions.pod:4503
15952 #: ../fish/guestfish-actions.pod:4505
15957 #: ../fish/guestfish-actions.pod:4507
15967 #: ../fish/guestfish-actions.pod:4509 ../src/guestfs-actions.pod:6972
15968 msgid "Set the qemu binary that we will use."
15972 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6974
15974 "The default is chosen when the library was compiled by the configure script."
15978 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6977
15980 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15985 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6980
15986 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15990 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6982
15992 "Note that you should call this function as early as possible after creating "
15993 "the handle. This is because some pre-launch operations depend on testing "
15994 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
15995 "don't retest features, and so you might see inconsistent results. Using the "
15996 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15997 "the qemu binary at the same time as the handle is created."
16001 #: ../fish/guestfish-actions.pod:4527
16002 msgid "set-recovery-proc"
16003 msgstr "set-recovery-proc"
16006 #: ../fish/guestfish-actions.pod:4529
16007 msgid "recovery-proc"
16008 msgstr "recovery-proc"
16011 #: ../fish/guestfish-actions.pod:4531
16014 " set-recovery-proc true|false\n"
16017 " set-recovery-proc true|false\n"
16021 #: ../fish/guestfish-actions.pod:4533
16023 "If this is called with the parameter C<false> then L</launch> does not "
16024 "create a recovery process. The purpose of the recovery process is to stop "
16025 "runaway qemu processes in the case where the main program aborts abruptly."
16029 #: ../fish/guestfish-actions.pod:4538
16031 "This only has any effect if called before L</launch>, and the default is "
16036 #: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:7008
16038 "About the only time when you would want to disable this is if the main "
16039 "process will fork itself into the background (\"daemonize\" itself). In "
16040 "this case the recovery process thinks that the main program has disappeared "
16041 "and so kills qemu, which is not very helpful."
16045 #: ../fish/guestfish-actions.pod:4547
16046 msgid "set-selinux"
16047 msgstr "set-selinux"
16050 #: ../fish/guestfish-actions.pod:4549
16055 #: ../fish/guestfish-actions.pod:4551
16058 " set-selinux true|false\n"
16061 " set-selinux true|false\n"
16065 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7024
16067 "This sets the selinux flag that is passed to the appliance at boot time. "
16068 "The default is C<selinux=0> (disabled)."
16072 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:7027
16074 "Note that if SELinux is enabled, it is always in Permissive mode "
16075 "(C<enforcing=0>)."
16079 #: ../fish/guestfish-actions.pod:4562
16084 #: ../fish/guestfish-actions.pod:4564
16089 #: ../fish/guestfish-actions.pod:4566
16097 #: ../fish/guestfish-actions.pod:4568 ../src/guestfs-actions.pod:7043
16099 "Change the number of virtual CPUs assigned to the appliance. The default is "
16100 "C<1>. Increasing this may improve performance, though often it has no "
16105 #: ../fish/guestfish-actions.pod:4572
16106 msgid "This function must be called before L</launch>."
16110 #: ../fish/guestfish-actions.pod:4574
16115 #: ../fish/guestfish-actions.pod:4576
16120 #: ../fish/guestfish-actions.pod:4578
16123 " set-trace true|false\n"
16126 " set-trace true|false\n"
16130 #: ../fish/guestfish-actions.pod:4580 ../src/guestfs-actions.pod:7059
16132 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16133 "return values are traced."
16137 #: ../fish/guestfish-actions.pod:4583 ../src/guestfs-actions.pod:7062
16139 "If you want to trace C API calls into libguestfs (and other libraries) then "
16140 "possibly a better way is to use the external ltrace(1) command."
16144 #: ../fish/guestfish-actions.pod:4587 ../src/guestfs-actions.pod:7066
16146 "Command traces are disabled unless the environment variable "
16147 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16151 #: ../fish/guestfish-actions.pod:4590
16153 "Trace messages are normally sent to C<stderr>, unless you register a "
16154 "callback to send them somewhere else (see L</set-event-callback>)."
16158 #: ../fish/guestfish-actions.pod:4594
16159 msgid "set-verbose"
16160 msgstr "set-verbose"
16163 #: ../fish/guestfish-actions.pod:4596
16168 #: ../fish/guestfish-actions.pod:4598
16171 " set-verbose true|false\n"
16174 " set-verbose true|false\n"
16178 #: ../fish/guestfish-actions.pod:4600 ../src/guestfs-actions.pod:7083
16179 msgid "If C<verbose> is true, this turns on verbose messages."
16183 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:7085
16185 "Verbose messages are disabled unless the environment variable "
16186 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16190 #: ../fish/guestfish-actions.pod:4605
16192 "Verbose messages are normally sent to C<stderr>, unless you register a "
16193 "callback to send them somewhere else (see L</set-event-callback>)."
16197 #: ../fish/guestfish-actions.pod:4609
16202 #: ../fish/guestfish-actions.pod:4611
16205 " setcon context\n"
16208 " setcon контекст\n"
16212 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:7102
16214 "This sets the SELinux security context of the daemon to the string "
16219 #: ../fish/guestfish-actions.pod:4616 ../src/guestfs-actions.pod:7105
16220 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16224 #: ../fish/guestfish-actions.pod:4618
16229 #: ../fish/guestfish-actions.pod:4620
16232 " setxattr xattr val vallen path\n"
16237 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:7120
16239 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16240 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
16244 #: ../fish/guestfish-actions.pod:4626
16245 msgid "See also: L</lsetxattr>, L<attr(5)>."
16246 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
16249 #: ../fish/guestfish-actions.pod:4628
16254 #: ../fish/guestfish-actions.pod:4630
16257 " sfdisk device cyls heads sectors 'lines ...'\n"
16262 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:7147
16264 "This is a direct interface to the L<sfdisk(8)> program for creating "
16265 "partitions on block devices."
16269 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:7150
16270 msgid "C<device> should be a block device, for example C</dev/sda>."
16274 #: ../fish/guestfish-actions.pod:4637 ../src/guestfs-actions.pod:7152
16276 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16277 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16278 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
16279 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
16280 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16281 "the kernel) cannot work out the right geometry and you will need to tell it."
16285 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:7160
16287 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
16288 "refer to the L<sfdisk(8)> manpage."
16292 #: ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:7163
16294 "To create a single partition occupying the whole disk, you would pass "
16295 "C<lines> as a single element list, when the single element being the string "
16300 #: ../fish/guestfish-actions.pod:4652
16301 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16302 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16305 #: ../fish/guestfish-actions.pod:4655 ../fish/guestfish-actions.pod:4675
16306 #: ../fish/guestfish-actions.pod:4694
16308 "I<This function is deprecated.> In new code, use the L</part_add> call "
16313 #: ../fish/guestfish-actions.pod:4662
16318 #: ../fish/guestfish-actions.pod:4664
16321 " sfdiskM device 'lines ...'\n"
16326 #: ../fish/guestfish-actions.pod:4666
16328 "This is a simplified interface to the L</sfdisk> command, where partition "
16329 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16330 "you don't need to specify the cyls, heads and sectors parameters which were "
16331 "rarely if ever used anyway."
16335 #: ../fish/guestfish-actions.pod:4672
16336 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16338 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
16341 #: ../fish/guestfish-actions.pod:4682
16346 #: ../fish/guestfish-actions.pod:4684
16349 " sfdisk-N device partnum cyls heads sectors line\n"
16354 #: ../fish/guestfish-actions.pod:4686 ../src/guestfs-actions.pod:7219
16356 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16357 "(note: C<n> counts from 1)."
16361 #: ../fish/guestfish-actions.pod:4689
16363 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
16364 "cyls/heads/sectors parameters."
16368 #: ../fish/guestfish-actions.pod:4692
16369 msgid "See also: L</part-add>"
16370 msgstr "Див. також L</part-add>"
16373 #: ../fish/guestfish-actions.pod:4701
16374 msgid "sfdisk-disk-geometry"
16375 msgstr "sfdisk-disk-geometry"
16378 #: ../fish/guestfish-actions.pod:4703
16381 " sfdisk-disk-geometry device\n"
16384 " sfdisk-disk-geometry пристрій\n"
16388 #: ../fish/guestfish-actions.pod:4705
16390 "This displays the disk geometry of C<device> read from the partition table. "
16391 "Especially in the case where the underlying block device has been resized, "
16392 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16393 "kernel-geometry>)."
16397 #: ../fish/guestfish-actions.pod:4710 ../fish/guestfish-actions.pod:4719
16398 #: ../src/guestfs-actions.pod:7242 ../src/guestfs-actions.pod:7258
16399 msgid "The result is in human-readable format, and not designed to be parsed."
16403 #: ../fish/guestfish-actions.pod:4713
16404 msgid "sfdisk-kernel-geometry"
16405 msgstr "sfdisk-kernel-geometry"
16408 #: ../fish/guestfish-actions.pod:4715
16411 " sfdisk-kernel-geometry device\n"
16414 " sfdisk-kernel-geometry пристрій\n"
16418 #: ../fish/guestfish-actions.pod:4717 ../src/guestfs-actions.pod:7256
16419 msgid "This displays the kernel's idea of the geometry of C<device>."
16423 #: ../fish/guestfish-actions.pod:4722
16428 #: ../fish/guestfish-actions.pod:4724
16431 " sfdisk-l device\n"
16434 " sfdisk-l пристрій\n"
16438 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7279
16440 "This displays the partition table on C<device>, in the human-readable output "
16441 "of the L<sfdisk(8)> command. It is not intended to be parsed."
16445 #: ../fish/guestfish-actions.pod:4730
16446 msgid "See also: L</part-list>"
16447 msgstr "Див. також L</part-list>"
16450 #: ../fish/guestfish-actions.pod:4732
16452 "I<This function is deprecated.> In new code, use the L</part_list> call "
16457 #: ../fish/guestfish-actions.pod:4739
16462 #: ../fish/guestfish-actions.pod:4741
16472 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7296
16474 "This call runs a command from the guest filesystem via the guest's C</bin/"
16479 #: ../fish/guestfish-actions.pod:4746
16480 msgid "This is like L</command>, but passes the command to:"
16484 #: ../fish/guestfish-actions.pod:4748 ../src/guestfs-actions.pod:7301
16487 " /bin/sh -c \"command\"\n"
16492 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7303
16494 "Depending on the guest's shell, this usually results in wildcards being "
16495 "expanded, shell expressions being interpolated and so on."
16499 #: ../fish/guestfish-actions.pod:4754
16500 msgid "All the provisos about L</command> apply to this call."
16504 #: ../fish/guestfish-actions.pod:4756
16509 #: ../fish/guestfish-actions.pod:4758
16512 " sh-lines command\n"
16515 " sh-lines команда\n"
16519 #: ../fish/guestfish-actions.pod:4760
16520 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16524 #: ../fish/guestfish-actions.pod:4763
16525 msgid "See also: L</command-lines>"
16526 msgstr "Див. також L</command-lines>"
16529 #: ../fish/guestfish-actions.pod:4765
16534 #: ../fish/guestfish-actions.pod:4767
16540 " sleep час_у_секундах\n"
16544 #: ../fish/guestfish-actions.pod:4769 ../src/guestfs-actions.pod:7337
16545 msgid "Sleep for C<secs> seconds."
16549 #: ../fish/guestfish-actions.pod:4771
16554 #: ../fish/guestfish-actions.pod:4773
16564 #: ../fish/guestfish-actions.pod:4777 ../src/guestfs-actions.pod:7351
16565 msgid "This is the same as the C<stat(2)> system call."
16569 #: ../fish/guestfish-actions.pod:4779
16574 #: ../fish/guestfish-actions.pod:4781
16584 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7365
16586 "Returns file system statistics for any mounted file system. C<path> should "
16587 "be a file or directory in the mounted file system (typically it is the mount "
16588 "point itself, but it doesn't need to be)."
16592 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7369
16593 msgid "This is the same as the C<statvfs(2)> system call."
16597 #: ../fish/guestfish-actions.pod:4789
16602 #: ../fish/guestfish-actions.pod:4791
16612 #: ../fish/guestfish-actions.pod:4793 ../src/guestfs-actions.pod:7383
16614 "This runs the L<strings(1)> command on a file and returns the list of "
16615 "printable strings found."
16619 #: ../fish/guestfish-actions.pod:4799
16624 #: ../fish/guestfish-actions.pod:4801
16627 " strings-e encoding path\n"
16630 " strings-e кодування шлях\n"
16634 #: ../fish/guestfish-actions.pod:4803
16636 "This is like the L</strings> command, but allows you to specify the encoding "
16637 "of strings that are looked for in the source file C<path>."
16641 #: ../fish/guestfish-actions.pod:4807 ../src/guestfs-actions.pod:7406
16642 msgid "Allowed encodings are:"
16643 msgstr "Можливими кодуваннями є:"
16646 #: ../fish/guestfish-actions.pod:4811 ../src/guestfs-actions.pod:7410
16651 #: ../fish/guestfish-actions.pod:4813
16653 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16654 "ISO-8859-X (this is what L</strings> uses)."
16658 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7415
16663 #: ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7417
16664 msgid "Single 8-bit-byte characters."
16665 msgstr "Окремі 8-бітові-байтові символи."
16668 #: ../fish/guestfish-actions.pod:4820 ../src/guestfs-actions.pod:7419
16673 #: ../fish/guestfish-actions.pod:4822 ../src/guestfs-actions.pod:7421
16674 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16678 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7424
16679 msgid "l (lower case letter L)"
16683 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7426
16685 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
16686 "examining binaries in Windows guests."
16690 #: ../fish/guestfish-actions.pod:4830 ../src/guestfs-actions.pod:7429
16695 #: ../fish/guestfish-actions.pod:4832 ../src/guestfs-actions.pod:7431
16696 msgid "32-bit big endian such as UCS-4BE."
16700 #: ../fish/guestfish-actions.pod:4834 ../src/guestfs-actions.pod:7433
16705 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7435
16706 msgid "32-bit little endian such as UCS-4LE."
16710 #: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7439
16711 msgid "The returned strings are transcoded to UTF-8."
16715 #: ../fish/guestfish-actions.pod:4845
16716 msgid "swapoff-device"
16717 msgstr "swapoff-device"
16720 #: ../fish/guestfish-actions.pod:4847
16723 " swapoff-device device\n"
16726 " swapoff-device пристрій\n"
16730 #: ../fish/guestfish-actions.pod:4849
16732 "This command disables the libguestfs appliance swap device or partition "
16733 "named C<device>. See L</swapon-device>."
16737 #: ../fish/guestfish-actions.pod:4853
16738 msgid "swapoff-file"
16739 msgstr "swapoff-file"
16742 #: ../fish/guestfish-actions.pod:4855
16745 " swapoff-file file\n"
16748 " swapoff-file файл\n"
16752 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7470
16753 msgid "This command disables the libguestfs appliance swap on file."
16757 #: ../fish/guestfish-actions.pod:4859
16758 msgid "swapoff-label"
16759 msgstr "swapoff-label"
16762 #: ../fish/guestfish-actions.pod:4861
16765 " swapoff-label label\n"
16768 " swapoff-label мітка\n"
16772 #: ../fish/guestfish-actions.pod:4863 ../src/guestfs-actions.pod:7482
16774 "This command disables the libguestfs appliance swap on labeled swap "
16779 #: ../fish/guestfish-actions.pod:4866
16780 msgid "swapoff-uuid"
16781 msgstr "swapoff-uuid"
16784 #: ../fish/guestfish-actions.pod:4868
16787 " swapoff-uuid uuid\n"
16790 " swapoff-uuid uuid\n"
16794 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7495
16796 "This command disables the libguestfs appliance swap partition with the given "
16801 #: ../fish/guestfish-actions.pod:4873
16802 msgid "swapon-device"
16803 msgstr "swapon-device"
16806 #: ../fish/guestfish-actions.pod:4875
16809 " swapon-device device\n"
16812 " swapon-device пристрій\n"
16816 #: ../fish/guestfish-actions.pod:4877
16818 "This command enables the libguestfs appliance to use the swap device or "
16819 "partition named C<device>. The increased memory is made available for all "
16820 "commands, for example those run using L</command> or L</sh>."
16824 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7513
16826 "Note that you should not swap to existing guest swap partitions unless you "
16827 "know what you are doing. They may contain hibernation information, or other "
16828 "information that the guest doesn't want you to trash. You also risk leaking "
16829 "information about the host to the guest this way. Instead, attach a new "
16830 "host device to the guest and swap on that."
16834 #: ../fish/guestfish-actions.pod:4889
16835 msgid "swapon-file"
16836 msgstr "swapon-file"
16839 #: ../fish/guestfish-actions.pod:4891
16842 " swapon-file file\n"
16845 " swapon-file файл\n"
16849 #: ../fish/guestfish-actions.pod:4893
16851 "This command enables swap to a file. See L</swapon-device> for other notes."
16855 #: ../fish/guestfish-actions.pod:4896
16856 msgid "swapon-label"
16857 msgstr "swapon-label"
16860 #: ../fish/guestfish-actions.pod:4898
16863 " swapon-label label\n"
16866 " swapon-label мітка\n"
16870 #: ../fish/guestfish-actions.pod:4900
16872 "This command enables swap to a labeled swap partition. See L</swapon-"
16873 "device> for other notes."
16877 #: ../fish/guestfish-actions.pod:4903
16878 msgid "swapon-uuid"
16879 msgstr "swapon-uuid"
16882 #: ../fish/guestfish-actions.pod:4905
16885 " swapon-uuid uuid\n"
16888 " swapon-uuid uuid\n"
16892 #: ../fish/guestfish-actions.pod:4907
16894 "This command enables swap to a swap partition with the given UUID. See L</"
16895 "swapon-device> for other notes."
16899 #: ../fish/guestfish-actions.pod:4910
16904 #: ../fish/guestfish-actions.pod:4912
16914 #: ../fish/guestfish-actions.pod:4914 ../src/guestfs-actions.pod:7568
16916 "This syncs the disk, so that any writes are flushed through to the "
16917 "underlying disk image."
16921 #: ../fish/guestfish-actions.pod:4917 ../src/guestfs-actions.pod:7571
16923 "You should always call this if you have modified a disk image, before "
16924 "closing the handle."
16928 #: ../fish/guestfish-actions.pod:4920
16933 #: ../fish/guestfish-actions.pod:4922
16943 #: ../fish/guestfish-actions.pod:4924 ../src/guestfs-actions.pod:7584
16945 "This command returns up to the last 10 lines of a file as a list of strings."
16949 #: ../fish/guestfish-actions.pod:4930
16954 #: ../fish/guestfish-actions.pod:4932
16957 " tail-n nrlines path\n"
16962 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7603
16964 "If the parameter C<nrlines> is a positive number, this returns the last "
16965 "C<nrlines> lines of the file C<path>."
16969 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7606
16971 "If the parameter C<nrlines> is a negative number, this returns lines from "
16972 "the file C<path>, starting with the C<-nrlines>th line."
16976 #: ../fish/guestfish-actions.pod:4945
16981 #: ../fish/guestfish-actions.pod:4947
16984 " tar-in (tarfile|-) directory\n"
16987 " tar-in (файл_tar|-) каталог\n"
16991 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7627
16993 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16994 "tar file) into C<directory>."
16998 #: ../fish/guestfish-actions.pod:4952
16999 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
17003 #: ../fish/guestfish-actions.pod:4957
17008 #: ../fish/guestfish-actions.pod:4959
17011 " tar-out directory (tarfile|-)\n"
17014 " tar-out каталог (файл tar|-)\n"
17018 #: ../fish/guestfish-actions.pod:4961 ../src/guestfs-actions.pod:7644
17020 "This command packs the contents of C<directory> and downloads it to local "
17025 #: ../fish/guestfish-actions.pod:4964
17026 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
17030 #: ../fish/guestfish-actions.pod:4969
17035 #: ../fish/guestfish-actions.pod:4971
17038 " tgz-in (tarball|-) directory\n"
17041 " tgz-in (архів tar|-) каталог\n"
17045 #: ../fish/guestfish-actions.pod:4973 ../src/guestfs-actions.pod:7661
17047 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17048 "tar file) into C<directory>."
17052 #: ../fish/guestfish-actions.pod:4976
17053 msgid "To upload an uncompressed tarball, use L</tar-in>."
17057 #: ../fish/guestfish-actions.pod:4980
17062 #: ../fish/guestfish-actions.pod:4982
17065 " tgz-out directory (tarball|-)\n"
17068 " tgz-out каталог (архів tar|-)\n"
17072 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7677
17074 "This command packs the contents of C<directory> and downloads it to local "
17079 #: ../fish/guestfish-actions.pod:4987
17080 msgid "To download an uncompressed tarball, use L</tar-out>."
17084 #: ../fish/guestfish-actions.pod:4991
17089 #: ../fish/guestfish-actions.pod:4993
17099 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7692
17101 "Touch acts like the L<touch(1)> command. It can be used to update the "
17102 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17107 #: ../fish/guestfish-actions.pod:4999 ../src/guestfs-actions.pod:7696
17109 "This command only works on regular files, and will fail on other file types "
17110 "such as directories, symbolic links, block special etc."
17114 #: ../fish/guestfish-actions.pod:5002
17119 #: ../fish/guestfish-actions.pod:5004
17129 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7709
17131 "This command truncates C<path> to a zero-length file. The file must exist "
17136 #: ../fish/guestfish-actions.pod:5009
17137 msgid "truncate-size"
17138 msgstr "truncate-size"
17141 #: ../fish/guestfish-actions.pod:5011
17144 " truncate-size path size\n"
17147 " truncate-size шлях розмір\n"
17151 #: ../fish/guestfish-actions.pod:5013 ../src/guestfs-actions.pod:7723
17153 "This command truncates C<path> to size C<size> bytes. The file must exist "
17158 #: ../fish/guestfish-actions.pod:5016
17160 "If the current file size is less than C<size> then the file is extended to "
17161 "the required size with zero bytes. This creates a sparse file (ie. disk "
17162 "blocks are not allocated for the file until you write to it). To create a "
17163 "non-sparse file of zeroes, use L</fallocate64> instead."
17167 #: ../fish/guestfish-actions.pod:5022
17169 #| msgid "tune2fs-l"
17174 #: ../fish/guestfish-actions.pod:5024
17177 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] [errorbehavior:..] [group:N] [intervalbetweenchecks:N] [reservedblockspercentage:N] [lastmounteddirectory:..] [reservedblockscount:N] [user:N]\n"
17182 #: ../fish/guestfish-actions.pod:5026 ../src/guestfs-actions.pod:7759
17184 "This call allows you to adjust various filesystem parameters of an ext2/ext3/"
17185 "ext4 filesystem called C<device>."
17189 #: ../fish/guestfish-actions.pod:5035 ../src/guestfs-actions.pod:7768
17191 "Force tune2fs to complete the operation even in the face of errors. This is "
17192 "the same as the tune2fs C<-f> option."
17196 #: ../fish/guestfish-actions.pod:5038 ../src/guestfs-actions.pod:7771
17198 #| msgid "mkmountpoint"
17199 msgid "C<maxmountcount>"
17200 msgstr "mkmountpoint"
17203 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7773
17205 "Set the number of mounts after which the filesystem is checked by L<e2fsck(8)"
17206 ">. If this is C<0> then the number of mounts is disregarded. This is the "
17207 "same as the tune2fs C<-c> option."
17211 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7777
17213 #| msgid "mountpoints"
17214 msgid "C<mountcount>"
17215 msgstr "mountpoints"
17218 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7779
17220 "Set the number of times the filesystem has been mounted. This is the same "
17221 "as the tune2fs C<-C> option."
17225 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7782
17226 msgid "C<errorbehavior>"
17230 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7784
17232 "Change the behavior of the kernel code when errors are detected. Possible "
17233 "values currently are: C<continue>, C<remount-ro>, C<panic>. In practice "
17234 "these options don't really make any difference, particularly for write "
17239 #: ../fish/guestfish-actions.pod:5056 ../src/guestfs-actions.pod:7789
17240 msgid "This is the same as the tune2fs C<-e> option."
17244 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7791
17246 #| msgid "B<--volgroups>"
17248 msgstr "B<--volgroups>"
17251 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7793
17253 "Set the group which can use reserved filesystem blocks. This is the same as "
17254 "the tune2fs C<-g> option except that it can only be specified as a number."
17258 #: ../fish/guestfish-actions.pod:5064 ../src/guestfs-actions.pod:7797
17259 msgid "C<intervalbetweenchecks>"
17263 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7799
17265 "Adjust the maximal time between two filesystem checks (in seconds). If the "
17266 "option is passed as C<0> then time-dependent checking is disabled."
17270 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7803
17271 msgid "This is the same as the tune2fs C<-i> option."
17275 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7805
17276 msgid "C<reservedblockspercentage>"
17280 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7807
17282 "Set the percentage of the filesystem which may only be allocated by "
17283 "privileged processes. This is the same as the tune2fs C<-m> option."
17287 #: ../fish/guestfish-actions.pod:5078 ../src/guestfs-actions.pod:7811
17288 msgid "C<lastmounteddirectory>"
17292 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7813
17294 "Set the last mounted directory. This is the same as the tune2fs C<-M> "
17299 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7816
17301 "C<reservedblockscount> Set the number of reserved filesystem blocks. This "
17302 "is the same as the tune2fs C<-r> option."
17306 #: ../fish/guestfish-actions.pod:5087 ../src/guestfs-actions.pod:7820
17311 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7822
17313 "Set the user who can use the reserved filesystem blocks. This is the same "
17314 "as the tune2fs C<-u> option except that it can only be specified as a number."
17318 #: ../fish/guestfish-actions.pod:5095
17320 "To get the current values of filesystem parameters, see L</tune2fs-l>. For "
17321 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
17325 #: ../fish/guestfish-actions.pod:5101
17330 #: ../fish/guestfish-actions.pod:5103
17333 " tune2fs-l device\n"
17336 " tune2fs-l пристрій\n"
17340 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7862
17342 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17347 #: ../fish/guestfish-actions.pod:5108 ../src/guestfs-actions.pod:7865
17349 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
17350 "for more details. The list of fields returned isn't clearly defined, and "
17351 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17352 "and the filesystem itself."
17356 #: ../fish/guestfish-actions.pod:5113
17361 #: ../fish/guestfish-actions.pod:5115
17364 " txz-in (tarball|-) directory\n"
17367 " txz-in (архів tar|-) каталог\n"
17371 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7885
17373 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17374 "tar file) into C<directory>."
17378 #: ../fish/guestfish-actions.pod:5122
17383 #: ../fish/guestfish-actions.pod:5124
17386 " txz-out directory (tarball|-)\n"
17389 " txz-out каталог (архів tar|-)\n"
17393 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7899
17395 "This command packs the contents of C<directory> and downloads it to local "
17396 "file C<tarball> (as an xz compressed tar archive)."
17400 #: ../fish/guestfish-actions.pod:5131
17405 #: ../fish/guestfish-actions.pod:5133
17415 #: ../fish/guestfish-actions.pod:5135 ../src/guestfs-actions.pod:7912
17417 "This function sets the mask used for creating new files and device nodes to "
17422 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7915
17424 "Typical umask values would be C<022> which creates new files with "
17425 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17426 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17430 #: ../fish/guestfish-actions.pod:5143 ../src/guestfs-actions.pod:7920
17432 "The default umask is C<022>. This is important because it means that "
17433 "directories and device nodes will be created with C<0644> or C<0755> mode "
17434 "even if you specify C<0777>."
17438 #: ../fish/guestfish-actions.pod:5147
17439 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17440 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17443 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7927
17444 msgid "This call returns the previous umask."
17448 #: ../fish/guestfish-actions.pod:5152
17453 #: ../fish/guestfish-actions.pod:5154
17458 #: ../fish/guestfish-actions.pod:5156
17461 " umount pathordevice\n"
17464 " umount шлях_або_пристрій\n"
17468 #: ../fish/guestfish-actions.pod:5158 ../src/guestfs-actions.pod:7939
17470 "This unmounts the given filesystem. The filesystem may be specified either "
17471 "by its mountpoint (path) or the device which contains the filesystem."
17475 #: ../fish/guestfish-actions.pod:5162
17477 msgstr "umount-all"
17480 #: ../fish/guestfish-actions.pod:5164
17481 msgid "unmount-all"
17482 msgstr "unmount-all"
17485 #: ../fish/guestfish-actions.pod:5166
17495 #: ../fish/guestfish-actions.pod:5168 ../src/guestfs-actions.pod:7952
17496 msgid "This unmounts all mounted filesystems."
17500 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7954
17501 msgid "Some internal mounts are not unmounted by this call."
17505 #: ../fish/guestfish-actions.pod:5172
17510 #: ../fish/guestfish-actions.pod:5174
17513 " upload (filename|-) remotefilename\n"
17516 " upload (назва_файла|-) назва_віддаленого_файла\n"
17520 #: ../fish/guestfish-actions.pod:5176 ../fish/guestfish-actions.pod:5189
17521 #: ../src/guestfs-actions.pod:7967 ../src/guestfs-actions.pod:7991
17522 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17526 #: ../fish/guestfish-actions.pod:5181
17527 msgid "See also L</download>."
17528 msgstr "Див. також L</download>."
17531 #: ../fish/guestfish-actions.pod:5185
17532 msgid "upload-offset"
17533 msgstr "upload-offset"
17536 #: ../fish/guestfish-actions.pod:5187
17539 " upload-offset (filename|-) remotefilename offset\n"
17542 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
17546 #: ../fish/guestfish-actions.pod:5192 ../src/guestfs-actions.pod:7994
17548 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
17549 "The intention is to overwrite parts of existing files or devices, although "
17550 "if a non-existant file is specified then it is created with a \"hole\" "
17551 "before C<offset>. The size of the data written is implicit in the size of "
17552 "the source C<filename>."
17556 #: ../fish/guestfish-actions.pod:5199
17558 "Note that there is no limit on the amount of data that can be uploaded with "
17559 "this call, unlike with L</pwrite>, and this call always writes the full "
17560 "amount unless an error occurs."
17564 #: ../fish/guestfish-actions.pod:5204
17565 msgid "See also L</upload>, L</pwrite>."
17566 msgstr "Див. також L</upload>, L</pwrite>."
17569 #: ../fish/guestfish-actions.pod:5208
17574 #: ../fish/guestfish-actions.pod:5210
17577 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17582 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8027
17583 msgid "This command sets the timestamps of a file with nanosecond precision."
17587 #: ../fish/guestfish-actions.pod:5215 ../src/guestfs-actions.pod:8030
17589 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17594 #: ../fish/guestfish-actions.pod:5218 ../src/guestfs-actions.pod:8033
17596 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17597 "nanoseconds from the epoch."
17601 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:8036
17603 "If the C<*nsecs> field contains the special value C<-1> then the "
17604 "corresponding timestamp is set to the current time. (The C<*secs> field is "
17605 "ignored in this case)."
17609 #: ../fish/guestfish-actions.pod:5225 ../src/guestfs-actions.pod:8040
17611 "If the C<*nsecs> field contains the special value C<-2> then the "
17612 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
17617 #: ../fish/guestfish-actions.pod:5229
17622 #: ../fish/guestfish-actions.pod:5231
17632 #: ../fish/guestfish-actions.pod:5233 ../src/guestfs-actions.pod:8053
17634 "Return the libguestfs version number that the program is linked against."
17638 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8056
17640 "Note that because of dynamic linking this is not necessarily the version of "
17641 "libguestfs that you compiled against. You can compile the program, and then "
17642 "at runtime dynamically link against a completely different C<libguestfs.so> "
17647 #: ../fish/guestfish-actions.pod:5241 ../src/guestfs-actions.pod:8061
17649 "This call was added in version C<1.0.58>. In previous versions of "
17650 "libguestfs there was no way to get the version number. From C code you can "
17651 "use dynamic linker functions to find out if this symbol exists (if it "
17652 "doesn't, then it's an earlier version)."
17656 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8067
17658 "The call returns a structure with four elements. The first three (C<major>, "
17659 "C<minor> and C<release>) are numbers and correspond to the usual version "
17660 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
17661 "but may be used for distro-specific information."
17665 #: ../fish/guestfish-actions.pod:5253 ../src/guestfs-actions.pod:8073
17667 "To construct the original version string: C<$major.$minor.$release$extra>"
17671 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8076
17672 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17673 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17676 #: ../fish/guestfish-actions.pod:5258
17678 "I<Note:> Don't use this call to test for availability of features. In "
17679 "enterprise distributions we backport features from later versions into "
17680 "earlier versions, making this an unreliable way to test for features. Use "
17681 "L</available> instead."
17685 #: ../fish/guestfish-actions.pod:5264
17690 #: ../fish/guestfish-actions.pod:5266
17693 " vfs-label device\n"
17696 " vfs-label пристрій\n"
17700 #: ../fish/guestfish-actions.pod:5268 ../src/guestfs-actions.pod:8096
17701 msgid "This returns the filesystem label of the filesystem on C<device>."
17705 #: ../fish/guestfish-actions.pod:5271 ../src/guestfs-actions.pod:8099
17706 msgid "If the filesystem is unlabeled, this returns the empty string."
17710 #: ../fish/guestfish-actions.pod:5273
17711 msgid "To find a filesystem from the label, use L</findfs-label>."
17715 #: ../fish/guestfish-actions.pod:5275
17720 #: ../fish/guestfish-actions.pod:5277
17723 " vfs-type device\n"
17726 " vfs-type пристрій\n"
17730 #: ../fish/guestfish-actions.pod:5279 ../src/guestfs-actions.pod:8114
17732 "This command gets the filesystem type corresponding to the filesystem on "
17737 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8117
17739 "For most filesystems, the result is the name of the Linux VFS module which "
17740 "would be used to mount this filesystem if you mounted it without specifying "
17741 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
17745 #: ../fish/guestfish-actions.pod:5287
17750 #: ../fish/guestfish-actions.pod:5289
17753 " vfs-uuid device\n"
17756 " vfs-uuid пристрій\n"
17760 #: ../fish/guestfish-actions.pod:5291 ../src/guestfs-actions.pod:8133
17761 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17765 #: ../fish/guestfish-actions.pod:5294 ../src/guestfs-actions.pod:8136
17766 msgid "If the filesystem does not have a UUID, this returns the empty string."
17770 #: ../fish/guestfish-actions.pod:5296
17771 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17775 #: ../fish/guestfish-actions.pod:5298
17776 msgid "vg-activate"
17777 msgstr "vg-activate"
17780 #: ../fish/guestfish-actions.pod:5300
17783 " vg-activate true|false 'volgroups ...'\n"
17788 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8152
17790 "This command activates or (if C<activate> is false) deactivates all logical "
17791 "volumes in the listed volume groups C<volgroups>."
17795 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8155
17796 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17800 #: ../fish/guestfish-actions.pod:5307 ../src/guestfs-actions.pod:8157
17802 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17803 "activated or deactivated."
17807 #: ../fish/guestfish-actions.pod:5310
17808 msgid "vg-activate-all"
17809 msgstr "vg-activate-all"
17812 #: ../fish/guestfish-actions.pod:5312
17815 " vg-activate-all true|false\n"
17818 " vg-activate-all true|false\n"
17822 #: ../fish/guestfish-actions.pod:5314 ../src/guestfs-actions.pod:8170
17824 "This command activates or (if C<activate> is false) deactivates all logical "
17825 "volumes in all volume groups."
17829 #: ../fish/guestfish-actions.pod:5317 ../src/guestfs-actions.pod:8173
17830 msgid "This command is the same as running C<vgchange -a y|n>"
17834 #: ../fish/guestfish-actions.pod:5319
17839 #: ../fish/guestfish-actions.pod:5321
17842 " vgcreate volgroup 'physvols ...'\n"
17847 #: ../fish/guestfish-actions.pod:5323 ../src/guestfs-actions.pod:8186
17849 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17850 "of physical volumes C<physvols>."
17854 #: ../fish/guestfish-actions.pod:5326
17859 #: ../fish/guestfish-actions.pod:5328
17862 " vglvuuids vgname\n"
17867 #: ../fish/guestfish-actions.pod:5330 ../src/guestfs-actions.pod:8199
17869 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17870 "volumes created in this volume group."
17874 #: ../fish/guestfish-actions.pod:5333
17876 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17877 "logical volumes and volume groups."
17881 #: ../fish/guestfish-actions.pod:5336
17882 msgid "See also L</vgpvuuids>."
17883 msgstr "Див. також L</vgpvuuids>."
17886 #: ../fish/guestfish-actions.pod:5338
17891 #: ../fish/guestfish-actions.pod:5340
17894 " vgpvuuids vgname\n"
17899 #: ../fish/guestfish-actions.pod:5342 ../src/guestfs-actions.pod:8219
17901 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17902 "volumes that this volume group resides on."
17906 #: ../fish/guestfish-actions.pod:5345
17908 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17909 "physical volumes and volume groups."
17913 #: ../fish/guestfish-actions.pod:5348
17914 msgid "See also L</vglvuuids>."
17915 msgstr "Див. також L</vglvuuids>."
17918 #: ../fish/guestfish-actions.pod:5350
17923 #: ../fish/guestfish-actions.pod:5352
17926 " vgremove vgname\n"
17931 #: ../fish/guestfish-actions.pod:5354 ../src/guestfs-actions.pod:8239
17932 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17936 #: ../fish/guestfish-actions.pod:5356 ../src/guestfs-actions.pod:8241
17938 "This also forcibly removes all logical volumes in the volume group (if any)."
17942 #: ../fish/guestfish-actions.pod:5359
17947 #: ../fish/guestfish-actions.pod:5361
17950 " vgrename volgroup newvolgroup\n"
17955 #: ../fish/guestfish-actions.pod:5363 ../src/guestfs-actions.pod:8255
17956 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17960 #: ../fish/guestfish-actions.pod:5365
17965 #: ../fish/guestfish-actions.pod:5367
17975 #: ../fish/guestfish-actions.pod:5369 ../src/guestfs-actions.pod:8266
17977 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17982 #: ../fish/guestfish-actions.pod:5372 ../src/guestfs-actions.pod:8269
17984 "This returns a list of just the volume group names that were detected (eg. "
17989 #: ../fish/guestfish-actions.pod:5375
17990 msgid "See also L</vgs-full>."
17991 msgstr "Див. також L</vgs-full>."
17994 #: ../fish/guestfish-actions.pod:5377
17999 #: ../fish/guestfish-actions.pod:5379
18009 #: ../fish/guestfish-actions.pod:5381 ../src/guestfs-actions.pod:8285
18011 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
18012 "> command. The \"full\" version includes all fields."
18016 #: ../fish/guestfish-actions.pod:5384
18021 #: ../fish/guestfish-actions.pod:5386
18031 #: ../fish/guestfish-actions.pod:5388 ../src/guestfs-actions.pod:8299
18033 "This rescans all block devices and rebuilds the list of LVM physical "
18034 "volumes, volume groups and logical volumes."
18038 #: ../fish/guestfish-actions.pod:5391
18043 #: ../fish/guestfish-actions.pod:5393
18051 #: ../fish/guestfish-actions.pod:5395 ../src/guestfs-actions.pod:8312
18052 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18056 #: ../fish/guestfish-actions.pod:5397
18061 #: ../fish/guestfish-actions.pod:5399
18071 #: ../fish/guestfish-actions.pod:5401 ../src/guestfs-actions.pod:8352
18073 "This command counts the characters in a file, using the C<wc -c> external "
18078 #: ../fish/guestfish-actions.pod:5404
18083 #: ../fish/guestfish-actions.pod:5406
18093 #: ../fish/guestfish-actions.pod:5408 ../src/guestfs-actions.pod:8365
18095 "This command counts the lines in a file, using the C<wc -l> external command."
18099 #: ../fish/guestfish-actions.pod:5411
18104 #: ../fish/guestfish-actions.pod:5413
18114 #: ../fish/guestfish-actions.pod:5415 ../src/guestfs-actions.pod:8378
18116 "This command counts the words in a file, using the C<wc -w> external command."
18120 #: ../fish/guestfish-actions.pod:5418
18125 #: ../fish/guestfish-actions.pod:5420
18128 " write path content\n"
18131 " write шлях дані\n"
18135 #: ../fish/guestfish-actions.pod:5422 ../src/guestfs-actions.pod:8393
18137 "This call creates a file called C<path>. The content of the file is the "
18138 "string C<content> (which can contain any 8 bit data)."
18142 #: ../fish/guestfish-actions.pod:5425
18143 msgid "See also L</write-append>."
18144 msgstr "Див. також L</write-append>."
18147 #: ../fish/guestfish-actions.pod:5430
18148 msgid "write-append"
18152 #: ../fish/guestfish-actions.pod:5432
18155 " write-append path content\n"
18160 #: ../fish/guestfish-actions.pod:5434 ../src/guestfs-actions.pod:8413
18162 "This call appends C<content> to the end of file C<path>. If C<path> does "
18163 "not exist, then a new file is created."
18167 #: ../fish/guestfish-actions.pod:5437
18168 msgid "See also L</write>."
18169 msgstr "Див. також L</write>."
18172 #: ../fish/guestfish-actions.pod:5442
18174 msgstr "write-file"
18177 #: ../fish/guestfish-actions.pod:5444
18180 " write-file path content size\n"
18185 #: ../fish/guestfish-actions.pod:5446 ../src/guestfs-actions.pod:8440
18187 "This call creates a file called C<path>. The contents of the file is the "
18188 "string C<content> (which can contain any 8 bit data), with length C<size>."
18192 #: ../fish/guestfish-actions.pod:5450 ../src/guestfs-actions.pod:8444
18194 "As a special case, if C<size> is C<0> then the length is calculated using "
18195 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18199 #: ../fish/guestfish-actions.pod:5454 ../src/guestfs-actions.pod:8448
18201 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18202 "I<not> work, even if the length is specified."
18206 #: ../fish/guestfish-actions.pod:5460
18208 "I<This function is deprecated.> In new code, use the L</write> call instead."
18212 #: ../fish/guestfish-actions.pod:5467
18217 #: ../fish/guestfish-actions.pod:5469
18220 " zegrep regex path\n"
18223 " zegrep формальний_вираз шлях\n"
18227 #: ../fish/guestfish-actions.pod:5471 ../src/guestfs-actions.pod:8465
18229 "This calls the external C<zegrep> program and returns the matching lines."
18233 #: ../fish/guestfish-actions.pod:5477
18238 #: ../fish/guestfish-actions.pod:5479
18241 " zegrepi regex path\n"
18246 #: ../fish/guestfish-actions.pod:5481 ../src/guestfs-actions.pod:8484
18248 "This calls the external C<zegrep -i> program and returns the matching lines."
18252 #: ../fish/guestfish-actions.pod:5487
18257 #: ../fish/guestfish-actions.pod:5489
18267 #: ../fish/guestfish-actions.pod:5491 ../src/guestfs-actions.pod:8502
18268 msgid "This command writes zeroes over the first few blocks of C<device>."
18272 #: ../fish/guestfish-actions.pod:5493 ../src/guestfs-actions.pod:8504
18274 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18275 "securely wipe the device). It should be sufficient to remove any partition "
18276 "tables, filesystem superblocks and so on."
18280 #: ../fish/guestfish-actions.pod:5497 ../fish/guestfish-actions.pod:5512
18281 #: ../src/guestfs-actions.pod:8508 ../src/guestfs-actions.pod:8534
18283 "If blocks are already zero, then this command avoids writing zeroes. This "
18284 "prevents the underlying device from becoming non-sparse or growing "
18289 #: ../fish/guestfish-actions.pod:5501
18290 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
18294 #: ../fish/guestfish-actions.pod:5504
18295 msgid "zero-device"
18296 msgstr "zero-device"
18299 #: ../fish/guestfish-actions.pod:5506
18302 " zero-device device\n"
18305 " zero-device пристрій\n"
18309 #: ../fish/guestfish-actions.pod:5508
18311 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
18312 "which just zeroes the first few blocks of a device."
18316 #: ../fish/guestfish-actions.pod:5516
18321 #: ../fish/guestfish-actions.pod:5518
18324 " zerofree device\n"
18327 " zerofree пристрій\n"
18331 #: ../fish/guestfish-actions.pod:5520 ../src/guestfs-actions.pod:8553
18333 "This runs the I<zerofree> program on C<device>. This program claims to zero "
18334 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18335 "possible to compress the filesystem more effectively."
18339 #: ../fish/guestfish-actions.pod:5525 ../src/guestfs-actions.pod:8558
18340 msgid "You should B<not> run this program if the filesystem is mounted."
18344 #: ../fish/guestfish-actions.pod:5528 ../src/guestfs-actions.pod:8561
18346 "It is possible that using this program can damage the filesystem or data on "
18351 #: ../fish/guestfish-actions.pod:5531
18356 #: ../fish/guestfish-actions.pod:5533
18359 " zfgrep pattern path\n"
18362 " zfgrep шаблон шлях\n"
18366 #: ../fish/guestfish-actions.pod:5535 ../src/guestfs-actions.pod:8575
18368 "This calls the external C<zfgrep> program and returns the matching lines."
18372 #: ../fish/guestfish-actions.pod:5541
18377 #: ../fish/guestfish-actions.pod:5543
18380 " zfgrepi pattern path\n"
18383 " zfgrepi шаблон шлях\n"
18387 #: ../fish/guestfish-actions.pod:5545 ../src/guestfs-actions.pod:8594
18389 "This calls the external C<zfgrep -i> program and returns the matching lines."
18393 #: ../fish/guestfish-actions.pod:5551
18398 #: ../fish/guestfish-actions.pod:5553
18401 " zfile meth path\n"
18404 " zfile метод шлях\n"
18408 #: ../fish/guestfish-actions.pod:5555 ../src/guestfs-actions.pod:8620
18410 "This command runs C<file> after first decompressing C<path> using C<method>."
18414 #: ../fish/guestfish-actions.pod:5558 ../src/guestfs-actions.pod:8623
18415 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18419 #: ../fish/guestfish-actions.pod:5560
18421 "Since 1.0.63, use L</file> instead which can now process compressed files."
18425 #: ../fish/guestfish-actions.pod:5563
18427 "I<This function is deprecated.> In new code, use the L</file> call instead."
18431 #: ../fish/guestfish-actions.pod:5570
18436 #: ../fish/guestfish-actions.pod:5572
18439 " zgrep regex path\n"
18442 " zgrep формальний_вираз шлях\n"
18446 #: ../fish/guestfish-actions.pod:5574 ../src/guestfs-actions.pod:8640
18448 "This calls the external C<zgrep> program and returns the matching lines."
18452 #: ../fish/guestfish-actions.pod:5580
18457 #: ../fish/guestfish-actions.pod:5582
18460 " zgrepi regex path\n"
18463 " zgrepi формальний_вираз шлях\n"
18467 #: ../fish/guestfish-actions.pod:5584 ../src/guestfs-actions.pod:8659
18469 "This calls the external C<zgrep -i> program and returns the matching lines."
18473 #: ../fish/guestfish-commands.pod:1
18478 #: ../fish/guestfish-commands.pod:3
18483 #: ../fish/guestfish-commands.pod:5
18486 " alloc filename size\n"
18491 #: ../fish/guestfish-commands.pod:7
18493 "This creates an empty (zeroed) file of the given size, and then adds so it "
18494 "can be further examined."
18498 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18499 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18503 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18504 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18508 #: ../fish/guestfish-commands.pod:14
18510 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
18511 "image, see L</PREPARED DISK IMAGES>."
18515 #: ../fish/guestfish-commands.pod:17
18520 #: ../fish/guestfish-commands.pod:19
18523 " copy-in local [local ...] /remotedir\n"
18528 #: ../fish/guestfish-commands.pod:21
18530 "C<copy-in> copies local files or directories recursively into the disk "
18531 "image, placing them in the directory called C</remotedir> (which must "
18532 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
18533 "other commands as necessary."
18537 #: ../fish/guestfish-commands.pod:26
18539 "Multiple local files and directories can be specified, but the last "
18540 "parameter must always be a remote directory. Wildcards cannot be used."
18544 #: ../fish/guestfish-commands.pod:30
18549 #: ../fish/guestfish-commands.pod:32
18552 " copy-out remote [remote ...] localdir\n"
18557 #: ../fish/guestfish-commands.pod:34
18559 "C<copy-out> copies remote files or directories recursively out of the disk "
18560 "image, placing them on the host disk in a local directory called C<localdir> "
18561 "(which must exist). This guestfish meta-command turns into a sequence of L</"
18562 "download>, L</tar-out> and other commands as necessary."
18566 #: ../fish/guestfish-commands.pod:40
18568 "Multiple remote files and directories can be specified, but the last "
18569 "parameter must always be a local directory. To download to the current "
18570 "directory, use C<.> as in:"
18574 #: ../fish/guestfish-commands.pod:44
18577 " copy-out /home .\n"
18580 " copy-out /home .\n"
18584 #: ../fish/guestfish-commands.pod:46
18586 "Wildcards cannot be used in the ordinary command, but you can use them with "
18587 "the help of L</glob> like this:"
18591 #: ../fish/guestfish-commands.pod:49
18594 " glob copy-out /home/* .\n"
18597 " glob copy-out /home/* .\n"
18601 #: ../fish/guestfish-commands.pod:51
18606 #: ../fish/guestfish-commands.pod:53
18609 " display filename\n"
18614 #: ../fish/guestfish-commands.pod:55
18616 "Use C<display> (a graphical display program) to display an image file. It "
18617 "downloads the file, and runs C<display> on it."
18621 #: ../fish/guestfish-commands.pod:58
18623 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18624 "environment variable. For example to use the GNOME display program:"
18628 #: ../fish/guestfish-commands.pod:61
18631 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18636 #: ../fish/guestfish-commands.pod:63
18637 msgid "See also L<display(1)>."
18638 msgstr "Див. також L<display(1)>."
18641 #: ../fish/guestfish-commands.pod:65
18646 #: ../fish/guestfish-commands.pod:67
18649 " echo [params ...]\n"
18652 " echo [параметри...]\n"
18656 #: ../fish/guestfish-commands.pod:69
18657 msgid "This echos the parameters to the terminal."
18661 #: ../fish/guestfish-commands.pod:71
18666 #: ../fish/guestfish-commands.pod:73
18671 #: ../fish/guestfish-commands.pod:75
18676 #: ../fish/guestfish-commands.pod:77
18682 " edit назва_файла\n"
18686 #: ../fish/guestfish-commands.pod:79
18688 "This is used to edit a file. It downloads the file, edits it locally using "
18689 "your editor, then uploads the result."
18693 #: ../fish/guestfish-commands.pod:82
18695 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
18696 "or C<emacs> you will get those corresponding editors."
18700 #: ../fish/guestfish-commands.pod:86
18705 #: ../fish/guestfish-commands.pod:88
18708 " glob command args...\n"
18711 " glob команда параметри...\n"
18715 #: ../fish/guestfish-commands.pod:90
18717 "Expand wildcards in any paths in the args list, and run C<command> "
18718 "repeatedly on each matching path."
18722 #: ../fish/guestfish-commands.pod:93
18723 msgid "See L</WILDCARDS AND GLOBBING>."
18724 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18727 #: ../fish/guestfish-commands.pod:95
18732 #: ../fish/guestfish-commands.pod:97
18735 " hexedit <filename|device>\n"
18736 " hexedit <filename|device> <max>\n"
18737 " hexedit <filename|device> <start> <max>\n"
18742 #: ../fish/guestfish-commands.pod:101
18744 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18749 #: ../fish/guestfish-commands.pod:104
18751 "This command works by downloading potentially the whole file or device, "
18752 "editing it locally, then uploading it. If the file or device is large, you "
18753 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18754 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
18755 "usual modifiers allowed such as C<1M> (1 megabyte)."
18759 #: ../fish/guestfish-commands.pod:111
18760 msgid "For example to edit the first few sectors of a disk you might do:"
18764 #: ../fish/guestfish-commands.pod:114
18767 " hexedit /dev/sda 1M\n"
18770 " hexedit /dev/sda 1M\n"
18774 #: ../fish/guestfish-commands.pod:116
18776 "which would allow you to edit anywhere within the first megabyte of the disk."
18780 #: ../fish/guestfish-commands.pod:119
18781 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18785 #: ../fish/guestfish-commands.pod:121
18788 " hexedit /dev/sda1 0x400 0x400\n"
18791 " hexedit /dev/sda1 0x400 0x400\n"
18795 #: ../fish/guestfish-commands.pod:123
18796 msgid "(assuming the superblock is in the standard location)."
18800 #: ../fish/guestfish-commands.pod:125
18802 "This command requires the external L<hexedit(1)> program. You can specify "
18803 "another program to use by setting the C<HEXEDITOR> environment variable."
18807 #: ../fish/guestfish-commands.pod:129
18808 msgid "See also L</hexdump>."
18809 msgstr "Див. також L</hexdump>."
18812 #: ../fish/guestfish-commands.pod:131
18817 #: ../fish/guestfish-commands.pod:133
18825 #: ../fish/guestfish-commands.pod:135
18827 "Change the local directory, ie. the current directory of guestfish itself."
18831 #: ../fish/guestfish-commands.pod:138
18832 msgid "Note that C<!cd> won't do what you might expect."
18836 #: ../fish/guestfish-commands.pod:140
18841 #: ../fish/guestfish-commands.pod:142
18846 #: ../fish/guestfish-commands.pod:144
18856 #: ../fish/guestfish-commands.pod:146
18857 msgid "Opens the manual page for guestfish."
18861 #: ../fish/guestfish-commands.pod:148
18866 #: ../fish/guestfish-commands.pod:150
18871 #: ../fish/guestfish-commands.pod:152
18879 #: ../fish/guestfish-commands.pod:154
18887 #: ../fish/guestfish-commands.pod:156
18888 msgid "This is used to view a file."
18892 #: ../fish/guestfish-commands.pod:158
18894 "The default viewer is C<$PAGER>. However if you use the alternate command "
18895 "C<less> you will get the C<less> command specifically."
18899 #: ../fish/guestfish-commands.pod:161
18904 #: ../fish/guestfish-commands.pod:163
18912 #: ../fish/guestfish-commands.pod:165
18914 "Close and reopen the libguestfs handle. It is not necessary to use this "
18915 "normally, because the handle is closed properly when guestfish exits. "
18916 "However this is occasionally useful for testing."
18920 #: ../fish/guestfish-commands.pod:169
18925 #: ../fish/guestfish-commands.pod:171
18928 " setenv VAR value\n"
18933 #: ../fish/guestfish-commands.pod:173
18934 msgid "Set the environment variable C<VAR> to the string C<value>."
18938 #: ../fish/guestfish-commands.pod:175
18940 "To print the value of an environment variable use a shell command such as:"
18944 #: ../fish/guestfish-commands.pod:178
18952 #: ../fish/guestfish-commands.pod:180
18957 #: ../fish/guestfish-commands.pod:182
18960 " sparse filename size\n"
18965 #: ../fish/guestfish-commands.pod:184
18967 "This creates an empty sparse file of the given size, and then adds so it can "
18968 "be further examined."
18972 #: ../fish/guestfish-commands.pod:187
18974 "In all respects it works the same as the L</alloc> command, except that the "
18975 "image file is allocated sparsely, which means that disk blocks are not "
18976 "assigned to the file until they are needed. Sparse disk files only use "
18977 "space when written to, but they are slower and there is a danger you could "
18978 "run out of real disk space during a write operation."
18982 #: ../fish/guestfish-commands.pod:197
18987 #: ../fish/guestfish-commands.pod:199
18997 #: ../fish/guestfish-commands.pod:201
18999 "This command returns a list of the optional groups known to the daemon, and "
19000 "indicates which ones are supported by this build of the libguestfs appliance."
19004 #: ../fish/guestfish-commands.pod:205
19005 msgid "See also L<guestfs(3)/AVAILABILITY>."
19006 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
19009 #: ../fish/guestfish-commands.pod:207
19014 #: ../fish/guestfish-commands.pod:209
19017 " time command args...\n"
19022 #: ../fish/guestfish-commands.pod:211
19024 "Run the command as usual, but print the elapsed time afterwards. This can "
19025 "be useful for benchmarking operations."
19029 #: ../fish/guestfish-commands.pod:214
19034 #: ../fish/guestfish-commands.pod:216
19042 #: ../fish/guestfish-commands.pod:218
19043 msgid "Remove C<VAR> from the environment."
19047 #: ../fish/guestfish.pod:5
19048 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19052 #: ../fish/guestfish.pod:9
19055 " guestfish [--options] [commands]\n"
19060 #: ../fish/guestfish.pod:11
19068 #: ../fish/guestfish.pod:13
19071 " guestfish [--ro|--rw] -a disk.img\n"
19076 #: ../fish/guestfish.pod:15
19079 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19084 #: ../fish/guestfish.pod:17
19087 " guestfish -d libvirt-domain\n"
19092 #: ../fish/guestfish.pod:19
19095 " guestfish [--ro|--rw] -a disk.img -i\n"
19100 #: ../fish/guestfish.pod:21
19103 " guestfish -d libvirt-domain -i\n"
19108 #: ../fish/guestfish.pod:25
19110 "Using guestfish in read/write mode on live virtual machines can be "
19111 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
19112 "option to use guestfish safely if the disk image or virtual machine might be "
19117 #: ../fish/guestfish.pod:32
19119 "Guestfish is a shell and command-line tool for examining and modifying "
19120 "virtual machine filesystems. It uses libguestfs and exposes all of the "
19121 "functionality of the guestfs API, see L<guestfs(3)>."
19125 #: ../fish/guestfish.pod:36
19127 "Guestfish gives you structured access to the libguestfs API, from shell "
19128 "scripts or the command line or interactively. If you want to rescue a "
19129 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
19134 #: ../fish/guestfish.pod:43
19135 msgid "As an interactive shell"
19139 #: ../fish/guestfish.pod:45
19147 #: ../fish/guestfish.pod:47
19150 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
19151 " editing virtual machine filesystems.\n"
19156 #: ../fish/guestfish.pod:50
19159 " Type: 'help' for a list of commands\n"
19160 " 'man' to read the manual\n"
19161 " 'quit' to quit the shell\n"
19166 #: ../fish/guestfish.pod:54
19169 " ><fs> add-ro disk.img\n"
19171 " ><fs> list-filesystems\n"
19172 " /dev/sda1: ext4\n"
19173 " /dev/vg_guest/lv_root: ext4\n"
19174 " /dev/vg_guest/lv_swap: swap\n"
19175 " ><fs> mount /dev/vg_guest/lv_root /\n"
19176 " ><fs> cat /etc/fstab\n"
19178 " # Created by anaconda\n"
19185 #: ../fish/guestfish.pod:67
19186 msgid "From shell scripts"
19190 #: ../fish/guestfish.pod:69
19191 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19195 #: ../fish/guestfish.pod:71
19198 " guestfish <<_EOF_\n"
19201 " mount /dev/vg_guest/lv_root /\n"
19202 " write /etc/motd \"Welcome, new users\"\n"
19208 #: ../fish/guestfish.pod:78
19209 msgid "List the LVM logical volumes in a disk image:"
19213 #: ../fish/guestfish.pod:80
19216 " guestfish -a disk.img --ro <<_EOF_\n"
19224 #: ../fish/guestfish.pod:85
19225 msgid "List all the filesystems in a disk image:"
19229 #: ../fish/guestfish.pod:87
19232 " guestfish -a disk.img --ro <<_EOF_\n"
19234 " list-filesystems\n"
19240 #: ../fish/guestfish.pod:92
19241 msgid "On one command line"
19245 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
19246 msgid "Update C</etc/resolv.conf> in a guest:"
19250 #: ../fish/guestfish.pod:96
19254 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19255 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19260 #: ../fish/guestfish.pod:100
19261 msgid "Edit C</boot/grub/grub.conf> interactively:"
19265 #: ../fish/guestfish.pod:102
19268 " guestfish --rw --add disk.img \\\n"
19269 " --mount /dev/vg_guest/lv_root \\\n"
19270 " --mount /dev/sda1:/boot \\\n"
19271 " edit /boot/grub/grub.conf\n"
19276 #: ../fish/guestfish.pod:107
19277 msgid "Mount disks automatically"
19281 #: ../fish/guestfish.pod:109
19283 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19287 #: ../fish/guestfish.pod:112
19290 " guestfish --ro -a disk.img -i cat /etc/group\n"
19295 #: ../fish/guestfish.pod:114
19298 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19303 #: ../fish/guestfish.pod:116
19304 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19308 #: ../fish/guestfish.pod:118
19311 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19316 #: ../fish/guestfish.pod:120
19317 msgid "As a script interpreter"
19321 #: ../fish/guestfish.pod:122
19322 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19326 #: ../fish/guestfish.pod:124
19329 " #!/usr/bin/guestfish -f\n"
19330 " sparse test1.img 100M\n"
19332 " part-disk /dev/sda mbr\n"
19333 " mkfs ext2 /dev/sda1\n"
19338 #: ../fish/guestfish.pod:130
19339 msgid "Start with a prepared disk"
19343 #: ../fish/guestfish.pod:132
19345 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19346 "single ext2-formatted partition:"
19350 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
19353 " guestfish -N fs\n"
19358 #: ../fish/guestfish.pod:137
19359 msgid "To list what is available do:"
19363 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
19366 " guestfish -N help | less\n"
19371 #: ../fish/guestfish.pod:141
19372 msgid "Remote control"
19373 msgstr "Дистанційне керування"
19376 #: ../fish/guestfish.pod:143
19379 " eval \"`guestfish --listen`\"\n"
19380 " guestfish --remote add-ro disk.img\n"
19381 " guestfish --remote run\n"
19382 " guestfish --remote lvs\n"
19385 " eval \"`guestfish --listen`\"\n"
19386 " guestfish --remote add-ro disk.img\n"
19387 " guestfish --remote run\n"
19388 " guestfish --remote lvs\n"
19392 #: ../fish/guestfish.pod:154
19393 msgid "Displays general help on options."
19397 #: ../fish/guestfish.pod:158
19398 msgid "B<--cmd-help>"
19399 msgstr "B<--cmd-help>"
19402 #: ../fish/guestfish.pod:160
19403 msgid "Lists all available guestfish commands."
19407 #: ../fish/guestfish.pod:162
19409 msgstr "B<-h команда>"
19412 #: ../fish/guestfish.pod:164
19413 msgid "B<--cmd-help cmd>"
19414 msgstr "B<--cmd-help команда>"
19417 #: ../fish/guestfish.pod:166
19418 msgid "Displays detailed help on a single command C<cmd>."
19422 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19423 msgid "B<-a image>"
19424 msgstr "B<-a образ>"
19427 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19428 msgid "B<--add image>"
19429 msgstr "B<--add образ>"
19432 #: ../fish/guestfish.pod:172
19433 msgid "Add a block device or virtual machine image to the shell."
19437 #: ../fish/guestfish.pod:177
19439 "Using this flag is mostly equivalent to using the C<add> command, with "
19440 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19441 "the I<--format=...> flag was given."
19445 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19447 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19448 "URI to use. The default is to use the default libvirt connection."
19452 #: ../fish/guestfish.pod:189
19457 #: ../fish/guestfish.pod:191
19459 "If using the I<--listen> option and a csh-like shell, use this option. See "
19460 "section L</REMOTE CONTROL AND CSH> below."
19464 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19465 msgid "B<-d libvirt-domain>"
19466 msgstr "B<-d домен-libvirt>"
19469 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19470 msgid "B<--domain libvirt-domain>"
19471 msgstr "B<--domain домен-libvirt>"
19474 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19476 "Add disks from the named libvirt domain. If the I<--ro> option is also "
19477 "used, then any libvirt domain can be used. However in write mode, only "
19478 "libvirt domains which are shut down can be named here."
19482 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19483 msgid "Domain UUIDs can be used instead of names."
19487 #: ../fish/guestfish.pod:204
19489 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19490 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19491 "if the I<--format:...> flag was given."
19495 #: ../fish/guestfish.pod:208
19500 #: ../fish/guestfish.pod:210
19501 msgid "B<--no-dest-paths>"
19502 msgstr "B<--no-dest-paths>"
19505 #: ../fish/guestfish.pod:212
19507 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
19508 "to hit the tab key to complete paths on the guest filesystem, but this "
19509 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19510 "allow this feature to be disabled."
19514 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19516 "When prompting for keys and passphrases, guestfish normally turns echoing "
19517 "off so you cannot see what you are typing. If you are not worried about "
19518 "Tempest attacks and there is no one else in the room you can specify this "
19519 "flag to see what you are typing."
19523 #: ../fish/guestfish.pod:224
19525 msgstr "B<-f файл>"
19528 #: ../fish/guestfish.pod:226
19529 msgid "B<--file file>"
19530 msgstr "B<--file файл>"
19533 #: ../fish/guestfish.pod:228
19534 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
19538 #: ../fish/guestfish.pod:231
19541 " #!/usr/bin/guestfish -f\n"
19544 " #!/usr/bin/guestfish -f\n"
19548 #: ../fish/guestfish.pod:244
19551 " guestfish --format=raw -a disk.img\n"
19554 " guestfish --format=raw -a disk.img\n"
19558 #: ../fish/guestfish.pod:248
19561 " guestfish --format=raw -a disk.img --format -a another.img\n"
19564 " guestfish --format=raw -a disk.img --format -a another.img\n"
19568 #: ../fish/guestfish.pod:253
19570 "If you have untrusted raw-format guest disk images, you should use this "
19571 "option to specify the disk format. This avoids a possible security problem "
19572 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
19576 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19577 msgid "B<--inspector>"
19578 msgstr "B<--inspector>"
19581 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19583 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19584 "system and mount filesystems as they would be mounted on the real virtual "
19589 #: ../fish/guestfish.pod:266
19590 msgid "Typical usage is either:"
19594 #: ../fish/guestfish.pod:268
19597 " guestfish -d myguest -i\n"
19600 " guestfish -d myguest -i\n"
19604 #: ../fish/guestfish.pod:270
19605 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19609 #: ../fish/guestfish.pod:272
19612 " guestfish --ro -d myguest -i\n"
19615 " guestfish --ro -d myguest -i\n"
19619 #: ../fish/guestfish.pod:274
19620 msgid "(for active domains, readonly), or specify the block device directly:"
19624 #: ../fish/guestfish.pod:276
19627 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19630 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19634 #: ../fish/guestfish.pod:278
19636 "Note that the command line syntax changed slightly over older versions of "
19637 "guestfish. You can still use the old syntax:"
19641 #: ../fish/guestfish.pod:281
19644 " guestfish [--ro] -i disk.img\n"
19647 " guestfish [--ro] -i disk.img\n"
19651 #: ../fish/guestfish.pod:283
19654 " guestfish [--ro] -i libvirt-domain\n"
19659 #: ../fish/guestfish.pod:285
19661 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19662 "then using other commands to mount the filesystems that were found."
19666 #: ../fish/guestfish.pod:294
19667 msgid "B<--listen>"
19668 msgstr "B<--listen>"
19671 #: ../fish/guestfish.pod:296
19673 "Fork into the background and listen for remote commands. See section L</"
19674 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19678 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19683 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19685 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
19686 "ATTACHING TO RUNNING DAEMONS>)."
19690 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19691 msgid "B<-m dev[:mountpoint[:options]]>"
19692 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
19695 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19696 msgid "B<--mount dev[:mountpoint[:options]]>"
19697 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
19700 #: ../fish/guestfish.pod:308
19701 msgid "Mount the named partition or logical volume on the given mountpoint."
19705 #: ../fish/guestfish.pod:310
19706 msgid "If the mountpoint is omitted, it defaults to C</>."
19710 #: ../fish/guestfish.pod:312
19711 msgid "You have to mount something on C</> before most commands will work."
19715 #: ../fish/guestfish.pod:314
19717 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19722 #: ../fish/guestfish.pod:317
19724 "If you don't know what filesystems a disk image contains, you can either run "
19725 "guestfish without this option, then list the partitions, filesystems and LVs "
19726 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19727 "commands), or you can use the L<virt-filesystems(1)> program."
19731 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19733 "The third (and rarely used) part of the mount parameter is the list of mount "
19734 "options used to mount the underlying filesystem. If this is not given, then "
19735 "the mount options are either the empty string or C<ro> (the latter if the "
19736 "I<--ro> flag is used). By specifying the mount options, you override this "
19737 "default choice. Probably the only time you would use this is to enable ACLs "
19738 "and/or extended attributes if the filesystem can support them:"
19742 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19745 " -m /dev/sda1:/:acl,user_xattr\n"
19750 #: ../fish/guestfish.pod:333
19751 msgid "Using this flag is equivalent to using the C<mount-options> command."
19755 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19756 #: ../resize/virt-resize.pod:435
19761 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19762 msgid "B<--no-sync>"
19763 msgstr "B<--no-sync>"
19766 #: ../fish/guestfish.pod:339
19768 "Disable autosync. This is enabled by default. See the discussion of "
19769 "autosync in the L<guestfs(3)> manpage."
19773 #: ../fish/guestfish.pod:342
19778 #: ../fish/guestfish.pod:344
19779 msgid "B<--new type>"
19780 msgstr "B<--new тип>"
19783 #: ../fish/guestfish.pod:346
19785 msgstr "B<-N help>"
19788 #: ../fish/guestfish.pod:348
19790 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
19791 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19792 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
19797 #: ../fish/guestfish.pod:353
19798 msgid "B<--progress-bars>"
19799 msgstr "B<--progress-bars>"
19802 #: ../fish/guestfish.pod:355
19803 msgid "Enable progress bars, even when guestfish is used non-interactively."
19807 #: ../fish/guestfish.pod:357
19809 "Progress bars are enabled by default when guestfish is used as an "
19810 "interactive shell."
19814 #: ../fish/guestfish.pod:360
19815 msgid "B<--no-progress-bars>"
19816 msgstr "B<--no-progress-bars>"
19819 #: ../fish/guestfish.pod:362
19820 msgid "Disable progress bars."
19824 #: ../fish/guestfish.pod:364
19825 msgid "B<--remote[=pid]>"
19826 msgstr "B<--remote[=pid]>"
19829 #: ../fish/guestfish.pod:366
19831 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
19832 "CONTROL GUESTFISH OVER A SOCKET> below."
19836 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19837 #: ../rescue/virt-rescue.pod:189
19842 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19843 #: ../rescue/virt-rescue.pod:191
19848 #: ../fish/guestfish.pod:373
19850 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19851 "mounts are done read-only."
19855 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
19857 "The option must always be used if the disk image or virtual machine might be "
19858 "running, and is generally recommended in cases where you don't need write "
19859 "access to the disk."
19863 #: ../fish/guestfish.pod:380
19865 "Note that prepared disk images created with I<-N> are not affected by this "
19866 "option. Also commands like C<add> are not affected - you have to specify "
19867 "the C<readonly:true> option explicitly if you need it."
19871 #: ../fish/guestfish.pod:384
19872 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19876 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19877 #: ../rescue/virt-rescue.pod:201
19878 msgid "B<--selinux>"
19879 msgstr "B<--selinux>"
19882 #: ../fish/guestfish.pod:388
19883 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
19887 #: ../fish/guestfish.pod:394
19889 "Enable very verbose messages. This is particularly useful if you find a bug."
19893 #: ../fish/guestfish.pod:401
19894 msgid "Display the guestfish / libguestfs version number and exit."
19898 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19899 #: ../rescue/virt-rescue.pod:231
19904 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19905 #: ../rescue/virt-rescue.pod:233
19910 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19912 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19913 "mounts are done read-write."
19917 #: ../fish/guestfish.pod:410
19918 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19922 #: ../fish/guestfish.pod:414
19923 msgid "Echo each command before executing it."
19927 #: ../fish/guestfish.pod:418
19928 msgid "COMMANDS ON COMMAND LINE"
19932 #: ../fish/guestfish.pod:420
19934 "Any additional (non-option) arguments are treated as commands to execute."
19938 #: ../fish/guestfish.pod:423
19940 "Commands to execute should be separated by a colon (C<:>), where the colon "
19941 "is a separate parameter. Thus:"
19945 #: ../fish/guestfish.pod:426
19948 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19953 #: ../fish/guestfish.pod:428
19955 "If there are no additional arguments, then we enter a shell, either an "
19956 "interactive shell with a prompt (if the input is a terminal) or a non-"
19957 "interactive shell."
19961 #: ../fish/guestfish.pod:432
19963 "In either command line mode or non-interactive shell, the first command that "
19964 "gives an error causes the whole shell to exit. In interactive mode (with a "
19965 "prompt) if a command fails, you can continue to enter commands."
19969 #: ../fish/guestfish.pod:437
19970 msgid "USING launch (OR run)"
19974 #: ../fish/guestfish.pod:439
19976 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19977 "then launch it, then mount any disks you need, and finally issue actions/"
19978 "commands. So the general order of the day is:"
19982 #: ../fish/guestfish.pod:447
19983 msgid "add or -a/--add"
19987 #: ../fish/guestfish.pod:451
19988 msgid "launch (aka run)"
19992 #: ../fish/guestfish.pod:455
19993 msgid "mount or -m/--mount"
19997 #: ../fish/guestfish.pod:459
19998 msgid "any other commands"
20002 #: ../fish/guestfish.pod:463
20004 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
20005 "guest before mounting or performing any other commands."
20009 #: ../fish/guestfish.pod:466
20011 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20012 "I<--new> options were given then C<run> is done automatically, simply "
20013 "because guestfish can't perform the action you asked for without doing this."
20017 #: ../fish/guestfish.pod:471
20018 msgid "OPENING DISKS FOR READ AND WRITE"
20022 #: ../fish/guestfish.pod:473
20024 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20025 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20026 "I<-i> and I<-m> open disk images read-only or for writing."
20030 #: ../fish/guestfish.pod:478
20032 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20033 "opening disk images supplied on the command line for write. To open a disk "
20034 "image read-only you have to do I<-a image --ro>."
20038 #: ../fish/guestfish.pod:482
20040 "This matters: If you accidentally open a live VM disk image writable then "
20041 "you will cause irreversible disk corruption."
20045 #: ../fish/guestfish.pod:485
20047 "In a future libguestfs we intend to change the default the other way. Disk "
20048 "images will be opened read-only. You will have to either specify "
20049 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20050 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20051 "access for disk images specified by those other command line options."
20055 #: ../fish/guestfish.pod:492
20057 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20058 "which does nothing (it is already the default). However it is highly "
20059 "recommended that you use this option to indicate that you need write access, "
20060 "and prepare your scripts for the day when this option will be required for "
20065 #: ../fish/guestfish.pod:498
20067 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20068 "other libguestfs program apart from guestfish and guestmount."
20072 #: ../fish/guestfish.pod:501
20077 #: ../fish/guestfish.pod:503
20079 "You can quote ordinary parameters using either single or double quotes. For "
20084 #: ../fish/guestfish.pod:506
20087 " add \"file with a space.img\"\n"
20092 #: ../fish/guestfish.pod:508
20095 " rm '/file name'\n"
20100 #: ../fish/guestfish.pod:510
20108 #: ../fish/guestfish.pod:512
20110 "A few commands require a list of strings to be passed. For these, use a "
20111 "whitespace-separated list, enclosed in quotes. Strings containing "
20112 "whitespace to be passed through must be enclosed in single quotes. A "
20113 "literal single quote must be escaped with a backslash."
20117 #: ../fish/guestfish.pod:517
20120 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
20121 " command \"/bin/echo 'foo bar'\"\n"
20122 " command \"/bin/echo \\'foo\\'\"\n"
20127 #: ../fish/guestfish.pod:521
20128 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
20132 #: ../fish/guestfish.pod:523
20134 "In double-quoted arguments (only) use backslash to insert special characters:"
20138 #: ../fish/guestfish.pod:528
20143 #: ../fish/guestfish.pod:530
20144 msgid "Alert (bell) character."
20145 msgstr "Символ гудка (дзвінка)."
20148 #: ../fish/guestfish.pod:532
20153 #: ../fish/guestfish.pod:534
20154 msgid "Backspace character."
20158 #: ../fish/guestfish.pod:536
20163 #: ../fish/guestfish.pod:538
20164 msgid "Form feed character."
20168 #: ../fish/guestfish.pod:540
20173 #: ../fish/guestfish.pod:542
20174 msgid "Newline character."
20178 #: ../fish/guestfish.pod:544
20183 #: ../fish/guestfish.pod:546
20184 msgid "Carriage return character."
20185 msgstr "Символ повернення каретки."
20188 #: ../fish/guestfish.pod:548
20193 #: ../fish/guestfish.pod:550
20194 msgid "Horizontal tab character."
20195 msgstr "Символ горизонтальної табуляції"
20198 #: ../fish/guestfish.pod:552
20203 #: ../fish/guestfish.pod:554
20204 msgid "Vertical tab character."
20205 msgstr "Символ вертикальної табуляції."
20208 #: ../fish/guestfish.pod:556
20213 #: ../fish/guestfish.pod:558
20214 msgid "A literal double quote character."
20218 #: ../fish/guestfish.pod:560
20223 #: ../fish/guestfish.pod:562
20225 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
20230 #: ../fish/guestfish.pod:565
20235 #: ../fish/guestfish.pod:567
20237 "A character with hex value I<hh>. There must be precisely 2 hex digits."
20241 #: ../fish/guestfish.pod:570
20243 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
20248 #: ../fish/guestfish.pod:573
20253 #: ../fish/guestfish.pod:575
20254 msgid "A literal backslash character."
20258 #: ../fish/guestfish.pod:579
20259 msgid "OPTIONAL ARGUMENTS"
20263 #: ../fish/guestfish.pod:581
20265 "Some commands take optional arguments. These arguments appear in this "
20266 "documentation as C<[argname:..]>. You can use them as in these examples:"
20270 #: ../fish/guestfish.pod:585
20273 " add-drive-opts filename\n"
20278 #: ../fish/guestfish.pod:587
20281 " add-drive-opts filename readonly:true\n"
20286 #: ../fish/guestfish.pod:589
20289 " add-drive-opts filename format:qcow2 readonly:false\n"
20294 #: ../fish/guestfish.pod:591
20296 "Each optional argument can appear at most once. All optional arguments must "
20297 "appear after the required ones."
20301 #: ../fish/guestfish.pod:594
20306 #: ../fish/guestfish.pod:596
20308 "This section applies to all commands which can take integers as parameters."
20312 #: ../fish/guestfish.pod:599
20313 msgid "SIZE SUFFIX"
20317 #: ../fish/guestfish.pod:601
20319 "When the command takes a parameter measured in bytes, you can use one of the "
20320 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20324 #: ../fish/guestfish.pod:607
20325 msgid "B<k> or B<K> or B<KiB>"
20326 msgstr "B<k>, B<K> або B<KiB>"
20329 #: ../fish/guestfish.pod:609
20330 msgid "The size in kilobytes (multiplied by 1024)."
20331 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
20334 #: ../fish/guestfish.pod:611
20339 #: ../fish/guestfish.pod:613
20340 msgid "The size in SI 1000 byte units."
20341 msgstr "Розмір у одиницях СІ: 1000 байтів."
20344 #: ../fish/guestfish.pod:615
20345 msgid "B<M> or B<MiB>"
20346 msgstr "B<M> або B<MiB>"
20349 #: ../fish/guestfish.pod:617
20350 msgid "The size in megabytes (multiplied by 1048576)."
20351 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
20354 #: ../fish/guestfish.pod:619
20359 #: ../fish/guestfish.pod:621
20360 msgid "The size in SI 1000000 byte units."
20361 msgstr "Розмір у одиницях СІ: 1000000 байтів."
20364 #: ../fish/guestfish.pod:623
20365 msgid "B<G> or B<GiB>"
20366 msgstr "B<G> або B<GiB>"
20369 #: ../fish/guestfish.pod:625
20370 msgid "The size in gigabytes (multiplied by 2**30)."
20371 msgstr "Розмір у гігабайтах (з множником 2**30)."
20374 #: ../fish/guestfish.pod:627
20379 #: ../fish/guestfish.pod:629
20380 msgid "The size in SI 10**9 byte units."
20381 msgstr "Розмір у одиницях СІ: 10**9 байтів."
20384 #: ../fish/guestfish.pod:631
20385 msgid "B<T> or B<TiB>"
20386 msgstr "B<T> або B<TiB>"
20389 #: ../fish/guestfish.pod:633
20390 msgid "The size in terabytes (multiplied by 2**40)."
20391 msgstr "Розмір у терабайтах (з множником 2**40)."
20394 #: ../fish/guestfish.pod:635
20399 #: ../fish/guestfish.pod:637
20400 msgid "The size in SI 10**12 byte units."
20401 msgstr "Розмір у одиницях СІ: 10**12 байтів."
20404 #: ../fish/guestfish.pod:639
20405 msgid "B<P> or B<PiB>"
20406 msgstr "B<P> або B<PiB>"
20409 #: ../fish/guestfish.pod:641
20410 msgid "The size in petabytes (multiplied by 2**50)."
20411 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
20414 #: ../fish/guestfish.pod:643
20419 #: ../fish/guestfish.pod:645
20420 msgid "The size in SI 10**15 byte units."
20421 msgstr "Розмір у одиницях СІ: 10**15 байтів."
20424 #: ../fish/guestfish.pod:647
20425 msgid "B<E> or B<EiB>"
20426 msgstr "B<E> або B<EiB>"
20429 #: ../fish/guestfish.pod:649
20430 msgid "The size in exabytes (multiplied by 2**60)."
20431 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
20434 #: ../fish/guestfish.pod:651
20439 #: ../fish/guestfish.pod:653
20440 msgid "The size in SI 10**18 byte units."
20441 msgstr "Розмір у одиницях СІ: 10**18 байтів."
20444 #: ../fish/guestfish.pod:655
20445 msgid "B<Z> or B<ZiB>"
20446 msgstr "B<Z> або B<ZiB>"
20449 #: ../fish/guestfish.pod:657
20450 msgid "The size in zettabytes (multiplied by 2**70)."
20451 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
20454 #: ../fish/guestfish.pod:659
20459 #: ../fish/guestfish.pod:661
20460 msgid "The size in SI 10**21 byte units."
20461 msgstr "Розмір у одиницях СІ: 10**21 байтів."
20464 #: ../fish/guestfish.pod:663
20465 msgid "B<Y> or B<YiB>"
20466 msgstr "B<Y> або B<YiB>"
20469 #: ../fish/guestfish.pod:665
20470 msgid "The size in yottabytes (multiplied by 2**80)."
20471 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
20474 #: ../fish/guestfish.pod:667
20479 #: ../fish/guestfish.pod:669
20480 msgid "The size in SI 10**24 byte units."
20481 msgstr "Розмір у одиницях СІ: 10**24 байтів."
20484 #: ../fish/guestfish.pod:675
20487 " truncate-size /file 1G\n"
20492 #: ../fish/guestfish.pod:677
20493 msgid "would truncate the file to 1 gigabyte."
20497 #: ../fish/guestfish.pod:679
20499 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20500 "the parameter to L</memsize> is specified in megabytes already). Adding a "
20501 "suffix will probably not do what you expect."
20505 #: ../fish/guestfish.pod:683
20506 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20510 #: ../fish/guestfish.pod:685
20512 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20513 "octal number or C<0x> to prefix a hexadecimal number. For example:"
20517 #: ../fish/guestfish.pod:688
20520 " 1234 decimal number 1234\n"
20521 " 02322 octal number, equivalent to decimal 1234\n"
20522 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
20527 #: ../fish/guestfish.pod:692
20529 "When using the C<chmod> command, you almost always want to specify an octal "
20530 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20531 "L<chmod(1)> program):"
20535 #: ../fish/guestfish.pod:696
20538 " chmod 0777 /public # OK\n"
20539 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
20544 #: ../fish/guestfish.pod:699
20546 "Commands that return numbers usually print them in decimal, but some "
20547 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20548 "octal, preceeded by C<0>)."
20552 #: ../fish/guestfish.pod:703
20553 msgid "WILDCARDS AND GLOBBING"
20557 #: ../fish/guestfish.pod:705
20559 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20560 "(globbing) by default. So for example the following will not do what you "
20565 #: ../fish/guestfish.pod:709
20573 #: ../fish/guestfish.pod:711
20575 "Assuming you don't have a directory called literally C</home/*> then the "
20576 "above command will return an error."
20580 #: ../fish/guestfish.pod:714
20581 msgid "To perform wildcard expansion, use the C<glob> command."
20585 #: ../fish/guestfish.pod:716
20588 " glob rm-rf /home/*\n"
20593 #: ../fish/guestfish.pod:718
20595 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20596 "many times), equivalent to:"
20600 #: ../fish/guestfish.pod:721
20603 " rm-rf /home/jim\n"
20604 " rm-rf /home/joe\n"
20605 " rm-rf /home/mary\n"
20610 #: ../fish/guestfish.pod:725
20611 msgid "C<glob> only works on simple guest paths and not on device names."
20615 #: ../fish/guestfish.pod:727
20617 "If you have several parameters, each containing a wildcard, then glob will "
20618 "perform a Cartesian product."
20622 #: ../fish/guestfish.pod:730
20627 #: ../fish/guestfish.pod:732
20629 "Any line which starts with a I<#> character is treated as a comment and "
20630 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
20631 "a command. For example:"
20635 #: ../fish/guestfish.pod:736
20638 " # this is a comment\n"
20639 " # this is a comment\n"
20640 " foo # NOT a comment\n"
20645 #: ../fish/guestfish.pod:740
20646 msgid "Blank lines are also ignored."
20650 #: ../fish/guestfish.pod:742
20651 msgid "RUNNING COMMANDS LOCALLY"
20655 #: ../fish/guestfish.pod:744
20657 "Any line which starts with a I<!> character is treated as a command sent to "
20658 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
20662 #: ../fish/guestfish.pod:748
20666 " tgz-out /remote local/remote-data.tar.gz\n"
20671 #: ../fish/guestfish.pod:751
20673 "will create a directory C<local> on the host, and then export the contents "
20674 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
20675 "(See C<tgz-out>)."
20679 #: ../fish/guestfish.pod:755
20681 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
20682 "effect, due to the way that subprocesses work in Unix."
20686 #: ../fish/guestfish.pod:758
20687 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20691 #: ../fish/guestfish.pod:760
20693 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20694 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20695 "and executed as guestfish commands."
20699 #: ../fish/guestfish.pod:764
20701 "Thus you can use shell script to construct arbitrary guestfish commands "
20702 "which are then parsed by guestfish."
20706 #: ../fish/guestfish.pod:767
20708 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20709 "through C</foo.100>) using guestfish commands alone. However this is simple "
20710 "if we use a shell script to create the guestfish commands for us:"
20714 #: ../fish/guestfish.pod:772
20717 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20722 #: ../fish/guestfish.pod:774
20723 msgid "or with names like C</foo.001>:"
20727 #: ../fish/guestfish.pod:776
20730 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20735 #: ../fish/guestfish.pod:778
20737 "When using guestfish interactively it can be helpful to just run the shell "
20738 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20739 "ordinary I<!> local command), see what guestfish commands it would run, and "
20740 "when you are happy with those prepend the C<E<lt>> character to run the "
20741 "guestfish commands for real."
20745 #: ../fish/guestfish.pod:784
20750 #: ../fish/guestfish.pod:786
20752 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20753 "command (a guestfish command) to the second command (any host command). For "
20758 #: ../fish/guestfish.pod:790
20761 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20766 #: ../fish/guestfish.pod:792
20768 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20769 "program). The above command would list all accounts in the guest filesystem "
20770 "which have UID 0, ie. root accounts including backdoors. Other examples:"
20774 #: ../fish/guestfish.pod:797
20777 " hexdump /bin/ls | head\n"
20778 " list-devices | tail -1\n"
20779 " tgz-out / - | tar ztf -\n"
20784 #: ../fish/guestfish.pod:801
20786 "The space before the pipe symbol is required, any space after the pipe "
20787 "symbol is optional. Everything after the pipe symbol is just passed "
20788 "straight to the host shell, so it can contain redirections, globs and "
20789 "anything else that makes sense on the host side."
20793 #: ../fish/guestfish.pod:806
20795 "To use a literal argument which begins with a pipe symbol, you have to quote "
20800 #: ../fish/guestfish.pod:809
20808 #: ../fish/guestfish.pod:811
20809 msgid "HOME DIRECTORIES"
20813 #: ../fish/guestfish.pod:813
20815 "If a parameter starts with the character C<~> then the tilde may be expanded "
20816 "as a home directory path (either C<~> for the current user's home directory, "
20817 "or C<~user> for another user)."
20821 #: ../fish/guestfish.pod:817
20823 "Note that home directory expansion happens for users known I<on the host>, "
20824 "not in the guest filesystem."
20828 #: ../fish/guestfish.pod:820
20830 "To use a literal argument which begins with a tilde, you have to quote it, "
20835 #: ../fish/guestfish.pod:823
20843 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20844 msgid "ENCRYPTED DISKS"
20845 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20848 #: ../fish/guestfish.pod:827
20850 "Libguestfs has some support for Linux guests encrypted according to the "
20851 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20852 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
20853 "LUKS is supported."
20857 #: ../fish/guestfish.pod:832
20858 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20862 #: ../fish/guestfish.pod:834
20865 " ><fs> vfs-type /dev/sda2\n"
20871 #: ../fish/guestfish.pod:837
20873 "Then open those devices using L</luks-open>. This creates a device-mapper "
20874 "device called C</dev/mapper/luksdev>."
20878 #: ../fish/guestfish.pod:840
20881 " ><fs> luks-open /dev/sda2 luksdev\n"
20882 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20887 #: ../fish/guestfish.pod:843
20889 "Finally you have to tell LVM to scan for volume groups on the newly created "
20894 #: ../fish/guestfish.pod:846
20898 " vg-activate-all true\n"
20903 #: ../fish/guestfish.pod:849
20904 msgid "The logical volume(s) can now be mounted in the usual way."
20908 #: ../fish/guestfish.pod:851
20910 "Before closing a LUKS device you must unmount any logical volumes on it and "
20911 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20912 "one. Then you can close the mapper device:"
20916 #: ../fish/guestfish.pod:855
20919 " vg-activate false /dev/VG\n"
20920 " luks-close /dev/mapper/luksdev\n"
20925 #: ../fish/guestfish.pod:860
20927 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20928 "letters and paths (with some limitations). The following commands are "
20933 #: ../fish/guestfish.pod:864
20936 " file /WINDOWS/system32/config/system.LOG\n"
20941 #: ../fish/guestfish.pod:866
20944 " file win:\\windows\\system32\\config\\system.log\n"
20949 #: ../fish/guestfish.pod:868
20952 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20957 #: ../fish/guestfish.pod:870
20959 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20960 "where the drive is mounted, prepending that to the path, changing all "
20961 "backslash characters to forward slash, then resolving the result using L</"
20962 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
20963 "the parameter might be rewritten like this:"
20967 #: ../fish/guestfish.pod:876
20970 " win:e:\\foo\\bar => /e/FOO/bar\n"
20975 #: ../fish/guestfish.pod:878
20976 msgid "This only works in argument positions that expect a path."
20980 #: ../fish/guestfish.pod:880
20981 msgid "UPLOADING AND DOWNLOADING FILES"
20985 #: ../fish/guestfish.pod:882
20987 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20988 "others which upload from or download to a local file, you can use the "
20989 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
20993 #: ../fish/guestfish.pod:886
21001 #: ../fish/guestfish.pod:888
21003 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21007 #: ../fish/guestfish.pod:891
21010 " tar-out /etc - | tar tf -\n"
21015 #: ../fish/guestfish.pod:893
21017 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21018 "command (see L</PIPES>)."
21022 #: ../fish/guestfish.pod:896
21024 "When using C<-> to read from stdin, the input is read up to the end of "
21025 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
21026 "some arbitrary end marker:"
21030 #: ../fish/guestfish.pod:900
21033 " upload -<<END /foo\n"
21042 #: ../fish/guestfish.pod:906
21044 "Any string of characters can be used instead of C<END>. The end marker must "
21045 "appear on a line of its own, without any preceeding or following characters "
21046 "(not even spaces)."
21050 #: ../fish/guestfish.pod:910
21052 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21053 "upload local files (so-called \"FileIn\" parameters in the generator)."
21057 #: ../fish/guestfish.pod:913
21058 msgid "EXIT ON ERROR BEHAVIOUR"
21062 #: ../fish/guestfish.pod:915
21064 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21065 "taking commands from a human over a tty), and will exit on the first error "
21066 "in non-interactive mode (scripts, commands given on the command line)."
21070 #: ../fish/guestfish.pod:920
21072 "If you prefix a command with a I<-> character, then that command will not "
21073 "cause guestfish to exit, even if that (one) command returns an error."
21077 #: ../fish/guestfish.pod:924
21078 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21082 #: ../fish/guestfish.pod:926
21084 "Guestfish can be remote-controlled over a socket. This is useful "
21085 "particularly in shell scripts where you want to make several different "
21086 "changes to a filesystem, but you don't want the overhead of starting up a "
21087 "guestfish process each time."
21091 #: ../fish/guestfish.pod:931
21092 msgid "Start a guestfish server process using:"
21096 #: ../fish/guestfish.pod:933
21099 " eval \"`guestfish --listen`\"\n"
21104 #: ../fish/guestfish.pod:935
21105 msgid "and then send it commands by doing:"
21109 #: ../fish/guestfish.pod:937
21112 " guestfish --remote cmd [...]\n"
21117 #: ../fish/guestfish.pod:939
21118 msgid "To cause the server to exit, send it the exit command:"
21122 #: ../fish/guestfish.pod:943
21124 "Note that the server will normally exit if there is an error in a command. "
21125 "You can change this in the usual way. See section L</EXIT ON ERROR "
21130 #: ../fish/guestfish.pod:947
21131 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
21135 #: ../fish/guestfish.pod:949
21137 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
21138 "is how the I<--remote> option knows where to send the commands. You can "
21139 "have several guestfish listener processes running using:"
21143 #: ../fish/guestfish.pod:953
21146 " eval \"`guestfish --listen`\"\n"
21147 " pid1=$GUESTFISH_PID\n"
21148 " eval \"`guestfish --listen`\"\n"
21149 " pid2=$GUESTFISH_PID\n"
21151 " guestfish --remote=$pid1 cmd\n"
21152 " guestfish --remote=$pid2 cmd\n"
21157 #: ../fish/guestfish.pod:961
21158 msgid "REMOTE CONTROL AND CSH"
21162 #: ../fish/guestfish.pod:963
21164 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
21169 #: ../fish/guestfish.pod:966
21172 " eval \"`guestfish --listen --csh`\"\n"
21177 #: ../fish/guestfish.pod:968
21178 msgid "REMOTE CONTROL DETAILS"
21182 #: ../fish/guestfish.pod:970
21184 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21185 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21186 "and C<$PID> is the process ID of the server."
21190 #: ../fish/guestfish.pod:974
21191 msgid "Guestfish client and server versions must match exactly."
21195 #: ../fish/guestfish.pod:976
21196 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
21200 #: ../fish/guestfish.pod:978
21202 "From Bash, you can use the following code which creates a guestfish "
21203 "instance, correctly quotes the command line, handles failure to start, and "
21204 "cleans up guestfish when the script exits:"
21208 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
21216 #: ../fish/guestfish.pod:986
21219 " guestfish[0]=\"guestfish\"\n"
21220 " guestfish[1]=\"--listen\"\n"
21221 " guestfish[2]=\"--ro\"\n"
21222 " guestfish[3]=\"-a\"\n"
21223 " guestfish[4]=\"disk.img\"\n"
21228 #: ../fish/guestfish.pod:992
21231 " GUESTFISH_PID=\n"
21232 " eval $(\"${guestfish[@]}\")\n"
21233 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
21234 " echo \"error: guestfish didn't start up, see error messages above\"\n"
21241 #: ../fish/guestfish.pod:999
21244 " cleanup_guestfish ()\n"
21246 " guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
21248 " trap cleanup_guestfish EXIT ERR\n"
21253 #: ../fish/guestfish.pod:1005
21256 " guestfish --remote -- run\n"
21261 #: ../fish/guestfish.pod:1007
21269 #: ../fish/guestfish.pod:1009
21270 msgid "REMOTE CONTROL RUN COMMAND HANGING"
21274 #: ../fish/guestfish.pod:1011
21276 "Using the C<run> (or C<launch>) command remotely in a command substitution "
21277 "context hangs, ie. don't do (note the backquotes):"
21281 #: ../fish/guestfish.pod:1014
21284 " a=`guestfish --remote run`\n"
21289 #: ../fish/guestfish.pod:1016
21291 "Since the C<run> command produces no output on stdout, this is not useful "
21292 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
21297 #: ../fish/guestfish.pod:1020
21298 msgid "PREPARED DISK IMAGES"
21302 #: ../fish/guestfish.pod:1022
21304 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21305 "preformatted disk images that guestfish can make for you to save typing. "
21306 "This is particularly useful for testing purposes. This option is used "
21307 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21308 "can be mixed with I<-a>)."
21312 #: ../fish/guestfish.pod:1028
21314 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21315 "the second and so on. Existing files in the current directory are "
21320 #: ../fish/guestfish.pod:1032
21322 "The type briefly describes how the disk should be sized, partitioned, how "
21323 "filesystem(s) should be created, and how content should be added. "
21324 "Optionally the type can be followed by extra parameters, separated by C<:> "
21325 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
21326 "allocated disk, containing a single partition, with the partition formatted "
21327 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21332 #: ../fish/guestfish.pod:1040
21333 msgid "To list the available types and any extra parameters they take, run:"
21337 #: ../fish/guestfish.pod:1044
21339 "Note that the prepared filesystem is not mounted. You would usually have to "
21340 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21344 #: ../fish/guestfish.pod:1048
21346 "If any I<-N> or I<--new> options are given, the guest is automatically "
21351 #: ../fish/guestfish.pod:1053
21352 msgid "Create a 100MB disk with an ext4-formatted partition:"
21356 #: ../fish/guestfish.pod:1055
21359 " guestfish -N fs:ext4\n"
21364 #: ../fish/guestfish.pod:1057
21365 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21369 #: ../fish/guestfish.pod:1059
21372 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21377 #: ../fish/guestfish.pod:1061
21378 msgid "Create a blank 200MB disk:"
21382 #: ../fish/guestfish.pod:1063
21385 " guestfish -N disk:200M\n"
21390 #: ../fish/guestfish.pod:1065
21391 msgid "PROGRESS BARS"
21395 #: ../fish/guestfish.pod:1067
21397 "Some (not all) long-running commands send progress notification messages as "
21398 "they are running. Guestfish turns these messages into progress bars."
21402 #: ../fish/guestfish.pod:1071
21404 "When a command that supports progress bars takes longer than two seconds to "
21405 "run, and if progress bars are enabled, then you will see one appearing below "
21410 #: ../fish/guestfish.pod:1075
21413 " ><fs> copy-size /large-file /another-file 2048M\n"
21414 " / 10% [#####-----------------------------------------] 00:30\n"
21419 #: ../fish/guestfish.pod:1078
21421 "The spinner on the left hand side moves round once for every progress "
21422 "notification received from the backend. This is a (reasonably) golden "
21423 "assurance that the command is \"doing something\" even if the progress bar "
21424 "is not moving, because the command is able to send the progress "
21425 "notifications. When the bar reaches 100% and the command finishes, the "
21426 "spinner disappears."
21430 #: ../fish/guestfish.pod:1085
21432 "Progress bars are enabled by default when guestfish is used interactively. "
21433 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21434 "and you can disable them completely using I<--no-progress-bars>."
21438 #: ../fish/guestfish.pod:1090
21439 msgid "GUESTFISH COMMANDS"
21443 #: ../fish/guestfish.pod:1092
21445 "The commands in this section are guestfish convenience commands, in other "
21446 "words, they are not part of the L<guestfs(3)> API."
21450 #: ../fish/guestfish.pod:1095
21455 #: ../fish/guestfish.pod:1097
21467 #: ../fish/guestfish.pod:1100
21468 msgid "Without any parameter, this provides general help."
21469 msgstr "Без параметра показує загальну довідкову інформацію."
21472 #: ../fish/guestfish.pod:1102
21473 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21477 #: ../fish/guestfish.pod:1104
21478 msgid "quit | exit"
21482 #: ../fish/guestfish.pod:1106
21483 msgid "This exits guestfish. You can also use C<^D> key."
21487 #: ../fish/guestfish.pod:1108
21488 msgid "@FISH_COMMANDS@"
21492 #: ../fish/guestfish.pod:1110
21497 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21502 #: ../fish/guestfish.pod:1116
21504 "guestfish returns 0 if the commands completed without error, or 1 if there "
21509 #: ../fish/guestfish.pod:1123
21514 #: ../fish/guestfish.pod:1125
21516 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
21521 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
21522 msgid "FEBOOTSTRAP_KERNEL"
21526 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
21527 msgid "FEBOOTSTRAP_MODULES"
21531 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
21533 "These two environment variables allow the kernel that libguestfs uses in the "
21534 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21535 "most recent host kernel is chosen. For more information about kernel "
21536 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
21537 "available in febootstrap E<ge> 3.8."
21541 #: ../fish/guestfish.pod:1138
21542 msgid "GUESTFISH_DISPLAY_IMAGE"
21546 #: ../fish/guestfish.pod:1140
21548 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
21549 "If not set, it uses L<display(1)>."
21553 #: ../fish/guestfish.pod:1143
21554 msgid "GUESTFISH_PID"
21558 #: ../fish/guestfish.pod:1145
21560 "Used with the I<--remote> option to specify the remote guestfish process to "
21561 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21565 #: ../fish/guestfish.pod:1149
21570 #: ../fish/guestfish.pod:1151
21572 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
21573 "not specified, the external L<hexedit(1)> program is used."
21577 #: ../fish/guestfish.pod:1155
21582 #: ../fish/guestfish.pod:1157
21584 "If compiled with GNU readline support, various files in the home directory "
21585 "can be used. See L</FILES>."
21589 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
21590 msgid "LIBGUESTFS_APPEND"
21594 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
21595 msgid "Pass additional options to the guest kernel."
21599 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
21600 msgid "LIBGUESTFS_DEBUG"
21601 msgstr "LIBGUESTFS_DEBUG"
21604 #: ../fish/guestfish.pod:1166
21606 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
21607 "effect as using the B<-v> option."
21611 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
21612 msgid "LIBGUESTFS_MEMSIZE"
21613 msgstr "LIBGUESTFS_MEMSIZE"
21616 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
21618 "Set the memory allocated to the qemu process, in megabytes. For example:"
21622 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
21625 " LIBGUESTFS_MEMSIZE=700\n"
21628 " LIBGUESTFS_MEMSIZE=700\n"
21632 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
21633 msgid "LIBGUESTFS_PATH"
21637 #: ../fish/guestfish.pod:1178
21639 "Set the path that guestfish uses to search for kernel and initrd.img. See "
21640 "the discussion of paths in L<guestfs(3)>."
21644 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
21645 msgid "LIBGUESTFS_QEMU"
21649 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
21651 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
21652 "which was found at compile time by the configure script is used."
21656 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
21657 msgid "LIBGUESTFS_TRACE"
21661 #: ../fish/guestfish.pod:1189
21662 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21666 #: ../fish/guestfish.pod:1191
21668 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21671 #: ../fish/guestfish.pod:1193
21673 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
21678 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21679 #: ../src/guestfs.pod:3257
21684 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
21686 "Location of temporary directory, defaults to C</tmp> except for the cached "
21687 "supermin appliance which defaults to C</var/tmp>."
21691 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
21693 "If libguestfs was compiled to use the supermin appliance then the real "
21694 "appliance is cached in this directory, shared between all handles belonging "
21695 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
21696 "use in case C</var/tmp> is not large enough."
21700 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21701 #: ../rescue/virt-rescue.pod:310
21706 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21707 #: ../rescue/virt-rescue.pod:314
21708 msgid "$HOME/.libguestfs-tools.rc"
21712 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21713 #: ../rescue/virt-rescue.pod:316
21714 msgid "/etc/libguestfs-tools.conf"
21718 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21719 #: ../rescue/virt-rescue.pod:318
21721 "This configuration file controls the default read-only or read-write mode "
21722 "(I<--ro> or I<--rw>)."
21726 #: ../fish/guestfish.pod:1220
21727 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21728 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
21731 #: ../fish/guestfish.pod:1222
21732 msgid "$HOME/.guestfish"
21736 #: ../fish/guestfish.pod:1224
21738 "If compiled with GNU readline support, then the command history is saved in "
21743 #: ../fish/guestfish.pod:1227
21744 msgid "$HOME/.inputrc"
21748 #: ../fish/guestfish.pod:1229
21749 msgid "/etc/inputrc"
21753 #: ../fish/guestfish.pod:1231
21755 "If compiled with GNU readline support, then these files can be used to "
21756 "configure readline. For further information, please see L<readline(3)/"
21757 "INITIALIZATION FILE>."
21761 #: ../fish/guestfish.pod:1235
21762 msgid "To write rules which only apply to guestfish, use:"
21766 #: ../fish/guestfish.pod:1237
21776 #: ../fish/guestfish.pod:1241
21778 "Variables that you can set in inputrc that change the behaviour of guestfish "
21779 "in useful ways include:"
21783 #: ../fish/guestfish.pod:1246
21784 msgid "completion-ignore-case (default: on)"
21788 #: ../fish/guestfish.pod:1248
21790 "By default, guestfish will ignore case when tab-completing paths on the "
21795 #: ../fish/guestfish.pod:1251
21798 " set completion-ignore-case off\n"
21803 #: ../fish/guestfish.pod:1253
21804 msgid "to make guestfish case sensitive."
21808 #: ../fish/guestfish.pod:1257
21813 #: ../fish/guestfish.pod:1259
21814 msgid "test2.img (etc)"
21818 #: ../fish/guestfish.pod:1261
21820 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21821 "will be created in the file C<test1.img> in the current directory. The "
21822 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
21823 "the same name will be overwritten."
21827 #: ../fish/guestfish.pod:1270
21829 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21830 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21831 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21832 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21833 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21834 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21835 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21839 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354
21840 #: ../test-tool/libguestfs-test-tool.pod:112
21841 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
21845 #: ../fish/virt-copy-in.pod:5
21847 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21851 #: ../fish/virt-copy-in.pod:9
21854 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21859 #: ../fish/virt-copy-in.pod:11
21862 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21867 #: ../fish/virt-copy-in.pod:15
21869 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21870 "causing disk corruption. The virtual machine must be shut down before you "
21871 "use this command."
21875 #: ../fish/virt-copy-in.pod:21
21877 "C<virt-copy-in> copies files and directories from the local disk into a "
21878 "virtual machine disk image or named libvirt domain."
21882 #: ../fish/virt-copy-in.pod:24
21884 "You can give one of more filenames and directories on the command line. "
21885 "Directories are copied in recursively. The final parameter must be the "
21886 "destination directory in the disk image which must be an absolute path "
21887 "starting with a C</> character."
21891 #: ../fish/virt-copy-in.pod:33
21894 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21899 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21900 msgid "Upload a home directory to a guest:"
21904 #: ../fish/virt-copy-in.pod:37
21907 " virt-copy-in -d MyGuest skel /home\n"
21912 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21913 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21914 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21918 #: ../fish/virt-copy-in.pod:41
21920 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21921 "> C<copy-in> command. For anything more complex than a trivial copy, you "
21922 "are probably better off using guestfish directly."
21926 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21927 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21929 "Since the shell script just passes options straight to guestfish, read "
21930 "L<guestfish(1)> to see the full list of options."
21934 #: ../fish/virt-copy-in.pod:52
21936 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21937 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21941 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21942 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21943 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21947 #: ../fish/virt-copy-out.pod:5
21949 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21954 #: ../fish/virt-copy-out.pod:9
21957 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21962 #: ../fish/virt-copy-out.pod:11
21965 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21970 #: ../fish/virt-copy-out.pod:15
21972 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21973 "image or named libvirt domain."
21977 #: ../fish/virt-copy-out.pod:18
21979 "You can give one of more filenames and directories on the command line. "
21980 "Directories are copied out recursively."
21984 #: ../fish/virt-copy-out.pod:23
21985 msgid "Download the home directories from a virtual machine:"
21989 #: ../fish/virt-copy-out.pod:25
21993 " virt-copy-out -d MyGuest /home homes\n"
21998 #: ../fish/virt-copy-out.pod:30
22000 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22001 "> C<copy-out> command. For anything more complex than a trivial copy, you "
22002 "are probably better off using guestfish directly."
22006 #: ../fish/virt-copy-out.pod:41
22008 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
22009 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22013 #: ../fish/virt-tar-in.pod:5
22014 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
22018 #: ../fish/virt-tar-in.pod:9
22021 " virt-tar-in -a disk.img data.tar /destination\n"
22026 #: ../fish/virt-tar-in.pod:11
22029 " virt-tar-in -d domain data.tar /destination\n"
22034 #: ../fish/virt-tar-in.pod:13
22037 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
22042 #: ../fish/virt-tar-in.pod:17
22044 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
22045 "causing disk corruption. The virtual machine must be shut down before you "
22046 "use this command."
22050 #: ../fish/virt-tar-in.pod:23
22052 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
22053 "image or named libvirt domain."
22057 #: ../fish/virt-tar-in.pod:26
22059 "The first parameter is the tar file. Use C<-> to read the tar file from "
22060 "standard input. The second parameter is the absolute target directory to "
22065 #: ../fish/virt-tar-in.pod:34
22068 " virt-tar-in -d MyGuest homes.tar /home\n"
22073 #: ../fish/virt-tar-in.pod:38
22075 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22076 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
22077 "probably better off using guestfish directly."
22081 #: ../fish/virt-tar-in.pod:49
22083 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22084 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
22089 #: ../fish/virt-tar-out.pod:5
22091 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
22095 #: ../fish/virt-tar-out.pod:9
22098 " virt-tar-out -a disk.img /dir files.tar\n"
22103 #: ../fish/virt-tar-out.pod:11
22106 " virt-tar-out -d domain /dir files.tar\n"
22111 #: ../fish/virt-tar-out.pod:13
22114 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
22119 #: ../fish/virt-tar-out.pod:17
22121 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
22125 #: ../fish/virt-tar-out.pod:20
22127 "The first parameter is the absolute path of the virtual machine directory. "
22128 "The second parameter is the tar file to write. Use C<-> to write to "
22133 #: ../fish/virt-tar-out.pod:26
22134 msgid "Download the home directories from a guest:"
22138 #: ../fish/virt-tar-out.pod:28
22141 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
22146 #: ../fish/virt-tar-out.pod:32
22148 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22149 "> C<tar-out> command. For anything more complex than a trivial copy, you "
22150 "are probably better off using guestfish directly."
22154 #: ../fish/virt-tar-out.pod:43
22156 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22157 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
22161 #: ../fuse/guestmount.pod:5
22163 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22167 #: ../fuse/guestmount.pod:9
22170 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22175 #: ../fuse/guestmount.pod:11
22178 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
22183 #: ../fuse/guestmount.pod:13
22186 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
22191 #: ../fuse/guestmount.pod:17
22193 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22194 "machines. If you do this, you risk disk corruption in the VM."
22198 #: ../fuse/guestmount.pod:22
22200 "The guestmount program can be used to mount virtual machine filesystems and "
22201 "other disk images on the host. It uses libguestfs for access to the guest "
22202 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22203 "a mountable device."
22207 #: ../fuse/guestmount.pod:27
22209 "Along with other options, you have to give at least one device (I<-a> "
22210 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
22211 "option) or use the I<-i> inspection option or the I<--live> option. How "
22212 "this works is better explained in the L<guestfish(1)> manual page, or by "
22213 "looking at the examples below."
22217 #: ../fuse/guestmount.pod:33
22219 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
22220 "by you, and the filesystem will not be visible to any other users unless you "
22221 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
22222 "the filesystem, use the C<fusermount -u> command."
22226 #: ../fuse/guestmount.pod:41
22228 "For a typical Windows guest which has its main filesystem on the first "
22233 #: ../fuse/guestmount.pod:44
22236 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22241 #: ../fuse/guestmount.pod:46
22243 "For a typical Linux guest which has a /boot filesystem on the first "
22244 "partition, and the root filesystem on a logical volume:"
22248 #: ../fuse/guestmount.pod:49
22251 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22256 #: ../fuse/guestmount.pod:51
22257 msgid "To get libguestfs to detect guest mountpoints for you:"
22261 #: ../fuse/guestmount.pod:53
22264 " guestmount -a guest.img -i --ro /mnt\n"
22269 #: ../fuse/guestmount.pod:55
22270 msgid "For a libvirt guest called \"Guest\" you could do:"
22274 #: ../fuse/guestmount.pod:57
22277 " guestmount -d Guest -i --ro /mnt\n"
22282 #: ../fuse/guestmount.pod:59
22284 "If you don't know what filesystems are contained in a guest or disk image, "
22285 "use L<virt-filesystems(1)> first:"
22289 #: ../fuse/guestmount.pod:62
22292 " virt-filesystems MyGuest\n"
22297 #: ../fuse/guestmount.pod:64
22299 "If you want to trace the libguestfs calls but without excessive debugging "
22300 "information, we recommend:"
22304 #: ../fuse/guestmount.pod:67
22307 " guestmount [...] --trace /mnt\n"
22312 #: ../fuse/guestmount.pod:69
22313 msgid "If you want to debug the program, we recommend:"
22317 #: ../fuse/guestmount.pod:71
22320 " guestmount [...] --trace --verbose /mnt\n"
22325 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96
22326 #: ../resize/virt-resize.pod:621
22331 #: ../fuse/guestmount.pod:75
22332 msgid "Other users cannot see the filesystem by default"
22336 #: ../fuse/guestmount.pod:77
22338 "If you mount a filesystem as one user (eg. root), then other users will not "
22339 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
22340 "option when mounting:"
22344 #: ../fuse/guestmount.pod:81
22347 " sudo guestmount [...] -o allow_other /mnt\n"
22352 #: ../fuse/guestmount.pod:83
22353 msgid "Enabling FUSE"
22357 #: ../fuse/guestmount.pod:85
22359 "On some distros, you may need to add yourself to a special group (eg. "
22360 "C<fuse>) before you can use any FUSE filesystem. This is necessary on "
22361 "Debian and derivatives."
22365 #: ../fuse/guestmount.pod:89
22367 "On other distros, no special group is required. It is not necessary on "
22368 "Fedora or Red Hat Enterprise Linux."
22372 #: ../fuse/guestmount.pod:100
22373 msgid "Add a block device or virtual machine image."
22377 #: ../fuse/guestmount.pod:123
22378 msgid "B<--dir-cache-timeout N>"
22379 msgstr "B<--dir-cache-timeout N>"
22382 #: ../fuse/guestmount.pod:125
22384 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22385 "seconds. The readdir cache [actually, there are several semi-independent "
22386 "caches] is populated after a readdir(2) call with the stat and extended "
22387 "attributes of the files in the directory, in anticipation that they will be "
22388 "requested soon after."
22392 #: ../fuse/guestmount.pod:131
22394 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22395 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22396 "requests, only cache existing ones."
22400 #: ../fuse/guestmount.pod:151
22402 "If you have untrusted raw-format guest disk images, you should use this "
22403 "option to specify the disk format. This avoids a possible security problem "
22404 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
22405 "guestfs_add_drive_opts>."
22409 #: ../fuse/guestmount.pod:156
22410 msgid "B<--fuse-help>"
22411 msgstr "B<--fuse-help>"
22414 #: ../fuse/guestmount.pod:158
22415 msgid "Display help on special FUSE options (see I<-o> below)."
22419 #: ../fuse/guestmount.pod:162
22420 msgid "Display brief help and exit."
22424 #: ../fuse/guestmount.pod:186
22426 "Mount the named partition or logical volume on the given mountpoint B<in the "
22427 "guest> (this has nothing to do with mountpoints in the host)."
22431 #: ../fuse/guestmount.pod:189
22433 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
22434 "something on C</>."
22438 #: ../fuse/guestmount.pod:206
22440 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22441 "unmounted. If you specify this option, then we don't attempt to sync the "
22442 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
22446 #: ../fuse/guestmount.pod:211
22447 msgid "B<-o option>"
22448 msgstr "B<-o параметр>"
22451 #: ../fuse/guestmount.pod:213
22452 msgid "B<--option option>"
22453 msgstr "B<--option параметр>"
22456 #: ../fuse/guestmount.pod:215
22457 msgid "Pass extra options to FUSE."
22461 #: ../fuse/guestmount.pod:217
22463 "To get a list of all the extra options supported by FUSE, use the command "
22464 "below. Note that only the FUSE I<-o> options can be passed, and only some "
22465 "of them are a good idea."
22469 #: ../fuse/guestmount.pod:221
22472 " guestmount --fuse-help\n"
22477 #: ../fuse/guestmount.pod:223
22478 msgid "Some potentially useful FUSE options:"
22482 #: ../fuse/guestmount.pod:227
22483 msgid "B<-o allow_other>"
22487 #: ../fuse/guestmount.pod:229
22488 msgid "Allow other users to see the filesystem."
22492 #: ../fuse/guestmount.pod:231
22493 msgid "B<-o attr_timeout=N>"
22494 msgstr "B<-o attr_timeout=N>"
22497 #: ../fuse/guestmount.pod:233
22498 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22502 #: ../fuse/guestmount.pod:235
22503 msgid "B<-o kernel_cache>"
22507 #: ../fuse/guestmount.pod:237
22509 "Allow the kernel to cache files (reduces the number of reads that have to go "
22510 "through the L<guestfs(3)> API). This is generally a good idea if you can "
22511 "afford the extra memory usage."
22515 #: ../fuse/guestmount.pod:241
22516 msgid "B<-o uid=N> B<-o gid=N>"
22517 msgstr "B<-o uid=N> B<-o gid=N>"
22520 #: ../fuse/guestmount.pod:243
22522 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22523 "the chosen values."
22527 #: ../fuse/guestmount.pod:252
22529 "Add devices and mount everything read-only. Also disallow writes and make "
22530 "the disk appear read-only to FUSE."
22534 #: ../fuse/guestmount.pod:255
22536 "This is highly recommended if you are not going to edit the guest disk. If "
22537 "the guest is running and this option is I<not> supplied, then there is a "
22538 "strong risk of disk corruption in the guest. We try to prevent this from "
22539 "happening, but it is not always possible."
22543 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
22544 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22545 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22548 #: ../fuse/guestmount.pod:264
22549 msgid "Enable SELinux support for the guest."
22553 #: ../fuse/guestmount.pod:270
22554 msgid "Enable verbose messages from underlying libguestfs."
22558 #: ../fuse/guestmount.pod:276
22559 msgid "Display the program version and exit."
22563 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22564 #: ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
22565 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22566 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22569 #: ../fuse/guestmount.pod:289
22571 msgstr "B<--trace>"
22574 #: ../fuse/guestmount.pod:291
22575 msgid "Trace libguestfs calls and entry into each FUSE function."
22579 #: ../fuse/guestmount.pod:293
22580 msgid "This also stops the daemon from forking into the background."
22584 #: ../fuse/guestmount.pod:319
22586 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22587 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22590 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22591 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22595 #: ../fuse/guestmount.pod:334
22596 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
22600 #: ../inspector/virt-inspector.pod:5
22602 "virt-inspector - Display operating system version and other information "
22603 "about a virtual machine"
22607 #: ../inspector/virt-inspector.pod:9
22610 " virt-inspector [--options] -d domname\n"
22615 #: ../inspector/virt-inspector.pod:11
22618 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22623 #: ../inspector/virt-inspector.pod:15
22626 " virt-inspector domname\n"
22631 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
22634 " virt-inspector disk.img [disk.img ...]\n"
22639 #: ../inspector/virt-inspector.pod:21
22641 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22642 "determine the version of the operating system and other information about "
22643 "the virtual machine."
22647 #: ../inspector/virt-inspector.pod:25
22648 msgid "Virt-inspector produces XML output for feeding into other programs."
22652 #: ../inspector/virt-inspector.pod:27
22654 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22655 "the libvirt domain (see: C<virsh list --all>)."
22659 #: ../inspector/virt-inspector.pod:30
22661 "You can also run virt-inspector directly on disk images from a single "
22662 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
22663 "has several block devices, in which case you should list several I<-a> "
22664 "options one after another, with the first corresponding to the guest's C</"
22665 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22669 #: ../inspector/virt-inspector.pod:37
22671 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22672 "keys and similar."
22676 #: ../inspector/virt-inspector.pod:40
22678 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
22679 "inspect several virtual machines, you have to run virt-inspector several "
22680 "times (for example, from a shell script for-loop)."
22684 #: ../inspector/virt-inspector.pod:45
22686 "Because virt-inspector needs direct access to guest images, it won't "
22687 "normally work over remote libvirt connections."
22691 #: ../inspector/virt-inspector.pod:48
22693 "All of the information available from virt-inspector is also available "
22694 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
22695 "The same information can also be fetched using guestfish or via libguestfs "
22696 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22697 "WITH OTHER PROGRAMMING LANGUAGES>)."
22701 #: ../inspector/virt-inspector.pod:81
22703 "Libvirt is only used if you specify a C<domname> on the command line. If "
22704 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22709 #: ../inspector/virt-inspector.pod:94
22711 "When prompting for keys and passphrases, virt-inspector normally turns "
22712 "echoing off so you cannot see what you are typing. If you are not worried "
22713 "about Tempest attacks and there is no one else in the room you can specify "
22714 "this flag to see what you are typing."
22718 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22719 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22720 #: ../tools/virt-win-reg.pl:144
22722 "Specify the format of disk images given on the command line. If this is "
22723 "omitted then the format is autodetected from the content of the disk image."
22727 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22728 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22729 #: ../tools/virt-win-reg.pl:148
22731 "If disk images are requested from libvirt, then this program asks libvirt "
22732 "for this information. In this case, the value of the format parameter is "
22737 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
22738 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
22739 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22740 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22742 "If working with untrusted raw-format guest disk images, you should ensure "
22743 "the format is always specified."
22747 #: ../inspector/virt-inspector.pod:135
22749 #| msgid "B<--parts>"
22750 msgid "B<--xpath> query"
22751 msgstr "B<--parts>"
22754 #: ../inspector/virt-inspector.pod:137
22756 "Perform an XPath query on the XML on stdin, and print the result on stdout. "
22757 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22758 "functions are disabled. See L</XPATH QUERIES> below for some examples."
22762 #: ../inspector/virt-inspector.pod:146
22763 msgid "Previous versions of virt-inspector allowed you to write either:"
22767 #: ../inspector/virt-inspector.pod:152
22770 " virt-inspector guestname\n"
22775 #: ../inspector/virt-inspector.pod:160
22780 #: ../inspector/virt-inspector.pod:162
22782 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22783 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
22784 "just an overview."
22788 #: ../inspector/virt-inspector.pod:166
22790 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22791 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
22792 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22793 "which is vanishingly rare in real world VMs."
22797 #: ../inspector/virt-inspector.pod:171
22798 msgid "E<lt>operatingsystemE<gt>"
22802 #: ../inspector/virt-inspector.pod:173
22804 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22805 "describe the operating system, its architecture, the descriptive \"product "
22806 "name\" string, the type of OS and so on, as in this example:"
22810 #: ../inspector/virt-inspector.pod:177
22813 " <operatingsystems>\n"
22814 " <operatingsystem>\n"
22815 " <root>/dev/sda2</root>\n"
22816 " <name>windows</name>\n"
22817 " <arch>i386</arch>\n"
22818 " <distro>windows</distro>\n"
22819 " <product_name>Windows 7 Enterprise</product_name>\n"
22820 " <product_variant>Client</product_variant>\n"
22821 " <major_version>6</major_version>\n"
22822 " <minor_version>1</minor_version>\n"
22823 " <windows_systemroot>/Windows</windows_systemroot>\n"
22824 " <format>installed</format>\n"
22829 #: ../inspector/virt-inspector.pod:190
22831 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22832 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22833 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22834 "architecture. The other fields are fairly self-explanatory, but because "
22835 "these fields are taken directly from the libguestfs inspection API you can "
22836 "find precise information from L<guestfs(3)/INSPECTION>."
22840 #: ../inspector/virt-inspector.pod:198
22842 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22843 "of view of libguestfs (block devices may have completely different names "
22844 "inside the VM itself)."
22848 #: ../inspector/virt-inspector.pod:202
22849 msgid "E<lt>mountpointsE<gt>"
22853 #: ../inspector/virt-inspector.pod:204
22855 "Un*x-like guests typically have multiple filesystems which are mounted at "
22856 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22857 "element which looks like this:"
22861 #: ../inspector/virt-inspector.pod:208
22864 " <operatingsystems>\n"
22865 " <operatingsystem>\n"
22868 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22869 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22870 " </mountpoints>\n"
22875 #: ../inspector/virt-inspector.pod:216
22877 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22878 "and may have completely different names inside the guest. Only mountable "
22879 "filesystems appear in this list, not things like swap devices."
22883 #: ../inspector/virt-inspector.pod:221
22884 msgid "E<lt>filesystemsE<gt>"
22888 #: ../inspector/virt-inspector.pod:223
22890 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22891 "filesystems belonging to the guest, including swap and empty partitions. "
22892 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22893 "this OS or shared with this OS and other OSes)."
22897 #: ../inspector/virt-inspector.pod:229
22898 msgid "You might see something like this:"
22902 #: ../inspector/virt-inspector.pod:231
22905 " <operatingsystems>\n"
22906 " <operatingsystem>\n"
22909 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22910 " <type>ext4</type>\n"
22911 " <label>Fedora-13-x86_64</label>\n"
22912 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22918 #: ../inspector/virt-inspector.pod:241
22920 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22921 "the label, and the UUID."
22925 #: ../inspector/virt-inspector.pod:244
22926 msgid "E<lt>applicationsE<gt>"
22930 #: ../inspector/virt-inspector.pod:246
22932 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22933 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22938 #: ../inspector/virt-inspector.pod:250
22940 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
22941 "Typical values would be C<rpm> and C<deb>."
22945 #: ../inspector/virt-inspector.pod:253
22947 "E<lt>package_managementE<gt>, if present, describes the package manager. "
22948 "Typical values include C<yum>, C<up2date> and C<apt>"
22952 #: ../inspector/virt-inspector.pod:256
22953 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22957 #: ../inspector/virt-inspector.pod:259
22960 " <operatingsystems>\n"
22961 " <operatingsystem>\n"
22963 " <applications>\n"
22965 " <name>coreutils</name>\n"
22966 " <version>8.5</version>\n"
22967 " <release>1</release>\n"
22968 " </application>\n"
22973 #: ../inspector/virt-inspector.pod:269
22975 "The version and release fields may not be available for some types guests. "
22976 "Other fields are possible, see L<guestfs(3)/"
22977 "guestfs_inspect_list_applications>."
22981 #: ../inspector/virt-inspector.pod:273
22982 msgid "E<lt>drive_mappingsE<gt>"
22986 #: ../inspector/virt-inspector.pod:275
22988 "For operating systems like Windows which use drive letters, virt-inspector "
22989 "is able to find out how drive letters map to filesystems."
22993 #: ../inspector/virt-inspector.pod:279
22996 " <operatingsystems>\n"
22997 " <operatingsystem>\n"
22999 " <drive_mappings>\n"
23000 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
23001 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
23002 " </drive_mappings>\n"
23007 #: ../inspector/virt-inspector.pod:287
23009 "In the example above, drive C maps to the filesystem on the second partition "
23010 "on the first disk, and drive E maps to the filesystem on the first partition "
23011 "on the second disk."
23015 #: ../inspector/virt-inspector.pod:291
23017 "Note that this only covers permanent local filesystem mappings, not things "
23018 "like network shares. Furthermore NTFS volume mount points may not be listed "
23023 #: ../inspector/virt-inspector.pod:295
23024 msgid "E<lt>iconE<gt>"
23028 #: ../inspector/virt-inspector.pod:297
23030 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
23031 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
23032 "very large and high quality."
23036 #: ../inspector/virt-inspector.pod:301
23039 " <operatingsystems>\n"
23040 " <operatingsystem>\n"
23043 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
23044 " [... many lines of base64 data ...]\n"
23050 #: ../inspector/virt-inspector.pod:309
23052 "To display the icon, you have to extract it and convert the base64 data back "
23053 "to a binary file. Use an XPath query or simply an editor to extract the "
23054 "data, then use the coreutils L<base64(1)> program to do the conversion back "
23059 #: ../inspector/virt-inspector.pod:314
23062 " base64 -i -d < icon.data > icon.png\n"
23067 #: ../inspector/virt-inspector.pod:316
23068 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
23072 #: ../inspector/virt-inspector.pod:318
23074 "Virt-inspector can detect some operating system installers on install disks, "
23075 "live CDs, bootable USB keys and more."
23079 #: ../inspector/virt-inspector.pod:321
23081 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
23082 "fields may be present to indicate a live CD, network installer, or one part "
23083 "of a multipart CD. For example:"
23087 #: ../inspector/virt-inspector.pod:325
23090 " <operatingsystems>\n"
23091 " <operatingsystem>\n"
23092 " <root>/dev/sda</root>\n"
23093 " <name>linux</name>\n"
23094 " <arch>i386</arch>\n"
23095 " <distro>ubuntu</distro>\n"
23096 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
23097 " <major_version>10</major_version>\n"
23098 " <minor_version>10</minor_version>\n"
23099 " <format>installer</format>\n"
23105 #: ../inspector/virt-inspector.pod:337
23106 msgid "XPATH QUERIES"
23110 #: ../inspector/virt-inspector.pod:339
23112 "Virt-inspector includes built in support for running XPath queries. The "
23113 "reason for including XPath support directly in virt-inspector is simply that "
23114 "there are no good and widely available command line programs that can do "
23115 "XPath queries. The only good one is L<xmlstarlet(1)> and that is not "
23116 "available on Red Hat Enterprise Linux."
23120 #: ../inspector/virt-inspector.pod:346
23122 "To perform an XPath query, use the I<--xpath> option. Note that in this "
23123 "mode, virt-inspector simply reads XML from stdin and outputs the query "
23124 "result on stdout. All other inspection features are disabled in this mode."
23128 #: ../inspector/virt-inspector.pod:353
23131 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
23133 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23134 " <type>ext4</type>\n"
23140 #: ../inspector/virt-inspector.pod:359
23143 " $ virt-inspector -d Guest | \\\n"
23144 " virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
23150 #: ../inspector/virt-inspector.pod:363
23153 " $ virt-inspector -d Guest | \\\n"
23154 " virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
23155 " [displays the guest icon, if there is one]\n"
23160 #: ../inspector/virt-inspector.pod:374
23161 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
23165 #: ../inspector/virt-inspector.pod:376
23167 "Early versions of libguestfs shipped with a different virt-inspector program "
23168 "written in Perl (the current version is written in C). The XML output of "
23169 "the Perl virt-inspector was different and it could also output in other "
23170 "formats like text."
23174 #: ../inspector/virt-inspector.pod:381
23176 "The old virt-inspector is no longer supported or shipped with libguestfs."
23180 #: ../inspector/virt-inspector.pod:384
23182 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
23183 "versions of virt-inspector with different names:"
23187 #: ../inspector/virt-inspector.pod:387
23190 " virt-inspector Old Perl version.\n"
23191 " virt-inspector2 New C version.\n"
23196 #: ../inspector/virt-inspector.pod:397
23198 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
23199 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
23203 #: ../inspector/virt-inspector.pod:414
23204 msgid "Matthew Booth L<mbooth@redhat.com>"
23208 #: ../java/examples/guestfs-java.pod:5
23209 msgid "guestfs-java - How to use libguestfs from Java"
23213 #: ../java/examples/guestfs-java.pod:9
23216 " import com.redhat.et.libguestfs.*;\n"
23221 #: ../java/examples/guestfs-java.pod:11
23224 " GuestFS g = new GuestFS ();\n"
23225 " g.add_drive_opts (\"disk.img\", null);\n"
23231 #: ../java/examples/guestfs-java.pod:17
23233 "This manual page documents how to call libguestfs from the Java programming "
23234 "language. This page just documents the differences from the C API and gives "
23235 "some examples. If you are not familiar with using libguestfs, you also need "
23236 "to read L<guestfs(3)>."
23240 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
23241 msgid "CLOSING THE HANDLE"
23245 #: ../java/examples/guestfs-java.pod:24
23247 "The handle is closed when it is reaped by the garbage collector. Because "
23248 "libguestfs handles include a lot of state, it is also possible to close (and "
23249 "hence free) them explicitly by calling the C<close> method."
23253 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
23254 #: ../python/examples/guestfs-python.pod:21
23255 #: ../ruby/examples/guestfs-ruby.pod:22
23260 #: ../java/examples/guestfs-java.pod:31
23262 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
23263 "exception. This has a single parameter which is the error message (a "
23268 #: ../java/examples/guestfs-java.pod:35
23269 msgid "Calling any method on a closed handle raises the same exception."
23273 #: ../java/examples/guestfs-java.pod:47
23275 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
23276 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23277 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23281 #: ../ocaml/examples/guestfs-ocaml.pod:5
23282 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
23286 #: ../ocaml/examples/guestfs-ocaml.pod:9
23287 msgid "Module style:"
23291 #: ../ocaml/examples/guestfs-ocaml.pod:11
23294 " let g = Guestfs.create () in\n"
23295 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23296 " Guestfs.launch g;\n"
23301 #: ../ocaml/examples/guestfs-ocaml.pod:15
23302 msgid "Object-oriented style:"
23306 #: ../ocaml/examples/guestfs-ocaml.pod:17
23309 " let g = new Guestfs.guestfs () in\n"
23310 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23316 #: ../ocaml/examples/guestfs-ocaml.pod:21
23319 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
23321 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
23326 #: ../ocaml/examples/guestfs-ocaml.pod:27
23328 "This manual page documents how to call libguestfs from the OCaml programming "
23329 "language. This page just documents the differences from the C API and gives "
23330 "some examples. If you are not familiar with using libguestfs, you also need "
23331 "to read L<guestfs(3)>."
23335 #: ../ocaml/examples/guestfs-ocaml.pod:32
23336 msgid "PROGRAMMING STYLES"
23340 #: ../ocaml/examples/guestfs-ocaml.pod:34
23342 "There are two different programming styles supported by the OCaml bindings. "
23343 "You can use a module style, with each C function mapped to an OCaml function:"
23347 #: ../ocaml/examples/guestfs-ocaml.pod:38
23350 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
23355 #: ../ocaml/examples/guestfs-ocaml.pod:40
23360 #: ../ocaml/examples/guestfs-ocaml.pod:42
23363 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
23368 #: ../ocaml/examples/guestfs-ocaml.pod:44
23370 "Alternately you can use an object-oriented style, calling methods on the "
23371 "class C<Guestfs.guestfs>:"
23375 #: ../ocaml/examples/guestfs-ocaml.pod:47
23378 " method set_verbose : bool -> unit\n"
23383 #: ../ocaml/examples/guestfs-ocaml.pod:49
23385 "The object-oriented style is usually briefer, and the minor performance "
23386 "penalty isn't noticable in the general overhead of performing libguestfs "
23391 #: ../ocaml/examples/guestfs-ocaml.pod:55
23393 "The handle is closed when it is reaped by the garbage collector. Because "
23394 "libguestfs handles include a lot of state, it is also possible to close (and "
23395 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23400 #: ../ocaml/examples/guestfs-ocaml.pod:62
23402 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23403 "exception. This has a single parameter which is the error message (a "
23408 #: ../ocaml/examples/guestfs-ocaml.pod:66
23410 "Calling any function/method on a closed handle raises C<Guestfs."
23411 "Handle_closed>. The single parameter is the name of the function that you "
23416 #: ../ocaml/examples/guestfs-ocaml.pod:80
23418 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23419 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23420 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23424 #: ../perl/examples/guestfs-perl.pod:5
23425 msgid "guestfs-perl - How to use libguestfs from Perl"
23429 #: ../perl/examples/guestfs-perl.pod:9
23432 " use Sys::Guestfs;\n"
23437 #: ../perl/examples/guestfs-perl.pod:11
23440 " my $h = Sys::Guestfs->new ();\n"
23441 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23442 " $h->launch ();\n"
23443 " $h->mount_options ('', '/dev/sda1', '/');\n"
23444 " $h->touch ('/hello');\n"
23450 #: ../perl/examples/guestfs-perl.pod:20
23452 "This manual page documents how to call libguestfs from the Perl programming "
23453 "language. This page just documents the differences from the C API and gives "
23454 "some examples. If you are not familiar with using libguestfs, you also need "
23455 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
23459 #: ../perl/examples/guestfs-perl.pod:26
23464 #: ../perl/examples/guestfs-perl.pod:28
23466 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23471 #: ../perl/examples/guestfs-perl.pod:41
23473 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23474 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23475 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23479 #: ../python/examples/guestfs-python.pod:5
23480 msgid "guestfs-python - How to use libguestfs from Python"
23484 #: ../python/examples/guestfs-python.pod:9
23487 " import guestfs\n"
23488 " g = guestfs.GuestFS ()\n"
23489 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23495 #: ../python/examples/guestfs-python.pod:16
23497 "This manual page documents how to call libguestfs from the Python "
23498 "programming language. This page just documents the differences from the C "
23499 "API and gives some examples. If you are not familiar with using libguestfs, "
23500 "you also need to read L<guestfs(3)>."
23504 #: ../python/examples/guestfs-python.pod:23
23506 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23507 "single string argument which is the error message."
23511 #: ../python/examples/guestfs-python.pod:26
23512 msgid "MORE DOCUMENTATION"
23516 #: ../python/examples/guestfs-python.pod:28
23521 #: ../python/examples/guestfs-python.pod:30
23525 " >>> import guestfs\n"
23526 " >>> help (guestfs)\n"
23531 #: ../python/examples/guestfs-python.pod:44
23533 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23534 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23535 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23539 #: ../rescue/virt-rescue.pod:5
23540 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23544 #: ../rescue/virt-rescue.pod:9
23547 " virt-rescue [--options] -d domname\n"
23552 #: ../rescue/virt-rescue.pod:11
23555 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23560 #: ../rescue/virt-rescue.pod:13
23563 #| " virt-filesystems --format=raw -a disk.img\n"
23566 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
23569 " virt-filesystems --format=raw -a диск.img\n"
23573 #: ../rescue/virt-rescue.pod:17
23576 " virt-rescue [--options] domname\n"
23581 #: ../rescue/virt-rescue.pod:19
23584 " virt-rescue [--options] disk.img [disk.img ...]\n"
23589 #: ../rescue/virt-rescue.pod:23
23591 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
23592 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
23593 "you from doing this, but doesn't catch all cases."
23597 #: ../rescue/virt-rescue.pod:27
23599 "However if you use the I<--ro> (read only) option, then you can attach a "
23600 "shell to a live virtual machine. The results might be strange or "
23601 "inconsistent at times but you won't get disk corruption."
23605 #: ../rescue/virt-rescue.pod:33
23607 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23608 "need for a CD. virt-rescue gives you a rescue shell and some simple "
23609 "recovery tools which you can use to examine or rescue a virtual machine or "
23614 #: ../rescue/virt-rescue.pod:38
23616 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23617 "on disk image(s):"
23621 #: ../rescue/virt-rescue.pod:41
23624 " virt-rescue -d GuestName\n"
23629 #: ../rescue/virt-rescue.pod:43
23632 " virt-rescue --ro -a /path/to/disk.img\n"
23637 #: ../rescue/virt-rescue.pod:45
23640 " virt-rescue -a /dev/sdc\n"
23645 #: ../rescue/virt-rescue.pod:47
23646 msgid "For live VMs you I<must> use the --ro option."
23650 #: ../rescue/virt-rescue.pod:49
23652 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23653 "in an interactive bash shell where you can use many ordinary Linux "
23654 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23655 "appliance. You must mount the virtual machine's filesystems by hand. There "
23656 "is an empty directory called C</sysroot> where you can mount filesystems."
23660 #: ../rescue/virt-rescue.pod:56
23662 "You can get virt-rescue to suggest mount commands for you by using the I<--"
23663 "suggest> option (in another terminal):"
23667 #: ../rescue/virt-rescue.pod:59
23670 " $ virt-rescue --suggest -d Fedora15\n"
23671 " Inspecting the virtual machine or disk image ...\n"
23676 #: ../rescue/virt-rescue.pod:62
23679 " This disk contains one or more operating systems. You can use these\n"
23680 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
23686 #: ../rescue/virt-rescue.pod:66
23689 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
23690 " # type: linux, distro: fedora, version: 15.0\n"
23691 " # Fedora release 15 (Lovelock)\n"
23696 #: ../rescue/virt-rescue.pod:70
23699 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
23700 " mount /dev/vda1 /sysroot/boot\n"
23701 " mount --bind /dev /sysroot/dev\n"
23702 " mount --bind /dev/pts /sysroot/dev/pts\n"
23703 " mount --bind /proc /sysroot/proc\n"
23704 " mount --bind /sys /sysroot/sys\n"
23709 #: ../rescue/virt-rescue.pod:77
23711 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
23712 "(with L<parted(8)>) and mount them by hand:"
23716 #: ../rescue/virt-rescue.pod:80
23720 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
23721 " lv_root vg_f15x32 -wi-a- 8.83G\n"
23722 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
23723 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
23724 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
23725 " ><rescue> ls /sysroot\n"
23730 #: ../rescue/virt-rescue.pod:88
23732 "Another command to list available filesystems is L<virt-filesystems(1)>."
23736 #: ../rescue/virt-rescue.pod:91
23738 "To run commands in a Linux guest (for example, grub), you should chroot into "
23739 "the /sysroot directory first:"
23743 #: ../rescue/virt-rescue.pod:94
23746 " ><rescue> chroot /sysroot\n"
23751 #: ../rescue/virt-rescue.pod:98
23753 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23754 "virtual machine. For example you can use it on a blank file if you want to "
23755 "partition that file (although we would recommend using L<guestfish(1)> "
23756 "instead as it is more suitable for this purpose). You can even use virt-"
23757 "rescue on things like SD cards."
23761 #: ../rescue/virt-rescue.pod:104
23763 "Virt-rescue does not require root. You only need to run it as root if you "
23764 "need root to open the disk image."
23768 #: ../rescue/virt-rescue.pod:107
23770 "This tool is just designed for quick interactive hacking on a virtual "
23771 "machine. For more structured access to a virtual machine disk image, you "
23772 "should use L<guestfs(3)>. To get a structured shell that you can use to "
23773 "make scripted changes to guests, use L<guestfish(1)>."
23777 #: ../rescue/virt-rescue.pod:131
23778 msgid "B<--append kernelopts>"
23779 msgstr "B<--append параметри_ядра>"
23782 #: ../rescue/virt-rescue.pod:133
23783 msgid "Pass additional options to the rescue kernel."
23787 #: ../rescue/virt-rescue.pod:163
23790 " virt-rescue --format=raw -a disk.img\n"
23795 #: ../rescue/virt-rescue.pod:167
23798 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23803 #: ../rescue/virt-rescue.pod:176
23808 #: ../rescue/virt-rescue.pod:178
23809 msgid "B<--memsize MB>"
23810 msgstr "B<--memsize МБ>"
23813 #: ../rescue/virt-rescue.pod:180
23815 "Change the amount of memory allocated to the rescue system. The default is "
23816 "set by libguestfs and is small but adequate for running system tools. The "
23817 "occasional program might need more memory. The parameter is specified in "
23822 #: ../rescue/virt-rescue.pod:185
23823 msgid "B<--network>"
23824 msgstr "B<--network>"
23827 #: ../rescue/virt-rescue.pod:187
23828 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
23832 #: ../rescue/virt-rescue.pod:193
23833 msgid "Open the image read-only."
23837 #: ../rescue/virt-rescue.pod:203
23839 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
23840 "SELINUX> before using this option."
23844 #: ../rescue/virt-rescue.pod:206
23849 #: ../rescue/virt-rescue.pod:208
23850 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23854 #: ../rescue/virt-rescue.pod:210
23856 #| msgid "B<--quiet>"
23857 msgid "B<--suggest>"
23858 msgstr "B<--quiet>"
23861 #: ../rescue/virt-rescue.pod:212
23863 "Inspect the disk image and suggest what mount commands should be used to "
23864 "mount the disks. You should use the I<--suggest> option in a second "
23865 "terminal, then paste the commands into another virt-rescue."
23869 #: ../rescue/virt-rescue.pod:216
23871 "This option implies I<--ro> and is safe to use even if the guest is up or if "
23872 "another virt-rescue is running."
23876 #: ../rescue/virt-rescue.pod:235
23878 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23879 "are done read-write."
23883 #: ../rescue/virt-rescue.pod:248
23884 msgid "Previous versions of virt-rescue allowed you to write either:"
23888 #: ../rescue/virt-rescue.pod:250
23891 " virt-rescue disk.img [disk.img ...]\n"
23896 #: ../rescue/virt-rescue.pod:254
23899 " virt-rescue guestname\n"
23904 #: ../rescue/virt-rescue.pod:262
23909 #: ../rescue/virt-rescue.pod:264
23911 "Adding the I<--network> option enables QEMU user networking in the rescue "
23912 "appliance. There are some differences between user networking and ordinary "
23917 #: ../rescue/virt-rescue.pod:270
23918 msgid "ping does not work"
23922 #: ../rescue/virt-rescue.pod:272
23924 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23925 "send the ping packets, and because virt-rescue must be able to run as non-"
23926 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
23927 "The ping command will appear to resolve addresses but will not be able to "
23928 "send or receive any packets. This does not mean that the network is not "
23933 #: ../rescue/virt-rescue.pod:279
23934 msgid "cannot receive connections"
23938 #: ../rescue/virt-rescue.pod:281
23939 msgid "QEMU user networking cannot receive incoming connections."
23943 #: ../rescue/virt-rescue.pod:283
23944 msgid "making TCP connections"
23948 #: ../rescue/virt-rescue.pod:285
23950 "The virt-rescue appliance needs to be small and so does not include many "
23951 "network tools. In particular there is no L<telnet(1)> command. You can "
23952 "make TCP connections from the shell using the magical C</dev/tcp/"
23953 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23957 #: ../rescue/virt-rescue.pod:290
23960 " exec 3<>/dev/tcp/redhat.com/80\n"
23961 " echo \"GET /\" >&3\n"
23967 #: ../rescue/virt-rescue.pod:294
23968 msgid "See L<bash(1)> for more details."
23972 #: ../rescue/virt-rescue.pod:300
23974 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
23975 "ENVIRONMENT VARIABLES> for the complete list."
23979 #: ../rescue/virt-rescue.pod:327
23982 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
23983 #| "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
23985 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
23986 "filesystems(1)>, L<http://libguestfs.org/>."
23988 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
23989 "tar-out(1)>, L<http://libguestfs.org/>."
23992 #: ../resize/virt-resize.pod:5
23993 msgid "virt-resize - Resize a virtual machine disk"
23997 #: ../resize/virt-resize.pod:9
24000 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24001 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24002 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24007 #: ../resize/virt-resize.pod:15
24009 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24010 "larger or smaller overall, and resizing or deleting any partitions contained "
24015 #: ../resize/virt-resize.pod:19
24017 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
24018 "not> be used on live virtual machines - for consistent results, shut the "
24019 "virtual machine down before resizing it."
24023 #: ../resize/virt-resize.pod:23
24025 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
24026 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
24030 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
24031 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
24032 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
24037 #: ../resize/virt-resize.pod:33
24039 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24040 "fill the extra 5GB of space."
24044 #: ../resize/virt-resize.pod:36
24047 " virt-filesystems --long -h --all -a olddisk\n"
24052 #: ../resize/virt-resize.pod:38
24055 " truncate -r olddisk newdisk\n"
24056 " truncate -s +5G newdisk\n"
24061 #: ../resize/virt-resize.pod:41
24064 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24065 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24070 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
24071 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
24072 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
24077 #: ../resize/virt-resize.pod:46
24079 "As above, but make the /boot partition 200MB bigger, while giving the "
24080 "remaining space to /dev/sda2:"
24084 #: ../resize/virt-resize.pod:49
24087 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24088 " olddisk newdisk\n"
24093 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
24094 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
24095 #: ../src/guestfs.pod:1451
24100 #: ../resize/virt-resize.pod:54
24102 "As in the first example, but expand a logical volume as the final step. "
24103 "This is what you would typically use for Linux guests that use LVM:"
24107 #: ../resize/virt-resize.pod:58
24110 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
24111 " olddisk newdisk\n"
24116 #: ../resize/virt-resize.pod:61
24121 #: ../resize/virt-resize.pod:63
24123 "As in the first example, but the output format will be qcow2 instead of a "
24128 #: ../resize/virt-resize.pod:66
24131 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
24132 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
24137 #: ../resize/virt-resize.pod:71
24138 msgid "DETAILED USAGE"
24139 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
24142 #: ../resize/virt-resize.pod:73
24143 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24144 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
24147 #: ../resize/virt-resize.pod:77
24148 msgid "1. Shut down the virtual machine"
24152 #: ../resize/virt-resize.pod:79
24153 msgid "2. Locate input disk image"
24157 #: ../resize/virt-resize.pod:81
24159 "Locate the input disk image (ie. the file or device on the host containing "
24160 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
24161 "dumpxml> like this to find the disk image name:"
24165 #: ../resize/virt-resize.pod:85
24168 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24169 " Found 1 nodes:\n"
24171 " <source dev=\"/dev/vg/lv_guest\" />\n"
24176 #: ../resize/virt-resize.pod:90
24177 msgid "3. Look at current sizing"
24181 #: ../resize/virt-resize.pod:92
24182 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
24186 #: ../resize/virt-resize.pod:95
24189 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
24190 " Name Type Size Parent\n"
24191 " /dev/sda1 partition 101M /dev/sda\n"
24192 " /dev/sda2 partition 7.9G /dev/sda\n"
24193 " /dev/sda device 8.0G -\n"
24198 #: ../resize/virt-resize.pod:101
24200 "(This example is a virtual machine with an 8 GB disk which we would like to "
24201 "expand up to 10 GB)."
24205 #: ../resize/virt-resize.pod:104
24206 msgid "4. Create output disk"
24210 #: ../resize/virt-resize.pod:106
24212 "Virt-resize cannot do in-place disk modifications. You have to have space "
24213 "to store the resized output disk."
24217 #: ../resize/virt-resize.pod:109
24219 "To store the resized disk image in a file, create a file of a suitable size:"
24223 #: ../resize/virt-resize.pod:112
24226 " # rm -f outdisk\n"
24227 " # truncate -s 10G outdisk\n"
24232 #: ../resize/virt-resize.pod:115
24233 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24237 #: ../resize/virt-resize.pod:117
24240 " # lvcreate -L 10G -n lv_name vg_name\n"
24245 #: ../resize/virt-resize.pod:119
24246 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24250 #: ../resize/virt-resize.pod:121
24253 " # virsh pool-list\n"
24254 " # virsh vol-create-as poolname newvol 10G\n"
24259 #: ../resize/virt-resize.pod:124
24261 msgstr "5. Зміна розміру"
24264 #: ../resize/virt-resize.pod:126
24266 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24267 "file) and the output disk. The output disk is the one created in the "
24272 #: ../resize/virt-resize.pod:130
24275 " # virt-resize indisk outdisk\n"
24280 #: ../resize/virt-resize.pod:132
24282 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24283 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
24284 "larger, then an extra, empty partition is created at the end of the disk "
24285 "covering the extra space. If C<outdisk> is smaller, then it will give an "
24290 #: ../resize/virt-resize.pod:138
24292 "More realistically you'd want to expand existing partitions in the disk "
24293 "image by passing extra options (for the full list see the L</OPTIONS> "
24298 #: ../resize/virt-resize.pod:142
24300 "L</--expand> is the most useful option. It expands the named partition "
24301 "within the disk to fill any extra space:"
24305 #: ../resize/virt-resize.pod:145
24308 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
24313 #: ../resize/virt-resize.pod:147
24315 "(In this case, an extra partition is I<not> created at the end of the disk, "
24316 "because there will be no unused space)."
24320 #: ../resize/virt-resize.pod:150
24322 "L</--resize> is the other commonly used option. The following would "
24323 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
24324 "rest of the available space:"
24328 #: ../resize/virt-resize.pod:154
24331 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24332 " indisk outdisk\n"
24337 #: ../resize/virt-resize.pod:157
24339 "If the expanded partition in the image contains a filesystem or LVM PV, then "
24340 "if virt-resize knows how, it will resize the contents, the equivalent of "
24341 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
24342 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
24343 "filesystems, so you would have to online resize them after booting the guest."
24347 #: ../resize/virt-resize.pod:164
24348 msgid "Other options are covered below."
24352 #: ../resize/virt-resize.pod:166
24354 msgstr "6. Перевірка"
24357 #: ../resize/virt-resize.pod:168
24358 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24362 #: ../resize/virt-resize.pod:170
24363 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24367 #: ../resize/virt-resize.pod:172
24370 " # virsh edit guestname\n"
24375 #: ../resize/virt-resize.pod:174
24377 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
24378 "html#elementsDisks>"
24382 #: ../resize/virt-resize.pod:177
24383 msgid "Then start up the domain with the new, resized disk:"
24387 #: ../resize/virt-resize.pod:179
24390 " # virsh start guestname\n"
24395 #: ../resize/virt-resize.pod:181
24397 "and check that it still works. See also the L</NOTES> section below for "
24398 "additional information."
24402 #: ../resize/virt-resize.pod:184
24403 msgid "7. Resize LVs etc inside the guest"
24407 #: ../resize/virt-resize.pod:186
24408 msgid "(This can also be done offline using L<guestfish(1)>)"
24412 #: ../resize/virt-resize.pod:188
24414 "Once the guest has booted you should see the new space available, at least "
24415 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
24416 "may need to resize LVs inside PVs, and also resize filesystem types that "
24417 "virt-resize does not know how to expand."
24421 #: ../resize/virt-resize.pod:195
24422 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24426 #: ../resize/virt-resize.pod:197
24428 "Shrinking is somewhat more complex than expanding, and only an overview is "
24433 #: ../resize/virt-resize.pod:200
24435 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24436 "filesystems). The user has to shrink content before passing the disk image "
24437 "to virt-resize, and virt-resize will check that the content has been shrunk "
24442 #: ../resize/virt-resize.pod:205
24443 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24447 #: ../resize/virt-resize.pod:207
24449 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24450 "steps 3 and 4 above to allocate a new disk image."
24454 #: ../resize/virt-resize.pod:210
24456 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24460 #: ../resize/virt-resize.pod:213
24461 msgid "IGNORING OR DELETING PARTITIONS"
24465 #: ../resize/virt-resize.pod:215
24467 "virt-resize also gives a convenient way to ignore or delete partitions when "
24468 "copying from the input disk to the output disk. Ignoring a partition speeds "
24469 "up the copy where you don't care about the existing contents of a "
24470 "partition. Deleting a partition removes it completely, but note that it "
24471 "also renumbers any partitions after the one which is deleted, which can "
24472 "leave some guests unbootable."
24476 #: ../resize/virt-resize.pod:222
24477 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24481 #: ../resize/virt-resize.pod:224
24483 "If the input disk is in qcow2 format, then you may prefer that the output is "
24484 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
24485 "the fly. The output format is simply determined by the format of the empty "
24486 "output container that you provide. Thus to create qcow2 output, use:"
24490 #: ../resize/virt-resize.pod:230
24493 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24498 #: ../resize/virt-resize.pod:232
24499 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24503 #: ../resize/virt-resize.pod:234
24504 msgid "Similarly, to get non-sparse raw output use:"
24508 #: ../resize/virt-resize.pod:236
24511 " fallocate -l size outdisk\n"
24516 #: ../resize/virt-resize.pod:238
24518 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24519 "dev/zero of=outdisk bs=1M count=..>)"
24523 #: ../resize/virt-resize.pod:241
24524 msgid "LOGICAL PARTITIONS"
24528 #: ../resize/virt-resize.pod:243
24530 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24531 "tables) cannot be resized."
24535 #: ../resize/virt-resize.pod:246
24537 "To understand what is going on, firstly one of the four partitions C</dev/"
24538 "sda1-4> will have MBR partition type C<05> or C<0f>. This is called the "
24539 "B<extended partition>. Use L<virt-filesystems(1)> to see the MBR partition "
24544 #: ../resize/virt-resize.pod:251
24545 msgid "Logical partitions live inside the extended partition."
24549 #: ../resize/virt-resize.pod:253
24551 "The extended partition can be expanded, but not shrunk (unless you force it, "
24552 "which is not advisable). When the extended partition is copied across, all "
24553 "the logical partitions contained inside are copied over implicitly. Virt-"
24554 "resize does not look inside the extended partition, so it copies the logical "
24555 "partitions blindly."
24559 #: ../resize/virt-resize.pod:259
24561 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24562 "line. Doing so will give an error."
24566 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24567 msgid "Display help."
24571 #: ../resize/virt-resize.pod:270
24572 msgid "B<--align-first auto>"
24576 #: ../resize/virt-resize.pod:272
24577 msgid "B<--align-first never>"
24581 #: ../resize/virt-resize.pod:274
24582 msgid "B<--align-first always>"
24586 #: ../resize/virt-resize.pod:276
24588 "Align the first partition for improved performance (see also the I<--"
24589 "alignment> option)."
24593 #: ../resize/virt-resize.pod:279
24595 "The default is I<--align-first auto> which only aligns the first partition "
24596 "if it is safe to do so. That is, only when we know how to fix the "
24597 "bootloader automatically, and at the moment that can only be done for "
24602 #: ../resize/virt-resize.pod:284
24604 "I<--align-first never> means we never move the first partition. This is the "
24605 "safest option. Try this if the guest does not boot after resizing."
24609 #: ../resize/virt-resize.pod:288
24611 "I<--align-first always> means we always align the first partition (if it "
24612 "needs to be aligned). For some guests this will break the bootloader, "
24613 "making the guest unbootable."
24617 #: ../resize/virt-resize.pod:292
24618 msgid "B<--alignment N>"
24622 #: ../resize/virt-resize.pod:294
24624 "Set the alignment of partitions to C<N> sectors. The default in virt-resize "
24625 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24629 #: ../resize/virt-resize.pod:298
24631 "Assuming 512 byte sector size inside the guest, here are some suitable "
24636 #: ../resize/virt-resize.pod:303
24637 msgid "I<--alignment 1> (512 bytes)"
24641 #: ../resize/virt-resize.pod:305
24643 "The partitions would be packed together as closely as possible, but would be "
24644 "completely unaligned. In some cases this can cause very poor performance. "
24645 "See L<virt-alignment-scan(1)> for further details."
24649 #: ../resize/virt-resize.pod:309
24650 msgid "I<--alignment 8> (4K)"
24654 #: ../resize/virt-resize.pod:311
24656 "This would be the minimum acceptable alignment for reasonable performance on "
24661 #: ../resize/virt-resize.pod:314
24662 msgid "I<--alignment 128> (64K)"
24666 #: ../resize/virt-resize.pod:316
24668 "This alignment provides good performance when the host is using high end "
24673 #: ../resize/virt-resize.pod:319
24674 msgid "I<--alignment 2048> (1M)"
24678 #: ../resize/virt-resize.pod:321
24680 "This is the standard alignment used by all newly installed guests since "
24685 #: ../resize/virt-resize.pod:326
24690 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24691 #: ../tools/virt-win-reg.pl:120
24693 msgstr "B<--debug>"
24696 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24697 msgid "Enable debugging messages."
24701 #: ../resize/virt-resize.pod:332
24702 msgid "B<--delete part>"
24703 msgstr "B<--delete розділ>"
24706 #: ../resize/virt-resize.pod:334
24708 "Delete the named partition. It would be more accurate to describe this as "
24709 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24710 "the original disk image is left intact."
24714 #: ../resize/virt-resize.pod:338
24716 "Note that when you delete a partition, then anything contained in the "
24717 "partition is also deleted. Furthermore, this causes any partitions that "
24718 "come after to be I<renumbered>, which can easily make your guest unbootable."
24722 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
24723 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
24724 msgid "You can give this option multiple times."
24728 #: ../resize/virt-resize.pod:345
24729 msgid "B<--expand part>"
24730 msgstr "B<--expand розділ>"
24733 #: ../resize/virt-resize.pod:347
24735 "Expand the named partition so it uses up all extra space (space left over "
24736 "after any other resize changes that you request have been done)."
24740 #: ../resize/virt-resize.pod:350
24742 "If virt-resize knows how, it will expand the direct content of the "
24743 "partition. For example, if the partition is an LVM PV, it will expand the "
24744 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
24745 "content it doesn't know about alone."
24749 #: ../resize/virt-resize.pod:355
24750 msgid "Currently virt-resize can resize:"
24754 #: ../resize/virt-resize.pod:361
24755 msgid "ext2, ext3 and ext4 filesystems."
24759 #: ../resize/virt-resize.pod:365
24760 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24764 #: ../resize/virt-resize.pod:367
24766 "The filesystem must have been shut down consistently last time it was used. "
24767 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24768 "consistency check, so at the first boot after resizing Windows will check "
24773 #: ../resize/virt-resize.pod:374
24775 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
24776 "inside the PV, but see the I<--LV-expand> option. The user could also "
24777 "resize LVs as desired after boot."
24781 #: ../resize/virt-resize.pod:380
24782 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24786 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24787 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24791 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
24792 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24793 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24794 msgid "B<--format> raw"
24795 msgstr "B<--format> raw"
24798 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
24800 "Specify the format of the input disk image. If this flag is not given then "
24801 "it is auto-detected from the image itself."
24805 #: ../resize/virt-resize.pod:394
24807 "Note that this option I<does not> affect the output format. See L</QCOW2 "
24808 "AND NON-SPARSE RAW FORMATS>."
24812 #: ../resize/virt-resize.pod:397
24813 msgid "B<--ignore part>"
24814 msgstr "B<--ignore розділ>"
24817 #: ../resize/virt-resize.pod:399
24819 "Ignore the named partition. Effectively this means the partition is "
24820 "allocated on the destination disk, but the content is not copied across from "
24821 "the source disk. The content of the partition will be blank (all zero "
24826 #: ../resize/virt-resize.pod:406
24827 msgid "B<--LV-expand logvol>"
24828 msgstr "B<--LV-expand логічний_том>"
24831 #: ../resize/virt-resize.pod:408
24833 "This takes the logical volume and, as a final step, expands it to fill all "
24834 "the space available in its volume group. A typical usage, assuming a Linux "
24835 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24836 "lv_root> would be:"
24840 #: ../resize/virt-resize.pod:413
24843 " virt-resize indisk outdisk \\\n"
24844 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24849 #: ../resize/virt-resize.pod:416
24851 "This would first expand the partition (and PV), and then expand the root "
24852 "device to fill the extra space in the PV."
24856 #: ../resize/virt-resize.pod:419
24858 "The contents of the LV are also resized if virt-resize knows how to do "
24859 "that. You can stop virt-resize from trying to expand the content by using "
24860 "the option I<--no-expand-content>."
24864 #: ../resize/virt-resize.pod:423
24865 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24869 #: ../resize/virt-resize.pod:425
24871 "You can give this option multiple times, I<but> it doesn't make sense to do "
24872 "this unless the logical volumes you specify are all in different volume "
24877 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
24878 msgid "B<--machine-readable>"
24882 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
24884 "This option is used to make the output more machine friendly when being "
24885 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
24889 #: ../resize/virt-resize.pod:437
24890 msgid "B<--dryrun>"
24891 msgstr "B<--dryrun>"
24894 #: ../resize/virt-resize.pod:439
24895 msgid "Print a summary of what would be done, but don't do anything."
24899 #: ../resize/virt-resize.pod:441
24900 msgid "B<--no-copy-boot-loader>"
24901 msgstr "B<--no-copy-boot-loader>"
24904 #: ../resize/virt-resize.pod:443
24906 "By default, virt-resize copies over some sectors at the start of the disk "
24907 "(up to the beginning of the first partition). Commonly these sectors "
24908 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24909 "in order for the guest to boot correctly."
24913 #: ../resize/virt-resize.pod:448
24915 "If you specify this flag, then this initial copy is not done. You may need "
24916 "to reinstall the boot loader in this case."
24920 #: ../resize/virt-resize.pod:451
24921 msgid "B<--no-extra-partition>"
24922 msgstr "B<--no-extra-partition>"
24925 #: ../resize/virt-resize.pod:453
24927 "By default, virt-resize creates an extra partition if there is any extra, "
24928 "unused space after all resizing has happened. Use this option to prevent "
24929 "the extra partition from being created. If you do this then the extra space "
24930 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24931 "tool in the guest."
24935 #: ../resize/virt-resize.pod:459
24937 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24942 #: ../resize/virt-resize.pod:462
24943 msgid "B<--no-expand-content>"
24944 msgstr "B<--no-expand-content>"
24947 #: ../resize/virt-resize.pod:464
24949 "By default, virt-resize will try to expand the direct contents of "
24950 "partitions, if it knows how (see I<--expand> option above)."
24954 #: ../resize/virt-resize.pod:467
24956 "If you give the I<--no-expand-content> option then virt-resize will not "
24961 #: ../resize/virt-resize.pod:470
24962 msgid "B<--ntfsresize-force>"
24963 msgstr "B<--ntfsresize-force>"
24966 #: ../resize/virt-resize.pod:472
24968 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24969 "the NTFS disk is marked as needing a consistency check. You have to use "
24970 "this option if you want to resize a Windows guest multiple times without "
24971 "booting into Windows between each resize."
24975 #: ../resize/virt-resize.pod:478
24976 msgid "B<--output-format> raw"
24977 msgstr "B<--output-format> raw"
24980 #: ../resize/virt-resize.pod:480
24982 "Specify the format of the output disk image. If this flag is not given then "
24983 "it is auto-detected from the image itself."
24987 #: ../resize/virt-resize.pod:486
24989 "Note that this option I<does not create> the output format. This option "
24990 "just tells libguestfs what it is so it doesn't try to guess it. You still "
24991 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
24992 "SPARSE RAW FORMATS>."
24996 #: ../resize/virt-resize.pod:495
24997 msgid "Don't print the summary."
25001 #: ../resize/virt-resize.pod:497
25002 msgid "B<--resize part=size>"
25003 msgstr "B<--resize розділ=розмір>"
25006 #: ../resize/virt-resize.pod:499
25008 "Resize the named partition (expanding or shrinking it) so that it has the "
25013 #: ../resize/virt-resize.pod:502
25015 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
25016 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
25017 "size; or as a relative number or percentage. For example:"
25021 #: ../resize/virt-resize.pod:508
25024 " --resize /dev/sda2=10G\n"
25029 #: ../resize/virt-resize.pod:510
25032 " --resize /dev/sda4=90%\n"
25037 #: ../resize/virt-resize.pod:512
25040 " --resize /dev/sda2=+1G\n"
25045 #: ../resize/virt-resize.pod:514
25048 " --resize /dev/sda2=-200M\n"
25053 #: ../resize/virt-resize.pod:516
25056 " --resize /dev/sda1=+128K\n"
25061 #: ../resize/virt-resize.pod:518
25064 " --resize /dev/sda1=+10%\n"
25069 #: ../resize/virt-resize.pod:520
25072 " --resize /dev/sda1=-10%\n"
25077 #: ../resize/virt-resize.pod:522
25079 "You can increase the size of any partition. Virt-resize will expand the "
25080 "direct content of the partition if it knows how (see I<--expand> below)."
25084 #: ../resize/virt-resize.pod:526
25086 "You can only I<decrease> the size of partitions that contain filesystems or "
25087 "PVs which have already been shrunk. Virt-resize will check this has been "
25088 "done before proceeding, or else will print an error (see also I<--resize-"
25093 #: ../resize/virt-resize.pod:533
25094 msgid "B<--resize-force part=size>"
25095 msgstr "B<--resize-force розділ=розмір>"
25098 #: ../resize/virt-resize.pod:535
25100 "This is the same as I<--resize> except that it will let you decrease the "
25101 "size of any partition. Generally this means you will lose any data which "
25102 "was at the end of the partition you shrink, but you may not care about that "
25103 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25104 "as a swap partition)."
25108 #: ../resize/virt-resize.pod:541
25109 msgid "See also the I<--ignore> option."
25113 #: ../resize/virt-resize.pod:543
25114 msgid "B<--shrink part>"
25115 msgstr "B<--shrink розділ>"
25118 #: ../resize/virt-resize.pod:545
25120 "Shrink the named partition until the overall disk image fits in the "
25121 "destination. The named partition B<must> contain a filesystem or PV which "
25122 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25123 "online tools). Virt-resize will check this and give an error if it has not "
25128 #: ../resize/virt-resize.pod:551
25130 "The amount by which the overall disk must be shrunk (after carrying out all "
25131 "other operations requested by the user) is called the \"deficit\". For "
25132 "example, a straight copy (assume no other operations) from a 5GB disk image "
25133 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
25134 "would give an error unless the user specified a partition to shrink and that "
25135 "partition had more than a gigabyte of free space."
25139 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
25140 msgid "MACHINE READABLE OUTPUT"
25144 #: ../resize/virt-resize.pod:571
25146 "The I<--machine-readable> option can be used to make the output more machine "
25147 "friendly, which is useful when calling virt-resize from other programs, GUIs "
25152 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
25153 msgid "There are two ways to use this option."
25157 #: ../resize/virt-resize.pod:577
25159 "Firstly use the option on its own to query the capabilities of the virt-"
25160 "resize binary. Typical output looks like this:"
25164 #: ../resize/virt-resize.pod:580
25167 " $ virt-resize --machine-readable\n"
25169 " ntfsresize-force\n"
25177 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
25179 "A list of features is printed, one per line, and the program exits with "
25184 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
25186 "Secondly use the option in conjunction with other options to make the "
25187 "regular program output more machine friendly."
25191 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
25192 msgid "At the moment this means:"
25196 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
25198 "Progress bar messages can be parsed from stdout by looking for this regular "
25203 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
25206 " ^[0-9]+/[0-9]+$\n"
25211 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
25213 "The calling program should treat messages sent to stdout (except for "
25214 "progress bar messages) as status messages. They can be logged and/or "
25215 "displayed to the user."
25219 #: ../resize/virt-resize.pod:612
25221 "The calling program should treat messages sent to stderr as error messages. "
25222 "In addition, virt-resize exits with a non-zero status code if there was a "
25227 #: ../resize/virt-resize.pod:618
25229 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
25230 "readable> option and will return an error."
25234 #: ../resize/virt-resize.pod:623
25235 msgid "\"Partition 1 does not end on cylinder boundary.\""
25239 #: ../resize/virt-resize.pod:625
25241 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
25242 "alignment> parameter). Usually this means the partitions will not be "
25243 "aligned to the ancient CHS geometry. However CHS geometry is meaningless "
25244 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
25245 "drives. Alignment of partitions to cylinders is not required by any modern "
25246 "operating system."
25250 #: ../resize/virt-resize.pod:632
25251 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25255 #: ../resize/virt-resize.pod:634
25257 "In Windows Vista and later versions, Microsoft switched to using a separate "
25258 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
25259 "and C</dev/sda2> is the main (C:) drive. Resizing the first (boot) "
25260 "partition causes the bootloader to fail with C<0xC0000225> error. Resizing "
25261 "the second partition (ie. C: drive) should work."
25265 #: ../resize/virt-resize.pod:641
25267 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25268 "NTFS partitions have been expanded. This is just a safety check and (unless "
25269 "it find errors) is nothing to worry about."
25273 #: ../resize/virt-resize.pod:645
25274 msgid "GUEST BOOT STUCK AT \"GRUB\""
25278 #: ../resize/virt-resize.pod:647
25280 "If a Linux guest does not boot after resizing, and the boot is stuck after "
25281 "printing C<GRUB> on the console, try reinstalling grub."
25285 #: ../resize/virt-resize.pod:650
25288 " guestfish -i -a newdisk\n"
25289 " ><fs> cat /boot/grub/device.map\n"
25290 " # check the contents of this file are sensible or\n"
25291 " # edit the file if necessary\n"
25292 " ><fs> grub-install / /dev/vda\n"
25298 #: ../resize/virt-resize.pod:657
25300 "For more flexible guest reconfiguration, including if you need to specify "
25301 "other parameters to grub-install, use L<virt-rescue(1)>."
25305 #: ../resize/virt-resize.pod:660
25306 msgid "ALTERNATIVE TOOLS"
25310 #: ../resize/virt-resize.pod:662
25312 "There are several proprietary tools for resizing partitions. We won't "
25313 "mention any here."
25317 #: ../resize/virt-resize.pod:665
25319 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25320 "operations on disk images. They can resize and move partitions, but I don't "
25321 "think they can do anything with the contents, and they certainly don't "
25326 #: ../resize/virt-resize.pod:670
25328 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25329 "but at a much lower level. You will probably end up hand-calculating sector "
25330 "offsets, which is something that virt-resize was designed to avoid. If you "
25331 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25336 #: ../resize/virt-resize.pod:690
25338 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
25339 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
25340 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
25341 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
25342 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
25346 #: ../ruby/examples/guestfs-ruby.pod:5
25347 msgid "guestfs-ruby - How to use libguestfs from Ruby"
25351 #: ../ruby/examples/guestfs-ruby.pod:9
25354 " require 'guestfs'\n"
25355 " g = Guestfs::Guestfs.new()\n"
25356 " g.add_drive_opts(\"disk.img\",\n"
25357 " :readonly => 1, :format => \"raw\")\n"
25363 #: ../ruby/examples/guestfs-ruby.pod:17
25365 "This manual page documents how to call libguestfs from the Ruby programming "
25366 "language. This page just documents the differences from the C API and gives "
25367 "some examples. If you are not familiar with using libguestfs, you also need "
25368 "to read L<guestfs(3)>."
25372 #: ../ruby/examples/guestfs-ruby.pod:24
25374 "Errors from libguestfs functions are mapped into the C<Error> exception. "
25375 "This has a single parameter which is the error message (a string)."
25379 #: ../ruby/examples/guestfs-ruby.pod:38
25381 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
25382 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
25383 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
25387 #: ../sparsify/virt-sparsify.pod:5
25388 msgid "virt-sparsify - Make a virtual machine disk sparse"
25392 #: ../sparsify/virt-sparsify.pod:9
25395 " virt-sparsify [--options] indisk outdisk\n"
25400 #: ../sparsify/virt-sparsify.pod:13
25402 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
25403 "image) sparse a.k.a. thin-provisioned. This means that free space within "
25404 "the disk image can be converted back to free space on the host."
25408 #: ../sparsify/virt-sparsify.pod:18
25410 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
25411 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
25415 #: ../sparsify/virt-sparsify.pod:21
25417 "Virt-sparsify can also convert between some disk formats, for example "
25418 "converting a raw disk image to a thin-provisioned qcow2 image."
25422 #: ../sparsify/virt-sparsify.pod:24
25424 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25425 "machines. If a virtual machine has more than one attached disk, you must "
25426 "sparsify each one separately."
25430 #: ../sparsify/virt-sparsify.pod:28
25431 msgid "IMPORTANT LIMITATIONS"
25435 #: ../sparsify/virt-sparsify.pod:34
25437 "Virt-sparsify does not do in-place modifications. It copies from a source "
25438 "image to a destination image, leaving the source unchanged. I<Check that "
25439 "the sparsification was successful before deleting the source image>."
25443 #: ../sparsify/virt-sparsify.pod:41
25444 msgid "The virtual machine I<must be shut down> before using this tool."
25448 #: ../sparsify/virt-sparsify.pod:45
25450 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25451 "(1 temporary copy + 1 destination image). This is in the worst case and "
25452 "usually much less space is required."
25456 #: ../sparsify/virt-sparsify.pod:51
25458 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
25462 #: ../sparsify/virt-sparsify.pod:56
25463 msgid "Virt-sparsify cannot handle encrypted disks."
25467 #: ../sparsify/virt-sparsify.pod:60
25469 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
25470 "this space is often used for critical items like bootloaders so it's not "
25475 #: ../sparsify/virt-sparsify.pod:66
25477 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
25478 "to do this unless we can be sure there is no hibernation data, so at the "
25479 "moment swap partitions are ignored."
25483 #: ../sparsify/virt-sparsify.pod:72
25485 "You may also want to read the manual pages for the associated tools L<virt-"
25486 "filesystems(1)> and L<virt-df(1)> before starting."
25490 #: ../sparsify/virt-sparsify.pod:77
25491 msgid "Typical usage is:"
25495 #: ../sparsify/virt-sparsify.pod:79
25498 " virt-sparsify indisk outdisk\n"
25503 #: ../sparsify/virt-sparsify.pod:81
25505 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
25506 "is created, or overwritten if it already exists. The format of the input "
25507 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25511 #: ../sparsify/virt-sparsify.pod:86
25512 msgid "To convert between formats, use the I<--convert> option:"
25516 #: ../sparsify/virt-sparsify.pod:88
25519 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25524 #: ../sparsify/virt-sparsify.pod:90
25526 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25527 "can find within the source disk image. You can get it to ignore (don't zero "
25528 "free space on) certain filesystems by doing:"
25532 #: ../sparsify/virt-sparsify.pod:94
25535 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25540 #: ../sparsify/virt-sparsify.pod:96
25542 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25546 #: ../sparsify/virt-sparsify.pod:107
25547 msgid "B<--convert> raw"
25551 #: ../sparsify/virt-sparsify.pod:109
25552 msgid "B<--convert> qcow2"
25556 #: ../sparsify/virt-sparsify.pod:111
25557 msgid "B<--convert> [other formats]"
25561 #: ../sparsify/virt-sparsify.pod:113
25563 "Use C<output-format> as the format for the destination image. If this is "
25564 "not specified, then the input format is used."
25568 #: ../sparsify/virt-sparsify.pod:116
25569 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
25573 #: ../sparsify/virt-sparsify.pod:118
25575 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25576 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
25580 #: ../sparsify/virt-sparsify.pod:122
25582 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25583 "sparsify doesn't need to try to guess the input format."
25587 #: ../sparsify/virt-sparsify.pod:127
25588 msgid "B<--format> qcow2"
25592 #: ../sparsify/virt-sparsify.pod:135
25593 msgid "B<--ignore> filesystem"
25597 #: ../sparsify/virt-sparsify.pod:137
25598 msgid "B<--ignore> volgroup"
25602 #: ../sparsify/virt-sparsify.pod:139
25604 "Ignore the named filesystem. Free space on the filesystem will not be "
25605 "zeroed, but existing blocks of zeroes will still be sparsified."
25609 #: ../sparsify/virt-sparsify.pod:142
25611 "In the second form, this ignores the named volume group. Use the volume "
25612 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25616 #: ../sparsify/virt-sparsify.pod:157
25617 msgid "This disables progress bars and other unnecessary output."
25621 #: ../sparsify/virt-sparsify.pod:179
25623 "The I<--machine-readable> option can be used to make the output more machine "
25624 "friendly, which is useful when calling virt-sparsify from other programs, "
25629 #: ../sparsify/virt-sparsify.pod:185
25631 "Firstly use the option on its own to query the capabilities of the virt-"
25632 "sparsify binary. Typical output looks like this:"
25636 #: ../sparsify/virt-sparsify.pod:188
25639 " $ virt-sparsify --machine-readable\n"
25647 #: ../sparsify/virt-sparsify.pod:218
25649 "The calling program should treat messages sent to stderr as error messages. "
25650 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25655 #: ../sparsify/virt-sparsify.pod:224
25657 "All versions of virt-sparsify have supported the I<--machine-readable> "
25662 #: ../sparsify/virt-sparsify.pod:238
25664 "Location of the temporary directory used for the potentially large temporary "
25669 #: ../sparsify/virt-sparsify.pod:241
25671 "You should ensure there is enough free space in the worst case for a full "
25672 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25673 "to another directory that has enough space."
25677 #: ../sparsify/virt-sparsify.pod:245
25678 msgid "This defaults to C</tmp>."
25682 #: ../sparsify/virt-sparsify.pod:249
25684 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25688 #: ../sparsify/virt-sparsify.pod:253
25690 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25691 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25692 "(1)>, L<http://libguestfs.org/>."
25696 #: ../src/guestfs-actions.pod:1
25697 msgid "guestfs_add_cdrom"
25701 #: ../src/guestfs-actions.pod:3
25705 " guestfs_add_cdrom (guestfs_h *g,\n"
25706 " const char *filename);\n"
25711 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
25712 #: ../src/guestfs-actions.pod:323
25714 "I<This function is deprecated.> In new code, use the L</"
25715 "guestfs_add_drive_opts> call instead."
25719 #: ../src/guestfs-actions.pod:24
25721 "This call checks for the existence of C<filename>. This stops you from "
25722 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25723 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
25728 #: ../src/guestfs-actions.pod:31
25730 "If you just want to add an ISO file (often you use this as an efficient way "
25731 "to transfer large files into the guest), then you should probably use "
25732 "C<guestfs_add_drive_ro> instead."
25736 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
25737 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
25738 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
25739 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
25740 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
25741 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
25742 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
25743 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
25744 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
25745 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
25746 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
25747 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
25748 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
25749 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
25750 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
25751 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
25752 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
25753 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
25754 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
25755 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
25756 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
25757 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
25758 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
25759 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
25760 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
25761 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
25762 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4328
25763 #: ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4355
25764 #: ../src/guestfs-actions.pod:4369 ../src/guestfs-actions.pod:4384
25765 #: ../src/guestfs-actions.pod:4420 ../src/guestfs-actions.pod:4492
25766 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4529
25767 #: ../src/guestfs-actions.pod:4549 ../src/guestfs-actions.pod:4569
25768 #: ../src/guestfs-actions.pod:4604 ../src/guestfs-actions.pod:4623
25769 #: ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4677
25770 #: ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4722
25771 #: ../src/guestfs-actions.pod:4738 ../src/guestfs-actions.pod:4751
25772 #: ../src/guestfs-actions.pod:4766 ../src/guestfs-actions.pod:4783
25773 #: ../src/guestfs-actions.pod:4941 ../src/guestfs-actions.pod:5014
25774 #: ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5047
25775 #: ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:5116
25776 #: ../src/guestfs-actions.pod:5134 ../src/guestfs-actions.pod:5150
25777 #: ../src/guestfs-actions.pod:5164 ../src/guestfs-actions.pod:5178
25778 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5210
25779 #: ../src/guestfs-actions.pod:5237 ../src/guestfs-actions.pod:5300
25780 #: ../src/guestfs-actions.pod:5373 ../src/guestfs-actions.pod:5404
25781 #: ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5442
25782 #: ../src/guestfs-actions.pod:5454 ../src/guestfs-actions.pod:5471
25783 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5499
25784 #: ../src/guestfs-actions.pod:5514 ../src/guestfs-actions.pod:5546
25785 #: ../src/guestfs-actions.pod:5572 ../src/guestfs-actions.pod:5611
25786 #: ../src/guestfs-actions.pod:5631 ../src/guestfs-actions.pod:5645
25787 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5711
25788 #: ../src/guestfs-actions.pod:5764 ../src/guestfs-actions.pod:5811
25789 #: ../src/guestfs-actions.pod:5854 ../src/guestfs-actions.pod:5882
25790 #: ../src/guestfs-actions.pod:5899 ../src/guestfs-actions.pod:5917
25791 #: ../src/guestfs-actions.pod:6054 ../src/guestfs-actions.pod:6111
25792 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6151
25793 #: ../src/guestfs-actions.pod:6203 ../src/guestfs-actions.pod:6269
25794 #: ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:6299
25795 #: ../src/guestfs-actions.pod:6313 ../src/guestfs-actions.pod:6602
25796 #: ../src/guestfs-actions.pod:6621 ../src/guestfs-actions.pod:6640
25797 #: ../src/guestfs-actions.pod:6654 ../src/guestfs-actions.pod:6666
25798 #: ../src/guestfs-actions.pod:6680 ../src/guestfs-actions.pod:6692
25799 #: ../src/guestfs-actions.pod:6706 ../src/guestfs-actions.pod:6722
25800 #: ../src/guestfs-actions.pod:6740 ../src/guestfs-actions.pod:6759
25801 #: ../src/guestfs-actions.pod:6778 ../src/guestfs-actions.pod:6808
25802 #: ../src/guestfs-actions.pod:6826 ../src/guestfs-actions.pod:6849
25803 #: ../src/guestfs-actions.pod:6867 ../src/guestfs-actions.pod:6886
25804 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6926
25805 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6962
25806 #: ../src/guestfs-actions.pod:6990 ../src/guestfs-actions.pod:7014
25807 #: ../src/guestfs-actions.pod:7033 ../src/guestfs-actions.pod:7049
25808 #: ../src/guestfs-actions.pod:7073 ../src/guestfs-actions.pod:7092
25809 #: ../src/guestfs-actions.pod:7107 ../src/guestfs-actions.pod:7126
25810 #: ../src/guestfs-actions.pod:7170 ../src/guestfs-actions.pod:7197
25811 #: ../src/guestfs-actions.pod:7227 ../src/guestfs-actions.pod:7339
25812 #: ../src/guestfs-actions.pod:7460 ../src/guestfs-actions.pod:7472
25813 #: ../src/guestfs-actions.pod:7485 ../src/guestfs-actions.pod:7498
25814 #: ../src/guestfs-actions.pod:7520 ../src/guestfs-actions.pod:7533
25815 #: ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7559
25816 #: ../src/guestfs-actions.pod:7574 ../src/guestfs-actions.pod:7633
25817 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7666
25818 #: ../src/guestfs-actions.pod:7682 ../src/guestfs-actions.pod:7699
25819 #: ../src/guestfs-actions.pod:7712 ../src/guestfs-actions.pod:7732
25820 #: ../src/guestfs-actions.pod:7832 ../src/guestfs-actions.pod:7888
25821 #: ../src/guestfs-actions.pod:7902 ../src/guestfs-actions.pod:7943
25822 #: ../src/guestfs-actions.pod:7956 ../src/guestfs-actions.pod:7974
25823 #: ../src/guestfs-actions.pod:8008 ../src/guestfs-actions.pod:8044
25824 #: ../src/guestfs-actions.pod:8160 ../src/guestfs-actions.pod:8175
25825 #: ../src/guestfs-actions.pod:8189 ../src/guestfs-actions.pod:8244
25826 #: ../src/guestfs-actions.pod:8257 ../src/guestfs-actions.pod:8302
25827 #: ../src/guestfs-actions.pod:8342 ../src/guestfs-actions.pod:8398
25828 #: ../src/guestfs-actions.pod:8418 ../src/guestfs-actions.pod:8451
25829 #: ../src/guestfs-actions.pod:8515 ../src/guestfs-actions.pod:8538
25830 #: ../src/guestfs-actions.pod:8564
25831 msgid "This function returns 0 on success or -1 on error."
25835 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
25836 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
25837 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
25838 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
25839 #: ../src/guestfs-actions.pod:5548 ../src/guestfs-actions.pod:6828
25840 #: ../src/guestfs-actions.pod:6945 ../src/guestfs-actions.pod:7094
25841 #: ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7701
25842 #: ../src/guestfs-actions.pod:8344
25843 msgid "(Added in 0.3)"
25844 msgstr "(Додано у 0.3)"
25847 #: ../src/guestfs-actions.pod:41
25848 msgid "guestfs_add_domain"
25852 #: ../src/guestfs-actions.pod:43
25856 " guestfs_add_domain (guestfs_h *g,\n"
25857 " const char *dom,\n"
25863 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
25864 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
25865 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
25866 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
25867 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
25868 #: ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:5249
25869 #: ../src/guestfs-actions.pod:5558 ../src/guestfs-actions.pod:5775
25870 #: ../src/guestfs-actions.pod:7743
25872 "You may supply a list of optional arguments to this call. Use zero or more "
25873 "of the following pairs of parameters, and terminate the list with C<-1> on "
25874 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
25878 #: ../src/guestfs-actions.pod:53
25881 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25882 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25883 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25884 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25885 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25886 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25891 #: ../src/guestfs-actions.pod:60
25893 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
25894 "It works by connecting to libvirt, requesting the domain and domain XML from "
25895 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25900 #: ../src/guestfs-actions.pod:141
25902 "The other optional parameters are passed directly through to "
25903 "C<guestfs_add_drive_opts>."
25907 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
25908 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
25909 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
25910 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
25911 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
25912 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
25913 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
25914 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
25915 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
25916 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:5951
25917 #: ../src/guestfs-actions.pod:6189 ../src/guestfs-actions.pod:6383
25918 #: ../src/guestfs-actions.pod:6409 ../src/guestfs-actions.pod:7929
25919 #: ../src/guestfs-actions.pod:8355 ../src/guestfs-actions.pod:8368
25920 #: ../src/guestfs-actions.pod:8381
25921 msgid "On error this function returns -1."
25925 #: ../src/guestfs-actions.pod:146
25926 msgid "(Added in 1.7.4)"
25927 msgstr "(Додано у 1.7.4)"
25930 #: ../src/guestfs-actions.pod:148
25931 msgid "guestfs_add_domain_va"
25935 #: ../src/guestfs-actions.pod:150
25939 " guestfs_add_domain_va (guestfs_h *g,\n"
25940 " const char *dom,\n"
25941 " va_list args);\n"
25946 #: ../src/guestfs-actions.pod:155
25947 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25951 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
25952 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
25953 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
25954 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
25955 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
25956 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
25957 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
25958 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
25959 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
25960 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
25961 #: ../src/guestfs-actions.pod:4953 ../src/guestfs-actions.pod:4965
25962 #: ../src/guestfs-actions.pod:5314 ../src/guestfs-actions.pod:5326
25963 #: ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:5598
25964 #: ../src/guestfs-actions.pod:5824 ../src/guestfs-actions.pod:5835
25965 #: ../src/guestfs-actions.pod:7843 ../src/guestfs-actions.pod:7854
25966 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25967 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25970 #: ../src/guestfs-actions.pod:159
25971 msgid "guestfs_add_domain_argv"
25972 msgstr "guestfs_add_domain_argv"
25975 #: ../src/guestfs-actions.pod:161
25979 " guestfs_add_domain_argv (guestfs_h *g,\n"
25980 " const char *dom,\n"
25981 " const struct guestfs_add_domain_argv *optargs);\n"
25986 #: ../src/guestfs-actions.pod:166
25987 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25991 #: ../src/guestfs-actions.pod:170
25992 msgid "guestfs_add_drive"
25996 #: ../src/guestfs-actions.pod:172
26000 " guestfs_add_drive (guestfs_h *g,\n"
26001 " const char *filename);\n"
26006 #: ../src/guestfs-actions.pod:176
26008 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
26009 "optional parameters, so the disk is added writable, with the format being "
26010 "detected automatically."
26014 #: ../src/guestfs-actions.pod:180
26016 "Automatic detection of the format opens you up to a potential security hole "
26017 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
26018 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
26019 "you should think about replacing calls to this function with calls to "
26020 "C<guestfs_add_drive_opts>, and specifying the format."
26024 #: ../src/guestfs-actions.pod:191
26025 msgid "guestfs_add_drive_opts"
26029 #: ../src/guestfs-actions.pod:193
26033 " guestfs_add_drive_opts (guestfs_h *g,\n"
26034 " const char *filename,\n"
26040 #: ../src/guestfs-actions.pod:203
26043 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
26044 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
26045 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
26046 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
26051 #: ../src/guestfs-actions.pod:233
26053 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
26054 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
26055 "Possible formats include C<raw> and C<qcow2>."
26059 #: ../src/guestfs-actions.pod:244
26061 "This rarely-used option lets you emulate the behaviour of the deprecated "
26062 "C<guestfs_add_drive_with_if> call (q.v.)"
26066 #: ../src/guestfs-actions.pod:256
26067 msgid "(Added in 1.5.23)"
26068 msgstr "(Додано у 1.5.23)"
26071 #: ../src/guestfs-actions.pod:258
26072 msgid "guestfs_add_drive_opts_va"
26076 #: ../src/guestfs-actions.pod:260
26080 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
26081 " const char *filename,\n"
26082 " va_list args);\n"
26087 #: ../src/guestfs-actions.pod:265
26088 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
26092 #: ../src/guestfs-actions.pod:269
26093 msgid "guestfs_add_drive_opts_argv"
26097 #: ../src/guestfs-actions.pod:271
26101 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
26102 " const char *filename,\n"
26103 " const struct guestfs_add_drive_opts_argv *optargs);\n"
26108 #: ../src/guestfs-actions.pod:276
26109 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
26113 #: ../src/guestfs-actions.pod:280
26114 msgid "guestfs_add_drive_ro"
26118 #: ../src/guestfs-actions.pod:282
26122 " guestfs_add_drive_ro (guestfs_h *g,\n"
26123 " const char *filename);\n"
26128 #: ../src/guestfs-actions.pod:286
26130 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
26131 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
26132 "disk is added read-only, with the format being detected automatically."
26136 #: ../src/guestfs-actions.pod:293
26137 msgid "(Added in 1.0.38)"
26138 msgstr "(Додано у 1.0.38)"
26141 #: ../src/guestfs-actions.pod:295
26142 msgid "guestfs_add_drive_ro_with_if"
26146 #: ../src/guestfs-actions.pod:297
26150 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
26151 " const char *filename,\n"
26152 " const char *iface);\n"
26157 #: ../src/guestfs-actions.pod:309
26159 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
26160 "QEMU interface emulation to use at run time."
26164 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
26165 #: ../src/guestfs-actions.pod:2881
26166 msgid "(Added in 1.0.84)"
26167 msgstr "(Додано у 1.0.84)"
26170 #: ../src/guestfs-actions.pod:316
26171 msgid "guestfs_add_drive_with_if"
26175 #: ../src/guestfs-actions.pod:318
26179 " guestfs_add_drive_with_if (guestfs_h *g,\n"
26180 " const char *filename,\n"
26181 " const char *iface);\n"
26186 #: ../src/guestfs-actions.pod:330
26188 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
26189 "QEMU interface emulation to use at run time."
26193 #: ../src/guestfs-actions.pod:337
26194 msgid "guestfs_aug_clear"
26198 #: ../src/guestfs-actions.pod:339
26202 " guestfs_aug_clear (guestfs_h *g,\n"
26203 " const char *augpath);\n"
26208 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
26209 msgid "(Added in 1.3.4)"
26210 msgstr "(Додано у 1.3.4)"
26213 #: ../src/guestfs-actions.pod:350
26214 msgid "guestfs_aug_close"
26218 #: ../src/guestfs-actions.pod:352
26222 " guestfs_aug_close (guestfs_h *g);\n"
26227 #: ../src/guestfs-actions.pod:355
26229 "Close the current Augeas handle and free up any resources used by it. After "
26230 "calling this, you have to call C<guestfs_aug_init> again before you can use "
26231 "any other Augeas functions."
26235 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
26236 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
26237 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
26238 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
26239 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
26240 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
26241 #: ../src/guestfs-actions.pod:6460
26242 msgid "(Added in 0.7)"
26243 msgstr "(Додано у 0.7)"
26246 #: ../src/guestfs-actions.pod:364
26247 msgid "guestfs_aug_defnode"
26251 #: ../src/guestfs-actions.pod:366
26254 " struct guestfs_int_bool *\n"
26255 " guestfs_aug_defnode (guestfs_h *g,\n"
26256 " const char *name,\n"
26257 " const char *expr,\n"
26258 " const char *val);\n"
26263 #: ../src/guestfs-actions.pod:375
26265 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
26266 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
26267 "containing that single node."
26271 #: ../src/guestfs-actions.pod:383
26273 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
26274 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
26278 #: ../src/guestfs-actions.pod:389
26279 msgid "guestfs_aug_defvar"
26283 #: ../src/guestfs-actions.pod:391
26287 " guestfs_aug_defvar (guestfs_h *g,\n"
26288 " const char *name,\n"
26289 " const char *expr);\n"
26294 #: ../src/guestfs-actions.pod:407
26295 msgid "guestfs_aug_get"
26296 msgstr "guestfs_aug_get"
26299 #: ../src/guestfs-actions.pod:409
26303 " guestfs_aug_get (guestfs_h *g,\n"
26304 " const char *augpath);\n"
26308 " guestfs_aug_get (guestfs_h *g,\n"
26309 " const char *augpath);\n"
26313 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
26314 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
26315 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
26316 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
26317 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
26318 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
26319 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
26320 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
26321 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
26322 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
26323 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
26324 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
26325 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
26326 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
26327 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
26328 #: ../src/guestfs-actions.pod:4314 ../src/guestfs-actions.pod:4661
26329 #: ../src/guestfs-actions.pod:4828 ../src/guestfs-actions.pod:5076
26330 #: ../src/guestfs-actions.pod:5969 ../src/guestfs-actions.pod:6170
26331 #: ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6536
26332 #: ../src/guestfs-actions.pod:6585 ../src/guestfs-actions.pod:7245
26333 #: ../src/guestfs-actions.pod:7261 ../src/guestfs-actions.pod:7285
26334 #: ../src/guestfs-actions.pod:7309 ../src/guestfs-actions.pod:8103
26335 #: ../src/guestfs-actions.pod:8122 ../src/guestfs-actions.pod:8140
26336 #: ../src/guestfs-actions.pod:8314 ../src/guestfs-actions.pod:8628
26338 "This function returns a string, or NULL on error. I<The caller must free "
26339 "the returned string after use>."
26343 #: ../src/guestfs-actions.pod:421
26344 msgid "guestfs_aug_init"
26345 msgstr "guestfs_aug_init"
26348 #: ../src/guestfs-actions.pod:423
26352 " guestfs_aug_init (guestfs_h *g,\n"
26353 " const char *root,\n"
26358 " guestfs_aug_init (guestfs_h *g,\n"
26359 " const char *root,\n"
26364 #: ../src/guestfs-actions.pod:432
26365 msgid "You must call this before using any other C<guestfs_aug_*> commands."
26369 #: ../src/guestfs-actions.pod:457
26371 "This option is only useful when debugging Augeas lenses. Use of this option "
26372 "may require additional memory for the libguestfs appliance. You may need to "
26373 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
26374 "C<guestfs_set_memsize>."
26378 #: ../src/guestfs-actions.pod:472
26379 msgid "Do not load the tree in C<guestfs_aug_init>."
26383 #: ../src/guestfs-actions.pod:476
26384 msgid "To close the handle, you can call C<guestfs_aug_close>."
26388 #: ../src/guestfs-actions.pod:484
26389 msgid "guestfs_aug_insert"
26390 msgstr "guestfs_aug_insert"
26393 #: ../src/guestfs-actions.pod:486
26397 " guestfs_aug_insert (guestfs_h *g,\n"
26398 " const char *augpath,\n"
26399 " const char *label,\n"
26404 " guestfs_aug_insert (guestfs_h *g,\n"
26405 " const char *augpath,\n"
26406 " const char *label,\n"
26411 #: ../src/guestfs-actions.pod:504
26412 msgid "guestfs_aug_load"
26413 msgstr "guestfs_aug_load"
26416 #: ../src/guestfs-actions.pod:506
26420 " guestfs_aug_load (guestfs_h *g);\n"
26424 " guestfs_aug_load (guestfs_h *g);\n"
26428 #: ../src/guestfs-actions.pod:518
26429 msgid "guestfs_aug_ls"
26430 msgstr "guestfs_aug_ls"
26433 #: ../src/guestfs-actions.pod:520
26437 " guestfs_aug_ls (guestfs_h *g,\n"
26438 " const char *augpath);\n"
26442 " guestfs_aug_ls (guestfs_h *g,\n"
26443 " const char *augpath);\n"
26447 #: ../src/guestfs-actions.pod:524
26449 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
26450 "sorting the resulting nodes into alphabetical order."
26454 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
26455 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
26456 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
26457 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
26458 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
26459 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
26460 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
26461 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
26462 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
26463 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
26464 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
26465 #: ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4296
26466 #: ../src/guestfs-actions.pod:4401 ../src/guestfs-actions.pod:4800
26467 #: ../src/guestfs-actions.pod:5695 ../src/guestfs-actions.pod:6330
26468 #: ../src/guestfs-actions.pod:6456 ../src/guestfs-actions.pod:6570
26469 #: ../src/guestfs-actions.pod:7325 ../src/guestfs-actions.pod:7386
26470 #: ../src/guestfs-actions.pod:7441 ../src/guestfs-actions.pod:7587
26471 #: ../src/guestfs-actions.pod:7611 ../src/guestfs-actions.pod:8207
26472 #: ../src/guestfs-actions.pod:8227 ../src/guestfs-actions.pod:8274
26473 #: ../src/guestfs-actions.pod:8468 ../src/guestfs-actions.pod:8487
26474 #: ../src/guestfs-actions.pod:8578 ../src/guestfs-actions.pod:8597
26475 #: ../src/guestfs-actions.pod:8643 ../src/guestfs-actions.pod:8662
26477 "This function returns a NULL-terminated array of strings (like L<environ(3)"
26478 ">), or NULL if there was an error. I<The caller must free the strings and "
26479 "the array after use>."
26483 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
26484 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
26485 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
26486 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:4691
26487 #: ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5049
26488 #: ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5699
26489 #: ../src/guestfs-actions.pod:6271 ../src/guestfs-actions.pod:6668
26490 #: ../src/guestfs-actions.pod:6682 ../src/guestfs-actions.pod:6694
26491 #: ../src/guestfs-actions.pod:7172 ../src/guestfs-actions.pod:7945
26492 #: ../src/guestfs-actions.pod:7958 ../src/guestfs-actions.pod:8191
26493 #: ../src/guestfs-actions.pod:8456
26494 msgid "(Added in 0.8)"
26495 msgstr "(Додано у 0.8)"
26498 #: ../src/guestfs-actions.pod:533
26499 msgid "guestfs_aug_match"
26500 msgstr "guestfs_aug_match"
26503 #: ../src/guestfs-actions.pod:535
26507 " guestfs_aug_match (guestfs_h *g,\n"
26508 " const char *augpath);\n"
26512 " guestfs_aug_match (guestfs_h *g,\n"
26513 " const char *augpath);\n"
26517 #: ../src/guestfs-actions.pod:549
26518 msgid "guestfs_aug_mv"
26519 msgstr "guestfs_aug_mv"
26522 #: ../src/guestfs-actions.pod:551
26526 " guestfs_aug_mv (guestfs_h *g,\n"
26527 " const char *src,\n"
26528 " const char *dest);\n"
26532 " guestfs_aug_mv (guestfs_h *g,\n"
26533 " const char *src,\n"
26534 " const char *dest);\n"
26538 #: ../src/guestfs-actions.pod:563
26539 msgid "guestfs_aug_rm"
26540 msgstr "guestfs_aug_rm"
26543 #: ../src/guestfs-actions.pod:565
26547 " guestfs_aug_rm (guestfs_h *g,\n"
26548 " const char *augpath);\n"
26552 " guestfs_aug_rm (guestfs_h *g,\n"
26553 " const char *augpath);\n"
26557 #: ../src/guestfs-actions.pod:577
26558 msgid "guestfs_aug_save"
26559 msgstr "guestfs_aug_save"
26562 #: ../src/guestfs-actions.pod:579
26566 " guestfs_aug_save (guestfs_h *g);\n"
26570 " guestfs_aug_save (guestfs_h *g);\n"
26574 #: ../src/guestfs-actions.pod:584
26576 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26581 #: ../src/guestfs-actions.pod:591
26582 msgid "guestfs_aug_set"
26583 msgstr "guestfs_aug_set"
26586 #: ../src/guestfs-actions.pod:593
26590 " guestfs_aug_set (guestfs_h *g,\n"
26591 " const char *augpath,\n"
26592 " const char *val);\n"
26596 " guestfs_aug_set (guestfs_h *g,\n"
26597 " const char *augpath,\n"
26598 " const char *val);\n"
26602 #: ../src/guestfs-actions.pod:600
26604 "In the Augeas API, it is possible to clear a node by setting the value to "
26605 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
26606 "this call. Instead you must use the C<guestfs_aug_clear> call."
26610 #: ../src/guestfs-actions.pod:609
26611 msgid "guestfs_available"
26612 msgstr "guestfs_available"
26615 #: ../src/guestfs-actions.pod:611
26619 " guestfs_available (guestfs_h *g,\n"
26620 " char *const *groups);\n"
26624 " guestfs_available (guestfs_h *g,\n"
26625 " char *const *groups);\n"
26629 #: ../src/guestfs-actions.pod:619
26631 "The libguestfs groups, and the functions that those groups correspond to, "
26632 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
26633 "runtime by calling C<guestfs_available_all_groups>."
26637 #: ../src/guestfs-actions.pod:643
26638 msgid "You must call C<guestfs_launch> before calling this function."
26642 #: ../src/guestfs-actions.pod:665
26644 "This call was added in version C<1.0.80>. In previous versions of "
26645 "libguestfs all you could do would be to speculatively execute a command to "
26646 "find out if the daemon implemented it. See also C<guestfs_version>."
26650 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
26651 msgid "(Added in 1.0.80)"
26652 msgstr "(Додано у 1.0.80)"
26655 #: ../src/guestfs-actions.pod:676
26656 msgid "guestfs_available_all_groups"
26657 msgstr "guestfs_available_all_groups"
26660 #: ../src/guestfs-actions.pod:678
26664 " guestfs_available_all_groups (guestfs_h *g);\n"
26668 " guestfs_available_all_groups (guestfs_h *g);\n"
26672 #: ../src/guestfs-actions.pod:681
26674 "This command returns a list of all optional groups that this daemon knows "
26675 "about. Note this returns both supported and unsupported groups. To find "
26676 "out which ones the daemon can actually support you have to call "
26677 "C<guestfs_available> on each member of the returned list."
26681 #: ../src/guestfs-actions.pod:687
26682 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26686 #: ../src/guestfs-actions.pod:693
26687 msgid "(Added in 1.3.15)"
26688 msgstr "(Додано у 1.3.15)"
26691 #: ../src/guestfs-actions.pod:695
26692 msgid "guestfs_base64_in"
26693 msgstr "guestfs_base64_in"
26696 #: ../src/guestfs-actions.pod:697
26700 " guestfs_base64_in (guestfs_h *g,\n"
26701 " const char *base64file,\n"
26702 " const char *filename);\n"
26706 " guestfs_base64_in (guestfs_h *g,\n"
26707 " const char *base64file,\n"
26708 " const char *filename);\n"
26712 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26713 msgid "(Added in 1.3.5)"
26714 msgstr "(Додано у 1.3.5)"
26717 #: ../src/guestfs-actions.pod:709
26718 msgid "guestfs_base64_out"
26719 msgstr "guestfs_base64_out"
26722 #: ../src/guestfs-actions.pod:711
26726 " guestfs_base64_out (guestfs_h *g,\n"
26727 " const char *filename,\n"
26728 " const char *base64file);\n"
26732 " guestfs_base64_out (guestfs_h *g,\n"
26733 " const char *filename,\n"
26734 " const char *base64file);\n"
26738 #: ../src/guestfs-actions.pod:723
26739 msgid "guestfs_blockdev_flushbufs"
26740 msgstr "guestfs_blockdev_flushbufs"
26743 #: ../src/guestfs-actions.pod:725
26747 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26748 " const char *device);\n"
26752 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26753 " const char *device);\n"
26757 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
26758 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
26759 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
26760 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
26761 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
26762 msgid "(Added in 0.9.3)"
26763 msgstr "(Додано у 0.9.3)"
26766 #: ../src/guestfs-actions.pod:738
26767 msgid "guestfs_blockdev_getbsz"
26768 msgstr "guestfs_blockdev_getbsz"
26771 #: ../src/guestfs-actions.pod:740
26775 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26776 " const char *device);\n"
26780 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26781 " const char *device);\n"
26785 #: ../src/guestfs-actions.pod:755
26786 msgid "guestfs_blockdev_getro"
26787 msgstr "guestfs_blockdev_getro"
26790 #: ../src/guestfs-actions.pod:757
26794 " guestfs_blockdev_getro (guestfs_h *g,\n"
26795 " const char *device);\n"
26799 " guestfs_blockdev_getro (guestfs_h *g,\n"
26800 " const char *device);\n"
26804 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
26805 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
26806 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
26807 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
26808 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
26809 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
26810 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
26811 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
26812 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
26813 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
26814 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
26815 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
26816 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
26817 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
26818 #: ../src/guestfs-actions.pod:5933
26819 msgid "This function returns a C truth value on success or -1 on error."
26823 #: ../src/guestfs-actions.pod:770
26824 msgid "guestfs_blockdev_getsize64"
26825 msgstr "guestfs_blockdev_getsize64"
26828 #: ../src/guestfs-actions.pod:772
26832 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26833 " const char *device);\n"
26837 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26838 " const char *device);\n"
26842 #: ../src/guestfs-actions.pod:778
26843 msgid "See also C<guestfs_blockdev_getsz>."
26847 #: ../src/guestfs-actions.pod:786
26848 msgid "guestfs_blockdev_getss"
26849 msgstr "guestfs_blockdev_getss"
26852 #: ../src/guestfs-actions.pod:788
26856 " guestfs_blockdev_getss (guestfs_h *g,\n"
26857 " const char *device);\n"
26861 " guestfs_blockdev_getss (guestfs_h *g,\n"
26862 " const char *device);\n"
26866 #: ../src/guestfs-actions.pod:795
26868 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26873 #: ../src/guestfs-actions.pod:804
26874 msgid "guestfs_blockdev_getsz"
26875 msgstr "guestfs_blockdev_getsz"
26878 #: ../src/guestfs-actions.pod:806
26882 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26883 " const char *device);\n"
26887 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26888 " const char *device);\n"
26892 #: ../src/guestfs-actions.pod:813
26894 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26895 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26899 #: ../src/guestfs-actions.pod:823
26900 msgid "guestfs_blockdev_rereadpt"
26901 msgstr "guestfs_blockdev_rereadpt"
26904 #: ../src/guestfs-actions.pod:825
26908 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26909 " const char *device);\n"
26913 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26914 " const char *device);\n"
26918 #: ../src/guestfs-actions.pod:837
26919 msgid "guestfs_blockdev_setbsz"
26920 msgstr "guestfs_blockdev_setbsz"
26923 #: ../src/guestfs-actions.pod:839
26927 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26928 " const char *device,\n"
26929 " int blocksize);\n"
26933 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26934 " const char *device,\n"
26935 " int blocksize);\n"
26939 #: ../src/guestfs-actions.pod:855
26940 msgid "guestfs_blockdev_setro"
26941 msgstr "guestfs_blockdev_setro"
26944 #: ../src/guestfs-actions.pod:857
26948 " guestfs_blockdev_setro (guestfs_h *g,\n"
26949 " const char *device);\n"
26953 " guestfs_blockdev_setro (guestfs_h *g,\n"
26954 " const char *device);\n"
26958 #: ../src/guestfs-actions.pod:869
26959 msgid "guestfs_blockdev_setrw"
26960 msgstr "guestfs_blockdev_setrw"
26963 #: ../src/guestfs-actions.pod:871
26967 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26968 " const char *device);\n"
26972 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26973 " const char *device);\n"
26977 #: ../src/guestfs-actions.pod:883
26978 msgid "guestfs_btrfs_filesystem_resize"
26979 msgstr "guestfs_btrfs_filesystem_resize"
26982 #: ../src/guestfs-actions.pod:885
26986 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26987 " const char *mountpoint,\n"
26992 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26993 " const char *mountpoint,\n"
26998 #: ../src/guestfs-actions.pod:895
27001 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27004 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27008 #: ../src/guestfs-actions.pod:918
27009 msgid "(Added in 1.11.17)"
27010 msgstr "(Додано у 1.11.17)"
27013 #: ../src/guestfs-actions.pod:920
27014 msgid "guestfs_btrfs_filesystem_resize_va"
27015 msgstr "guestfs_btrfs_filesystem_resize_va"
27018 #: ../src/guestfs-actions.pod:922
27022 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27023 " const char *mountpoint,\n"
27024 " va_list args);\n"
27028 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27029 " const char *mountpoint,\n"
27030 " va_list args);\n"
27034 #: ../src/guestfs-actions.pod:927
27035 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
27039 #: ../src/guestfs-actions.pod:931
27040 msgid "guestfs_btrfs_filesystem_resize_argv"
27041 msgstr "guestfs_btrfs_filesystem_resize_argv"
27044 #: ../src/guestfs-actions.pod:933
27048 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27049 " const char *mountpoint,\n"
27050 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
27054 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27055 " const char *mountpoint,\n"
27056 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
27060 #: ../src/guestfs-actions.pod:938
27061 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
27065 #: ../src/guestfs-actions.pod:942
27066 msgid "guestfs_case_sensitive_path"
27070 #: ../src/guestfs-actions.pod:944
27074 " guestfs_case_sensitive_path (guestfs_h *g,\n"
27075 " const char *path);\n"
27080 #: ../src/guestfs-actions.pod:970
27082 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
27083 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
27084 "how the directories were originally created under Windows)."
27088 #: ../src/guestfs-actions.pod:978
27089 msgid "See also C<guestfs_realpath>."
27093 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:8125
27094 msgid "(Added in 1.0.75)"
27095 msgstr "(Додано у 1.0.75)"
27098 #: ../src/guestfs-actions.pod:985
27099 msgid "guestfs_cat"
27103 #: ../src/guestfs-actions.pod:987
27107 " guestfs_cat (guestfs_h *g,\n"
27108 " const char *path);\n"
27113 #: ../src/guestfs-actions.pod:993
27115 "Note that this function cannot correctly handle binary files (specifically, "
27116 "files containing C<\\0> character which is treated as end of string). For "
27117 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
27118 "functions which have a more complex interface."
27122 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
27123 #: ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4317
27124 #: ../src/guestfs-actions.pod:4405 ../src/guestfs-actions.pod:4804
27125 #: ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:6334
27126 #: ../src/guestfs-actions.pod:6348 ../src/guestfs-actions.pod:8278
27127 #: ../src/guestfs-actions.pod:8292
27128 msgid "(Added in 0.4)"
27129 msgstr "(Додано у 0.4)"
27132 #: ../src/guestfs-actions.pod:1006
27133 msgid "guestfs_checksum"
27137 #: ../src/guestfs-actions.pod:1008
27141 " guestfs_checksum (guestfs_h *g,\n"
27142 " const char *csumtype,\n"
27143 " const char *path);\n"
27148 #: ../src/guestfs-actions.pod:1054
27149 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
27153 #: ../src/guestfs-actions.pod:1056
27154 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
27158 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
27159 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
27160 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
27161 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7981
27162 msgid "(Added in 1.0.2)"
27163 msgstr "(Додано у 1.0.2)"
27166 #: ../src/guestfs-actions.pod:1063
27167 msgid "guestfs_checksum_device"
27171 #: ../src/guestfs-actions.pod:1065
27175 " guestfs_checksum_device (guestfs_h *g,\n"
27176 " const char *csumtype,\n"
27177 " const char *device);\n"
27182 #: ../src/guestfs-actions.pod:1070
27184 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
27185 "device named C<device>. For the types of checksums supported see the "
27186 "C<guestfs_checksum> command."
27190 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5766
27191 #: ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5935
27192 #: ../src/guestfs-actions.pod:5953 ../src/guestfs-actions.pod:6135
27193 #: ../src/guestfs-actions.pod:7890 ../src/guestfs-actions.pod:7904
27194 #: ../src/guestfs-actions.pod:8304
27195 msgid "(Added in 1.3.2)"
27196 msgstr "(Додано у 1.3.2)"
27199 #: ../src/guestfs-actions.pod:1079
27200 msgid "guestfs_checksums_out"
27204 #: ../src/guestfs-actions.pod:1081
27208 " guestfs_checksums_out (guestfs_h *g,\n"
27209 " const char *csumtype,\n"
27210 " const char *directory,\n"
27211 " const char *sumsfile);\n"
27216 #: ../src/guestfs-actions.pod:1101
27217 msgid "(Added in 1.3.7)"
27218 msgstr "(Додано у 1.3.7)"
27221 #: ../src/guestfs-actions.pod:1103
27222 msgid "guestfs_chmod"
27226 #: ../src/guestfs-actions.pod:1105
27230 " guestfs_chmod (guestfs_h *g,\n"
27232 " const char *path);\n"
27237 #: ../src/guestfs-actions.pod:1123
27238 msgid "guestfs_chown"
27242 #: ../src/guestfs-actions.pod:1125
27246 " guestfs_chown (guestfs_h *g,\n"
27249 " const char *path);\n"
27254 #: ../src/guestfs-actions.pod:1141
27255 msgid "guestfs_command"
27259 #: ../src/guestfs-actions.pod:1143
27263 " guestfs_command (guestfs_h *g,\n"
27264 " char *const *arguments);\n"
27269 #: ../src/guestfs-actions.pod:1152
27271 "The single parameter is an argv-style list of arguments. The first element "
27272 "is the name of the program to run. Subsequent elements are parameters. The "
27273 "list must be non-empty (ie. must contain a program name). Note that the "
27274 "command runs directly, and is I<not> invoked via the shell (see "
27279 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
27280 #: ../src/guestfs-actions.pod:2027
27281 msgid "(Added in 0.9.1)"
27282 msgstr "(Додано у 0.9.1)"
27285 #: ../src/guestfs-actions.pod:1185
27286 msgid "guestfs_command_lines"
27290 #: ../src/guestfs-actions.pod:1187
27294 " guestfs_command_lines (guestfs_h *g,\n"
27295 " char *const *arguments);\n"
27300 #: ../src/guestfs-actions.pod:1191
27302 "This is the same as C<guestfs_command>, but splits the result into a list of "
27307 #: ../src/guestfs-actions.pod:1194
27308 msgid "See also: C<guestfs_sh_lines>"
27312 #: ../src/guestfs-actions.pod:1205
27313 msgid "guestfs_compress_device_out"
27317 #: ../src/guestfs-actions.pod:1207
27321 " guestfs_compress_device_out (guestfs_h *g,\n"
27322 " const char *ctype,\n"
27323 " const char *device,\n"
27324 " const char *zdevice,\n"
27330 #: ../src/guestfs-actions.pod:1219
27333 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
27338 #: ../src/guestfs-actions.pod:1224
27340 "The C<ctype> and optional C<level> parameters have the same meaning as in "
27341 "C<guestfs_compress_out>."
27345 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
27346 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:7051
27347 msgid "(Added in 1.13.15)"
27351 #: ../src/guestfs-actions.pod:1231
27352 msgid "guestfs_compress_device_out_va"
27356 #: ../src/guestfs-actions.pod:1233
27360 " guestfs_compress_device_out_va (guestfs_h *g,\n"
27361 " const char *ctype,\n"
27362 " const char *device,\n"
27363 " const char *zdevice,\n"
27364 " va_list args);\n"
27369 #: ../src/guestfs-actions.pod:1240
27370 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
27374 #: ../src/guestfs-actions.pod:1244
27375 msgid "guestfs_compress_device_out_argv"
27379 #: ../src/guestfs-actions.pod:1246
27383 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
27384 " const char *ctype,\n"
27385 " const char *device,\n"
27386 " const char *zdevice,\n"
27387 " const struct guestfs_compress_device_out_argv *optargs);\n"
27392 #: ../src/guestfs-actions.pod:1253
27393 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
27397 #: ../src/guestfs-actions.pod:1257
27398 msgid "guestfs_compress_out"
27402 #: ../src/guestfs-actions.pod:1259
27406 " guestfs_compress_out (guestfs_h *g,\n"
27407 " const char *ctype,\n"
27408 " const char *file,\n"
27409 " const char *zfile,\n"
27415 #: ../src/guestfs-actions.pod:1271
27418 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
27423 #: ../src/guestfs-actions.pod:1290
27424 msgid "guestfs_compress_out_va"
27428 #: ../src/guestfs-actions.pod:1292
27432 " guestfs_compress_out_va (guestfs_h *g,\n"
27433 " const char *ctype,\n"
27434 " const char *file,\n"
27435 " const char *zfile,\n"
27436 " va_list args);\n"
27441 #: ../src/guestfs-actions.pod:1299
27442 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
27446 #: ../src/guestfs-actions.pod:1303
27447 msgid "guestfs_compress_out_argv"
27451 #: ../src/guestfs-actions.pod:1305
27455 " guestfs_compress_out_argv (guestfs_h *g,\n"
27456 " const char *ctype,\n"
27457 " const char *file,\n"
27458 " const char *zfile,\n"
27459 " const struct guestfs_compress_out_argv *optargs);\n"
27464 #: ../src/guestfs-actions.pod:1312
27465 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
27469 #: ../src/guestfs-actions.pod:1316
27470 msgid "guestfs_config"
27474 #: ../src/guestfs-actions.pod:1318
27478 " guestfs_config (guestfs_h *g,\n"
27479 " const char *qemuparam,\n"
27480 " const char *qemuvalue);\n"
27485 #: ../src/guestfs-actions.pod:1336
27486 msgid "guestfs_copy_device_to_device"
27490 #: ../src/guestfs-actions.pod:1338
27494 " guestfs_copy_device_to_device (guestfs_h *g,\n"
27495 " const char *src,\n"
27496 " const char *dest,\n"
27502 #: ../src/guestfs-actions.pod:1349
27505 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27506 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27507 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27512 #: ../src/guestfs-actions.pod:1353
27514 "The four calls C<guestfs_copy_device_to_device>, "
27515 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27516 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27517 "destination (device|file)."
27521 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
27522 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
27523 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
27524 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
27525 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
27526 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7976
27527 #: ../src/guestfs-actions.pod:8010 ../src/guestfs-actions.pod:8517
27528 #: ../src/guestfs-actions.pod:8540
27530 "This long-running command can generate progress notification messages so "
27531 "that the caller can display a progress bar or indicator. To receive these "
27532 "messages, the caller must register a progress event callback. See L<guestfs"
27533 "(3)/GUESTFS_EVENT_PROGRESS>."
27537 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
27538 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
27539 #: ../src/guestfs-actions.pod:6191
27541 #| msgid "(Added in 1.3.5)"
27542 msgid "(Added in 1.13.25)"
27543 msgstr "(Додано у 1.3.5)"
27546 #: ../src/guestfs-actions.pod:1381
27547 msgid "guestfs_copy_device_to_device_va"
27551 #: ../src/guestfs-actions.pod:1383
27555 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27556 " const char *src,\n"
27557 " const char *dest,\n"
27558 " va_list args);\n"
27563 #: ../src/guestfs-actions.pod:1389
27564 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27568 #: ../src/guestfs-actions.pod:1393
27569 msgid "guestfs_copy_device_to_device_argv"
27573 #: ../src/guestfs-actions.pod:1395
27577 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27578 " const char *src,\n"
27579 " const char *dest,\n"
27580 " const struct guestfs_copy_device_to_device_argv *optargs);\n"
27585 #: ../src/guestfs-actions.pod:1401
27586 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27590 #: ../src/guestfs-actions.pod:1405
27591 msgid "guestfs_copy_device_to_file"
27595 #: ../src/guestfs-actions.pod:1407
27599 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27600 " const char *src,\n"
27601 " const char *dest,\n"
27607 #: ../src/guestfs-actions.pod:1418
27610 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27611 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27612 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27617 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
27618 #: ../src/guestfs-actions.pod:1528
27620 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27624 #: ../src/guestfs-actions.pod:1434
27625 msgid "guestfs_copy_device_to_file_va"
27629 #: ../src/guestfs-actions.pod:1436
27633 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27634 " const char *src,\n"
27635 " const char *dest,\n"
27636 " va_list args);\n"
27641 #: ../src/guestfs-actions.pod:1442
27642 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27646 #: ../src/guestfs-actions.pod:1446
27647 msgid "guestfs_copy_device_to_file_argv"
27651 #: ../src/guestfs-actions.pod:1448
27655 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27656 " const char *src,\n"
27657 " const char *dest,\n"
27658 " const struct guestfs_copy_device_to_file_argv *optargs);\n"
27663 #: ../src/guestfs-actions.pod:1454
27664 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27668 #: ../src/guestfs-actions.pod:1458
27669 msgid "guestfs_copy_file_to_device"
27673 #: ../src/guestfs-actions.pod:1460
27677 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27678 " const char *src,\n"
27679 " const char *dest,\n"
27685 #: ../src/guestfs-actions.pod:1471
27688 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27689 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27690 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27695 #: ../src/guestfs-actions.pod:1487
27696 msgid "guestfs_copy_file_to_device_va"
27700 #: ../src/guestfs-actions.pod:1489
27704 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27705 " const char *src,\n"
27706 " const char *dest,\n"
27707 " va_list args);\n"
27712 #: ../src/guestfs-actions.pod:1495
27713 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27717 #: ../src/guestfs-actions.pod:1499
27718 msgid "guestfs_copy_file_to_device_argv"
27722 #: ../src/guestfs-actions.pod:1501
27726 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27727 " const char *src,\n"
27728 " const char *dest,\n"
27729 " const struct guestfs_copy_file_to_device_argv *optargs);\n"
27734 #: ../src/guestfs-actions.pod:1507
27735 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27739 #: ../src/guestfs-actions.pod:1511
27740 msgid "guestfs_copy_file_to_file"
27744 #: ../src/guestfs-actions.pod:1513
27748 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27749 " const char *src,\n"
27750 " const char *dest,\n"
27756 #: ../src/guestfs-actions.pod:1524
27759 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27760 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27761 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27766 #: ../src/guestfs-actions.pod:1531
27768 "This is B<not> the function you want for copying files. This is for copying "
27769 "blocks within existing files. See C<guestfs_cp>, C<guestfs_cp_a> and "
27770 "C<guestfs_mv> for general file copying and moving functions."
27774 #: ../src/guestfs-actions.pod:1545
27775 msgid "guestfs_copy_file_to_file_va"
27779 #: ../src/guestfs-actions.pod:1547
27783 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27784 " const char *src,\n"
27785 " const char *dest,\n"
27786 " va_list args);\n"
27791 #: ../src/guestfs-actions.pod:1553
27792 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27796 #: ../src/guestfs-actions.pod:1557
27797 msgid "guestfs_copy_file_to_file_argv"
27801 #: ../src/guestfs-actions.pod:1559
27805 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27806 " const char *src,\n"
27807 " const char *dest,\n"
27808 " const struct guestfs_copy_file_to_file_argv *optargs);\n"
27813 #: ../src/guestfs-actions.pod:1565
27814 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27818 #: ../src/guestfs-actions.pod:1569
27819 msgid "guestfs_copy_size"
27823 #: ../src/guestfs-actions.pod:1571
27827 " guestfs_copy_size (guestfs_h *g,\n"
27828 " const char *src,\n"
27829 " const char *dest,\n"
27830 " int64_t size);\n"
27835 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
27837 "I<This function is deprecated.> In new code, use the L</"
27838 "guestfs_copy_device_to_device> call instead."
27842 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4831
27843 #: ../src/guestfs-actions.pod:6361 ../src/guestfs-actions.pod:8211
27844 #: ../src/guestfs-actions.pod:8231 ../src/guestfs-actions.pod:8317
27845 msgid "(Added in 1.0.87)"
27846 msgstr "(Додано у 1.0.87)"
27849 #: ../src/guestfs-actions.pod:1599
27854 #: ../src/guestfs-actions.pod:1601
27858 " guestfs_cp (guestfs_h *g,\n"
27859 " const char *src,\n"
27860 " const char *dest);\n"
27865 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
27866 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
27867 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5713
27868 #: ../src/guestfs-actions.pod:6205
27869 msgid "(Added in 1.0.18)"
27870 msgstr "(Додано у 1.0.18)"
27873 #: ../src/guestfs-actions.pod:1613
27874 msgid "guestfs_cp_a"
27878 #: ../src/guestfs-actions.pod:1615
27882 " guestfs_cp_a (guestfs_h *g,\n"
27883 " const char *src,\n"
27884 " const char *dest);\n"
27889 #: ../src/guestfs-actions.pod:1627
27894 #: ../src/guestfs-actions.pod:1629
27898 " guestfs_dd (guestfs_h *g,\n"
27899 " const char *src,\n"
27900 " const char *dest);\n"
27905 #: ../src/guestfs-actions.pod:1646
27907 "If the destination is a device, it must be as large or larger than the "
27908 "source file or device, otherwise the copy will fail. This command cannot do "
27909 "partial copies (see C<guestfs_copy_device_to_device>)."
27913 #: ../src/guestfs-actions.pod:1655
27918 #: ../src/guestfs-actions.pod:1657
27922 " guestfs_df (guestfs_h *g);\n"
27927 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
27929 "This command is mostly useful for interactive sessions. It is I<not> "
27930 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
27935 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
27936 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
27937 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
27938 #: ../src/guestfs-actions.pod:5079 ../src/guestfs-actions.pod:5613
27939 #: ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7618
27940 #: ../src/guestfs-actions.pod:8357 ../src/guestfs-actions.pod:8370
27941 #: ../src/guestfs-actions.pod:8383
27942 msgid "(Added in 1.0.54)"
27943 msgstr "(Додано у 1.0.54)"
27946 #: ../src/guestfs-actions.pod:1671
27947 msgid "guestfs_df_h"
27951 #: ../src/guestfs-actions.pod:1673
27955 " guestfs_df_h (guestfs_h *g);\n"
27960 #: ../src/guestfs-actions.pod:1688
27961 msgid "guestfs_dmesg"
27965 #: ../src/guestfs-actions.pod:1690
27969 " guestfs_dmesg (guestfs_h *g);\n"
27974 #: ../src/guestfs-actions.pod:1697
27976 "Another way to get the same information is to enable verbose messages with "
27977 "C<guestfs_set_verbose> or by setting the environment variable "
27978 "C<LIBGUESTFS_DEBUG=1> before running the program."
27982 #: ../src/guestfs-actions.pod:1707
27983 msgid "guestfs_download"
27987 #: ../src/guestfs-actions.pod:1709
27991 " guestfs_download (guestfs_h *g,\n"
27992 " const char *remotefilename,\n"
27993 " const char *filename);\n"
27998 #: ../src/guestfs-actions.pod:1719
27999 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
28003 #: ../src/guestfs-actions.pod:1730
28004 msgid "guestfs_download_offset"
28008 #: ../src/guestfs-actions.pod:1732
28012 " guestfs_download_offset (guestfs_h *g,\n"
28013 " const char *remotefilename,\n"
28014 " const char *filename,\n"
28015 " int64_t offset,\n"
28016 " int64_t size);\n"
28021 #: ../src/guestfs-actions.pod:1745
28023 "Note that there is no limit on the amount of data that can be downloaded "
28024 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
28025 "full amount unless an error occurs."
28029 #: ../src/guestfs-actions.pod:1750
28030 msgid "See also C<guestfs_download>, C<guestfs_pread>."
28034 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:8015
28035 msgid "(Added in 1.5.17)"
28036 msgstr "(Додано у 1.5.17)"
28039 #: ../src/guestfs-actions.pod:1761
28040 msgid "guestfs_drop_caches"
28044 #: ../src/guestfs-actions.pod:1763
28048 " guestfs_drop_caches (guestfs_h *g,\n"
28049 " int whattodrop);\n"
28054 #: ../src/guestfs-actions.pod:1781
28059 #: ../src/guestfs-actions.pod:1783
28063 " guestfs_du (guestfs_h *g,\n"
28064 " const char *path);\n"
28069 #: ../src/guestfs-actions.pod:1806
28070 msgid "guestfs_e2fsck_f"
28074 #: ../src/guestfs-actions.pod:1808
28078 " guestfs_e2fsck_f (guestfs_h *g,\n"
28079 " const char *device);\n"
28084 #: ../src/guestfs-actions.pod:1816
28086 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
28087 "Normally you should use C<guestfs_fsck>."
28091 #: ../src/guestfs-actions.pod:1821
28092 msgid "(Added in 1.0.29)"
28093 msgstr "(Додано у 1.0.29)"
28096 #: ../src/guestfs-actions.pod:1823
28097 msgid "guestfs_echo_daemon"
28098 msgstr "guestfs_echo_daemon"
28101 #: ../src/guestfs-actions.pod:1825
28105 " guestfs_echo_daemon (guestfs_h *g,\n"
28106 " char *const *words);\n"
28110 " guestfs_echo_daemon (guestfs_h *g,\n"
28111 " char *const *words);\n"
28115 #: ../src/guestfs-actions.pod:1834
28116 msgid "See also C<guestfs_ping_daemon>."
28120 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
28121 #: ../src/guestfs-actions.pod:7075
28122 msgid "(Added in 1.0.69)"
28123 msgstr "(Додано у 1.0.69)"
28126 #: ../src/guestfs-actions.pod:1841
28127 msgid "guestfs_egrep"
28128 msgstr "guestfs_egrep"
28131 #: ../src/guestfs-actions.pod:1843
28135 " guestfs_egrep (guestfs_h *g,\n"
28136 " const char *regex,\n"
28137 " const char *path);\n"
28141 " guestfs_egrep (guestfs_h *g,\n"
28142 " const char *regex,\n"
28143 " const char *path);\n"
28147 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
28148 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
28149 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
28150 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
28151 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
28152 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
28153 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4330
28154 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4357
28155 #: ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:5501
28156 #: ../src/guestfs-actions.pod:6539 ../src/guestfs-actions.pod:6588
28157 #: ../src/guestfs-actions.pod:7462 ../src/guestfs-actions.pod:7474
28158 #: ../src/guestfs-actions.pod:7487 ../src/guestfs-actions.pod:7500
28159 #: ../src/guestfs-actions.pod:7522 ../src/guestfs-actions.pod:7535
28160 #: ../src/guestfs-actions.pod:7548 ../src/guestfs-actions.pod:7561
28161 #: ../src/guestfs-actions.pod:8475 ../src/guestfs-actions.pod:8494
28162 #: ../src/guestfs-actions.pod:8585 ../src/guestfs-actions.pod:8604
28163 #: ../src/guestfs-actions.pod:8650 ../src/guestfs-actions.pod:8669
28164 msgid "(Added in 1.0.66)"
28165 msgstr "(Додано у 1.0.66)"
28168 #: ../src/guestfs-actions.pod:1860
28169 msgid "guestfs_egrepi"
28170 msgstr "guestfs_egrepi"
28173 #: ../src/guestfs-actions.pod:1862
28177 " guestfs_egrepi (guestfs_h *g,\n"
28178 " const char *regex,\n"
28179 " const char *path);\n"
28184 #: ../src/guestfs-actions.pod:1879
28185 msgid "guestfs_equal"
28189 #: ../src/guestfs-actions.pod:1881
28193 " guestfs_equal (guestfs_h *g,\n"
28194 " const char *file1,\n"
28195 " const char *file2);\n"
28200 #: ../src/guestfs-actions.pod:1895
28201 msgid "guestfs_exists"
28205 #: ../src/guestfs-actions.pod:1897
28209 " guestfs_exists (guestfs_h *g,\n"
28210 " const char *path);\n"
28215 #: ../src/guestfs-actions.pod:1904
28216 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
28220 #: ../src/guestfs-actions.pod:1910
28221 msgid "guestfs_fallocate"
28225 #: ../src/guestfs-actions.pod:1912
28229 " guestfs_fallocate (guestfs_h *g,\n"
28230 " const char *path,\n"
28236 #: ../src/guestfs-actions.pod:1917
28238 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
28243 #: ../src/guestfs-actions.pod:1936
28244 msgid "guestfs_fallocate64"
28248 #: ../src/guestfs-actions.pod:1938
28252 " guestfs_fallocate64 (guestfs_h *g,\n"
28253 " const char *path,\n"
28259 #: ../src/guestfs-actions.pod:1947
28261 "Note that this call allocates disk blocks for the file. To create a sparse "
28262 "file use C<guestfs_truncate_size> instead."
28266 #: ../src/guestfs-actions.pod:1950
28268 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
28269 "oversight it only allowed 30 bit lengths to be specified, effectively "
28270 "limiting the maximum size of files created through that call to 1GB."
28274 #: ../src/guestfs-actions.pod:1961
28275 msgid "(Added in 1.3.17)"
28276 msgstr "(Додано у 1.3.17)"
28279 #: ../src/guestfs-actions.pod:1963
28280 msgid "guestfs_fgrep"
28284 #: ../src/guestfs-actions.pod:1965
28288 " guestfs_fgrep (guestfs_h *g,\n"
28289 " const char *pattern,\n"
28290 " const char *path);\n"
28295 #: ../src/guestfs-actions.pod:1982
28296 msgid "guestfs_fgrepi"
28300 #: ../src/guestfs-actions.pod:1984
28304 " guestfs_fgrepi (guestfs_h *g,\n"
28305 " const char *pattern,\n"
28306 " const char *path);\n"
28311 #: ../src/guestfs-actions.pod:2001
28312 msgid "guestfs_file"
28316 #: ../src/guestfs-actions.pod:2003
28320 " guestfs_file (guestfs_h *g,\n"
28321 " const char *path);\n"
28326 #: ../src/guestfs-actions.pod:2021
28328 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
28329 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
28333 #: ../src/guestfs-actions.pod:2029
28334 msgid "guestfs_file_architecture"
28338 #: ../src/guestfs-actions.pod:2031
28342 " guestfs_file_architecture (guestfs_h *g,\n"
28343 " const char *filename);\n"
28348 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
28349 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
28350 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
28351 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
28352 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
28353 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
28354 #: ../src/guestfs-actions.pod:4008
28355 msgid "(Added in 1.5.3)"
28356 msgstr "(Додано у 1.5.3)"
28359 #: ../src/guestfs-actions.pod:2141
28360 msgid "guestfs_filesize"
28364 #: ../src/guestfs-actions.pod:2143
28368 " guestfs_filesize (guestfs_h *g,\n"
28369 " const char *file);\n"
28374 #: ../src/guestfs-actions.pod:2149
28376 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
28377 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
28378 "devices, use C<guestfs_blockdev_getsize64>."
28382 #: ../src/guestfs-actions.pod:2155
28383 msgid "(Added in 1.0.82)"
28384 msgstr "(Додано у 1.0.82)"
28387 #: ../src/guestfs-actions.pod:2157
28388 msgid "guestfs_fill"
28392 #: ../src/guestfs-actions.pod:2159
28396 " guestfs_fill (guestfs_h *g,\n"
28399 " const char *path);\n"
28404 #: ../src/guestfs-actions.pod:2169
28406 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
28407 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
28408 "bytes use C<guestfs_fill_pattern>."
28412 #: ../src/guestfs-actions.pod:2181
28413 msgid "(Added in 1.0.79)"
28414 msgstr "(Додано у 1.0.79)"
28417 #: ../src/guestfs-actions.pod:2183
28418 msgid "guestfs_fill_pattern"
28422 #: ../src/guestfs-actions.pod:2185
28426 " guestfs_fill_pattern (guestfs_h *g,\n"
28427 " const char *pattern,\n"
28429 " const char *path);\n"
28434 #: ../src/guestfs-actions.pod:2191
28436 "This function is like C<guestfs_fill> except that it creates a new file of "
28437 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
28438 "pattern is truncated if necessary to ensure the length of the file is "
28439 "exactly C<len> bytes."
28443 #: ../src/guestfs-actions.pod:2203
28444 msgid "(Added in 1.3.12)"
28445 msgstr "(Додано у 1.3.12)"
28448 #: ../src/guestfs-actions.pod:2205
28449 msgid "guestfs_find"
28453 #: ../src/guestfs-actions.pod:2207
28457 " guestfs_find (guestfs_h *g,\n"
28458 " const char *directory);\n"
28463 #: ../src/guestfs-actions.pod:2223
28465 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28469 #: ../src/guestfs-actions.pod:2236
28470 msgid "See also C<guestfs_find0>."
28474 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4768
28475 #: ../src/guestfs-actions.pod:6623
28476 msgid "(Added in 1.0.27)"
28477 msgstr "(Додано у 1.0.27)"
28480 #: ../src/guestfs-actions.pod:2247
28481 msgid "guestfs_find0"
28485 #: ../src/guestfs-actions.pod:2249
28489 " guestfs_find0 (guestfs_h *g,\n"
28490 " const char *directory,\n"
28491 " const char *files);\n"
28496 #: ../src/guestfs-actions.pod:2258
28498 "This command works the same way as C<guestfs_find> with the following "
28503 #: ../src/guestfs-actions.pod:2285
28504 msgid "(Added in 1.0.74)"
28505 msgstr "(Додано у 1.0.74)"
28508 #: ../src/guestfs-actions.pod:2287
28509 msgid "guestfs_findfs_label"
28513 #: ../src/guestfs-actions.pod:2289
28517 " guestfs_findfs_label (guestfs_h *g,\n"
28518 " const char *label);\n"
28523 #: ../src/guestfs-actions.pod:2297
28524 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28528 #: ../src/guestfs-actions.pod:2304
28529 msgid "guestfs_findfs_uuid"
28533 #: ../src/guestfs-actions.pod:2306
28537 " guestfs_findfs_uuid (guestfs_h *g,\n"
28538 " const char *uuid);\n"
28543 #: ../src/guestfs-actions.pod:2314
28544 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28548 #: ../src/guestfs-actions.pod:2321
28549 msgid "guestfs_fsck"
28553 #: ../src/guestfs-actions.pod:2323
28557 " guestfs_fsck (guestfs_h *g,\n"
28558 " const char *fstype,\n"
28559 " const char *device);\n"
28564 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8522
28565 msgid "(Added in 1.0.16)"
28566 msgstr "(Додано у 1.0.16)"
28569 #: ../src/guestfs-actions.pod:2360
28570 msgid "guestfs_get_append"
28574 #: ../src/guestfs-actions.pod:2362
28578 " guestfs_get_append (guestfs_h *g);\n"
28583 #: ../src/guestfs-actions.pod:2370
28585 "This function returns a string which may be NULL. There is no way to return "
28586 "an error from this function. The string is owned by the guest handle and "
28587 "must I<not> be freed."
28591 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6301
28592 #: ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:7229
28593 #: ../src/guestfs-actions.pod:7248 ../src/guestfs-actions.pod:7264
28594 #: ../src/guestfs-actions.pod:7288 ../src/guestfs-actions.pod:8162
28595 #: ../src/guestfs-actions.pod:8177 ../src/guestfs-actions.pod:8566
28596 msgid "(Added in 1.0.26)"
28597 msgstr "(Додано у 1.0.26)"
28600 #: ../src/guestfs-actions.pod:2376
28601 msgid "guestfs_get_attach_method"
28605 #: ../src/guestfs-actions.pod:2378
28609 " guestfs_get_attach_method (guestfs_h *g);\n"
28614 #: ../src/guestfs-actions.pod:2381
28615 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
28619 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6810
28620 msgid "(Added in 1.9.8)"
28621 msgstr "(Додано у 1.9.8)"
28624 #: ../src/guestfs-actions.pod:2388
28625 msgid "guestfs_get_autosync"
28629 #: ../src/guestfs-actions.pod:2390
28633 " guestfs_get_autosync (guestfs_h *g);\n"
28638 #: ../src/guestfs-actions.pod:2399
28639 msgid "guestfs_get_direct"
28643 #: ../src/guestfs-actions.pod:2401
28647 " guestfs_get_direct (guestfs_h *g);\n"
28652 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6851
28653 msgid "(Added in 1.0.72)"
28654 msgstr "(Додано у 1.0.72)"
28657 #: ../src/guestfs-actions.pod:2410
28658 msgid "guestfs_get_e2label"
28662 #: ../src/guestfs-actions.pod:2412
28666 " guestfs_get_e2label (guestfs_h *g,\n"
28667 " const char *device);\n"
28672 #: ../src/guestfs-actions.pod:2416
28674 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28679 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
28680 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6888
28681 msgid "(Added in 1.0.15)"
28682 msgstr "(Додано у 1.0.15)"
28685 #: ../src/guestfs-actions.pod:2431
28686 msgid "guestfs_get_e2uuid"
28690 #: ../src/guestfs-actions.pod:2433
28694 " guestfs_get_e2uuid (guestfs_h *g,\n"
28695 " const char *device);\n"
28700 #: ../src/guestfs-actions.pod:2437
28702 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28707 #: ../src/guestfs-actions.pod:2452
28708 msgid "guestfs_get_memsize"
28712 #: ../src/guestfs-actions.pod:2454
28716 " guestfs_get_memsize (guestfs_h *g);\n"
28721 #: ../src/guestfs-actions.pod:2460
28723 "If C<guestfs_set_memsize> was not called on this handle, and if "
28724 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28725 "value for memsize."
28729 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5197
28730 #: ../src/guestfs-actions.pod:5406 ../src/guestfs-actions.pod:5425
28731 #: ../src/guestfs-actions.pod:5444 ../src/guestfs-actions.pod:5456
28732 #: ../src/guestfs-actions.pod:5473 ../src/guestfs-actions.pod:5486
28733 #: ../src/guestfs-actions.pod:6526 ../src/guestfs-actions.pod:6909
28734 #: ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7931
28735 msgid "(Added in 1.0.55)"
28736 msgstr "(Додано у 1.0.55)"
28739 #: ../src/guestfs-actions.pod:2471
28740 msgid "guestfs_get_network"
28744 #: ../src/guestfs-actions.pod:2473
28748 " guestfs_get_network (guestfs_h *g);\n"
28753 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6928
28754 msgid "(Added in 1.5.4)"
28755 msgstr "(Додано у 1.5.4)"
28758 #: ../src/guestfs-actions.pod:2482
28759 msgid "guestfs_get_path"
28763 #: ../src/guestfs-actions.pod:2484
28767 " guestfs_get_path (guestfs_h *g);\n"
28772 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
28774 "This function returns a string, or NULL on error. The string is owned by "
28775 "the guest handle and must I<not> be freed."
28779 #: ../src/guestfs-actions.pod:2497
28780 msgid "guestfs_get_pgroup"
28784 #: ../src/guestfs-actions.pod:2499
28788 " guestfs_get_pgroup (guestfs_h *g);\n"
28793 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6964
28794 #: ../src/guestfs-actions.pod:8423
28795 msgid "(Added in 1.11.18)"
28796 msgstr "(Додано у 1.11.18)"
28799 #: ../src/guestfs-actions.pod:2508
28800 msgid "guestfs_get_pid"
28804 #: ../src/guestfs-actions.pod:2510
28808 " guestfs_get_pid (guestfs_h *g);\n"
28813 #: ../src/guestfs-actions.pod:2520
28814 msgid "(Added in 1.0.56)"
28815 msgstr "(Додано у 1.0.56)"
28818 #: ../src/guestfs-actions.pod:2522
28819 msgid "guestfs_get_qemu"
28823 #: ../src/guestfs-actions.pod:2524
28827 " guestfs_get_qemu (guestfs_h *g);\n"
28832 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6992
28833 msgid "(Added in 1.0.6)"
28834 msgstr "(Додано у 1.0.6)"
28837 #: ../src/guestfs-actions.pod:2537
28838 msgid "guestfs_get_recovery_proc"
28842 #: ../src/guestfs-actions.pod:2539
28846 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28851 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
28852 #: ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:4866
28853 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:6231
28854 #: ../src/guestfs-actions.pod:6574 ../src/guestfs-actions.pod:7016
28855 #: ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7734
28856 #: ../src/guestfs-actions.pod:8046
28857 msgid "(Added in 1.0.77)"
28858 msgstr "(Додано у 1.0.77)"
28861 #: ../src/guestfs-actions.pod:2548
28862 msgid "guestfs_get_selinux"
28866 #: ../src/guestfs-actions.pod:2550
28870 " guestfs_get_selinux (guestfs_h *g);\n"
28875 #: ../src/guestfs-actions.pod:2553
28877 "This returns the current setting of the selinux flag which is passed to the "
28878 "appliance at boot time. See C<guestfs_set_selinux>."
28882 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
28883 #: ../src/guestfs-actions.pod:7035 ../src/guestfs-actions.pod:7109
28884 msgid "(Added in 1.0.67)"
28885 msgstr "(Додано у 1.0.67)"
28888 #: ../src/guestfs-actions.pod:2563
28889 msgid "guestfs_get_smp"
28893 #: ../src/guestfs-actions.pod:2565
28897 " guestfs_get_smp (guestfs_h *g);\n"
28902 #: ../src/guestfs-actions.pod:2574
28903 msgid "guestfs_get_state"
28907 #: ../src/guestfs-actions.pod:2576
28911 " guestfs_get_state (guestfs_h *g);\n"
28916 #: ../src/guestfs-actions.pod:2588
28917 msgid "guestfs_get_trace"
28921 #: ../src/guestfs-actions.pod:2590
28925 " guestfs_get_trace (guestfs_h *g);\n"
28930 #: ../src/guestfs-actions.pod:2599
28931 msgid "guestfs_get_umask"
28935 #: ../src/guestfs-actions.pod:2601
28939 " guestfs_get_umask (guestfs_h *g);\n"
28944 #: ../src/guestfs-actions.pod:2604
28946 "Return the current umask. By default the umask is C<022> unless it has been "
28947 "set by calling C<guestfs_umask>."
28951 #: ../src/guestfs-actions.pod:2611
28952 msgid "guestfs_get_verbose"
28956 #: ../src/guestfs-actions.pod:2613
28960 " guestfs_get_verbose (guestfs_h *g);\n"
28965 #: ../src/guestfs-actions.pod:2622
28966 msgid "guestfs_getcon"
28970 #: ../src/guestfs-actions.pod:2624
28974 " guestfs_getcon (guestfs_h *g);\n"
28979 #: ../src/guestfs-actions.pod:2629
28981 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28985 #: ../src/guestfs-actions.pod:2637
28986 msgid "guestfs_getxattr"
28990 #: ../src/guestfs-actions.pod:2639
28994 " guestfs_getxattr (guestfs_h *g,\n"
28995 " const char *path,\n"
28996 " const char *name,\n"
28997 " size_t *size_r);\n"
29002 #: ../src/guestfs-actions.pod:2645
29004 "Get a single extended attribute from file C<path> named C<name>. This call "
29005 "follows symlinks. If you want to lookup an extended attribute for the "
29006 "symlink itself, use C<guestfs_lgetxattr>."
29010 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
29012 "Normally it is better to get all extended attributes from a file in one go "
29013 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
29014 "implementations are buggy and do not provide a way to list out attributes. "
29015 "For these filesystems (notably ntfs-3g) you have to know the names of the "
29016 "extended attributes you want in advance and call this function."
29020 #: ../src/guestfs-actions.pod:2659
29021 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
29025 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
29026 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
29027 #: ../src/guestfs-actions.pod:6224 ../src/guestfs-actions.pod:6250
29028 #: ../src/guestfs-actions.pod:6431
29030 "This function returns a buffer, or NULL on error. The size of the returned "
29031 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
29036 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
29037 msgid "(Added in 1.7.24)"
29038 msgstr "(Додано у 1.7.24)"
29041 #: ../src/guestfs-actions.pod:2667
29042 msgid "guestfs_getxattrs"
29046 #: ../src/guestfs-actions.pod:2669
29049 " struct guestfs_xattr_list *\n"
29050 " guestfs_getxattrs (guestfs_h *g,\n"
29051 " const char *path);\n"
29056 #: ../src/guestfs-actions.pod:2679
29057 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
29061 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
29062 #: ../src/guestfs-actions.pod:4862
29064 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
29065 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
29069 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
29070 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4422
29071 #: ../src/guestfs-actions.pod:6604 ../src/guestfs-actions.pod:7128
29072 #: ../src/guestfs-actions.pod:8631
29073 msgid "(Added in 1.0.59)"
29074 msgstr "(Додано у 1.0.59)"
29077 #: ../src/guestfs-actions.pod:2687
29078 msgid "guestfs_glob_expand"
29082 #: ../src/guestfs-actions.pod:2689
29086 " guestfs_glob_expand (guestfs_h *g,\n"
29087 " const char *pattern);\n"
29092 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7312
29093 #: ../src/guestfs-actions.pod:7329
29094 msgid "(Added in 1.0.50)"
29095 msgstr "(Додано у 1.0.50)"
29098 #: ../src/guestfs-actions.pod:2710
29099 msgid "guestfs_grep"
29103 #: ../src/guestfs-actions.pod:2712
29107 " guestfs_grep (guestfs_h *g,\n"
29108 " const char *regex,\n"
29109 " const char *path);\n"
29114 #: ../src/guestfs-actions.pod:2729
29115 msgid "guestfs_grepi"
29119 #: ../src/guestfs-actions.pod:2731
29123 " guestfs_grepi (guestfs_h *g,\n"
29124 " const char *regex,\n"
29125 " const char *path);\n"
29130 #: ../src/guestfs-actions.pod:2748
29131 msgid "guestfs_grub_install"
29135 #: ../src/guestfs-actions.pod:2750
29139 " guestfs_grub_install (guestfs_h *g,\n"
29140 " const char *root,\n"
29141 " const char *device);\n"
29146 #: ../src/guestfs-actions.pod:2793
29147 msgid "(Added in 1.0.17)"
29148 msgstr "(Додано у 1.0.17)"
29151 #: ../src/guestfs-actions.pod:2795
29152 msgid "guestfs_head"
29156 #: ../src/guestfs-actions.pod:2797
29160 " guestfs_head (guestfs_h *g,\n"
29161 " const char *path);\n"
29166 #: ../src/guestfs-actions.pod:2813
29167 msgid "guestfs_head_n"
29171 #: ../src/guestfs-actions.pod:2815
29175 " guestfs_head_n (guestfs_h *g,\n"
29177 " const char *path);\n"
29182 #: ../src/guestfs-actions.pod:2837
29183 msgid "guestfs_hexdump"
29187 #: ../src/guestfs-actions.pod:2839
29191 " guestfs_hexdump (guestfs_h *g,\n"
29192 " const char *path);\n"
29197 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7393
29198 #: ../src/guestfs-actions.pod:7448
29199 msgid "(Added in 1.0.22)"
29200 msgstr "(Додано у 1.0.22)"
29203 #: ../src/guestfs-actions.pod:2854
29204 msgid "guestfs_initrd_cat"
29208 #: ../src/guestfs-actions.pod:2856
29212 " guestfs_initrd_cat (guestfs_h *g,\n"
29213 " const char *initrdpath,\n"
29214 " const char *filename,\n"
29215 " size_t *size_r);\n"
29220 #: ../src/guestfs-actions.pod:2872
29221 msgid "See also C<guestfs_initrd_list>."
29225 #: ../src/guestfs-actions.pod:2883
29226 msgid "guestfs_initrd_list"
29230 #: ../src/guestfs-actions.pod:2885
29234 " guestfs_initrd_list (guestfs_h *g,\n"
29235 " const char *path);\n"
29240 #: ../src/guestfs-actions.pod:2905
29241 msgid "guestfs_inotify_add_watch"
29245 #: ../src/guestfs-actions.pod:2907
29249 " guestfs_inotify_add_watch (guestfs_h *g,\n"
29250 " const char *path,\n"
29256 #: ../src/guestfs-actions.pod:2926
29257 msgid "guestfs_inotify_close"
29261 #: ../src/guestfs-actions.pod:2928
29265 " guestfs_inotify_close (guestfs_h *g);\n"
29270 #: ../src/guestfs-actions.pod:2939
29271 msgid "guestfs_inotify_files"
29275 #: ../src/guestfs-actions.pod:2941
29279 " guestfs_inotify_files (guestfs_h *g);\n"
29284 #: ../src/guestfs-actions.pod:2944
29286 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
29287 "returns a list of pathnames of objects that were touched. The returned "
29288 "pathnames are sorted and deduplicated."
29292 #: ../src/guestfs-actions.pod:2954
29293 msgid "guestfs_inotify_init"
29297 #: ../src/guestfs-actions.pod:2956
29301 " guestfs_inotify_init (guestfs_h *g,\n"
29302 " int maxevents);\n"
29307 #: ../src/guestfs-actions.pod:2964
29309 "C<maxevents> is the maximum number of events which will be queued up between "
29310 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
29311 "passed as C<0>, then the kernel (or previously set) default is used. For "
29312 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
29313 "throws away events, but records the fact that it threw them away by setting "
29314 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
29315 "C<guestfs_inotify_read>)."
29319 #: ../src/guestfs-actions.pod:2974
29321 "Before any events are generated, you have to add some watches to the "
29322 "internal watch list. See: C<guestfs_inotify_add_watch>, "
29323 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
29327 #: ../src/guestfs-actions.pod:2980
29329 "Queued up events should be read periodically by calling "
29330 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
29331 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
29332 "often enough then you risk the internal queue overflowing."
29336 #: ../src/guestfs-actions.pod:2987
29338 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
29339 "This also removes any watches automatically."
29343 #: ../src/guestfs-actions.pod:3000
29344 msgid "guestfs_inotify_read"
29348 #: ../src/guestfs-actions.pod:3002
29351 " struct guestfs_inotify_event_list *\n"
29352 " guestfs_inotify_read (guestfs_h *g);\n"
29357 #: ../src/guestfs-actions.pod:3016
29359 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
29360 "there was an error. I<The caller must call "
29361 "C<guestfs_free_inotify_event_list> after use>."
29365 #: ../src/guestfs-actions.pod:3022
29366 msgid "guestfs_inotify_rm_watch"
29370 #: ../src/guestfs-actions.pod:3024
29374 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
29380 #: ../src/guestfs-actions.pod:3028
29382 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
29386 #: ../src/guestfs-actions.pod:3035
29387 msgid "guestfs_inspect_get_arch"
29391 #: ../src/guestfs-actions.pod:3037
29395 " guestfs_inspect_get_arch (guestfs_h *g,\n"
29396 " const char *root);\n"
29401 #: ../src/guestfs-actions.pod:3041
29403 "This returns the architecture of the inspected operating system. The "
29404 "possible return values are listed under C<guestfs_file_architecture>."
29408 #: ../src/guestfs-actions.pod:3055
29409 msgid "guestfs_inspect_get_distro"
29413 #: ../src/guestfs-actions.pod:3057
29417 " guestfs_inspect_get_distro (guestfs_h *g,\n"
29418 " const char *root);\n"
29423 #: ../src/guestfs-actions.pod:3157
29424 msgid "guestfs_inspect_get_drive_mappings"
29428 #: ../src/guestfs-actions.pod:3159
29432 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29433 " const char *root);\n"
29438 #: ../src/guestfs-actions.pod:3188
29440 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29441 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29445 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
29446 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5000
29447 #: ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:7870
29449 "This function returns a NULL-terminated array of strings, or NULL if there "
29450 "was an error. The array of strings will always have length C<2n+1>, where "
29451 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
29452 "caller must free the strings and the array after use>."
29456 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
29457 msgid "(Added in 1.9.17)"
29458 msgstr "(Додано у 1.9.17)"
29461 #: ../src/guestfs-actions.pod:3200
29462 msgid "guestfs_inspect_get_filesystems"
29466 #: ../src/guestfs-actions.pod:3202
29470 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29471 " const char *root);\n"
29476 #: ../src/guestfs-actions.pod:3214
29478 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29479 "C<guestfs_inspect_get_mountpoints>."
29483 #: ../src/guestfs-actions.pod:3223
29484 msgid "guestfs_inspect_get_format"
29488 #: ../src/guestfs-actions.pod:3225
29492 " guestfs_inspect_get_format (guestfs_h *g,\n"
29493 " const char *root);\n"
29498 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
29499 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
29500 #: ../src/guestfs-actions.pod:6642
29501 msgid "(Added in 1.9.4)"
29502 msgstr "(Додано у 1.9.4)"
29505 #: ../src/guestfs-actions.pod:3261
29506 msgid "guestfs_inspect_get_hostname"
29510 #: ../src/guestfs-actions.pod:3263
29514 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29515 " const char *root);\n"
29520 #: ../src/guestfs-actions.pod:3278
29521 msgid "(Added in 1.7.9)"
29522 msgstr "(Додано у 1.7.9)"
29525 #: ../src/guestfs-actions.pod:3280
29526 msgid "guestfs_inspect_get_icon"
29530 #: ../src/guestfs-actions.pod:3282
29534 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29535 " const char *root,\n"
29536 " size_t *size_r,\n"
29542 #: ../src/guestfs-actions.pod:3293
29545 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29546 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29551 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
29552 #: ../src/guestfs-actions.pod:5574
29553 msgid "(Added in 1.11.12)"
29554 msgstr "(Додано у 1.11.12)"
29557 #: ../src/guestfs-actions.pod:3362
29558 msgid "guestfs_inspect_get_icon_va"
29562 #: ../src/guestfs-actions.pod:3364
29566 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29567 " const char *root,\n"
29568 " size_t *size_r,\n"
29569 " va_list args);\n"
29574 #: ../src/guestfs-actions.pod:3370
29575 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29579 #: ../src/guestfs-actions.pod:3374
29580 msgid "guestfs_inspect_get_icon_argv"
29584 #: ../src/guestfs-actions.pod:3376
29588 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29589 " const char *root,\n"
29590 " size_t *size_r,\n"
29591 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
29596 #: ../src/guestfs-actions.pod:3382
29597 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29601 #: ../src/guestfs-actions.pod:3386
29602 msgid "guestfs_inspect_get_major_version"
29606 #: ../src/guestfs-actions.pod:3388
29610 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29611 " const char *root);\n"
29616 #: ../src/guestfs-actions.pod:3410
29617 msgid "guestfs_inspect_get_minor_version"
29621 #: ../src/guestfs-actions.pod:3412
29625 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29626 " const char *root);\n"
29631 #: ../src/guestfs-actions.pod:3421
29633 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29634 "C<guestfs_inspect_get_major_version>."
29638 #: ../src/guestfs-actions.pod:3428
29639 msgid "guestfs_inspect_get_mountpoints"
29643 #: ../src/guestfs-actions.pod:3430
29647 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29648 " const char *root);\n"
29653 #: ../src/guestfs-actions.pod:3451
29655 "For operating systems like Windows which still use drive letters, this call "
29656 "will only return an entry for the first drive \"mounted on\" C</>. For "
29657 "information about the mapping of drive letters to partitions, see "
29658 "C<guestfs_inspect_get_drive_mappings>."
29662 #: ../src/guestfs-actions.pod:3457
29664 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29665 "C<guestfs_inspect_get_filesystems>."
29669 #: ../src/guestfs-actions.pod:3468
29670 msgid "guestfs_inspect_get_package_format"
29674 #: ../src/guestfs-actions.pod:3470
29678 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29679 " const char *root);\n"
29684 #: ../src/guestfs-actions.pod:3474
29686 "This function and C<guestfs_inspect_get_package_management> return the "
29687 "package format and package management tool used by the inspected operating "
29688 "system. For example for Fedora these functions would return C<rpm> (package "
29689 "format) and C<yum> (package management)."
29693 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
29694 msgid "(Added in 1.7.5)"
29695 msgstr "(Додано у 1.7.5)"
29698 #: ../src/guestfs-actions.pod:3495
29699 msgid "guestfs_inspect_get_package_management"
29703 #: ../src/guestfs-actions.pod:3497
29707 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29708 " const char *root);\n"
29713 #: ../src/guestfs-actions.pod:3501
29715 "C<guestfs_inspect_get_package_format> and this function return the package "
29716 "format and package management tool used by the inspected operating system. "
29717 "For example for Fedora these functions would return C<rpm> (package format) "
29718 "and C<yum> (package management)."
29722 #: ../src/guestfs-actions.pod:3523
29723 msgid "guestfs_inspect_get_product_name"
29727 #: ../src/guestfs-actions.pod:3525
29731 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29732 " const char *root);\n"
29737 #: ../src/guestfs-actions.pod:3544
29738 msgid "guestfs_inspect_get_product_variant"
29742 #: ../src/guestfs-actions.pod:3546
29746 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29747 " const char *root);\n"
29752 #: ../src/guestfs-actions.pod:3569
29754 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29755 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29759 #: ../src/guestfs-actions.pod:3576
29760 msgid "(Added in 1.9.13)"
29761 msgstr "(Додано у 1.9.13)"
29764 #: ../src/guestfs-actions.pod:3578
29765 msgid "guestfs_inspect_get_roots"
29769 #: ../src/guestfs-actions.pod:3580
29773 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29778 #: ../src/guestfs-actions.pod:3583
29780 "This function is a convenient way to get the list of root devices, as "
29781 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29782 "the whole inspection process."
29786 #: ../src/guestfs-actions.pod:3587
29788 "This returns an empty list if either no root devices were found or the "
29789 "caller has not called C<guestfs_inspect_os>."
29793 #: ../src/guestfs-actions.pod:3596
29794 msgid "(Added in 1.7.3)"
29795 msgstr "(Додано у 1.7.3)"
29798 #: ../src/guestfs-actions.pod:3598
29799 msgid "guestfs_inspect_get_type"
29803 #: ../src/guestfs-actions.pod:3600
29807 " guestfs_inspect_get_type (guestfs_h *g,\n"
29808 " const char *root);\n"
29813 #: ../src/guestfs-actions.pod:3641
29814 msgid "guestfs_inspect_get_windows_current_control_set"
29818 #: ../src/guestfs-actions.pod:3643
29822 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29823 " const char *root);\n"
29828 #: ../src/guestfs-actions.pod:3661
29829 msgid "guestfs_inspect_get_windows_systemroot"
29833 #: ../src/guestfs-actions.pod:3663
29837 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29838 " const char *root);\n"
29843 #: ../src/guestfs-actions.pod:3679
29844 msgid "(Added in 1.5.25)"
29845 msgstr "(Додано у 1.5.25)"
29848 #: ../src/guestfs-actions.pod:3681
29849 msgid "guestfs_inspect_is_live"
29853 #: ../src/guestfs-actions.pod:3683
29857 " guestfs_inspect_is_live (guestfs_h *g,\n"
29858 " const char *root);\n"
29863 #: ../src/guestfs-actions.pod:3687
29865 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29866 "disk), then this returns true if a live image was detected on the disk."
29870 #: ../src/guestfs-actions.pod:3697
29871 msgid "guestfs_inspect_is_multipart"
29875 #: ../src/guestfs-actions.pod:3699
29879 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29880 " const char *root);\n"
29885 #: ../src/guestfs-actions.pod:3703
29887 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29888 "disk), then this returns true if the disk is part of a set."
29892 #: ../src/guestfs-actions.pod:3713
29893 msgid "guestfs_inspect_is_netinst"
29897 #: ../src/guestfs-actions.pod:3715
29901 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29902 " const char *root);\n"
29907 #: ../src/guestfs-actions.pod:3719
29909 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29910 "disk), then this returns true if the disk is a network installer, ie. not a "
29911 "self-contained install CD but one which is likely to require network access "
29912 "to complete the install."
29916 #: ../src/guestfs-actions.pod:3731
29917 msgid "guestfs_inspect_list_applications"
29921 #: ../src/guestfs-actions.pod:3733
29924 " struct guestfs_application_list *\n"
29925 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29926 " const char *root);\n"
29931 #: ../src/guestfs-actions.pod:3739
29933 "I<Note:> This call works differently from other parts of the inspection "
29934 "API. You have to call C<guestfs_inspect_os>, then "
29935 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29936 "this. Listing applications is a significantly more difficult operation "
29937 "which requires access to the full filesystem. Also note that unlike the "
29938 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29939 "the libguestfs handle, this call actually reads parts of the mounted "
29940 "filesystems during the call."
29944 #: ../src/guestfs-actions.pod:3829
29946 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29947 "there was an error. I<The caller must call C<guestfs_free_application_list> "
29952 #: ../src/guestfs-actions.pod:3833
29953 msgid "(Added in 1.7.8)"
29954 msgstr "(Додано у 1.7.8)"
29957 #: ../src/guestfs-actions.pod:3835
29958 msgid "guestfs_inspect_os"
29962 #: ../src/guestfs-actions.pod:3837
29966 " guestfs_inspect_os (guestfs_h *g);\n"
29971 #: ../src/guestfs-actions.pod:3853
29973 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29974 "functions in order to query further information about each operating system, "
29975 "such as the name and version."
29979 #: ../src/guestfs-actions.pod:3858
29981 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29982 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29983 "the contents. This should be called with no disks currently mounted. The "
29984 "function may also use Augeas, so any existing Augeas handle will be closed."
29988 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
29989 #: ../src/guestfs-actions.pod:4294
29990 msgid "See also C<guestfs_list_filesystems>."
29994 #: ../src/guestfs-actions.pod:3878
29995 msgid "guestfs_is_blockdev"
29999 #: ../src/guestfs-actions.pod:3880
30003 " guestfs_is_blockdev (guestfs_h *g,\n"
30004 " const char *path);\n"
30009 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
30010 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
30011 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
30012 #: ../src/guestfs-actions.pod:4048
30013 msgid "See also C<guestfs_stat>."
30017 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
30018 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
30019 #: ../src/guestfs-actions.pod:4052
30020 msgid "(Added in 1.5.10)"
30021 msgstr "(Додано у 1.5.10)"
30024 #: ../src/guestfs-actions.pod:3893
30025 msgid "guestfs_is_busy"
30029 #: ../src/guestfs-actions.pod:3895
30033 " guestfs_is_busy (guestfs_h *g);\n"
30038 #: ../src/guestfs-actions.pod:3907
30039 msgid "guestfs_is_chardev"
30043 #: ../src/guestfs-actions.pod:3909
30047 " guestfs_is_chardev (guestfs_h *g,\n"
30048 " const char *path);\n"
30053 #: ../src/guestfs-actions.pod:3922
30054 msgid "guestfs_is_config"
30058 #: ../src/guestfs-actions.pod:3924
30062 " guestfs_is_config (guestfs_h *g);\n"
30067 #: ../src/guestfs-actions.pod:3936
30068 msgid "guestfs_is_dir"
30072 #: ../src/guestfs-actions.pod:3938
30076 " guestfs_is_dir (guestfs_h *g,\n"
30077 " const char *path);\n"
30082 #: ../src/guestfs-actions.pod:3952
30083 msgid "guestfs_is_fifo"
30087 #: ../src/guestfs-actions.pod:3954
30091 " guestfs_is_fifo (guestfs_h *g,\n"
30092 " const char *path);\n"
30097 #: ../src/guestfs-actions.pod:3967
30098 msgid "guestfs_is_file"
30102 #: ../src/guestfs-actions.pod:3969
30106 " guestfs_is_file (guestfs_h *g,\n"
30107 " const char *path);\n"
30112 #: ../src/guestfs-actions.pod:3983
30113 msgid "guestfs_is_launching"
30117 #: ../src/guestfs-actions.pod:3985
30121 " guestfs_is_launching (guestfs_h *g);\n"
30126 #: ../src/guestfs-actions.pod:3997
30127 msgid "guestfs_is_lv"
30131 #: ../src/guestfs-actions.pod:3999
30135 " guestfs_is_lv (guestfs_h *g,\n"
30136 " const char *device);\n"
30141 #: ../src/guestfs-actions.pod:4010
30142 msgid "guestfs_is_ready"
30146 #: ../src/guestfs-actions.pod:4012
30150 " guestfs_is_ready (guestfs_h *g);\n"
30155 #: ../src/guestfs-actions.pod:4024
30156 msgid "guestfs_is_socket"
30160 #: ../src/guestfs-actions.pod:4026
30164 " guestfs_is_socket (guestfs_h *g,\n"
30165 " const char *path);\n"
30170 #: ../src/guestfs-actions.pod:4039
30171 msgid "guestfs_is_symlink"
30175 #: ../src/guestfs-actions.pod:4041
30179 " guestfs_is_symlink (guestfs_h *g,\n"
30180 " const char *path);\n"
30185 #: ../src/guestfs-actions.pod:4054
30186 msgid "guestfs_is_zero"
30190 #: ../src/guestfs-actions.pod:4056
30194 " guestfs_is_zero (guestfs_h *g,\n"
30195 " const char *path);\n"
30200 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
30201 msgid "(Added in 1.11.8)"
30202 msgstr "(Додано у 1.11.8)"
30205 #: ../src/guestfs-actions.pod:4067
30206 msgid "guestfs_is_zero_device"
30210 #: ../src/guestfs-actions.pod:4069
30214 " guestfs_is_zero_device (guestfs_h *g,\n"
30215 " const char *device);\n"
30220 #: ../src/guestfs-actions.pod:4081
30221 msgid "guestfs_kill_subprocess"
30225 #: ../src/guestfs-actions.pod:4083
30229 " guestfs_kill_subprocess (guestfs_h *g);\n"
30234 #: ../src/guestfs-actions.pod:4092
30235 msgid "guestfs_launch"
30239 #: ../src/guestfs-actions.pod:4094
30243 " guestfs_launch (guestfs_h *g);\n"
30248 #: ../src/guestfs-actions.pod:4112
30249 msgid "guestfs_lchown"
30253 #: ../src/guestfs-actions.pod:4114
30257 " guestfs_lchown (guestfs_h *g,\n"
30260 " const char *path);\n"
30265 #: ../src/guestfs-actions.pod:4120
30267 "Change the file owner to C<owner> and group to C<group>. This is like "
30268 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
30269 "changed, not the target."
30273 #: ../src/guestfs-actions.pod:4132
30274 msgid "guestfs_lgetxattr"
30278 #: ../src/guestfs-actions.pod:4134
30282 " guestfs_lgetxattr (guestfs_h *g,\n"
30283 " const char *path,\n"
30284 " const char *name,\n"
30285 " size_t *size_r);\n"
30290 #: ../src/guestfs-actions.pod:4154
30291 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
30295 #: ../src/guestfs-actions.pod:4162
30296 msgid "guestfs_lgetxattrs"
30300 #: ../src/guestfs-actions.pod:4164
30303 " struct guestfs_xattr_list *\n"
30304 " guestfs_lgetxattrs (guestfs_h *g,\n"
30305 " const char *path);\n"
30310 #: ../src/guestfs-actions.pod:4168
30312 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
30313 "then it returns the extended attributes of the link itself."
30317 #: ../src/guestfs-actions.pod:4178
30318 msgid "guestfs_list_9p"
30322 #: ../src/guestfs-actions.pod:4180
30326 " guestfs_list_9p (guestfs_h *g);\n"
30331 #: ../src/guestfs-actions.pod:4192
30332 msgid "guestfs_list_devices"
30336 #: ../src/guestfs-actions.pod:4194
30340 " guestfs_list_devices (guestfs_h *g);\n"
30345 #: ../src/guestfs-actions.pod:4209
30346 msgid "guestfs_list_dm_devices"
30350 #: ../src/guestfs-actions.pod:4211
30354 " guestfs_list_dm_devices (guestfs_h *g);\n"
30359 #: ../src/guestfs-actions.pod:4216
30361 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
30362 "previous call to C<guestfs_luks_open>."
30366 #: ../src/guestfs-actions.pod:4219
30368 "Device mapper devices which correspond to logical volumes are I<not> "
30369 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
30374 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5813
30375 msgid "(Added in 1.11.15)"
30376 msgstr "(Додано у 1.11.15)"
30379 #: ../src/guestfs-actions.pod:4229
30380 msgid "guestfs_list_filesystems"
30384 #: ../src/guestfs-actions.pod:4231
30388 " guestfs_list_filesystems (guestfs_h *g);\n"
30393 #: ../src/guestfs-actions.pod:4251
30395 "This command runs other libguestfs commands, which might include "
30396 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
30397 "soon after launch and only when nothing is mounted."
30401 #: ../src/guestfs-actions.pod:4255
30403 "Not all of the filesystems returned will be mountable. In particular, swap "
30404 "partitions are returned in the list. Also this command does not check that "
30405 "each filesystem found is valid and mountable, and some filesystems might be "
30406 "mountable but require special options. Filesystems may not all belong to a "
30407 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
30411 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6173
30412 msgid "(Added in 1.5.15)"
30413 msgstr "(Додано у 1.5.15)"
30416 #: ../src/guestfs-actions.pod:4271
30418 #| msgid "guestfs_zero_device"
30419 msgid "guestfs_list_md_devices"
30420 msgstr "guestfs_zero_device"
30423 #: ../src/guestfs-actions.pod:4273
30427 #| " guestfs_lvs (guestfs_h *g);\n"
30431 " guestfs_list_md_devices (guestfs_h *g);\n"
30435 " guestfs_lvs (guestfs_h *g);\n"
30439 #: ../src/guestfs-actions.pod:4282
30440 msgid "guestfs_list_partitions"
30441 msgstr "guestfs_list_partitions"
30444 #: ../src/guestfs-actions.pod:4284
30448 " guestfs_list_partitions (guestfs_h *g);\n"
30452 " guestfs_list_partitions (guestfs_h *g);\n"
30456 #: ../src/guestfs-actions.pod:4291
30458 "This does not return logical volumes. For that you will need to call "
30463 #: ../src/guestfs-actions.pod:4302
30465 msgstr "guestfs_ll"
30468 #: ../src/guestfs-actions.pod:4304
30472 " guestfs_ll (guestfs_h *g,\n"
30473 " const char *directory);\n"
30477 " guestfs_ll (guestfs_h *g,\n"
30478 " const char *directory);\n"
30482 #: ../src/guestfs-actions.pod:4319
30484 msgstr "guestfs_ln"
30487 #: ../src/guestfs-actions.pod:4321
30491 " guestfs_ln (guestfs_h *g,\n"
30492 " const char *target,\n"
30493 " const char *linkname);\n"
30497 " guestfs_ln (guestfs_h *g,\n"
30498 " const char *target,\n"
30499 " const char *linkname);\n"
30503 #: ../src/guestfs-actions.pod:4332
30504 msgid "guestfs_ln_f"
30505 msgstr "guestfs_ln_f"
30508 #: ../src/guestfs-actions.pod:4334
30512 " guestfs_ln_f (guestfs_h *g,\n"
30513 " const char *target,\n"
30514 " const char *linkname);\n"
30518 " guestfs_ln_f (guestfs_h *g,\n"
30519 " const char *target,\n"
30520 " const char *linkname);\n"
30524 #: ../src/guestfs-actions.pod:4346
30525 msgid "guestfs_ln_s"
30526 msgstr "guestfs_ln_s"
30529 #: ../src/guestfs-actions.pod:4348
30533 " guestfs_ln_s (guestfs_h *g,\n"
30534 " const char *target,\n"
30535 " const char *linkname);\n"
30539 " guestfs_ln_s (guestfs_h *g,\n"
30540 " const char *target,\n"
30541 " const char *linkname);\n"
30545 #: ../src/guestfs-actions.pod:4359
30546 msgid "guestfs_ln_sf"
30547 msgstr "guestfs_ln_sf"
30550 #: ../src/guestfs-actions.pod:4361
30554 " guestfs_ln_sf (guestfs_h *g,\n"
30555 " const char *target,\n"
30556 " const char *linkname);\n"
30560 " guestfs_ln_sf (guestfs_h *g,\n"
30561 " const char *target,\n"
30562 " const char *linkname);\n"
30566 #: ../src/guestfs-actions.pod:4373
30567 msgid "guestfs_lremovexattr"
30568 msgstr "guestfs_lremovexattr"
30571 #: ../src/guestfs-actions.pod:4375
30575 " guestfs_lremovexattr (guestfs_h *g,\n"
30576 " const char *xattr,\n"
30577 " const char *path);\n"
30581 " guestfs_lremovexattr (guestfs_h *g,\n"
30582 " const char *xattr,\n"
30583 " const char *path);\n"
30587 #: ../src/guestfs-actions.pod:4380
30589 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30590 "link, then it removes an extended attribute of the link itself."
30594 #: ../src/guestfs-actions.pod:4388
30596 msgstr "guestfs_ls"
30599 #: ../src/guestfs-actions.pod:4390
30603 " guestfs_ls (guestfs_h *g,\n"
30604 " const char *directory);\n"
30608 " guestfs_ls (guestfs_h *g,\n"
30609 " const char *directory);\n"
30613 #: ../src/guestfs-actions.pod:4398
30615 "This command is mostly useful for interactive sessions. Programs should "
30616 "probably use C<guestfs_readdir> instead."
30620 #: ../src/guestfs-actions.pod:4407
30621 msgid "guestfs_lsetxattr"
30622 msgstr "guestfs_lsetxattr"
30625 #: ../src/guestfs-actions.pod:4409
30629 " guestfs_lsetxattr (guestfs_h *g,\n"
30630 " const char *xattr,\n"
30631 " const char *val,\n"
30633 " const char *path);\n"
30637 " guestfs_lsetxattr (guestfs_h *g,\n"
30638 " const char *xattr,\n"
30639 " const char *val,\n"
30641 " const char *path);\n"
30645 #: ../src/guestfs-actions.pod:4416
30647 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30648 "then it sets an extended attribute of the link itself."
30652 #: ../src/guestfs-actions.pod:4424
30653 msgid "guestfs_lstat"
30654 msgstr "guestfs_lstat"
30657 #: ../src/guestfs-actions.pod:4426
30660 " struct guestfs_stat *\n"
30661 " guestfs_lstat (guestfs_h *g,\n"
30662 " const char *path);\n"
30665 " struct guestfs_stat *\n"
30666 " guestfs_lstat (guestfs_h *g,\n"
30667 " const char *path);\n"
30671 #: ../src/guestfs-actions.pod:4432
30673 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30674 "link, then the link is stat-ed, not the file it refers to."
30678 #: ../src/guestfs-actions.pod:4438 ../src/guestfs-actions.pod:7353
30680 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30681 "error. I<The caller must call C<guestfs_free_stat> after use>."
30685 #: ../src/guestfs-actions.pod:4442 ../src/guestfs-actions.pod:7357
30686 #: ../src/guestfs-actions.pod:7375 ../src/guestfs-actions.pod:7876
30687 msgid "(Added in 0.9.2)"
30688 msgstr "(Додано у 0.9.2)"
30691 #: ../src/guestfs-actions.pod:4444
30692 msgid "guestfs_lstatlist"
30693 msgstr "guestfs_lstatlist"
30696 #: ../src/guestfs-actions.pod:4446
30699 " struct guestfs_stat_list *\n"
30700 " guestfs_lstatlist (guestfs_h *g,\n"
30701 " const char *path,\n"
30702 " char *const *names);\n"
30705 " struct guestfs_stat_list *\n"
30706 " guestfs_lstatlist (guestfs_h *g,\n"
30707 " const char *path,\n"
30708 " char *const *names);\n"
30712 #: ../src/guestfs-actions.pod:4451
30714 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30715 "files, where all files are in the directory C<path>. C<names> is the list "
30716 "of files from this directory."
30720 #: ../src/guestfs-actions.pod:4460
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_lxattrlist> "
30724 "for a similarly efficient call for getting extended attributes. Very long "
30725 "directory listings might cause the protocol message size to be exceeded, "
30726 "causing this call to fail. The caller must split up such requests into "
30727 "smaller groups of names."
30731 #: ../src/guestfs-actions.pod:4468
30733 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30734 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
30738 #: ../src/guestfs-actions.pod:4474
30739 msgid "guestfs_luks_add_key"
30740 msgstr "guestfs_luks_add_key"
30743 #: ../src/guestfs-actions.pod:4476
30747 " guestfs_luks_add_key (guestfs_h *g,\n"
30748 " const char *device,\n"
30749 " const char *key,\n"
30750 " const char *newkey,\n"
30755 " guestfs_luks_add_key (guestfs_h *g,\n"
30756 " const char *device,\n"
30757 " const char *key,\n"
30758 " const char *newkey,\n"
30763 #: ../src/guestfs-actions.pod:4488
30765 "Note that if C<keyslot> already contains a key, then this command will "
30766 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
30770 #: ../src/guestfs-actions.pod:4494 ../src/guestfs-actions.pod:4531
30771 #: ../src/guestfs-actions.pod:4551 ../src/guestfs-actions.pod:4571
30772 #: ../src/guestfs-actions.pod:4606 ../src/guestfs-actions.pod:4625
30774 "This function takes a key or passphrase parameter which could contain "
30775 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
30780 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4535
30781 #: ../src/guestfs-actions.pod:4555 ../src/guestfs-actions.pod:4575
30782 msgid "(Added in 1.5.2)"
30783 msgstr "(Додано у 1.5.2)"
30786 #: ../src/guestfs-actions.pod:4500
30787 msgid "guestfs_luks_close"
30788 msgstr "guestfs_luks_close"
30791 #: ../src/guestfs-actions.pod:4502
30795 " guestfs_luks_close (guestfs_h *g,\n"
30796 " const char *device);\n"
30800 " guestfs_luks_close (guestfs_h *g,\n"
30801 " const char *device);\n"
30805 #: ../src/guestfs-actions.pod:4506
30807 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30808 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
30809 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30810 "underlying block device."
30814 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4610
30815 #: ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4679
30816 #: ../src/guestfs-actions.pod:4724
30817 msgid "(Added in 1.5.1)"
30818 msgstr "(Додано у 1.5.1)"
30821 #: ../src/guestfs-actions.pod:4516
30822 msgid "guestfs_luks_format"
30823 msgstr "guestfs_luks_format"
30826 #: ../src/guestfs-actions.pod:4518
30830 " guestfs_luks_format (guestfs_h *g,\n"
30831 " const char *device,\n"
30832 " const char *key,\n"
30837 " guestfs_luks_format (guestfs_h *g,\n"
30838 " const char *device,\n"
30839 " const char *key,\n"
30844 #: ../src/guestfs-actions.pod:4537
30845 msgid "guestfs_luks_format_cipher"
30846 msgstr "guestfs_luks_format_cipher"
30849 #: ../src/guestfs-actions.pod:4539
30853 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30854 " const char *device,\n"
30855 " const char *key,\n"
30857 " const char *cipher);\n"
30861 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30862 " const char *device,\n"
30863 " const char *key,\n"
30865 " const char *cipher);\n"
30869 #: ../src/guestfs-actions.pod:4546
30871 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30872 "set the C<cipher> used."
30876 #: ../src/guestfs-actions.pod:4557
30877 msgid "guestfs_luks_kill_slot"
30878 msgstr "guestfs_luks_kill_slot"
30881 #: ../src/guestfs-actions.pod:4559
30885 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30886 " const char *device,\n"
30887 " const char *key,\n"
30892 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30893 " const char *device,\n"
30894 " const char *key,\n"
30899 #: ../src/guestfs-actions.pod:4577
30900 msgid "guestfs_luks_open"
30901 msgstr "guestfs_luks_open"
30904 #: ../src/guestfs-actions.pod:4579
30908 " guestfs_luks_open (guestfs_h *g,\n"
30909 " const char *device,\n"
30910 " const char *key,\n"
30911 " const char *mapname);\n"
30915 " guestfs_luks_open (guestfs_h *g,\n"
30916 " const char *device,\n"
30917 " const char *key,\n"
30918 " const char *mapname);\n"
30922 #: ../src/guestfs-actions.pod:4597
30924 "If this block device contains LVM volume groups, then calling "
30925 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30930 #: ../src/guestfs-actions.pod:4601
30931 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30935 #: ../src/guestfs-actions.pod:4612
30936 msgid "guestfs_luks_open_ro"
30937 msgstr "guestfs_luks_open_ro"
30940 #: ../src/guestfs-actions.pod:4614
30944 " guestfs_luks_open_ro (guestfs_h *g,\n"
30945 " const char *device,\n"
30946 " const char *key,\n"
30947 " const char *mapname);\n"
30951 " guestfs_luks_open_ro (guestfs_h *g,\n"
30952 " const char *device,\n"
30953 " const char *key,\n"
30954 " const char *mapname);\n"
30958 #: ../src/guestfs-actions.pod:4620
30960 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30965 #: ../src/guestfs-actions.pod:4631
30966 msgid "guestfs_lvcreate"
30967 msgstr "guestfs_lvcreate"
30970 #: ../src/guestfs-actions.pod:4633
30974 " guestfs_lvcreate (guestfs_h *g,\n"
30975 " const char *logvol,\n"
30976 " const char *volgroup,\n"
30981 " guestfs_lvcreate (guestfs_h *g,\n"
30982 " const char *logvol,\n"
30983 " const char *volgroup,\n"
30988 #: ../src/guestfs-actions.pod:4646
30989 msgid "guestfs_lvm_canonical_lv_name"
30990 msgstr "guestfs_lvm_canonical_lv_name"
30993 #: ../src/guestfs-actions.pod:4648
30997 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30998 " const char *lvname);\n"
31002 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31003 " const char *lvname);\n"
31007 #: ../src/guestfs-actions.pod:4659
31008 msgid "See also C<guestfs_is_lv>."
31012 #: ../src/guestfs-actions.pod:4664
31013 msgid "(Added in 1.5.24)"
31014 msgstr "(Додано у 1.5.24)"
31017 #: ../src/guestfs-actions.pod:4666
31018 msgid "guestfs_lvm_clear_filter"
31019 msgstr "guestfs_lvm_clear_filter"
31022 #: ../src/guestfs-actions.pod:4668
31026 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31030 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31034 #: ../src/guestfs-actions.pod:4671
31036 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
31037 "see every block device."
31041 #: ../src/guestfs-actions.pod:4681
31042 msgid "guestfs_lvm_remove_all"
31043 msgstr "guestfs_lvm_remove_all"
31046 #: ../src/guestfs-actions.pod:4683
31050 " guestfs_lvm_remove_all (guestfs_h *g);\n"
31054 " guestfs_lvm_remove_all (guestfs_h *g);\n"
31058 #: ../src/guestfs-actions.pod:4693
31059 msgid "guestfs_lvm_set_filter"
31060 msgstr "guestfs_lvm_set_filter"
31063 #: ../src/guestfs-actions.pod:4695
31067 " guestfs_lvm_set_filter (guestfs_h *g,\n"
31068 " char *const *devices);\n"
31072 " guestfs_lvm_set_filter (guestfs_h *g,\n"
31073 " char *const *devices);\n"
31077 #: ../src/guestfs-actions.pod:4726
31078 msgid "guestfs_lvremove"
31079 msgstr "guestfs_lvremove"
31082 #: ../src/guestfs-actions.pod:4728
31086 " guestfs_lvremove (guestfs_h *g,\n"
31087 " const char *device);\n"
31091 " guestfs_lvremove (guestfs_h *g,\n"
31092 " const char *device);\n"
31096 #: ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:6288
31097 #: ../src/guestfs-actions.pod:8246
31098 msgid "(Added in 1.0.13)"
31099 msgstr "(Додано у 1.0.13)"
31102 #: ../src/guestfs-actions.pod:4742
31103 msgid "guestfs_lvrename"
31104 msgstr "guestfs_lvrename"
31107 #: ../src/guestfs-actions.pod:4744
31111 " guestfs_lvrename (guestfs_h *g,\n"
31112 " const char *logvol,\n"
31113 " const char *newlogvol);\n"
31117 " guestfs_lvrename (guestfs_h *g,\n"
31118 " const char *logvol,\n"
31119 " const char *newlogvol);\n"
31123 #: ../src/guestfs-actions.pod:4753 ../src/guestfs-actions.pod:8259
31124 msgid "(Added in 1.0.83)"
31125 msgstr "(Додано у 1.0.83)"
31128 #: ../src/guestfs-actions.pod:4755
31129 msgid "guestfs_lvresize"
31130 msgstr "guestfs_lvresize"
31133 #: ../src/guestfs-actions.pod:4757
31137 " guestfs_lvresize (guestfs_h *g,\n"
31138 " const char *device,\n"
31143 " guestfs_lvresize (guestfs_h *g,\n"
31144 " const char *device,\n"
31149 #: ../src/guestfs-actions.pod:4770
31150 msgid "guestfs_lvresize_free"
31151 msgstr "guestfs_lvresize_free"
31154 #: ../src/guestfs-actions.pod:4772
31158 " guestfs_lvresize_free (guestfs_h *g,\n"
31159 " const char *lv,\n"
31164 " guestfs_lvresize_free (guestfs_h *g,\n"
31165 " const char *lv,\n"
31170 #: ../src/guestfs-actions.pod:4785
31171 msgid "(Added in 1.3.3)"
31172 msgstr "(Додано у 1.3.3)"
31175 #: ../src/guestfs-actions.pod:4787
31176 msgid "guestfs_lvs"
31177 msgstr "guestfs_lvs"
31180 #: ../src/guestfs-actions.pod:4789
31184 " guestfs_lvs (guestfs_h *g);\n"
31188 " guestfs_lvs (guestfs_h *g);\n"
31192 #: ../src/guestfs-actions.pod:4798
31193 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
31197 #: ../src/guestfs-actions.pod:4806
31198 msgid "guestfs_lvs_full"
31199 msgstr "guestfs_lvs_full"
31202 #: ../src/guestfs-actions.pod:4808
31205 " struct guestfs_lvm_lv_list *\n"
31206 " guestfs_lvs_full (guestfs_h *g);\n"
31209 " struct guestfs_lvm_lv_list *\n"
31210 " guestfs_lvs_full (guestfs_h *g);\n"
31214 #: ../src/guestfs-actions.pod:4814
31216 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
31217 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
31221 #: ../src/guestfs-actions.pod:4820
31222 msgid "guestfs_lvuuid"
31223 msgstr "guestfs_lvuuid"
31226 #: ../src/guestfs-actions.pod:4822
31230 " guestfs_lvuuid (guestfs_h *g,\n"
31231 " const char *device);\n"
31235 " guestfs_lvuuid (guestfs_h *g,\n"
31236 " const char *device);\n"
31240 #: ../src/guestfs-actions.pod:4833
31241 msgid "guestfs_lxattrlist"
31242 msgstr "guestfs_lxattrlist"
31245 #: ../src/guestfs-actions.pod:4835
31248 " struct guestfs_xattr_list *\n"
31249 " guestfs_lxattrlist (guestfs_h *g,\n"
31250 " const char *path,\n"
31251 " char *const *names);\n"
31254 " struct guestfs_xattr_list *\n"
31255 " guestfs_lxattrlist (guestfs_h *g,\n"
31256 " const char *path,\n"
31257 " char *const *names);\n"
31261 #: ../src/guestfs-actions.pod:4854
31263 "This call is intended for programs that want to efficiently list a directory "
31264 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
31265 "a similarly efficient call for getting standard stats. Very long directory "
31266 "listings might cause the protocol message size to be exceeded, causing this "
31267 "call to fail. The caller must split up such requests into smaller groups of "
31272 #: ../src/guestfs-actions.pod:4868
31274 #| msgid "guestfs_create"
31275 msgid "guestfs_mdadm_create"
31276 msgstr "guestfs_create"
31279 #: ../src/guestfs-actions.pod:4870
31283 #| " guestfs_mkfs_opts (guestfs_h *g,\n"
31284 #| " const char *fstype,\n"
31285 #| " const char *device,\n"
31290 " guestfs_mdadm_create (guestfs_h *g,\n"
31291 " const char *name,\n"
31292 " char *const *devices,\n"
31297 " guestfs_mkfs_opts (guestfs_h *g,\n"
31298 " const char *fstype,\n"
31299 " const char *device,\n"
31304 #: ../src/guestfs-actions.pod:4881
31307 " GUESTFS_MDADM_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
31308 " GUESTFS_MDADM_CREATE_NRDEVICES, int nrdevices,\n"
31309 " GUESTFS_MDADM_CREATE_SPARE, int spare,\n"
31310 " GUESTFS_MDADM_CREATE_CHUNK, int64_t chunk,\n"
31311 " GUESTFS_MDADM_CREATE_LEVEL, const char *level,\n"
31316 #: ../src/guestfs-actions.pod:4943
31318 #| msgid "guestfs_create"
31319 msgid "guestfs_mdadm_create_va"
31320 msgstr "guestfs_create"
31323 #: ../src/guestfs-actions.pod:4945
31327 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31328 #| " const char *fstype,\n"
31329 #| " const char *device,\n"
31330 #| " va_list args);\n"
31334 " guestfs_mdadm_create_va (guestfs_h *g,\n"
31335 " const char *name,\n"
31336 " char *const *devices,\n"
31337 " va_list args);\n"
31341 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31342 " const char *fstype,\n"
31343 " const char *device,\n"
31344 " va_list args);\n"
31348 #: ../src/guestfs-actions.pod:4951
31349 msgid "This is the \"va_list variant\" of L</guestfs_mdadm_create>."
31353 #: ../src/guestfs-actions.pod:4955
31355 #| msgid "guestfs_create"
31356 msgid "guestfs_mdadm_create_argv"
31357 msgstr "guestfs_create"
31360 #: ../src/guestfs-actions.pod:4957
31364 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31365 #| " const char *fstype,\n"
31366 #| " const char *device,\n"
31367 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
31371 " guestfs_mdadm_create_argv (guestfs_h *g,\n"
31372 " const char *name,\n"
31373 " char *const *devices,\n"
31374 " const struct guestfs_mdadm_create_argv *optargs);\n"
31378 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31379 " const char *fstype,\n"
31380 " const char *device,\n"
31381 " const struct guestfs_mkfs_opts_argv *optargs);\n"
31385 #: ../src/guestfs-actions.pod:4963
31386 msgid "This is the \"argv variant\" of L</guestfs_mdadm_create>."
31390 #: ../src/guestfs-actions.pod:4967
31392 #| msgid "guestfs_aug_get"
31393 msgid "guestfs_mdadm_detail"
31394 msgstr "guestfs_aug_get"
31397 #: ../src/guestfs-actions.pod:4969
31401 #| " guestfs_aug_get (guestfs_h *g,\n"
31402 #| " const char *augpath);\n"
31406 " guestfs_mdadm_detail (guestfs_h *g,\n"
31407 " const char *md);\n"
31411 " guestfs_aug_get (guestfs_h *g,\n"
31412 " const char *augpath);\n"
31416 #: ../src/guestfs-actions.pod:5006
31417 msgid "guestfs_mkdir"
31418 msgstr "guestfs_mkdir"
31421 #: ../src/guestfs-actions.pod:5008
31425 " guestfs_mkdir (guestfs_h *g,\n"
31426 " const char *path);\n"
31430 " guestfs_mkdir (guestfs_h *g,\n"
31431 " const char *path);\n"
31435 #: ../src/guestfs-actions.pod:5018
31436 msgid "guestfs_mkdir_mode"
31437 msgstr "guestfs_mkdir_mode"
31440 #: ../src/guestfs-actions.pod:5020
31444 " guestfs_mkdir_mode (guestfs_h *g,\n"
31445 " const char *path,\n"
31450 " guestfs_mkdir_mode (guestfs_h *g,\n"
31451 " const char *path,\n"
31456 #: ../src/guestfs-actions.pod:5032
31457 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
31461 #: ../src/guestfs-actions.pod:5038
31462 msgid "guestfs_mkdir_p"
31463 msgstr "guestfs_mkdir_p"
31466 #: ../src/guestfs-actions.pod:5040
31470 " guestfs_mkdir_p (guestfs_h *g,\n"
31471 " const char *path);\n"
31475 " guestfs_mkdir_p (guestfs_h *g,\n"
31476 " const char *path);\n"
31480 #: ../src/guestfs-actions.pod:5051
31481 msgid "guestfs_mkdtemp"
31482 msgstr "guestfs_mkdtemp"
31485 #: ../src/guestfs-actions.pod:5053
31489 " guestfs_mkdtemp (guestfs_h *g,\n"
31490 " const char *template);\n"
31494 " guestfs_mkdtemp (guestfs_h *g,\n"
31495 " const char *template);\n"
31499 #: ../src/guestfs-actions.pod:5081
31500 msgid "guestfs_mke2fs_J"
31501 msgstr "guestfs_mke2fs_J"
31504 #: ../src/guestfs-actions.pod:5083
31508 " guestfs_mke2fs_J (guestfs_h *g,\n"
31509 " const char *fstype,\n"
31510 " int blocksize,\n"
31511 " const char *device,\n"
31512 " const char *journal);\n"
31516 " guestfs_mke2fs_J (guestfs_h *g,\n"
31517 " const char *fstype,\n"
31518 " int blocksize,\n"
31519 " const char *device,\n"
31520 " const char *journal);\n"
31524 #: ../src/guestfs-actions.pod:5096
31525 msgid "See also C<guestfs_mke2journal>."
31529 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5118
31530 #: ../src/guestfs-actions.pod:5136 ../src/guestfs-actions.pod:5152
31531 #: ../src/guestfs-actions.pod:5166 ../src/guestfs-actions.pod:5180
31532 #: ../src/guestfs-actions.pod:5239 ../src/guestfs-actions.pod:5516
31533 msgid "(Added in 1.0.68)"
31534 msgstr "(Додано у 1.0.68)"
31537 #: ../src/guestfs-actions.pod:5102
31538 msgid "guestfs_mke2fs_JL"
31539 msgstr "guestfs_mke2fs_JL"
31542 #: ../src/guestfs-actions.pod:5104
31546 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31547 " const char *fstype,\n"
31548 " int blocksize,\n"
31549 " const char *device,\n"
31550 " const char *label);\n"
31554 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31555 " const char *fstype,\n"
31556 " int blocksize,\n"
31557 " const char *device,\n"
31558 " const char *label);\n"
31562 #: ../src/guestfs-actions.pod:5114
31563 msgid "See also C<guestfs_mke2journal_L>."
31567 #: ../src/guestfs-actions.pod:5120
31568 msgid "guestfs_mke2fs_JU"
31569 msgstr "guestfs_mke2fs_JU"
31572 #: ../src/guestfs-actions.pod:5122
31576 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31577 " const char *fstype,\n"
31578 " int blocksize,\n"
31579 " const char *device,\n"
31580 " const char *uuid);\n"
31584 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31585 " const char *fstype,\n"
31586 " int blocksize,\n"
31587 " const char *device,\n"
31588 " const char *uuid);\n"
31592 #: ../src/guestfs-actions.pod:5132
31593 msgid "See also C<guestfs_mke2journal_U>."
31597 #: ../src/guestfs-actions.pod:5138
31598 msgid "guestfs_mke2journal"
31599 msgstr "guestfs_mke2journal"
31602 #: ../src/guestfs-actions.pod:5140
31606 " guestfs_mke2journal (guestfs_h *g,\n"
31607 " int blocksize,\n"
31608 " const char *device);\n"
31612 " guestfs_mke2journal (guestfs_h *g,\n"
31613 " int blocksize,\n"
31614 " const char *device);\n"
31618 #: ../src/guestfs-actions.pod:5154
31619 msgid "guestfs_mke2journal_L"
31620 msgstr "guestfs_mke2journal_L"
31623 #: ../src/guestfs-actions.pod:5156
31627 " guestfs_mke2journal_L (guestfs_h *g,\n"
31628 " int blocksize,\n"
31629 " const char *label,\n"
31630 " const char *device);\n"
31634 " guestfs_mke2journal_L (guestfs_h *g,\n"
31635 " int blocksize,\n"
31636 " const char *label,\n"
31637 " const char *device);\n"
31641 #: ../src/guestfs-actions.pod:5168
31642 msgid "guestfs_mke2journal_U"
31643 msgstr "guestfs_mke2journal_U"
31646 #: ../src/guestfs-actions.pod:5170
31650 " guestfs_mke2journal_U (guestfs_h *g,\n"
31651 " int blocksize,\n"
31652 " const char *uuid,\n"
31653 " const char *device);\n"
31657 " guestfs_mke2journal_U (guestfs_h *g,\n"
31658 " int blocksize,\n"
31659 " const char *uuid,\n"
31660 " const char *device);\n"
31664 #: ../src/guestfs-actions.pod:5182
31665 msgid "guestfs_mkfifo"
31666 msgstr "guestfs_mkfifo"
31669 #: ../src/guestfs-actions.pod:5184
31673 " guestfs_mkfifo (guestfs_h *g,\n"
31675 " const char *path);\n"
31679 " guestfs_mkfifo (guestfs_h *g,\n"
31681 " const char *path);\n"
31685 #: ../src/guestfs-actions.pod:5189
31687 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
31688 "is just a convenient wrapper around C<guestfs_mknod>."
31692 #: ../src/guestfs-actions.pod:5199
31693 msgid "guestfs_mkfs"
31694 msgstr "guestfs_mkfs"
31697 #: ../src/guestfs-actions.pod:5201
31701 " guestfs_mkfs (guestfs_h *g,\n"
31702 " const char *fstype,\n"
31703 " const char *device);\n"
31707 " guestfs_mkfs (guestfs_h *g,\n"
31708 " const char *fstype,\n"
31709 " const char *device);\n"
31713 #: ../src/guestfs-actions.pod:5214
31714 msgid "guestfs_mkfs_b"
31715 msgstr "guestfs_mkfs_b"
31718 #: ../src/guestfs-actions.pod:5216
31722 " guestfs_mkfs_b (guestfs_h *g,\n"
31723 " const char *fstype,\n"
31724 " int blocksize,\n"
31725 " const char *device);\n"
31729 " guestfs_mkfs_b (guestfs_h *g,\n"
31730 " const char *fstype,\n"
31731 " int blocksize,\n"
31732 " const char *device);\n"
31736 #: ../src/guestfs-actions.pod:5222
31738 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31743 #: ../src/guestfs-actions.pod:5229
31745 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31746 "block size of the resulting filesystem. Supported block sizes depend on the "
31747 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31751 #: ../src/guestfs-actions.pod:5241
31752 msgid "guestfs_mkfs_opts"
31753 msgstr "guestfs_mkfs_opts"
31756 #: ../src/guestfs-actions.pod:5243
31760 " guestfs_mkfs_opts (guestfs_h *g,\n"
31761 " const char *fstype,\n"
31762 " const char *device,\n"
31767 " guestfs_mkfs_opts (guestfs_h *g,\n"
31768 " const char *fstype,\n"
31769 " const char *device,\n"
31774 #: ../src/guestfs-actions.pod:5254
31777 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31778 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31779 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31780 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31785 #: ../src/guestfs-actions.pod:5302
31786 msgid "(Added in 1.7.19)"
31787 msgstr "(Додано у 1.7.19)"
31790 #: ../src/guestfs-actions.pod:5304
31791 msgid "guestfs_mkfs_opts_va"
31792 msgstr "guestfs_mkfs_opts_va"
31795 #: ../src/guestfs-actions.pod:5306
31799 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31800 " const char *fstype,\n"
31801 " const char *device,\n"
31802 " va_list args);\n"
31806 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31807 " const char *fstype,\n"
31808 " const char *device,\n"
31809 " va_list args);\n"
31813 #: ../src/guestfs-actions.pod:5312
31814 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31818 #: ../src/guestfs-actions.pod:5316
31819 msgid "guestfs_mkfs_opts_argv"
31820 msgstr "guestfs_mkfs_opts_argv"
31823 #: ../src/guestfs-actions.pod:5318
31827 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31828 " const char *fstype,\n"
31829 " const char *device,\n"
31830 " const struct guestfs_mkfs_opts_argv *optargs);\n"
31834 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31835 " const char *fstype,\n"
31836 " const char *device,\n"
31837 " const struct guestfs_mkfs_opts_argv *optargs);\n"
31841 #: ../src/guestfs-actions.pod:5324
31842 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31846 #: ../src/guestfs-actions.pod:5328
31847 msgid "guestfs_mkmountpoint"
31848 msgstr "guestfs_mkmountpoint"
31851 #: ../src/guestfs-actions.pod:5330
31855 " guestfs_mkmountpoint (guestfs_h *g,\n"
31856 " const char *exemptpath);\n"
31860 " guestfs_mkmountpoint (guestfs_h *g,\n"
31861 " const char *exemptpath);\n"
31865 #: ../src/guestfs-actions.pod:5334
31867 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31868 "that can be used to create extra mountpoints before mounting the first "
31873 #: ../src/guestfs-actions.pod:5358
31875 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
31876 "may get unexpected errors if you try to mix these calls. It is safest to "
31877 "manually unmount filesystems and remove mountpoints after use."
31881 #: ../src/guestfs-actions.pod:5362
31883 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31884 "first, so for this to work for manual mountpoints, you must ensure that the "
31885 "innermost mountpoints have the longest pathnames, as in the example code "
31890 #: ../src/guestfs-actions.pod:5369
31892 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31893 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31894 "can also trigger these issues."
31898 #: ../src/guestfs-actions.pod:5375 ../src/guestfs-actions.pod:5681
31899 #: ../src/guestfs-actions.pod:6708
31900 msgid "(Added in 1.0.62)"
31901 msgstr "(Додано у 1.0.62)"
31904 #: ../src/guestfs-actions.pod:5377
31905 msgid "guestfs_mknod"
31909 #: ../src/guestfs-actions.pod:5379
31913 " guestfs_mknod (guestfs_h *g,\n"
31917 " const char *path);\n"
31922 #: ../src/guestfs-actions.pod:5394
31924 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31925 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31926 "regular file). These constants are available in the standard Linux header "
31927 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31928 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31929 "the appropriate constant for you."
31933 #: ../src/guestfs-actions.pod:5408
31934 msgid "guestfs_mknod_b"
31938 #: ../src/guestfs-actions.pod:5410
31942 " guestfs_mknod_b (guestfs_h *g,\n"
31946 " const char *path);\n"
31951 #: ../src/guestfs-actions.pod:5417
31953 "This call creates a block device node called C<path> with mode C<mode> and "
31954 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
31955 "wrapper around C<guestfs_mknod>."
31959 #: ../src/guestfs-actions.pod:5427
31960 msgid "guestfs_mknod_c"
31964 #: ../src/guestfs-actions.pod:5429
31968 " guestfs_mknod_c (guestfs_h *g,\n"
31972 " const char *path);\n"
31977 #: ../src/guestfs-actions.pod:5436
31979 "This call creates a char device node called C<path> with mode C<mode> and "
31980 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
31981 "wrapper around C<guestfs_mknod>."
31985 #: ../src/guestfs-actions.pod:5446
31986 msgid "guestfs_mkswap"
31990 #: ../src/guestfs-actions.pod:5448
31994 " guestfs_mkswap (guestfs_h *g,\n"
31995 " const char *device);\n"
32000 #: ../src/guestfs-actions.pod:5458
32001 msgid "guestfs_mkswap_L"
32005 #: ../src/guestfs-actions.pod:5460
32009 " guestfs_mkswap_L (guestfs_h *g,\n"
32010 " const char *label,\n"
32011 " const char *device);\n"
32016 #: ../src/guestfs-actions.pod:5475
32017 msgid "guestfs_mkswap_U"
32021 #: ../src/guestfs-actions.pod:5477
32025 " guestfs_mkswap_U (guestfs_h *g,\n"
32026 " const char *uuid,\n"
32027 " const char *device);\n"
32032 #: ../src/guestfs-actions.pod:5488
32033 msgid "guestfs_mkswap_file"
32037 #: ../src/guestfs-actions.pod:5490
32041 " guestfs_mkswap_file (guestfs_h *g,\n"
32042 " const char *path);\n"
32047 #: ../src/guestfs-actions.pod:5496
32049 "This command just writes a swap file signature to an existing file. To "
32050 "create the file itself, use something like C<guestfs_fallocate>."
32054 #: ../src/guestfs-actions.pod:5503
32055 msgid "guestfs_modprobe"
32059 #: ../src/guestfs-actions.pod:5505
32063 " guestfs_modprobe (guestfs_h *g,\n"
32064 " const char *modulename);\n"
32069 #: ../src/guestfs-actions.pod:5518
32070 msgid "guestfs_mount"
32074 #: ../src/guestfs-actions.pod:5520
32078 " guestfs_mount (guestfs_h *g,\n"
32079 " const char *device,\n"
32080 " const char *mountpoint);\n"
32085 #: ../src/guestfs-actions.pod:5539
32087 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
32088 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
32089 "problems for users. If your program might need to work with older versions "
32090 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
32091 "for the first parameter if you don't want any options)."
32095 #: ../src/guestfs-actions.pod:5550
32096 msgid "guestfs_mount_9p"
32100 #: ../src/guestfs-actions.pod:5552
32104 " guestfs_mount_9p (guestfs_h *g,\n"
32105 " const char *mounttag,\n"
32106 " const char *mountpoint,\n"
32112 #: ../src/guestfs-actions.pod:5563
32115 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
32120 #: ../src/guestfs-actions.pod:5576
32121 msgid "guestfs_mount_9p_va"
32125 #: ../src/guestfs-actions.pod:5578
32129 " guestfs_mount_9p_va (guestfs_h *g,\n"
32130 " const char *mounttag,\n"
32131 " const char *mountpoint,\n"
32132 " va_list args);\n"
32137 #: ../src/guestfs-actions.pod:5584
32138 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
32142 #: ../src/guestfs-actions.pod:5588
32143 msgid "guestfs_mount_9p_argv"
32147 #: ../src/guestfs-actions.pod:5590
32151 " guestfs_mount_9p_argv (guestfs_h *g,\n"
32152 " const char *mounttag,\n"
32153 " const char *mountpoint,\n"
32154 " const struct guestfs_mount_9p_argv *optargs);\n"
32159 #: ../src/guestfs-actions.pod:5596
32160 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
32164 #: ../src/guestfs-actions.pod:5600
32165 msgid "guestfs_mount_loop"
32169 #: ../src/guestfs-actions.pod:5602
32173 " guestfs_mount_loop (guestfs_h *g,\n"
32174 " const char *file,\n"
32175 " const char *mountpoint);\n"
32180 #: ../src/guestfs-actions.pod:5615
32181 msgid "guestfs_mount_options"
32185 #: ../src/guestfs-actions.pod:5617
32189 " guestfs_mount_options (guestfs_h *g,\n"
32190 " const char *options,\n"
32191 " const char *device,\n"
32192 " const char *mountpoint);\n"
32197 #: ../src/guestfs-actions.pod:5623
32199 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32200 "the mount options as for the L<mount(8)> I<-o> flag."
32204 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5647
32205 #: ../src/guestfs-actions.pod:5664
32206 msgid "(Added in 1.0.10)"
32207 msgstr "(Додано у 1.0.10)"
32210 #: ../src/guestfs-actions.pod:5635
32211 msgid "guestfs_mount_ro"
32215 #: ../src/guestfs-actions.pod:5637
32219 " guestfs_mount_ro (guestfs_h *g,\n"
32220 " const char *device,\n"
32221 " const char *mountpoint);\n"
32226 #: ../src/guestfs-actions.pod:5642
32228 "This is the same as the C<guestfs_mount> command, but it mounts the "
32229 "filesystem with the read-only (I<-o ro>) flag."
32233 #: ../src/guestfs-actions.pod:5649
32234 msgid "guestfs_mount_vfs"
32238 #: ../src/guestfs-actions.pod:5651
32242 " guestfs_mount_vfs (guestfs_h *g,\n"
32243 " const char *options,\n"
32244 " const char *vfstype,\n"
32245 " const char *device,\n"
32246 " const char *mountpoint);\n"
32251 #: ../src/guestfs-actions.pod:5658
32253 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32254 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
32259 #: ../src/guestfs-actions.pod:5666
32260 msgid "guestfs_mountpoints"
32264 #: ../src/guestfs-actions.pod:5668
32268 " guestfs_mountpoints (guestfs_h *g);\n"
32273 #: ../src/guestfs-actions.pod:5671
32275 "This call is similar to C<guestfs_mounts>. That call returns a list of "
32276 "devices. This one returns a hash table (map) of device name to directory "
32277 "where the device is mounted."
32281 #: ../src/guestfs-actions.pod:5683
32282 msgid "guestfs_mounts"
32286 #: ../src/guestfs-actions.pod:5685
32290 " guestfs_mounts (guestfs_h *g);\n"
32295 #: ../src/guestfs-actions.pod:5693
32296 msgid "See also: C<guestfs_mountpoints>"
32300 #: ../src/guestfs-actions.pod:5701
32305 #: ../src/guestfs-actions.pod:5703
32309 " guestfs_mv (guestfs_h *g,\n"
32310 " const char *src,\n"
32311 " const char *dest);\n"
32316 #: ../src/guestfs-actions.pod:5715
32317 msgid "guestfs_ntfs_3g_probe"
32321 #: ../src/guestfs-actions.pod:5717
32325 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
32327 " const char *device);\n"
32332 #: ../src/guestfs-actions.pod:5736
32333 msgid "(Added in 1.0.43)"
32334 msgstr "(Додано у 1.0.43)"
32337 #: ../src/guestfs-actions.pod:5738
32338 msgid "guestfs_ntfsresize"
32342 #: ../src/guestfs-actions.pod:5740
32346 " guestfs_ntfsresize (guestfs_h *g,\n"
32347 " const char *device);\n"
32352 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:5844
32354 "I<This function is deprecated.> In new code, use the L</"
32355 "guestfs_ntfsresize_opts> call instead."
32359 #: ../src/guestfs-actions.pod:5768
32360 msgid "guestfs_ntfsresize_opts"
32364 #: ../src/guestfs-actions.pod:5770
32368 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
32369 " const char *device,\n"
32375 #: ../src/guestfs-actions.pod:5780
32378 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
32379 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
32384 #: ../src/guestfs-actions.pod:5800
32386 "After the resize operation, the filesystem is always marked as requiring a "
32387 "consistency check (for safety). You have to boot into Windows to perform "
32388 "this check and clear this condition. If you I<don't> set the C<force> "
32389 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
32390 "times on a single filesystem without booting into Windows between each "
32395 #: ../src/guestfs-actions.pod:5815
32396 msgid "guestfs_ntfsresize_opts_va"
32400 #: ../src/guestfs-actions.pod:5817
32404 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
32405 " const char *device,\n"
32406 " va_list args);\n"
32411 #: ../src/guestfs-actions.pod:5822
32412 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
32416 #: ../src/guestfs-actions.pod:5826
32417 msgid "guestfs_ntfsresize_opts_argv"
32421 #: ../src/guestfs-actions.pod:5828
32425 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
32426 " const char *device,\n"
32427 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
32432 #: ../src/guestfs-actions.pod:5833
32433 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
32437 #: ../src/guestfs-actions.pod:5837
32438 msgid "guestfs_ntfsresize_size"
32442 #: ../src/guestfs-actions.pod:5839
32446 " guestfs_ntfsresize_size (guestfs_h *g,\n"
32447 " const char *device,\n"
32448 " int64_t size);\n"
32453 #: ../src/guestfs-actions.pod:5851
32455 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
32456 "to specify the new size (in bytes) explicitly."
32460 #: ../src/guestfs-actions.pod:5856 ../src/guestfs-actions.pod:6315
32461 #: ../src/guestfs-actions.pod:6388 ../src/guestfs-actions.pod:6656
32462 #: ../src/guestfs-actions.pod:8403
32463 msgid "(Added in 1.3.14)"
32464 msgstr "(Додано у 1.3.14)"
32467 #: ../src/guestfs-actions.pod:5858
32468 msgid "guestfs_part_add"
32472 #: ../src/guestfs-actions.pod:5860
32476 " guestfs_part_add (guestfs_h *g,\n"
32477 " const char *device,\n"
32478 " const char *prlogex,\n"
32479 " int64_t startsect,\n"
32480 " int64_t endsect);\n"
32485 #: ../src/guestfs-actions.pod:5867
32487 "This command adds a partition to C<device>. If there is no partition table "
32488 "on the device, call C<guestfs_part_init> first."
32492 #: ../src/guestfs-actions.pod:5879
32494 "Creating a partition which covers the whole disk is not so easy. Use "
32495 "C<guestfs_part_disk> to do that."
32499 #: ../src/guestfs-actions.pod:5884 ../src/guestfs-actions.pod:5919
32500 #: ../src/guestfs-actions.pod:5972 ../src/guestfs-actions.pod:6056
32501 #: ../src/guestfs-actions.pod:6094 ../src/guestfs-actions.pod:6113
32502 #: ../src/guestfs-actions.pod:6153
32503 msgid "(Added in 1.0.78)"
32504 msgstr "(Додано у 1.0.78)"
32507 #: ../src/guestfs-actions.pod:5886
32508 msgid "guestfs_part_del"
32512 #: ../src/guestfs-actions.pod:5888
32516 " guestfs_part_del (guestfs_h *g,\n"
32517 " const char *device,\n"
32523 #: ../src/guestfs-actions.pod:5903
32524 msgid "guestfs_part_disk"
32528 #: ../src/guestfs-actions.pod:5905
32532 " guestfs_part_disk (guestfs_h *g,\n"
32533 " const char *device,\n"
32534 " const char *parttype);\n"
32539 #: ../src/guestfs-actions.pod:5910
32541 "This command is simply a combination of C<guestfs_part_init> followed by "
32542 "C<guestfs_part_add> to create a single primary partition covering the whole "
32547 #: ../src/guestfs-actions.pod:5914
32549 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
32550 "possible values are described in C<guestfs_part_init>."
32554 #: ../src/guestfs-actions.pod:5921
32555 msgid "guestfs_part_get_bootable"
32559 #: ../src/guestfs-actions.pod:5923
32563 " guestfs_part_get_bootable (guestfs_h *g,\n"
32564 " const char *device,\n"
32570 #: ../src/guestfs-actions.pod:5931
32571 msgid "See also C<guestfs_part_set_bootable>."
32575 #: ../src/guestfs-actions.pod:5937
32576 msgid "guestfs_part_get_mbr_id"
32580 #: ../src/guestfs-actions.pod:5939
32584 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
32585 " const char *device,\n"
32591 #: ../src/guestfs-actions.pod:5947 ../src/guestfs-actions.pod:6129
32593 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
32594 "undefined results for other partition table types (see "
32595 "C<guestfs_part_get_parttype>)."
32599 #: ../src/guestfs-actions.pod:5955
32600 msgid "guestfs_part_get_parttype"
32604 #: ../src/guestfs-actions.pod:5957
32608 " guestfs_part_get_parttype (guestfs_h *g,\n"
32609 " const char *device);\n"
32614 #: ../src/guestfs-actions.pod:5964
32616 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32617 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
32618 "possible, although unusual. See C<guestfs_part_init> for a full list."
32622 #: ../src/guestfs-actions.pod:5974
32623 msgid "guestfs_part_init"
32627 #: ../src/guestfs-actions.pod:5976
32631 " guestfs_part_init (guestfs_h *g,\n"
32632 " const char *device,\n"
32633 " const char *parttype);\n"
32638 #: ../src/guestfs-actions.pod:5985
32640 "Initially there are no partitions. Following this, you should call "
32641 "C<guestfs_part_add> for each partition required."
32645 #: ../src/guestfs-actions.pod:6058
32646 msgid "guestfs_part_list"
32647 msgstr "guestfs_part_list"
32650 #: ../src/guestfs-actions.pod:6060
32653 " struct guestfs_partition_list *\n"
32654 " guestfs_part_list (guestfs_h *g,\n"
32655 " const char *device);\n"
32658 " struct guestfs_partition_list *\n"
32659 " guestfs_part_list (guestfs_h *g,\n"
32660 " const char *device);\n"
32664 #: ../src/guestfs-actions.pod:6077
32666 "Start of the partition I<in bytes>. To get sectors you have to divide by "
32667 "the device's sector size, see C<guestfs_blockdev_getss>."
32671 #: ../src/guestfs-actions.pod:6090
32673 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32674 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
32679 #: ../src/guestfs-actions.pod:6096
32680 msgid "guestfs_part_set_bootable"
32684 #: ../src/guestfs-actions.pod:6098
32688 " guestfs_part_set_bootable (guestfs_h *g,\n"
32689 " const char *device,\n"
32691 " int bootable);\n"
32696 #: ../src/guestfs-actions.pod:6115
32697 msgid "guestfs_part_set_mbr_id"
32701 #: ../src/guestfs-actions.pod:6117
32705 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32706 " const char *device,\n"
32713 #: ../src/guestfs-actions.pod:6137
32714 msgid "guestfs_part_set_name"
32718 #: ../src/guestfs-actions.pod:6139
32722 " guestfs_part_set_name (guestfs_h *g,\n"
32723 " const char *device,\n"
32725 " const char *name);\n"
32730 #: ../src/guestfs-actions.pod:6155
32731 msgid "guestfs_part_to_dev"
32735 #: ../src/guestfs-actions.pod:6157
32739 " guestfs_part_to_dev (guestfs_h *g,\n"
32740 " const char *partition);\n"
32745 #: ../src/guestfs-actions.pod:6165 ../src/guestfs-actions.pod:6184
32747 "The named partition must exist, for example as a string returned from "
32748 "C<guestfs_list_partitions>."
32752 #: ../src/guestfs-actions.pod:6168
32753 msgid "See also C<guestfs_part_to_partnum>."
32757 #: ../src/guestfs-actions.pod:6175
32758 msgid "guestfs_part_to_partnum"
32762 #: ../src/guestfs-actions.pod:6177
32766 " guestfs_part_to_partnum (guestfs_h *g,\n"
32767 " const char *partition);\n"
32772 #: ../src/guestfs-actions.pod:6187
32773 msgid "See also C<guestfs_part_to_dev>."
32777 #: ../src/guestfs-actions.pod:6193
32778 msgid "guestfs_ping_daemon"
32782 #: ../src/guestfs-actions.pod:6195
32786 " guestfs_ping_daemon (guestfs_h *g);\n"
32791 #: ../src/guestfs-actions.pod:6207
32792 msgid "guestfs_pread"
32796 #: ../src/guestfs-actions.pod:6209
32800 " guestfs_pread (guestfs_h *g,\n"
32801 " const char *path,\n"
32803 " int64_t offset,\n"
32804 " size_t *size_r);\n"
32809 #: ../src/guestfs-actions.pod:6222
32810 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32814 #: ../src/guestfs-actions.pod:6233
32815 msgid "guestfs_pread_device"
32819 #: ../src/guestfs-actions.pod:6235
32823 " guestfs_pread_device (guestfs_h *g,\n"
32824 " const char *device,\n"
32826 " int64_t offset,\n"
32827 " size_t *size_r);\n"
32832 #: ../src/guestfs-actions.pod:6248
32833 msgid "See also C<guestfs_pread>."
32837 #: ../src/guestfs-actions.pod:6257
32838 msgid "(Added in 1.5.21)"
32839 msgstr "(Додано у 1.5.21)"
32842 #: ../src/guestfs-actions.pod:6259
32843 msgid "guestfs_pvcreate"
32847 #: ../src/guestfs-actions.pod:6261
32851 " guestfs_pvcreate (guestfs_h *g,\n"
32852 " const char *device);\n"
32857 #: ../src/guestfs-actions.pod:6273
32858 msgid "guestfs_pvremove"
32862 #: ../src/guestfs-actions.pod:6275
32866 " guestfs_pvremove (guestfs_h *g,\n"
32867 " const char *device);\n"
32872 #: ../src/guestfs-actions.pod:6290
32873 msgid "guestfs_pvresize"
32877 #: ../src/guestfs-actions.pod:6292
32881 " guestfs_pvresize (guestfs_h *g,\n"
32882 " const char *device);\n"
32887 #: ../src/guestfs-actions.pod:6303
32888 msgid "guestfs_pvresize_size"
32892 #: ../src/guestfs-actions.pod:6305
32896 " guestfs_pvresize_size (guestfs_h *g,\n"
32897 " const char *device,\n"
32898 " int64_t size);\n"
32903 #: ../src/guestfs-actions.pod:6310
32905 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32906 "specify the new size (in bytes) explicitly."
32910 #: ../src/guestfs-actions.pod:6317
32911 msgid "guestfs_pvs"
32915 #: ../src/guestfs-actions.pod:6319
32919 " guestfs_pvs (guestfs_h *g);\n"
32924 #: ../src/guestfs-actions.pod:6328
32925 msgid "See also C<guestfs_pvs_full>."
32929 #: ../src/guestfs-actions.pod:6336
32930 msgid "guestfs_pvs_full"
32934 #: ../src/guestfs-actions.pod:6338
32937 " struct guestfs_lvm_pv_list *\n"
32938 " guestfs_pvs_full (guestfs_h *g);\n"
32943 #: ../src/guestfs-actions.pod:6344
32945 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32946 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32950 #: ../src/guestfs-actions.pod:6350
32951 msgid "guestfs_pvuuid"
32955 #: ../src/guestfs-actions.pod:6352
32959 " guestfs_pvuuid (guestfs_h *g,\n"
32960 " const char *device);\n"
32965 #: ../src/guestfs-actions.pod:6363
32966 msgid "guestfs_pwrite"
32970 #: ../src/guestfs-actions.pod:6365
32974 " guestfs_pwrite (guestfs_h *g,\n"
32975 " const char *path,\n"
32976 " const char *content,\n"
32977 " size_t content_size,\n"
32978 " int64_t offset);\n"
32983 #: ../src/guestfs-actions.pod:6381
32984 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32988 #: ../src/guestfs-actions.pod:6390
32989 msgid "guestfs_pwrite_device"
32993 #: ../src/guestfs-actions.pod:6392
32997 " guestfs_pwrite_device (guestfs_h *g,\n"
32998 " const char *device,\n"
32999 " const char *content,\n"
33000 " size_t content_size,\n"
33001 " int64_t offset);\n"
33006 #: ../src/guestfs-actions.pod:6407
33007 msgid "See also C<guestfs_pwrite>."
33011 #: ../src/guestfs-actions.pod:6414
33012 msgid "(Added in 1.5.20)"
33013 msgstr "(Додано у 1.5.20)"
33016 #: ../src/guestfs-actions.pod:6416
33017 msgid "guestfs_read_file"
33021 #: ../src/guestfs-actions.pod:6418
33025 " guestfs_read_file (guestfs_h *g,\n"
33026 " const char *path,\n"
33027 " size_t *size_r);\n"
33032 #: ../src/guestfs-actions.pod:6426
33034 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
33035 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
33036 "function is limited in the total size of file that can be handled."
33040 #: ../src/guestfs-actions.pod:6438
33041 msgid "(Added in 1.0.63)"
33042 msgstr "(Додано у 1.0.63)"
33045 #: ../src/guestfs-actions.pod:6440
33046 msgid "guestfs_read_lines"
33050 #: ../src/guestfs-actions.pod:6442
33054 " guestfs_read_lines (guestfs_h *g,\n"
33055 " const char *path);\n"
33060 #: ../src/guestfs-actions.pod:6451
33062 "Note that this function cannot correctly handle binary files (specifically, "
33063 "files containing C<\\0> character which is treated as end of line). For "
33064 "those you need to use the C<guestfs_read_file> function which has a more "
33065 "complex interface."
33069 #: ../src/guestfs-actions.pod:6462
33070 msgid "guestfs_readdir"
33074 #: ../src/guestfs-actions.pod:6464
33077 " struct guestfs_dirent_list *\n"
33078 " guestfs_readdir (guestfs_h *g,\n"
33079 " const char *dir);\n"
33084 #: ../src/guestfs-actions.pod:6518
33086 "This function is primarily intended for use by programs. To get a simple "
33087 "list of names, use C<guestfs_ls>. To get a printable directory for human "
33088 "consumption, use C<guestfs_ll>."
33092 #: ../src/guestfs-actions.pod:6522
33094 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
33095 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
33099 #: ../src/guestfs-actions.pod:6528
33100 msgid "guestfs_readlink"
33104 #: ../src/guestfs-actions.pod:6530
33108 " guestfs_readlink (guestfs_h *g,\n"
33109 " const char *path);\n"
33114 #: ../src/guestfs-actions.pod:6541
33115 msgid "guestfs_readlinklist"
33119 #: ../src/guestfs-actions.pod:6543
33123 " guestfs_readlinklist (guestfs_h *g,\n"
33124 " const char *path,\n"
33125 " char *const *names);\n"
33130 #: ../src/guestfs-actions.pod:6576
33131 msgid "guestfs_realpath"
33135 #: ../src/guestfs-actions.pod:6578
33139 " guestfs_realpath (guestfs_h *g,\n"
33140 " const char *path);\n"
33145 #: ../src/guestfs-actions.pod:6590
33146 msgid "guestfs_removexattr"
33150 #: ../src/guestfs-actions.pod:6592
33154 " guestfs_removexattr (guestfs_h *g,\n"
33155 " const char *xattr,\n"
33156 " const char *path);\n"
33161 #: ../src/guestfs-actions.pod:6600
33162 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
33166 #: ../src/guestfs-actions.pod:6606
33167 msgid "guestfs_resize2fs"
33171 #: ../src/guestfs-actions.pod:6608
33175 " guestfs_resize2fs (guestfs_h *g,\n"
33176 " const char *device);\n"
33181 #: ../src/guestfs-actions.pod:6615
33183 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
33184 "C<device> before calling this command. For unknown reasons C<resize2fs> "
33185 "sometimes gives an error about this and sometimes not. In any case, it is "
33186 "always safe to call C<guestfs_e2fsck_f> before calling this function."
33190 #: ../src/guestfs-actions.pod:6625
33191 msgid "guestfs_resize2fs_M"
33195 #: ../src/guestfs-actions.pod:6627
33199 " guestfs_resize2fs_M (guestfs_h *g,\n"
33200 " const char *device);\n"
33205 #: ../src/guestfs-actions.pod:6631
33207 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
33208 "resized to its minimum size. This works like the I<-M> option to the "
33209 "C<resize2fs> command."
33213 #: ../src/guestfs-actions.pod:6635
33215 "To get the resulting size of the filesystem you should call "
33216 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
33217 "These two numbers, multiplied together, give the resulting size of the "
33218 "minimal filesystem in bytes."
33222 #: ../src/guestfs-actions.pod:6644
33223 msgid "guestfs_resize2fs_size"
33227 #: ../src/guestfs-actions.pod:6646
33231 " guestfs_resize2fs_size (guestfs_h *g,\n"
33232 " const char *device,\n"
33233 " int64_t size);\n"
33238 #: ../src/guestfs-actions.pod:6651
33240 "This command is the same as C<guestfs_resize2fs> except that it allows you "
33241 "to specify the new size (in bytes) explicitly."
33245 #: ../src/guestfs-actions.pod:6658
33250 #: ../src/guestfs-actions.pod:6660
33254 " guestfs_rm (guestfs_h *g,\n"
33255 " const char *path);\n"
33260 #: ../src/guestfs-actions.pod:6670
33261 msgid "guestfs_rm_rf"
33265 #: ../src/guestfs-actions.pod:6672
33269 " guestfs_rm_rf (guestfs_h *g,\n"
33270 " const char *path);\n"
33275 #: ../src/guestfs-actions.pod:6684
33276 msgid "guestfs_rmdir"
33280 #: ../src/guestfs-actions.pod:6686
33284 " guestfs_rmdir (guestfs_h *g,\n"
33285 " const char *path);\n"
33290 #: ../src/guestfs-actions.pod:6696
33291 msgid "guestfs_rmmountpoint"
33295 #: ../src/guestfs-actions.pod:6698
33299 " guestfs_rmmountpoint (guestfs_h *g,\n"
33300 " const char *exemptpath);\n"
33305 #: ../src/guestfs-actions.pod:6702
33307 "This calls removes a mountpoint that was previously created with "
33308 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
33312 #: ../src/guestfs-actions.pod:6710
33313 msgid "guestfs_scrub_device"
33317 #: ../src/guestfs-actions.pod:6712
33321 " guestfs_scrub_device (guestfs_h *g,\n"
33322 " const char *device);\n"
33327 #: ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6742
33328 #: ../src/guestfs-actions.pod:6761
33329 msgid "(Added in 1.0.52)"
33330 msgstr "(Додано у 1.0.52)"
33333 #: ../src/guestfs-actions.pod:6726
33334 msgid "guestfs_scrub_file"
33338 #: ../src/guestfs-actions.pod:6728
33342 " guestfs_scrub_file (guestfs_h *g,\n"
33343 " const char *file);\n"
33348 #: ../src/guestfs-actions.pod:6744
33349 msgid "guestfs_scrub_freespace"
33353 #: ../src/guestfs-actions.pod:6746
33357 " guestfs_scrub_freespace (guestfs_h *g,\n"
33358 " const char *dir);\n"
33363 #: ../src/guestfs-actions.pod:6750
33365 "This command creates the directory C<dir> and then fills it with files until "
33366 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
33367 "and deletes them. The intention is to scrub any free space on the partition "
33368 "containing C<dir>."
33372 #: ../src/guestfs-actions.pod:6763
33373 msgid "guestfs_set_append"
33377 #: ../src/guestfs-actions.pod:6765
33381 " guestfs_set_append (guestfs_h *g,\n"
33382 " const char *append);\n"
33387 #: ../src/guestfs-actions.pod:6782
33388 msgid "guestfs_set_attach_method"
33392 #: ../src/guestfs-actions.pod:6784
33396 " guestfs_set_attach_method (guestfs_h *g,\n"
33397 " const char *attachmethod);\n"
33402 #: ../src/guestfs-actions.pod:6812
33403 msgid "guestfs_set_autosync"
33407 #: ../src/guestfs-actions.pod:6814
33411 " guestfs_set_autosync (guestfs_h *g,\n"
33412 " int autosync);\n"
33417 #: ../src/guestfs-actions.pod:6830
33418 msgid "guestfs_set_direct"
33422 #: ../src/guestfs-actions.pod:6832
33426 " guestfs_set_direct (guestfs_h *g,\n"
33432 #: ../src/guestfs-actions.pod:6840
33434 "One consequence of this is that log messages aren't caught by the library "
33435 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
33440 #: ../src/guestfs-actions.pod:6853
33441 msgid "guestfs_set_e2label"
33445 #: ../src/guestfs-actions.pod:6855
33449 " guestfs_set_e2label (guestfs_h *g,\n"
33450 " const char *device,\n"
33451 " const char *label);\n"
33456 #: ../src/guestfs-actions.pod:6864
33458 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
33459 "the existing label on a filesystem."
33463 #: ../src/guestfs-actions.pod:6871
33464 msgid "guestfs_set_e2uuid"
33468 #: ../src/guestfs-actions.pod:6873
33472 " guestfs_set_e2uuid (guestfs_h *g,\n"
33473 " const char *device,\n"
33474 " const char *uuid);\n"
33479 #: ../src/guestfs-actions.pod:6883
33481 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
33482 "the existing UUID of a filesystem."
33486 #: ../src/guestfs-actions.pod:6890
33487 msgid "guestfs_set_memsize"
33491 #: ../src/guestfs-actions.pod:6892
33495 " guestfs_set_memsize (guestfs_h *g,\n"
33501 #: ../src/guestfs-actions.pod:6896
33503 "This sets the memory size in megabytes allocated to the qemu subprocess. "
33504 "This only has any effect if called before C<guestfs_launch>."
33508 #: ../src/guestfs-actions.pod:6911
33509 msgid "guestfs_set_network"
33513 #: ../src/guestfs-actions.pod:6913
33517 " guestfs_set_network (guestfs_h *g,\n"
33523 #: ../src/guestfs-actions.pod:6923
33525 "You must call this before calling C<guestfs_launch>, otherwise it has no "
33530 #: ../src/guestfs-actions.pod:6930
33531 msgid "guestfs_set_path"
33535 #: ../src/guestfs-actions.pod:6932
33539 " guestfs_set_path (guestfs_h *g,\n"
33540 " const char *searchpath);\n"
33545 #: ../src/guestfs-actions.pod:6947
33546 msgid "guestfs_set_pgroup"
33550 #: ../src/guestfs-actions.pod:6949
33554 " guestfs_set_pgroup (guestfs_h *g,\n"
33560 #: ../src/guestfs-actions.pod:6966
33561 msgid "guestfs_set_qemu"
33565 #: ../src/guestfs-actions.pod:6968
33569 " guestfs_set_qemu (guestfs_h *g,\n"
33570 " const char *qemu);\n"
33575 #: ../src/guestfs-actions.pod:6994
33576 msgid "guestfs_set_recovery_proc"
33580 #: ../src/guestfs-actions.pod:6996
33584 " guestfs_set_recovery_proc (guestfs_h *g,\n"
33585 " int recoveryproc);\n"
33590 #: ../src/guestfs-actions.pod:7000
33592 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33593 "not create a recovery process. The purpose of the recovery process is to "
33594 "stop runaway qemu processes in the case where the main program aborts "
33599 #: ../src/guestfs-actions.pod:7005
33601 "This only has any effect if called before C<guestfs_launch>, and the default "
33606 #: ../src/guestfs-actions.pod:7018
33607 msgid "guestfs_set_selinux"
33611 #: ../src/guestfs-actions.pod:7020
33615 " guestfs_set_selinux (guestfs_h *g,\n"
33621 #: ../src/guestfs-actions.pod:7037
33622 msgid "guestfs_set_smp"
33626 #: ../src/guestfs-actions.pod:7039
33630 " guestfs_set_smp (guestfs_h *g,\n"
33636 #: ../src/guestfs-actions.pod:7047
33637 msgid "This function must be called before C<guestfs_launch>."
33641 #: ../src/guestfs-actions.pod:7053
33642 msgid "guestfs_set_trace"
33646 #: ../src/guestfs-actions.pod:7055
33650 " guestfs_set_trace (guestfs_h *g,\n"
33656 #: ../src/guestfs-actions.pod:7069
33658 "Trace messages are normally sent to C<stderr>, unless you register a "
33659 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33663 #: ../src/guestfs-actions.pod:7077
33664 msgid "guestfs_set_verbose"
33668 #: ../src/guestfs-actions.pod:7079
33672 " guestfs_set_verbose (guestfs_h *g,\n"
33678 #: ../src/guestfs-actions.pod:7088
33680 "Verbose messages are normally sent to C<stderr>, unless you register a "
33681 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33685 #: ../src/guestfs-actions.pod:7096
33686 msgid "guestfs_setcon"
33690 #: ../src/guestfs-actions.pod:7098
33694 " guestfs_setcon (guestfs_h *g,\n"
33695 " const char *context);\n"
33700 #: ../src/guestfs-actions.pod:7111
33701 msgid "guestfs_setxattr"
33705 #: ../src/guestfs-actions.pod:7113
33709 " guestfs_setxattr (guestfs_h *g,\n"
33710 " const char *xattr,\n"
33711 " const char *val,\n"
33713 " const char *path);\n"
33718 #: ../src/guestfs-actions.pod:7124
33719 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33723 #: ../src/guestfs-actions.pod:7130
33724 msgid "guestfs_sfdisk"
33728 #: ../src/guestfs-actions.pod:7132
33732 " guestfs_sfdisk (guestfs_h *g,\n"
33733 " const char *device,\n"
33737 " char *const *lines);\n"
33742 #: ../src/guestfs-actions.pod:7140 ../src/guestfs-actions.pod:7181
33743 #: ../src/guestfs-actions.pod:7212
33745 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33750 #: ../src/guestfs-actions.pod:7167
33752 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33756 #: ../src/guestfs-actions.pod:7174
33757 msgid "guestfs_sfdiskM"
33761 #: ../src/guestfs-actions.pod:7176
33765 " guestfs_sfdiskM (guestfs_h *g,\n"
33766 " const char *device,\n"
33767 " char *const *lines);\n"
33772 #: ../src/guestfs-actions.pod:7188
33774 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33775 "partition sizes are specified in megabytes only (rounded to the nearest "
33776 "cylinder) and you don't need to specify the cyls, heads and sectors "
33777 "parameters which were rarely if ever used anyway."
33781 #: ../src/guestfs-actions.pod:7194
33783 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33784 "C<guestfs_part_disk>"
33788 #: ../src/guestfs-actions.pod:7201
33789 msgid "guestfs_sfdisk_N"
33793 #: ../src/guestfs-actions.pod:7203
33797 " guestfs_sfdisk_N (guestfs_h *g,\n"
33798 " const char *device,\n"
33803 " const char *line);\n"
33808 #: ../src/guestfs-actions.pod:7222
33810 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
33811 "for the cyls/heads/sectors parameters."
33815 #: ../src/guestfs-actions.pod:7225
33816 msgid "See also: C<guestfs_part_add>"
33820 #: ../src/guestfs-actions.pod:7231
33821 msgid "guestfs_sfdisk_disk_geometry"
33825 #: ../src/guestfs-actions.pod:7233
33829 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33830 " const char *device);\n"
33835 #: ../src/guestfs-actions.pod:7237
33837 "This displays the disk geometry of C<device> read from the partition table. "
33838 "Especially in the case where the underlying block device has been resized, "
33839 "this can be different from the kernel's idea of the geometry (see "
33840 "C<guestfs_sfdisk_kernel_geometry>)."
33844 #: ../src/guestfs-actions.pod:7250
33845 msgid "guestfs_sfdisk_kernel_geometry"
33849 #: ../src/guestfs-actions.pod:7252
33853 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33854 " const char *device);\n"
33859 #: ../src/guestfs-actions.pod:7266
33860 msgid "guestfs_sfdisk_l"
33864 #: ../src/guestfs-actions.pod:7268
33868 " guestfs_sfdisk_l (guestfs_h *g,\n"
33869 " const char *device);\n"
33874 #: ../src/guestfs-actions.pod:7272
33876 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33881 #: ../src/guestfs-actions.pod:7283
33882 msgid "See also: C<guestfs_part_list>"
33886 #: ../src/guestfs-actions.pod:7290
33891 #: ../src/guestfs-actions.pod:7292
33895 " guestfs_sh (guestfs_h *g,\n"
33896 " const char *command);\n"
33901 #: ../src/guestfs-actions.pod:7299
33902 msgid "This is like C<guestfs_command>, but passes the command to:"
33906 #: ../src/guestfs-actions.pod:7307
33907 msgid "All the provisos about C<guestfs_command> apply to this call."
33911 #: ../src/guestfs-actions.pod:7314
33912 msgid "guestfs_sh_lines"
33916 #: ../src/guestfs-actions.pod:7316
33920 " guestfs_sh_lines (guestfs_h *g,\n"
33921 " const char *command);\n"
33926 #: ../src/guestfs-actions.pod:7320
33928 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33933 #: ../src/guestfs-actions.pod:7323
33934 msgid "See also: C<guestfs_command_lines>"
33938 #: ../src/guestfs-actions.pod:7331
33939 msgid "guestfs_sleep"
33943 #: ../src/guestfs-actions.pod:7333
33947 " guestfs_sleep (guestfs_h *g,\n"
33953 #: ../src/guestfs-actions.pod:7341
33954 msgid "(Added in 1.0.41)"
33955 msgstr "(Додано у 1.0.41)"
33958 #: ../src/guestfs-actions.pod:7343 ../src/guestfs-structs.pod:109
33959 msgid "guestfs_stat"
33963 #: ../src/guestfs-actions.pod:7345
33966 " struct guestfs_stat *\n"
33967 " guestfs_stat (guestfs_h *g,\n"
33968 " const char *path);\n"
33973 #: ../src/guestfs-actions.pod:7359 ../src/guestfs-structs.pod:135
33974 msgid "guestfs_statvfs"
33978 #: ../src/guestfs-actions.pod:7361
33981 " struct guestfs_statvfs *\n"
33982 " guestfs_statvfs (guestfs_h *g,\n"
33983 " const char *path);\n"
33988 #: ../src/guestfs-actions.pod:7371
33990 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33991 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
33995 #: ../src/guestfs-actions.pod:7377
33996 msgid "guestfs_strings"
34000 #: ../src/guestfs-actions.pod:7379
34004 " guestfs_strings (guestfs_h *g,\n"
34005 " const char *path);\n"
34010 #: ../src/guestfs-actions.pod:7395
34011 msgid "guestfs_strings_e"
34015 #: ../src/guestfs-actions.pod:7397
34019 " guestfs_strings_e (guestfs_h *g,\n"
34020 " const char *encoding,\n"
34021 " const char *path);\n"
34026 #: ../src/guestfs-actions.pod:7402
34028 "This is like the C<guestfs_strings> command, but allows you to specify the "
34029 "encoding of strings that are looked for in the source file C<path>."
34033 #: ../src/guestfs-actions.pod:7412
34035 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
34036 "ISO-8859-X (this is what C<guestfs_strings> uses)."
34040 #: ../src/guestfs-actions.pod:7450
34041 msgid "guestfs_swapoff_device"
34045 #: ../src/guestfs-actions.pod:7452
34049 " guestfs_swapoff_device (guestfs_h *g,\n"
34050 " const char *device);\n"
34055 #: ../src/guestfs-actions.pod:7456
34057 "This command disables the libguestfs appliance swap device or partition "
34058 "named C<device>. See C<guestfs_swapon_device>."
34062 #: ../src/guestfs-actions.pod:7464
34063 msgid "guestfs_swapoff_file"
34067 #: ../src/guestfs-actions.pod:7466
34071 " guestfs_swapoff_file (guestfs_h *g,\n"
34072 " const char *file);\n"
34077 #: ../src/guestfs-actions.pod:7476
34078 msgid "guestfs_swapoff_label"
34082 #: ../src/guestfs-actions.pod:7478
34086 " guestfs_swapoff_label (guestfs_h *g,\n"
34087 " const char *label);\n"
34092 #: ../src/guestfs-actions.pod:7489
34093 msgid "guestfs_swapoff_uuid"
34097 #: ../src/guestfs-actions.pod:7491
34101 " guestfs_swapoff_uuid (guestfs_h *g,\n"
34102 " const char *uuid);\n"
34107 #: ../src/guestfs-actions.pod:7502
34108 msgid "guestfs_swapon_device"
34112 #: ../src/guestfs-actions.pod:7504
34116 " guestfs_swapon_device (guestfs_h *g,\n"
34117 " const char *device);\n"
34122 #: ../src/guestfs-actions.pod:7508
34124 "This command enables the libguestfs appliance to use the swap device or "
34125 "partition named C<device>. The increased memory is made available for all "
34126 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
34130 #: ../src/guestfs-actions.pod:7524
34131 msgid "guestfs_swapon_file"
34135 #: ../src/guestfs-actions.pod:7526
34139 " guestfs_swapon_file (guestfs_h *g,\n"
34140 " const char *file);\n"
34145 #: ../src/guestfs-actions.pod:7530
34147 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
34152 #: ../src/guestfs-actions.pod:7537
34153 msgid "guestfs_swapon_label"
34157 #: ../src/guestfs-actions.pod:7539
34161 " guestfs_swapon_label (guestfs_h *g,\n"
34162 " const char *label);\n"
34167 #: ../src/guestfs-actions.pod:7543
34169 "This command enables swap to a labeled swap partition. See "
34170 "C<guestfs_swapon_device> for other notes."
34174 #: ../src/guestfs-actions.pod:7550
34175 msgid "guestfs_swapon_uuid"
34179 #: ../src/guestfs-actions.pod:7552
34183 " guestfs_swapon_uuid (guestfs_h *g,\n"
34184 " const char *uuid);\n"
34189 #: ../src/guestfs-actions.pod:7556
34191 "This command enables swap to a swap partition with the given UUID. See "
34192 "C<guestfs_swapon_device> for other notes."
34196 #: ../src/guestfs-actions.pod:7563
34197 msgid "guestfs_sync"
34201 #: ../src/guestfs-actions.pod:7565
34205 " guestfs_sync (guestfs_h *g);\n"
34210 #: ../src/guestfs-actions.pod:7578
34211 msgid "guestfs_tail"
34215 #: ../src/guestfs-actions.pod:7580
34219 " guestfs_tail (guestfs_h *g,\n"
34220 " const char *path);\n"
34225 #: ../src/guestfs-actions.pod:7596
34226 msgid "guestfs_tail_n"
34230 #: ../src/guestfs-actions.pod:7598
34234 " guestfs_tail_n (guestfs_h *g,\n"
34236 " const char *path);\n"
34241 #: ../src/guestfs-actions.pod:7620
34242 msgid "guestfs_tar_in"
34246 #: ../src/guestfs-actions.pod:7622
34250 " guestfs_tar_in (guestfs_h *g,\n"
34251 " const char *tarfile,\n"
34252 " const char *directory);\n"
34257 #: ../src/guestfs-actions.pod:7630
34259 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
34263 #: ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:7652
34264 #: ../src/guestfs-actions.pod:7668 ../src/guestfs-actions.pod:7684
34265 msgid "(Added in 1.0.3)"
34266 msgstr "(Додано у 1.0.3)"
34269 #: ../src/guestfs-actions.pod:7637
34270 msgid "guestfs_tar_out"
34274 #: ../src/guestfs-actions.pod:7639
34278 " guestfs_tar_out (guestfs_h *g,\n"
34279 " const char *directory,\n"
34280 " const char *tarfile);\n"
34285 #: ../src/guestfs-actions.pod:7647
34287 "To download a compressed tarball, use C<guestfs_tgz_out> or "
34288 "C<guestfs_txz_out>."
34292 #: ../src/guestfs-actions.pod:7654
34293 msgid "guestfs_tgz_in"
34297 #: ../src/guestfs-actions.pod:7656
34301 " guestfs_tgz_in (guestfs_h *g,\n"
34302 " const char *tarball,\n"
34303 " const char *directory);\n"
34308 #: ../src/guestfs-actions.pod:7664
34309 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
34313 #: ../src/guestfs-actions.pod:7670
34314 msgid "guestfs_tgz_out"
34318 #: ../src/guestfs-actions.pod:7672
34322 " guestfs_tgz_out (guestfs_h *g,\n"
34323 " const char *directory,\n"
34324 " const char *tarball);\n"
34329 #: ../src/guestfs-actions.pod:7680
34330 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
34334 #: ../src/guestfs-actions.pod:7686
34335 msgid "guestfs_touch"
34339 #: ../src/guestfs-actions.pod:7688
34343 " guestfs_touch (guestfs_h *g,\n"
34344 " const char *path);\n"
34349 #: ../src/guestfs-actions.pod:7703
34350 msgid "guestfs_truncate"
34354 #: ../src/guestfs-actions.pod:7705
34358 " guestfs_truncate (guestfs_h *g,\n"
34359 " const char *path);\n"
34364 #: ../src/guestfs-actions.pod:7716
34365 msgid "guestfs_truncate_size"
34369 #: ../src/guestfs-actions.pod:7718
34373 " guestfs_truncate_size (guestfs_h *g,\n"
34374 " const char *path,\n"
34375 " int64_t size);\n"
34380 #: ../src/guestfs-actions.pod:7726
34382 "If the current file size is less than C<size> then the file is extended to "
34383 "the required size with zero bytes. This creates a sparse file (ie. disk "
34384 "blocks are not allocated for the file until you write to it). To create a "
34385 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
34389 #: ../src/guestfs-actions.pod:7736
34391 #| msgid "guestfs_mke2fs_J"
34392 msgid "guestfs_tune2fs"
34393 msgstr "guestfs_mke2fs_J"
34396 #: ../src/guestfs-actions.pod:7738
34400 #| " guestfs_lvresize (guestfs_h *g,\n"
34401 #| " const char *device,\n"
34402 #| " int mbytes);\n"
34406 " guestfs_tune2fs (guestfs_h *g,\n"
34407 " const char *device,\n"
34412 " guestfs_lvresize (guestfs_h *g,\n"
34413 " const char *device,\n"
34418 #: ../src/guestfs-actions.pod:7748
34421 " GUESTFS_TUNE2FS_FORCE, int force,\n"
34422 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
34423 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
34424 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
34425 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
34426 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
34427 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
34428 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
34429 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
34430 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
34435 #: ../src/guestfs-actions.pod:7828
34437 "To get the current values of filesystem parameters, see "
34438 "C<guestfs_tune2fs_l>. For precise details of how tune2fs works, see the "
34439 "L<tune2fs(8)> man page."
34443 #: ../src/guestfs-actions.pod:7834
34445 #| msgid "guestfs_mke2fs_J"
34446 msgid "guestfs_tune2fs_va"
34447 msgstr "guestfs_mke2fs_J"
34450 #: ../src/guestfs-actions.pod:7836
34454 #| " guestfs_lvresize (guestfs_h *g,\n"
34455 #| " const char *device,\n"
34456 #| " int mbytes);\n"
34460 " guestfs_tune2fs_va (guestfs_h *g,\n"
34461 " const char *device,\n"
34462 " va_list args);\n"
34466 " guestfs_lvresize (guestfs_h *g,\n"
34467 " const char *device,\n"
34472 #: ../src/guestfs-actions.pod:7841
34473 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
34477 #: ../src/guestfs-actions.pod:7845
34479 #| msgid "guestfs_mke2fs_J"
34480 msgid "guestfs_tune2fs_argv"
34481 msgstr "guestfs_mke2fs_J"
34484 #: ../src/guestfs-actions.pod:7847
34488 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
34489 #| " const char *fstype,\n"
34490 #| " const char *device,\n"
34491 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
34495 " guestfs_tune2fs_argv (guestfs_h *g,\n"
34496 " const char *device,\n"
34497 " const struct guestfs_tune2fs_argv *optargs);\n"
34501 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
34502 " const char *fstype,\n"
34503 " const char *device,\n"
34504 " const struct guestfs_mkfs_opts_argv *optargs);\n"
34508 #: ../src/guestfs-actions.pod:7852
34509 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
34513 #: ../src/guestfs-actions.pod:7856
34514 msgid "guestfs_tune2fs_l"
34518 #: ../src/guestfs-actions.pod:7858
34522 " guestfs_tune2fs_l (guestfs_h *g,\n"
34523 " const char *device);\n"
34528 #: ../src/guestfs-actions.pod:7878
34529 msgid "guestfs_txz_in"
34533 #: ../src/guestfs-actions.pod:7880
34537 " guestfs_txz_in (guestfs_h *g,\n"
34538 " const char *tarball,\n"
34539 " const char *directory);\n"
34544 #: ../src/guestfs-actions.pod:7892
34545 msgid "guestfs_txz_out"
34549 #: ../src/guestfs-actions.pod:7894
34553 " guestfs_txz_out (guestfs_h *g,\n"
34554 " const char *directory,\n"
34555 " const char *tarball);\n"
34560 #: ../src/guestfs-actions.pod:7906
34561 msgid "guestfs_umask"
34565 #: ../src/guestfs-actions.pod:7908
34569 " guestfs_umask (guestfs_h *g,\n"
34575 #: ../src/guestfs-actions.pod:7924
34577 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
34578 "C<guestfs_mkdir>."
34582 #: ../src/guestfs-actions.pod:7933
34583 msgid "guestfs_umount"
34587 #: ../src/guestfs-actions.pod:7935
34591 " guestfs_umount (guestfs_h *g,\n"
34592 " const char *pathordevice);\n"
34597 #: ../src/guestfs-actions.pod:7947
34598 msgid "guestfs_umount_all"
34602 #: ../src/guestfs-actions.pod:7949
34606 " guestfs_umount_all (guestfs_h *g);\n"
34611 #: ../src/guestfs-actions.pod:7960
34612 msgid "guestfs_upload"
34616 #: ../src/guestfs-actions.pod:7962
34620 " guestfs_upload (guestfs_h *g,\n"
34621 " const char *filename,\n"
34622 " const char *remotefilename);\n"
34627 #: ../src/guestfs-actions.pod:7972
34628 msgid "See also C<guestfs_download>."
34632 #: ../src/guestfs-actions.pod:7983
34633 msgid "guestfs_upload_offset"
34637 #: ../src/guestfs-actions.pod:7985
34641 " guestfs_upload_offset (guestfs_h *g,\n"
34642 " const char *filename,\n"
34643 " const char *remotefilename,\n"
34644 " int64_t offset);\n"
34649 #: ../src/guestfs-actions.pod:8001
34651 "Note that there is no limit on the amount of data that can be uploaded with "
34652 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
34653 "full amount unless an error occurs."
34657 #: ../src/guestfs-actions.pod:8006
34658 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
34662 #: ../src/guestfs-actions.pod:8017
34663 msgid "guestfs_utimens"
34667 #: ../src/guestfs-actions.pod:8019
34671 " guestfs_utimens (guestfs_h *g,\n"
34672 " const char *path,\n"
34673 " int64_t atsecs,\n"
34674 " int64_t atnsecs,\n"
34675 " int64_t mtsecs,\n"
34676 " int64_t mtnsecs);\n"
34681 #: ../src/guestfs-actions.pod:8048 ../src/guestfs-structs.pod:175
34682 msgid "guestfs_version"
34686 #: ../src/guestfs-actions.pod:8050
34689 " struct guestfs_version *\n"
34690 " guestfs_version (guestfs_h *g);\n"
34695 #: ../src/guestfs-actions.pod:8078
34697 "I<Note:> Don't use this call to test for availability of features. In "
34698 "enterprise distributions we backport features from later versions into "
34699 "earlier versions, making this an unreliable way to test for features. Use "
34700 "C<guestfs_available> instead."
34704 #: ../src/guestfs-actions.pod:8084
34706 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
34707 "error. I<The caller must call C<guestfs_free_version> after use>."
34711 #: ../src/guestfs-actions.pod:8088
34712 msgid "(Added in 1.0.58)"
34713 msgstr "(Додано у 1.0.58)"
34716 #: ../src/guestfs-actions.pod:8090
34717 msgid "guestfs_vfs_label"
34721 #: ../src/guestfs-actions.pod:8092
34725 " guestfs_vfs_label (guestfs_h *g,\n"
34726 " const char *device);\n"
34731 #: ../src/guestfs-actions.pod:8101
34732 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34736 #: ../src/guestfs-actions.pod:8106 ../src/guestfs-actions.pod:8143
34737 msgid "(Added in 1.3.18)"
34738 msgstr "(Додано у 1.3.18)"
34741 #: ../src/guestfs-actions.pod:8108
34742 msgid "guestfs_vfs_type"
34746 #: ../src/guestfs-actions.pod:8110
34750 " guestfs_vfs_type (guestfs_h *g,\n"
34751 " const char *device);\n"
34756 #: ../src/guestfs-actions.pod:8127
34757 msgid "guestfs_vfs_uuid"
34761 #: ../src/guestfs-actions.pod:8129
34765 " guestfs_vfs_uuid (guestfs_h *g,\n"
34766 " const char *device);\n"
34771 #: ../src/guestfs-actions.pod:8138
34772 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34776 #: ../src/guestfs-actions.pod:8145
34777 msgid "guestfs_vg_activate"
34781 #: ../src/guestfs-actions.pod:8147
34785 " guestfs_vg_activate (guestfs_h *g,\n"
34787 " char *const *volgroups);\n"
34792 #: ../src/guestfs-actions.pod:8164
34793 msgid "guestfs_vg_activate_all"
34797 #: ../src/guestfs-actions.pod:8166
34801 " guestfs_vg_activate_all (guestfs_h *g,\n"
34802 " int activate);\n"
34807 #: ../src/guestfs-actions.pod:8179
34808 msgid "guestfs_vgcreate"
34812 #: ../src/guestfs-actions.pod:8181
34816 " guestfs_vgcreate (guestfs_h *g,\n"
34817 " const char *volgroup,\n"
34818 " char *const *physvols);\n"
34823 #: ../src/guestfs-actions.pod:8193
34824 msgid "guestfs_vglvuuids"
34828 #: ../src/guestfs-actions.pod:8195
34832 " guestfs_vglvuuids (guestfs_h *g,\n"
34833 " const char *vgname);\n"
34838 #: ../src/guestfs-actions.pod:8202
34840 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34841 "associate logical volumes and volume groups."
34845 #: ../src/guestfs-actions.pod:8205
34846 msgid "See also C<guestfs_vgpvuuids>."
34850 #: ../src/guestfs-actions.pod:8213
34851 msgid "guestfs_vgpvuuids"
34855 #: ../src/guestfs-actions.pod:8215
34859 " guestfs_vgpvuuids (guestfs_h *g,\n"
34860 " const char *vgname);\n"
34865 #: ../src/guestfs-actions.pod:8222
34867 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34868 "associate physical volumes and volume groups."
34872 #: ../src/guestfs-actions.pod:8225
34873 msgid "See also C<guestfs_vglvuuids>."
34877 #: ../src/guestfs-actions.pod:8233
34878 msgid "guestfs_vgremove"
34882 #: ../src/guestfs-actions.pod:8235
34886 " guestfs_vgremove (guestfs_h *g,\n"
34887 " const char *vgname);\n"
34892 #: ../src/guestfs-actions.pod:8248
34893 msgid "guestfs_vgrename"
34897 #: ../src/guestfs-actions.pod:8250
34901 " guestfs_vgrename (guestfs_h *g,\n"
34902 " const char *volgroup,\n"
34903 " const char *newvolgroup);\n"
34908 #: ../src/guestfs-actions.pod:8261
34909 msgid "guestfs_vgs"
34913 #: ../src/guestfs-actions.pod:8263
34917 " guestfs_vgs (guestfs_h *g);\n"
34922 #: ../src/guestfs-actions.pod:8272
34923 msgid "See also C<guestfs_vgs_full>."
34927 #: ../src/guestfs-actions.pod:8280
34928 msgid "guestfs_vgs_full"
34932 #: ../src/guestfs-actions.pod:8282
34935 " struct guestfs_lvm_vg_list *\n"
34936 " guestfs_vgs_full (guestfs_h *g);\n"
34941 #: ../src/guestfs-actions.pod:8288
34943 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34944 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34948 #: ../src/guestfs-actions.pod:8294
34949 msgid "guestfs_vgscan"
34953 #: ../src/guestfs-actions.pod:8296
34957 " guestfs_vgscan (guestfs_h *g);\n"
34962 #: ../src/guestfs-actions.pod:8306
34963 msgid "guestfs_vguuid"
34967 #: ../src/guestfs-actions.pod:8308
34971 " guestfs_vguuid (guestfs_h *g,\n"
34972 " const char *vgname);\n"
34977 #: ../src/guestfs-actions.pod:8319
34978 msgid "guestfs_wait_ready"
34982 #: ../src/guestfs-actions.pod:8321
34986 " guestfs_wait_ready (guestfs_h *g);\n"
34991 #: ../src/guestfs-actions.pod:8324
34993 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34998 #: ../src/guestfs-actions.pod:8331
34999 msgid "This function is a no op."
35003 #: ../src/guestfs-actions.pod:8333
35005 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
35006 "calling C<guestfs_launch> to wait for the launch to complete. However this "
35007 "is no longer necessary because C<guestfs_launch> now does the waiting."
35011 #: ../src/guestfs-actions.pod:8338
35013 "If you see any calls to this function in code then you can just remove them, "
35014 "unless you want to retain compatibility with older versions of the API."
35018 #: ../src/guestfs-actions.pod:8346
35019 msgid "guestfs_wc_c"
35023 #: ../src/guestfs-actions.pod:8348
35027 " guestfs_wc_c (guestfs_h *g,\n"
35028 " const char *path);\n"
35033 #: ../src/guestfs-actions.pod:8359
35034 msgid "guestfs_wc_l"
35038 #: ../src/guestfs-actions.pod:8361
35042 " guestfs_wc_l (guestfs_h *g,\n"
35043 " const char *path);\n"
35048 #: ../src/guestfs-actions.pod:8372
35049 msgid "guestfs_wc_w"
35053 #: ../src/guestfs-actions.pod:8374
35057 " guestfs_wc_w (guestfs_h *g,\n"
35058 " const char *path);\n"
35063 #: ../src/guestfs-actions.pod:8385
35064 msgid "guestfs_write"
35068 #: ../src/guestfs-actions.pod:8387
35072 " guestfs_write (guestfs_h *g,\n"
35073 " const char *path,\n"
35074 " const char *content,\n"
35075 " size_t content_size);\n"
35080 #: ../src/guestfs-actions.pod:8396
35081 msgid "See also C<guestfs_write_append>."
35085 #: ../src/guestfs-actions.pod:8405
35086 msgid "guestfs_write_append"
35090 #: ../src/guestfs-actions.pod:8407
35094 " guestfs_write_append (guestfs_h *g,\n"
35095 " const char *path,\n"
35096 " const char *content,\n"
35097 " size_t content_size);\n"
35102 #: ../src/guestfs-actions.pod:8416
35103 msgid "See also C<guestfs_write>."
35107 #: ../src/guestfs-actions.pod:8425
35108 msgid "guestfs_write_file"
35109 msgstr "guestfs_write_file"
35112 #: ../src/guestfs-actions.pod:8427
35116 " guestfs_write_file (guestfs_h *g,\n"
35117 " const char *path,\n"
35118 " const char *content,\n"
35123 " guestfs_write_file (guestfs_h *g,\n"
35124 " const char *path,\n"
35125 " const char *content,\n"
35130 #: ../src/guestfs-actions.pod:8433
35132 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
35137 #: ../src/guestfs-actions.pod:8458
35138 msgid "guestfs_zegrep"
35139 msgstr "guestfs_zegrep"
35142 #: ../src/guestfs-actions.pod:8460
35146 " guestfs_zegrep (guestfs_h *g,\n"
35147 " const char *regex,\n"
35148 " const char *path);\n"
35152 " guestfs_zegrep (guestfs_h *g,\n"
35153 " const char *regex,\n"
35154 " const char *path);\n"
35158 #: ../src/guestfs-actions.pod:8477
35159 msgid "guestfs_zegrepi"
35160 msgstr "guestfs_zegrepi"
35163 #: ../src/guestfs-actions.pod:8479
35167 " guestfs_zegrepi (guestfs_h *g,\n"
35168 " const char *regex,\n"
35169 " const char *path);\n"
35173 " guestfs_zegrepi (guestfs_h *g,\n"
35174 " const char *regex,\n"
35175 " const char *path);\n"
35179 #: ../src/guestfs-actions.pod:8496
35180 msgid "guestfs_zero"
35181 msgstr "guestfs_zero"
35184 #: ../src/guestfs-actions.pod:8498
35188 " guestfs_zero (guestfs_h *g,\n"
35189 " const char *device);\n"
35193 " guestfs_zero (guestfs_h *g,\n"
35194 " const char *device);\n"
35198 #: ../src/guestfs-actions.pod:8512
35200 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
35201 "C<guestfs_is_zero_device>"
35205 #: ../src/guestfs-actions.pod:8524
35206 msgid "guestfs_zero_device"
35207 msgstr "guestfs_zero_device"
35210 #: ../src/guestfs-actions.pod:8526
35214 " guestfs_zero_device (guestfs_h *g,\n"
35215 " const char *device);\n"
35219 " guestfs_zero_device (guestfs_h *g,\n"
35220 " const char *device);\n"
35224 #: ../src/guestfs-actions.pod:8530
35226 "This command writes zeroes over the entire C<device>. Compare with "
35227 "C<guestfs_zero> which just zeroes the first few blocks of a device."
35231 #: ../src/guestfs-actions.pod:8545
35232 msgid "(Added in 1.3.1)"
35233 msgstr "(Додано у 1.3.1)"
35236 #: ../src/guestfs-actions.pod:8547
35237 msgid "guestfs_zerofree"
35238 msgstr "guestfs_zerofree"
35241 #: ../src/guestfs-actions.pod:8549
35245 " guestfs_zerofree (guestfs_h *g,\n"
35246 " const char *device);\n"
35250 " guestfs_zerofree (guestfs_h *g,\n"
35251 " const char *device);\n"
35255 #: ../src/guestfs-actions.pod:8568
35256 msgid "guestfs_zfgrep"
35257 msgstr "guestfs_zfgrep"
35260 #: ../src/guestfs-actions.pod:8570
35264 " guestfs_zfgrep (guestfs_h *g,\n"
35265 " const char *pattern,\n"
35266 " const char *path);\n"
35270 " guestfs_zfgrep (guestfs_h *g,\n"
35271 " const char *pattern,\n"
35272 " const char *path);\n"
35276 #: ../src/guestfs-actions.pod:8587
35277 msgid "guestfs_zfgrepi"
35278 msgstr "guestfs_zfgrepi"
35281 #: ../src/guestfs-actions.pod:8589
35285 " guestfs_zfgrepi (guestfs_h *g,\n"
35286 " const char *pattern,\n"
35287 " const char *path);\n"
35291 " guestfs_zfgrepi (guestfs_h *g,\n"
35292 " const char *pattern,\n"
35293 " const char *path);\n"
35297 #: ../src/guestfs-actions.pod:8606
35298 msgid "guestfs_zfile"
35299 msgstr "guestfs_zfile"
35302 #: ../src/guestfs-actions.pod:8608
35306 " guestfs_zfile (guestfs_h *g,\n"
35307 " const char *meth,\n"
35308 " const char *path);\n"
35312 " guestfs_zfile (guestfs_h *g,\n"
35313 " const char *meth,\n"
35314 " const char *path);\n"
35318 #: ../src/guestfs-actions.pod:8613
35320 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
35325 #: ../src/guestfs-actions.pod:8625
35327 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
35332 #: ../src/guestfs-actions.pod:8633
35333 msgid "guestfs_zgrep"
35334 msgstr "guestfs_zgrep"
35337 #: ../src/guestfs-actions.pod:8635
35341 " guestfs_zgrep (guestfs_h *g,\n"
35342 " const char *regex,\n"
35343 " const char *path);\n"
35347 " guestfs_zgrep (guestfs_h *g,\n"
35348 " const char *regex,\n"
35349 " const char *path);\n"
35353 #: ../src/guestfs-actions.pod:8652
35354 msgid "guestfs_zgrepi"
35355 msgstr "guestfs_zgrepi"
35358 #: ../src/guestfs-actions.pod:8654
35362 " guestfs_zgrepi (guestfs_h *g,\n"
35363 " const char *regex,\n"
35364 " const char *path);\n"
35368 " guestfs_zgrepi (guestfs_h *g,\n"
35369 " const char *regex,\n"
35370 " const char *path);\n"
35374 #: ../src/guestfs-availability.pod:3
35379 #: ../src/guestfs-availability.pod:5
35381 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
35382 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
35383 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
35384 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
35385 "L</guestfs_aug_save> L</guestfs_aug_set>"
35389 #: ../src/guestfs-availability.pod:21
35394 #: ../src/guestfs-availability.pod:23
35395 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
35399 #: ../src/guestfs-availability.pod:26
35404 #: ../src/guestfs-availability.pod:28
35405 msgid "The following functions: L</guestfs_grub_install>"
35409 #: ../src/guestfs-availability.pod:31
35411 msgstr "B<inotify>"
35414 #: ../src/guestfs-availability.pod:33
35416 "The following functions: L</guestfs_inotify_add_watch> L</"
35417 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
35418 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
35422 #: ../src/guestfs-availability.pod:41
35423 msgid "B<linuxfsuuid>"
35424 msgstr "B<linuxfsuuid>"
35427 #: ../src/guestfs-availability.pod:43
35429 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
35430 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
35434 #: ../src/guestfs-availability.pod:50
35435 msgid "B<linuxmodules>"
35436 msgstr "B<linuxmodules>"
35439 #: ../src/guestfs-availability.pod:52
35440 msgid "The following functions: L</guestfs_modprobe>"
35444 #: ../src/guestfs-availability.pod:55
35445 msgid "B<linuxxattrs>"
35446 msgstr "B<linuxxattrs>"
35449 #: ../src/guestfs-availability.pod:57
35451 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
35452 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
35453 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
35454 "guestfs_setxattr>"
35458 #: ../src/guestfs-availability.pod:68
35463 #: ../src/guestfs-availability.pod:70
35465 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
35466 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
35467 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
35471 #: ../src/guestfs-availability.pod:79
35476 #: ../src/guestfs-availability.pod:81
35478 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
35479 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
35480 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
35481 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
35482 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
35483 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
35484 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
35488 #: ../src/guestfs-availability.pod:104
35493 #: ../src/guestfs-availability.pod:106
35495 "The following functions: L</guestfs_mdadm_create> L</guestfs_mdadm_detail>"
35499 #: ../src/guestfs-availability.pod:110
35504 #: ../src/guestfs-availability.pod:112
35506 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
35507 "guestfs_mknod_b> L</guestfs_mknod_c>"
35511 #: ../src/guestfs-availability.pod:118
35516 #: ../src/guestfs-availability.pod:120
35517 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
35521 #: ../src/guestfs-availability.pod:123
35522 msgid "B<ntfsprogs>"
35523 msgstr "B<ntfsprogs>"
35526 #: ../src/guestfs-availability.pod:125
35528 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
35529 "L</guestfs_ntfsresize_size>"
35533 #: ../src/guestfs-availability.pod:130
35534 msgid "B<realpath>"
35535 msgstr "B<realpath>"
35538 #: ../src/guestfs-availability.pod:132
35539 msgid "The following functions: L</guestfs_realpath>"
35543 #: ../src/guestfs-availability.pod:135
35548 #: ../src/guestfs-availability.pod:137
35550 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
35551 "guestfs_scrub_freespace>"
35555 #: ../src/guestfs-availability.pod:142
35557 msgstr "B<selinux>"
35560 #: ../src/guestfs-availability.pod:144
35561 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
35565 #: ../src/guestfs-availability.pod:148
35570 #: ../src/guestfs-availability.pod:150
35571 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
35575 #: ../src/guestfs-availability.pod:154
35576 msgid "B<zerofree>"
35577 msgstr "B<zerofree>"
35580 #: ../src/guestfs-availability.pod:156
35581 msgid "The following functions: L</guestfs_zerofree>"
35585 #: ../src/guestfs-structs.pod:1
35586 msgid "guestfs_int_bool"
35590 #: ../src/guestfs-structs.pod:3
35593 " struct guestfs_int_bool {\n"
35601 #: ../src/guestfs-structs.pod:8
35604 " struct guestfs_int_bool_list {\n"
35605 " uint32_t len; /* Number of elements in list. */\n"
35606 " struct guestfs_int_bool *val; /* Elements. */\n"
35612 #: ../src/guestfs-structs.pod:13
35615 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
35616 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
35621 #: ../src/guestfs-structs.pod:16
35622 msgid "guestfs_lvm_pv"
35626 #: ../src/guestfs-structs.pod:18
35629 " struct guestfs_lvm_pv {\n"
35630 " char *pv_name;\n"
35631 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35632 " char pv_uuid[32];\n"
35634 " uint64_t pv_size;\n"
35635 " uint64_t dev_size;\n"
35636 " uint64_t pv_free;\n"
35637 " uint64_t pv_used;\n"
35638 " char *pv_attr;\n"
35639 " int64_t pv_pe_count;\n"
35640 " int64_t pv_pe_alloc_count;\n"
35641 " char *pv_tags;\n"
35642 " uint64_t pe_start;\n"
35643 " int64_t pv_mda_count;\n"
35644 " uint64_t pv_mda_free;\n"
35650 #: ../src/guestfs-structs.pod:36
35653 " struct guestfs_lvm_pv_list {\n"
35654 " uint32_t len; /* Number of elements in list. */\n"
35655 " struct guestfs_lvm_pv *val; /* Elements. */\n"
35661 #: ../src/guestfs-structs.pod:41
35664 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
35665 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
35670 #: ../src/guestfs-structs.pod:44
35671 msgid "guestfs_lvm_vg"
35675 #: ../src/guestfs-structs.pod:46
35678 " struct guestfs_lvm_vg {\n"
35679 " char *vg_name;\n"
35680 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35681 " char vg_uuid[32];\n"
35683 " char *vg_attr;\n"
35684 " uint64_t vg_size;\n"
35685 " uint64_t vg_free;\n"
35686 " char *vg_sysid;\n"
35687 " uint64_t vg_extent_size;\n"
35688 " int64_t vg_extent_count;\n"
35689 " int64_t vg_free_count;\n"
35690 " int64_t max_lv;\n"
35691 " int64_t max_pv;\n"
35692 " int64_t pv_count;\n"
35693 " int64_t lv_count;\n"
35694 " int64_t snap_count;\n"
35695 " int64_t vg_seqno;\n"
35696 " char *vg_tags;\n"
35697 " int64_t vg_mda_count;\n"
35698 " uint64_t vg_mda_free;\n"
35704 #: ../src/guestfs-structs.pod:69
35707 " struct guestfs_lvm_vg_list {\n"
35708 " uint32_t len; /* Number of elements in list. */\n"
35709 " struct guestfs_lvm_vg *val; /* Elements. */\n"
35715 #: ../src/guestfs-structs.pod:74
35718 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
35719 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
35724 #: ../src/guestfs-structs.pod:77
35725 msgid "guestfs_lvm_lv"
35729 #: ../src/guestfs-structs.pod:79
35732 " struct guestfs_lvm_lv {\n"
35733 " char *lv_name;\n"
35734 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35735 " char lv_uuid[32];\n"
35736 " char *lv_attr;\n"
35737 " int64_t lv_major;\n"
35738 " int64_t lv_minor;\n"
35739 " int64_t lv_kernel_major;\n"
35740 " int64_t lv_kernel_minor;\n"
35741 " uint64_t lv_size;\n"
35742 " int64_t seg_count;\n"
35744 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
35745 " float snap_percent;\n"
35746 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
35747 " float copy_percent;\n"
35748 " char *move_pv;\n"
35749 " char *lv_tags;\n"
35750 " char *mirror_log;\n"
35751 " char *modules;\n"
35757 #: ../src/guestfs-structs.pod:101
35760 " struct guestfs_lvm_lv_list {\n"
35761 " uint32_t len; /* Number of elements in list. */\n"
35762 " struct guestfs_lvm_lv *val; /* Elements. */\n"
35768 #: ../src/guestfs-structs.pod:106
35771 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35772 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35777 #: ../src/guestfs-structs.pod:111
35780 " struct guestfs_stat {\n"
35784 " int64_t nlink;\n"
35789 " int64_t blksize;\n"
35790 " int64_t blocks;\n"
35791 " int64_t atime;\n"
35792 " int64_t mtime;\n"
35793 " int64_t ctime;\n"
35799 #: ../src/guestfs-structs.pod:127
35802 " struct guestfs_stat_list {\n"
35803 " uint32_t len; /* Number of elements in list. */\n"
35804 " struct guestfs_stat *val; /* Elements. */\n"
35810 #: ../src/guestfs-structs.pod:132
35813 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35814 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35819 #: ../src/guestfs-structs.pod:137
35822 " struct guestfs_statvfs {\n"
35823 " int64_t bsize;\n"
35824 " int64_t frsize;\n"
35825 " int64_t blocks;\n"
35826 " int64_t bfree;\n"
35827 " int64_t bavail;\n"
35828 " int64_t files;\n"
35829 " int64_t ffree;\n"
35830 " int64_t favail;\n"
35833 " int64_t namemax;\n"
35839 #: ../src/guestfs-structs.pod:151
35842 " struct guestfs_statvfs_list {\n"
35843 " uint32_t len; /* Number of elements in list. */\n"
35844 " struct guestfs_statvfs *val; /* Elements. */\n"
35850 #: ../src/guestfs-structs.pod:156
35853 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35854 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35859 #: ../src/guestfs-structs.pod:159
35860 msgid "guestfs_dirent"
35864 #: ../src/guestfs-structs.pod:161
35867 " struct guestfs_dirent {\n"
35876 #: ../src/guestfs-structs.pod:167
35879 " struct guestfs_dirent_list {\n"
35880 " uint32_t len; /* Number of elements in list. */\n"
35881 " struct guestfs_dirent *val; /* Elements. */\n"
35887 #: ../src/guestfs-structs.pod:172
35890 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35891 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35896 #: ../src/guestfs-structs.pod:177
35899 " struct guestfs_version {\n"
35900 " int64_t major;\n"
35901 " int64_t minor;\n"
35902 " int64_t release;\n"
35909 #: ../src/guestfs-structs.pod:184
35912 " struct guestfs_version_list {\n"
35913 " uint32_t len; /* Number of elements in list. */\n"
35914 " struct guestfs_version *val; /* Elements. */\n"
35920 #: ../src/guestfs-structs.pod:189
35923 " void guestfs_free_version (struct guestfs_free_version *);\n"
35924 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35929 #: ../src/guestfs-structs.pod:192
35930 msgid "guestfs_xattr"
35934 #: ../src/guestfs-structs.pod:194
35937 " struct guestfs_xattr {\n"
35938 " char *attrname;\n"
35939 " /* The next two fields describe a byte array. */\n"
35940 " uint32_t attrval_len;\n"
35941 " char *attrval;\n"
35947 #: ../src/guestfs-structs.pod:201
35950 " struct guestfs_xattr_list {\n"
35951 " uint32_t len; /* Number of elements in list. */\n"
35952 " struct guestfs_xattr *val; /* Elements. */\n"
35958 #: ../src/guestfs-structs.pod:206
35961 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35962 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35967 #: ../src/guestfs-structs.pod:209
35968 msgid "guestfs_inotify_event"
35972 #: ../src/guestfs-structs.pod:211
35975 " struct guestfs_inotify_event {\n"
35976 " int64_t in_wd;\n"
35977 " uint32_t in_mask;\n"
35978 " uint32_t in_cookie;\n"
35979 " char *in_name;\n"
35985 #: ../src/guestfs-structs.pod:218
35988 " struct guestfs_inotify_event_list {\n"
35989 " uint32_t len; /* Number of elements in list. */\n"
35990 " struct guestfs_inotify_event *val; /* Elements. */\n"
35996 #: ../src/guestfs-structs.pod:223
35999 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
36000 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
36005 #: ../src/guestfs-structs.pod:226
36006 msgid "guestfs_partition"
36010 #: ../src/guestfs-structs.pod:228
36013 " struct guestfs_partition {\n"
36014 " int32_t part_num;\n"
36015 " uint64_t part_start;\n"
36016 " uint64_t part_end;\n"
36017 " uint64_t part_size;\n"
36023 #: ../src/guestfs-structs.pod:235
36026 " struct guestfs_partition_list {\n"
36027 " uint32_t len; /* Number of elements in list. */\n"
36028 " struct guestfs_partition *val; /* Elements. */\n"
36034 #: ../src/guestfs-structs.pod:240
36037 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
36038 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
36043 #: ../src/guestfs-structs.pod:243
36044 msgid "guestfs_application"
36048 #: ../src/guestfs-structs.pod:245
36051 " struct guestfs_application {\n"
36052 " char *app_name;\n"
36053 " char *app_display_name;\n"
36054 " int32_t app_epoch;\n"
36055 " char *app_version;\n"
36056 " char *app_release;\n"
36057 " char *app_install_path;\n"
36058 " char *app_trans_path;\n"
36059 " char *app_publisher;\n"
36060 " char *app_url;\n"
36061 " char *app_source_package;\n"
36062 " char *app_summary;\n"
36063 " char *app_description;\n"
36069 #: ../src/guestfs-structs.pod:260
36072 " struct guestfs_application_list {\n"
36073 " uint32_t len; /* Number of elements in list. */\n"
36074 " struct guestfs_application *val; /* Elements. */\n"
36080 #: ../src/guestfs-structs.pod:265
36083 " void guestfs_free_application (struct guestfs_free_application *);\n"
36084 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
36089 #: ../src/guestfs.pod:5
36090 msgid "guestfs - Library for accessing and modifying virtual machine images"
36092 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
36096 #: ../src/guestfs.pod:11
36099 " guestfs_h *g = guestfs_create ();\n"
36100 " guestfs_add_drive (g, \"guest.img\");\n"
36101 " guestfs_launch (g);\n"
36102 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36103 " guestfs_touch (g, \"/hello\");\n"
36104 " guestfs_umount (g, \"/\");\n"
36105 " guestfs_close (g);\n"
36108 " guestfs_h *g = guestfs_create ();\n"
36109 " guestfs_add_drive (g, \"guest.img\");\n"
36110 " guestfs_launch (g);\n"
36111 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36112 " guestfs_touch (g, \"/hello\");\n"
36113 " guestfs_umount (g, \"/\");\n"
36114 " guestfs_close (g);\n"
36118 #: ../src/guestfs.pod:25
36120 "Libguestfs is a library for accessing and modifying guest disk images. "
36121 "Amongst the things this is good for: making batch configuration changes to "
36122 "guests, getting disk used/free statistics (see also: virt-df), migrating "
36123 "between virtualization systems (see also: virt-p2v), performing partial "
36124 "backups, performing partial guest clones, cloning guests and changing "
36125 "registry/UUID/hostname info, and much else besides."
36129 #: ../src/guestfs.pod:33
36131 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
36132 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
36133 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
36138 #: ../src/guestfs.pod:38
36140 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
36141 "what filesystem is in each LV, etc.). It can also run commands in the "
36142 "context of the guest. Also you can access filesystems over FUSE."
36146 #: ../src/guestfs.pod:43
36148 "Libguestfs is a library that can be linked with C and C++ management "
36149 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
36150 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
36155 #: ../src/guestfs.pod:48
36157 "You don't need to be root to use libguestfs, although obviously you do need "
36158 "enough permissions to access the disk images."
36162 #: ../src/guestfs.pod:51
36164 "Libguestfs is a large API because it can do many things. For a gentle "
36165 "introduction, please read the L</API OVERVIEW> section next."
36169 #: ../src/guestfs.pod:54
36171 "There are also some example programs in the L<guestfs-examples(3)> manual "
36176 #: ../src/guestfs.pod:57
36177 msgid "API OVERVIEW"
36181 #: ../src/guestfs.pod:59
36183 "This section provides a gentler overview of the libguestfs API. We also try "
36184 "to group API calls together, where that may not be obvious from reading "
36185 "about the individual calls in the main section of this manual."
36189 #: ../src/guestfs.pod:64
36194 #: ../src/guestfs.pod:66
36196 "Before you can use libguestfs calls, you have to create a handle. Then you "
36197 "must add at least one disk image to the handle, followed by launching the "
36198 "handle, then performing whatever operations you want, and finally closing "
36199 "the handle. By convention we use the single letter C<g> for the name of the "
36200 "handle variable, although of course you can use any name you want."
36204 #: ../src/guestfs.pod:73
36205 msgid "The general structure of all libguestfs-using programs looks like this:"
36209 #: ../src/guestfs.pod:76
36212 " guestfs_h *g = guestfs_create ();\n"
36215 " guestfs_h *g = guestfs_create ();\n"
36219 #: ../src/guestfs.pod:78
36222 " /* Call guestfs_add_drive additional times if there are\n"
36223 " * multiple disk images.\n"
36225 " guestfs_add_drive (g, \"guest.img\");\n"
36230 #: ../src/guestfs.pod:83
36233 " /* Most manipulation calls won't work until you've launched\n"
36234 " * the handle 'g'. You have to do this _after_ adding drives\n"
36235 " * and _before_ other commands.\n"
36237 " guestfs_launch (g);\n"
36242 #: ../src/guestfs.pod:89
36245 " /* Now you can examine what partitions, LVs etc are available.\n"
36247 " char **partitions = guestfs_list_partitions (g);\n"
36248 " char **logvols = guestfs_lvs (g);\n"
36251 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
36253 " char **partitions = guestfs_list_partitions (g);\n"
36254 " char **logvols = guestfs_lvs (g);\n"
36258 #: ../src/guestfs.pod:94
36261 " /* To access a filesystem in the image, you must mount it.\n"
36263 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36266 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
36268 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36272 #: ../src/guestfs.pod:98
36275 " /* Now you can perform filesystem actions on the guest\n"
36278 " guestfs_touch (g, \"/hello\");\n"
36281 " /* Тепер ви можете виконувати дії з файловою системою на\n"
36282 " * образі диска операційної системи.\n"
36284 " guestfs_touch (g, \"/hello\");\n"
36288 #: ../src/guestfs.pod:103
36291 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
36292 " * it is done automatically when you close the handle. See\n"
36293 " * discussion of autosync in this page.\n"
36295 " guestfs_sync (g);\n"
36300 #: ../src/guestfs.pod:109
36303 " /* Close the handle 'g'. */\n"
36304 " guestfs_close (g);\n"
36307 " /* Закрити дескриптор 'g'. */\n"
36308 " guestfs_close (g);\n"
36312 #: ../src/guestfs.pod:112
36314 "The code above doesn't include any error checking. In real code you should "
36315 "check return values carefully for errors. In general all functions that "
36316 "return integers return C<-1> on error, and all functions that return "
36317 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
36318 "how to handle errors, and consult the documentation for each function call "
36319 "below to see precisely how they return error indications. See L<guestfs-"
36320 "examples(3)> for fully worked examples."
36324 #: ../src/guestfs.pod:121
36325 msgid "DISK IMAGES"
36326 msgstr "ОБРАЗИ ДИСКІВ"
36329 #: ../src/guestfs.pod:123
36331 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
36332 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
36333 "actual block device, or simply an empty file of zeroes that you have created "
36334 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
36339 #: ../src/guestfs.pod:129
36341 "The call you should use in modern code for adding drives is L</"
36342 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
36343 "specifying that the format is raw, do:"
36347 #: ../src/guestfs.pod:133
36350 " guestfs_add_drive_opts (g, filename,\n"
36351 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36355 " guestfs_add_drive_opts (g, filename,\n"
36356 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36361 #: ../src/guestfs.pod:137
36362 msgid "You can add a disk read-only using:"
36363 msgstr "Ви можете додати диск у режимі лише читання:"
36366 #: ../src/guestfs.pod:139
36369 " guestfs_add_drive_opts (g, filename,\n"
36370 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36371 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36375 " guestfs_add_drive_opts (g, filename,\n"
36376 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36377 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36382 #: ../src/guestfs.pod:144
36384 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
36385 "libguestfs won't modify the file."
36389 #: ../src/guestfs.pod:147
36391 "Be extremely cautious if the disk image is in use, eg. if it is being used "
36392 "by a virtual machine. Adding it read-write will almost certainly cause disk "
36393 "corruption, but adding it read-only is safe."
36397 #: ../src/guestfs.pod:151
36399 "You must add at least one disk image, and you may add multiple disk images. "
36400 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
36401 "first one you added), C</dev/sdb> (for the second one you added), etc."
36405 #: ../src/guestfs.pod:156
36407 "Once L</guestfs_launch> has been called you cannot add any more images. You "
36408 "can call L</guestfs_list_devices> to get a list of the device names, in the "
36409 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
36413 #: ../src/guestfs.pod:161
36415 msgstr "МОНТУВАННЯ"
36418 #: ../src/guestfs.pod:163
36420 "Before you can read or write files, create directories and so on in a disk "
36421 "image that contains filesystems, you have to mount those filesystems using "
36422 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
36423 "a disk image contains (for example) one partition with a filesystem on that "
36424 "partition, then you can mount it directly:"
36428 #: ../src/guestfs.pod:170
36431 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
36434 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
36438 #: ../src/guestfs.pod:172
36440 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
36441 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
36442 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
36443 "that these are libguestfs virtual devices, and are nothing to do with host "
36448 #: ../src/guestfs.pod:178
36450 "If you are given a disk image and you don't know what it contains then you "
36451 "have to find out. Libguestfs can do that too: use L</"
36452 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
36453 "LVs, and either try mounting each to see what is mountable, or else examine "
36454 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
36455 "filesystems, use L</guestfs_list_filesystems>."
36459 #: ../src/guestfs.pod:186
36461 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
36462 "L</INSPECTION> below). But you might find it easier to look at higher level "
36463 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
36467 #: ../src/guestfs.pod:191
36469 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
36470 "several other variations of the C<guestfs_mount_*> call."
36474 #: ../src/guestfs.pod:194
36475 msgid "FILESYSTEM ACCESS AND MODIFICATION"
36476 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
36479 #: ../src/guestfs.pod:196
36481 "The majority of the libguestfs API consists of fairly low-level calls for "
36482 "accessing and modifying the files, directories, symlinks etc on mounted "
36483 "filesystems. There are over a hundred such calls which you can find listed "
36484 "in detail below in this man page, and we don't even pretend to cover them "
36485 "all in this overview."
36489 #: ../src/guestfs.pod:202
36491 "Specify filenames as full paths, starting with C<\"/\"> and including the "
36494 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
36495 "точкою монтування."
36498 #: ../src/guestfs.pod:205
36500 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
36501 "the file called C<\"etc/passwd\"> then you could do:"
36503 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
36504 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
36508 #: ../src/guestfs.pod:208
36511 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
36514 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
36518 #: ../src/guestfs.pod:210
36520 "This would return C<data> as a newly allocated buffer containing the full "
36521 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
36522 "or C<NULL> if there was an error."
36526 #: ../src/guestfs.pod:214
36528 "As another example, to create a top-level directory on that filesystem "
36529 "called C<\"var\"> you would do:"
36533 #: ../src/guestfs.pod:217
36536 " guestfs_mkdir (g, \"/var\");\n"
36539 " guestfs_mkdir (g, \"/var\");\n"
36543 #: ../src/guestfs.pod:219
36544 msgid "To create a symlink you could do:"
36545 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
36548 #: ../src/guestfs.pod:221
36551 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
36552 " \"/etc/rc3.d/S30portmap\");\n"
36555 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
36556 " \"/etc/rc3.d/S30portmap\");\n"
36560 #: ../src/guestfs.pod:224
36562 "Libguestfs will reject attempts to use relative paths and there is no "
36563 "concept of a current working directory."
36567 #: ../src/guestfs.pod:227
36569 "Libguestfs can return errors in many situations: for example if the "
36570 "filesystem isn't writable, or if a file or directory that you requested "
36571 "doesn't exist. If you are using the C API (documented here) you have to "
36572 "check for those error conditions after each call. (Other language bindings "
36573 "turn these errors into exceptions)."
36577 #: ../src/guestfs.pod:233
36579 "File writes are affected by the per-handle umask, set by calling L</"
36580 "guestfs_umask> and defaulting to 022. See L</UMASK>."
36584 #: ../src/guestfs.pod:236
36585 msgid "PARTITIONING"
36586 msgstr "ПОДІЛ НА РОЗДІЛИ"
36589 #: ../src/guestfs.pod:238
36591 "Libguestfs contains API calls to read, create and modify partition tables on "
36596 #: ../src/guestfs.pod:241
36598 "In the common case where you want to create a single partition covering the "
36599 "whole disk, you should use the L</guestfs_part_disk> call:"
36603 #: ../src/guestfs.pod:245
36606 " const char *parttype = \"mbr\";\n"
36607 " if (disk_is_larger_than_2TB)\n"
36608 " parttype = \"gpt\";\n"
36609 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
36612 " const char *parttype = \"mbr\";\n"
36613 " if (disk_is_larger_than_2TB)\n"
36614 " parttype = \"gpt\";\n"
36615 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
36619 #: ../src/guestfs.pod:250
36621 "Obviously this effectively wipes anything that was on that disk image before."
36625 #: ../src/guestfs.pod:253
36630 #: ../src/guestfs.pod:255
36632 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
36633 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
36634 "you familiarize yourself with the concepts of physical volumes, volume "
36635 "groups and logical volumes."
36639 #: ../src/guestfs.pod:260
36641 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
36642 "tldp.org/HOWTO/LVM-HOWTO/>."
36646 #: ../src/guestfs.pod:263
36647 msgid "DOWNLOADING"
36648 msgstr "ОТРИМАННЯ ДАНИХ"
36651 #: ../src/guestfs.pod:265
36653 "Use L</guestfs_cat> to download small, text only files. This call is "
36654 "limited to files which are less than 2 MB and which cannot contain any ASCII "
36655 "NUL (C<\\0>) characters. However the API is very simple to use."
36659 #: ../src/guestfs.pod:269
36661 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
36662 "bit data, since it returns a (pointer, size) pair. However it is still "
36663 "limited to \"small\" files, less than 2 MB."
36667 #: ../src/guestfs.pod:273
36669 "L</guestfs_download> can be used to download any file, with no limits on "
36670 "content or size (even files larger than 4 GB)."
36674 #: ../src/guestfs.pod:276
36676 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
36680 #: ../src/guestfs.pod:279
36682 msgstr "ВИВАНТАЖЕННЯ"
36685 #: ../src/guestfs.pod:281
36687 "It's often the case that you want to write a file or files to the disk image."
36691 #: ../src/guestfs.pod:284
36693 "To write a small file with fixed content, use L</guestfs_write>. To create "
36694 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
36695 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
36696 "of other functions for creating test files, for example L</guestfs_fill> and "
36697 "L</guestfs_fill_pattern>."
36701 #: ../src/guestfs.pod:290
36703 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
36704 "file content or size (even files larger than 4 GB)."
36708 #: ../src/guestfs.pod:293
36710 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
36714 #: ../src/guestfs.pod:295
36716 "However the fastest way to upload I<large numbers of arbitrary files> is to "
36717 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
36718 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
36719 "in a predictable way (eg. adding it last after all other drives) then you "
36720 "can get the device name from L</guestfs_list_devices> and mount it directly "
36721 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
36722 "portable between kernel versions, and they don't support labels or UUIDs. "
36723 "If you want to pre-build an image or you need to mount it using a label or "
36724 "UUID, use an ISO image instead."
36728 #: ../src/guestfs.pod:306
36730 msgstr "КОПІЮВАННЯ"
36733 #: ../src/guestfs.pod:308
36735 "There are various different commands for copying between files and devices "
36736 "and in and out of the guest filesystem. These are summarised in the table "
36741 #: ../src/guestfs.pod:314
36742 msgid "B<file> to B<file>"
36743 msgstr "B<файл> у B<файл>"
36746 #: ../src/guestfs.pod:316
36748 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36749 "directories recursively."
36753 #: ../src/guestfs.pod:319
36755 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36759 #: ../src/guestfs.pod:322
36760 msgid "B<file> to B<device>"
36764 #: ../src/guestfs.pod:324
36765 msgid "B<device> to B<file>"
36769 #: ../src/guestfs.pod:326
36770 msgid "B<device> to B<device>"
36774 #: ../src/guestfs.pod:328
36776 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36777 "guestfs_copy_device_to_device>."
36781 #: ../src/guestfs.pod:331
36782 msgid "Example: duplicate the contents of an LV:"
36786 #: ../src/guestfs.pod:333
36789 " guestfs_copy_device_to_device (g,\n"
36790 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36791 " /* -1 marks the end of the list of optional parameters */\n"
36797 #: ../src/guestfs.pod:338
36799 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36800 "(C</dev/VG/Original>). To copy less than the whole source device, use the "
36801 "optional C<size> parameter:"
36805 #: ../src/guestfs.pod:342
36808 " guestfs_copy_device_to_device (g,\n"
36809 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36810 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36816 #: ../src/guestfs.pod:347
36817 msgid "B<file on the host> to B<file or device>"
36821 #: ../src/guestfs.pod:349
36822 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
36826 #: ../src/guestfs.pod:351
36827 msgid "B<file or device> to B<file on the host>"
36831 #: ../src/guestfs.pod:353
36832 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
36836 #: ../src/guestfs.pod:357
36837 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36841 #: ../src/guestfs.pod:359
36843 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36844 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36845 "appears you can only upload and download to files. However many Un*x-like "
36846 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36847 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36848 "and arbitrary file descriptor N."
36852 #: ../src/guestfs.pod:367
36853 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36857 #: ../src/guestfs.pod:370
36860 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36863 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36867 #: ../src/guestfs.pod:372
36868 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36872 #: ../src/guestfs.pod:374
36875 " char devfd[64];\n"
36876 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36877 " guestfs_tar_out (g, \"/\", devfd);\n"
36880 " char devfd[64];\n"
36881 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36882 " guestfs_tar_out (g, \"/\", devfd);\n"
36886 #: ../src/guestfs.pod:378
36887 msgid "LISTING FILES"
36888 msgstr "СПИСКИ ФАЙЛІВ"
36891 #: ../src/guestfs.pod:380
36893 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36894 "L<guestfish(1)>-equivalent command C<ll>)."
36898 #: ../src/guestfs.pod:383
36900 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36901 "programs, as a flat list of strings."
36905 #: ../src/guestfs.pod:386
36907 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36908 "directory, plus additional information about each one. It is more "
36909 "equivalent to using the L<readdir(3)> call on a local filesystem."
36913 #: ../src/guestfs.pod:390
36915 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36919 #: ../src/guestfs.pod:393
36920 msgid "RUNNING COMMANDS"
36921 msgstr "ВИКОНАННЯ КОМАНД"
36924 #: ../src/guestfs.pod:395
36926 "Although libguestfs is primarily an API for manipulating files inside guest "
36927 "images, we also provide some limited facilities for running commands inside "
36932 #: ../src/guestfs.pod:399
36933 msgid "There are many limitations to this:"
36937 #: ../src/guestfs.pod:405
36939 "The kernel version that the command runs under will be different from what "
36944 #: ../src/guestfs.pod:410
36946 "If the command needs to communicate with daemons, then most likely they "
36947 "won't be running."
36951 #: ../src/guestfs.pod:415
36952 msgid "The command will be running in limited memory."
36956 #: ../src/guestfs.pod:419
36958 "The network may not be available unless you enable it (see L</"
36959 "guestfs_set_network>)."
36963 #: ../src/guestfs.pod:424
36964 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36968 #: ../src/guestfs.pod:428
36970 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36974 #: ../src/guestfs.pod:433
36976 "For SELinux guests, you may need to enable SELinux and load policy first. "
36977 "See L</SELINUX> in this manpage."
36981 #: ../src/guestfs.pod:438
36983 "I<Security:> It is not safe to run commands from untrusted, possibly "
36984 "malicious guests. These commands may attempt to exploit your program by "
36985 "sending unexpected output. They could also try to exploit the Linux kernel "
36986 "or qemu provided by the libguestfs appliance. They could use the network "
36987 "provided by the libguestfs appliance to bypass ordinary network partitions "
36988 "and firewalls. They could use the elevated privileges or different SELinux "
36989 "context of your program to their advantage."
36993 #: ../src/guestfs.pod:447
36995 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36996 "(a script which runs when the guest next boots normally), and to have this "
36997 "script run the commands you want in the normal context of the running guest, "
36998 "network security and so on. For information about other security issues, "
36999 "see L</SECURITY>."
37003 #: ../src/guestfs.pod:455
37005 "The two main API calls to run commands are L</guestfs_command> and L</"
37006 "guestfs_sh> (there are also variations)."
37010 #: ../src/guestfs.pod:458
37012 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
37013 "shell globs, redirections, etc will work."
37017 #: ../src/guestfs.pod:461
37018 msgid "CONFIGURATION FILES"
37019 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
37022 #: ../src/guestfs.pod:463
37024 "To read and write configuration files in Linux guest filesystems, we "
37025 "strongly recommend using Augeas. For example, Augeas understands how to "
37026 "read and write, say, a Linux shadow password file or X.org configuration "
37027 "file, and so avoids you having to write that code."
37031 #: ../src/guestfs.pod:468
37033 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
37034 "document Augeas itself here because there is excellent documentation on the "
37035 "L<http://augeas.net/> website."
37039 #: ../src/guestfs.pod:472
37041 "If you don't want to use Augeas (you fool!) then try calling L</"
37042 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
37047 #: ../src/guestfs.pod:476
37052 #: ../src/guestfs.pod:478
37054 "We support SELinux guests. To ensure that labeling happens correctly in "
37055 "SELinux guests, you need to enable SELinux and load the guest's policy:"
37059 #: ../src/guestfs.pod:486
37060 msgid "Before launching, do:"
37064 #: ../src/guestfs.pod:488
37067 " guestfs_set_selinux (g, 1);\n"
37070 " guestfs_set_selinux (g, 1);\n"
37074 #: ../src/guestfs.pod:492
37076 "After mounting the guest's filesystem(s), load the policy. This is best "
37077 "done by running the L<load_policy(8)> command in the guest itself:"
37081 #: ../src/guestfs.pod:496
37084 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
37087 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
37091 #: ../src/guestfs.pod:498
37093 "(Older versions of C<load_policy> require you to specify the name of the "
37098 #: ../src/guestfs.pod:503
37100 "Optionally, set the security context for the API. The correct security "
37101 "context to use can only be known by inspecting the guest. As an example:"
37105 #: ../src/guestfs.pod:507
37108 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
37111 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
37115 #: ../src/guestfs.pod:511
37116 msgid "This will work for running commands and editing existing files."
37120 #: ../src/guestfs.pod:513
37122 "When new files are created, you may need to label them explicitly, for "
37123 "example by running the external command C<restorecon pathname>."
37127 #: ../src/guestfs.pod:517
37132 #: ../src/guestfs.pod:519
37134 "Certain calls are affected by the current file mode creation mask (the "
37135 "\"umask\"). In particular ones which create files or directories, such as "
37136 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
37137 "either the default mode that the file is created with or modifies the mode "
37142 #: ../src/guestfs.pod:525
37144 "The default umask is C<022>, so files are created with modes such as C<0644> "
37145 "and directories with C<0755>."
37149 #: ../src/guestfs.pod:528
37151 "There are two ways to avoid being affected by umask. Either set umask to 0 "
37152 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
37153 "guestfs_chmod> after creating each file or directory."
37157 #: ../src/guestfs.pod:532
37158 msgid "For more information about umask, see L<umask(2)>."
37162 #: ../src/guestfs.pod:536
37164 "Libguestfs allows you to access Linux guests which have been encrypted using "
37165 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
37166 "standard. This includes nearly all whole disk encryption systems used by "
37167 "modern Linux guests."
37171 #: ../src/guestfs.pod:542
37173 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
37174 "returns the string C<crypto_LUKS>)."
37178 #: ../src/guestfs.pod:545
37180 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
37181 "will require the passphrase!"
37185 #: ../src/guestfs.pod:548
37187 "Opening a LUKS device creates a new device mapper device called C</dev/"
37188 "mapper/mapname> (where C<mapname> is the string you supply to L</"
37189 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
37190 "from and encrypted to the underlying block device respectively."
37194 #: ../src/guestfs.pod:554
37196 "LVM volume groups on the device can be made visible by calling L</"
37197 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
37198 "(s) can now be mounted in the usual way."
37202 #: ../src/guestfs.pod:558
37204 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
37205 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
37206 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
37207 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
37208 "underlying encrypted block device)."
37212 #: ../src/guestfs.pod:565
37217 #: ../src/guestfs.pod:567
37219 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
37220 "contains operating systems, an install CD or a live CD. (These APIs used to "
37221 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
37222 "version 1.5.3 the most frequently used part of this library has been "
37223 "rewritten in C and moved into the core code)."
37227 #: ../src/guestfs.pod:574
37229 "Add all disks belonging to the unknown virtual machine and call L</"
37230 "guestfs_launch> in the usual way."
37234 #: ../src/guestfs.pod:577
37236 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
37237 "and certain heuristics, and returns a list of operating systems that were "
37238 "found. An empty list means none were found. A single element is the root "
37239 "filesystem of the operating system. For dual- or multi-boot guests, "
37240 "multiple roots can be returned, each one corresponding to a separate "
37241 "operating system. (Multi-boot virtual machines are extremely rare in the "
37242 "world of virtualization, but since this scenario can happen, we have built "
37243 "libguestfs to deal with it.)"
37247 #: ../src/guestfs.pod:586
37249 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
37250 "to get additional details about that operating system. For example, call L</"
37251 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
37252 "Windows and Linux-based operating systems respectively."
37256 #: ../src/guestfs.pod:592
37258 "Un*x-like and Linux-based operating systems usually consist of several "
37259 "filesystems which are mounted at boot time (for example, a separate boot "
37260 "partition mounted on C</boot>). The inspection rules are able to detect how "
37261 "filesystems correspond to mount points. Call "
37262 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
37263 "hash table like this example:"
37267 #: ../src/guestfs.pod:599
37270 " /boot => /dev/sda1\n"
37271 " / => /dev/vg_guest/lv_root\n"
37272 " /usr => /dev/vg_guest/lv_usr\n"
37275 " /boot => /dev/sda1\n"
37276 " / => /dev/vg_guest/lv_root\n"
37277 " /usr => /dev/vg_guest/lv_usr\n"
37281 #: ../src/guestfs.pod:603
37283 "The caller can then make calls to L</guestfs_mount_options> to mount the "
37284 "filesystems as suggested."
37288 #: ../src/guestfs.pod:606
37290 "Be careful to mount filesystems in the right order (eg. C</> before C</"
37291 "usr>). Sorting the keys of the hash by length, shortest first, should work."
37295 #: ../src/guestfs.pod:610
37297 "Inspection currently only works for some common operating systems. "
37298 "Contributors are welcome to send patches for other operating systems that we "
37299 "currently cannot detect."
37303 #: ../src/guestfs.pod:614
37305 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
37306 "for more details. The L</guestfs_inspect_os> function just ignores any "
37307 "encrypted devices."
37311 #: ../src/guestfs.pod:618
37313 "A note on the implementation: The call L</guestfs_inspect_os> performs "
37314 "inspection and caches the results in the guest handle. Subsequent calls to "
37315 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
37316 "read the disks. If you change the content of the guest disks, you can redo "
37317 "inspection by calling L</guestfs_inspect_os> again. (L</"
37318 "guestfs_inspect_list_applications> works a little differently from the other "
37319 "calls and does read the disks. See documentation for that function for "
37324 #: ../src/guestfs.pod:627
37325 msgid "INSPECTING INSTALL DISKS"
37329 #: ../src/guestfs.pod:629
37331 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
37336 #: ../src/guestfs.pod:632
37338 "Call L</guestfs_inspect_get_format> to return the format of the operating "
37339 "system, which currently can be C<installed> (a regular operating system) or "
37340 "C<installer> (some sort of install disk)."
37344 #: ../src/guestfs.pod:636
37346 "Further information is available about the operating system that can be "
37347 "installed using the regular inspection APIs like L</"
37348 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
37352 #: ../src/guestfs.pod:641
37354 "Some additional information specific to installer disks is also available "
37355 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
37356 "guestfs_inspect_is_multipart> calls."
37360 #: ../src/guestfs.pod:646
37361 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
37365 #: ../src/guestfs.pod:648
37367 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
37368 "ntfs-3g.org/> driver."
37372 #: ../src/guestfs.pod:651
37373 msgid "DRIVE LETTERS AND PATHS"
37374 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
37377 #: ../src/guestfs.pod:653
37379 "DOS and Windows still use drive letters, and the filesystems are always "
37380 "treated as case insensitive by Windows itself, and therefore you might find "
37381 "a Windows configuration file referring to a path like C<c:\\windows"
37382 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
37383 "might be referred to as C</WINDOWS/System32>."
37387 #: ../src/guestfs.pod:659
37389 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
37390 "L</guestfs_inspect_get_drive_mappings>)"
37394 #: ../src/guestfs.pod:662
37396 "Dealing with separator characters (backslash vs forward slash) is outside "
37397 "the scope of libguestfs, but usually a simple character replacement will "
37402 #: ../src/guestfs.pod:666
37404 "To resolve the case insensitivity of paths, call L</"
37405 "guestfs_case_sensitive_path>."
37409 #: ../src/guestfs.pod:669
37410 msgid "ACCESSING THE WINDOWS REGISTRY"
37411 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
37414 #: ../src/guestfs.pod:671
37416 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
37417 "files, through the library C<hivex> which is part of the libguestfs project "
37418 "although ships as a separate tarball. You have to locate and download the "
37419 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
37420 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
37421 "reg(1)> for more help on this issue."
37425 #: ../src/guestfs.pod:679
37426 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
37427 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
37430 #: ../src/guestfs.pod:681
37432 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
37433 "provide something which looks like a Linux symlink. The way it tries to do "
37434 "the rewriting is described here:"
37438 #: ../src/guestfs.pod:685
37440 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
37443 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
37447 #: ../src/guestfs.pod:687
37449 "The essential problem is that ntfs-3g simply does not have enough "
37450 "information to do a correct job. NTFS links can contain drive letters and "
37451 "references to external device GUIDs that ntfs-3g has no way of resolving. "
37452 "It is almost certainly the case that libguestfs callers should ignore what "
37453 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
37457 #: ../src/guestfs.pod:694
37459 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
37460 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
37461 "attribute, and read the raw reparse data from that (you can find the format "
37462 "documented in various places around the web)."
37466 #: ../src/guestfs.pod:699
37467 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
37471 #: ../src/guestfs.pod:701
37473 "There are other useful extended attributes that can be read from ntfs-3g "
37474 "filesystems (using L</guestfs_getxattr>). See:"
37478 #: ../src/guestfs.pod:704
37480 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
37482 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
37485 #: ../src/guestfs.pod:706
37486 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
37487 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
37490 #: ../src/guestfs.pod:708
37492 "Although we don't want to discourage you from using the C API, we will "
37493 "mention here that the same API is also available in other languages."
37497 #: ../src/guestfs.pod:711
37499 "The API is broadly identical in all supported languages. This means that "
37500 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
37501 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
37502 "OCaml. In other words, a straightforward, predictable isomorphism between "
37507 #: ../src/guestfs.pod:717
37509 "Error messages are automatically transformed into exceptions if the language "
37514 #: ../src/guestfs.pod:720
37516 "We don't try to \"object orientify\" parts of the API in OO languages, "
37517 "although contributors are welcome to write higher level APIs above what we "
37518 "provide in their favourite languages if they wish."
37522 #: ../src/guestfs.pod:726
37527 #: ../src/guestfs.pod:728
37529 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
37530 "identical to the C API. C++ classes and exceptions are not used."
37534 #: ../src/guestfs.pod:732
37539 #: ../src/guestfs.pod:734
37541 "The C# bindings are highly experimental. Please read the warnings at the "
37542 "top of C<csharp/Libguestfs.cs>."
37546 #: ../src/guestfs.pod:737
37551 #: ../src/guestfs.pod:739
37552 msgid "See L<guestfs-erlang(3)>."
37556 #: ../src/guestfs.pod:741
37558 msgstr "B<Haskell>"
37561 #: ../src/guestfs.pod:743
37563 "This is the only language binding that is working but incomplete. Only "
37564 "calls which return simple integers have been bound in Haskell, and we are "
37565 "looking for help to complete this binding."
37569 #: ../src/guestfs.pod:747
37574 #: ../src/guestfs.pod:749
37576 "Full documentation is contained in the Javadoc which is distributed with "
37577 "libguestfs. For examples, see L<guestfs-java(3)>."
37581 #: ../src/guestfs.pod:752
37586 #: ../src/guestfs.pod:754
37587 msgid "See L<guestfs-ocaml(3)>."
37588 msgstr "Див. L<guestfs-ocaml(3)>."
37591 #: ../src/guestfs.pod:756
37596 #: ../src/guestfs.pod:758
37597 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
37598 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
37601 #: ../src/guestfs.pod:760
37606 #: ../src/guestfs.pod:762
37608 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
37609 "the php-libguestfs package for your distribution."
37613 #: ../src/guestfs.pod:765
37614 msgid "The PHP binding only works correctly on 64 bit machines."
37618 #: ../src/guestfs.pod:767
37623 #: ../src/guestfs.pod:769
37624 msgid "See L<guestfs-python(3)>."
37625 msgstr "Див. L<guestfs-python(3)>."
37628 #: ../src/guestfs.pod:771
37633 #: ../src/guestfs.pod:773
37634 msgid "See L<guestfs-ruby(3)>."
37635 msgstr "Див. L<guestfs-ruby(3)>."
37638 #: ../src/guestfs.pod:775
37639 msgid "B<shell scripts>"
37640 msgstr "B<скрипти оболонки>"
37643 #: ../src/guestfs.pod:777
37644 msgid "See L<guestfish(1)>."
37645 msgstr "Див. L<guestfish(1)>."
37648 #: ../src/guestfs.pod:781
37649 msgid "LIBGUESTFS GOTCHAS"
37653 #: ../src/guestfs.pod:783
37655 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
37656 "system [...] that works in the way it is documented but is counterintuitive "
37657 "and almost invites mistakes.\""
37661 #: ../src/guestfs.pod:787
37663 "Since we developed libguestfs and the associated tools, there are several "
37664 "things we would have designed differently, but are now stuck with for "
37665 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
37666 "release, you can expect these to change. Beware of them."
37670 #: ../src/guestfs.pod:795
37671 msgid "Autosync / forgetting to sync."
37675 #: ../src/guestfs.pod:797
37677 "I<Update:> Autosync is enabled by default for all API users starting from "
37678 "libguestfs 1.5.24. This section only applies to older versions."
37682 #: ../src/guestfs.pod:800
37684 "When modifying a filesystem from C or another language, you B<must> unmount "
37685 "all filesystems and call L</guestfs_sync> explicitly before you close the "
37686 "libguestfs handle. You can also call:"
37690 #: ../src/guestfs.pod:804
37693 " guestfs_set_autosync (g, 1);\n"
37696 " guestfs_set_autosync (g, 1);\n"
37700 #: ../src/guestfs.pod:806
37702 "to have the unmount/sync done automatically for you when the handle 'g' is "
37703 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
37707 #: ../src/guestfs.pod:810
37709 "If you forget to do this, then it is entirely possible that your changes "
37710 "won't be written out, or will be partially written, or (very rarely) that "
37711 "you'll get disk corruption."
37715 #: ../src/guestfs.pod:814
37717 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
37718 "guestfish scripts that forget to sync will work just fine, which can make "
37719 "this very puzzling if you are trying to debug a problem."
37723 #: ../src/guestfs.pod:818
37724 msgid "Mount option C<-o sync> should not be the default."
37728 #: ../src/guestfs.pod:820
37730 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37731 "libguestfs 1.13.16. This section only applies to older versions."
37735 #: ../src/guestfs.pod:823
37737 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
37738 "However C<-o sync> does not add any reliability benefit, but does have a "
37739 "very large performance impact."
37743 #: ../src/guestfs.pod:827
37745 "The work around is to use L</guestfs_mount_options> and set the mount "
37746 "options that you actually want to use."
37750 #: ../src/guestfs.pod:830
37751 msgid "Read-only should be the default."
37755 #: ../src/guestfs.pod:832
37757 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37758 "specify I<--rw> if you want to make changes to the image."
37762 #: ../src/guestfs.pod:835
37763 msgid "This would reduce the potential to corrupt live VM images."
37767 #: ../src/guestfs.pod:837
37769 "Note that many filesystems change the disk when you just mount and unmount, "
37770 "even if you didn't perform any writes. You need to use L</"
37771 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37775 #: ../src/guestfs.pod:841
37776 msgid "guestfish command line is hard to use."
37780 #: ../src/guestfs.pod:843
37782 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37783 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
37784 "exist, so it fails. In earlier versions of guestfish the error message was "
37785 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
37786 "we should have used C<guestfish -c command> to run commands."
37790 #: ../src/guestfs.pod:850
37791 msgid "guestfish megabyte modifiers don't work right on all commands"
37795 #: ../src/guestfs.pod:852
37797 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37798 "other modifiers). What guestfish actually does is to multiply the number "
37799 "part by the modifier part and pass the result to the C API. However this "
37800 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37801 "expecting some other unit (eg. megabytes)."
37805 #: ../src/guestfs.pod:859
37806 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
37810 #: ../src/guestfs.pod:861
37813 " lvcreate LV VG 100M\n"
37816 " lvcreate LV VG 100M\n"
37820 #: ../src/guestfs.pod:863
37822 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
37823 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37824 "megabytes * megabytes) logical volume. The error message you get from this "
37825 "is also a little obscure."
37829 #: ../src/guestfs.pod:868
37831 "This could be fixed in the generator by specially marking parameters and "
37832 "return values which take bytes or other units."
37836 #: ../src/guestfs.pod:871
37837 msgid "Ambiguity between devices and paths"
37841 #: ../src/guestfs.pod:873
37843 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37844 "sdb2>) and a similar pathname. A file might just happen to be called "
37845 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37849 #: ../src/guestfs.pod:878
37851 "In the current API we usually resolve this ambiguity by having two separate "
37852 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
37853 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37854 "detecting if the path supplied begins with C</dev/>."
37858 #: ../src/guestfs.pod:884
37860 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37861 "make paths/devices into structured names. One way to do this would be to "
37862 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37863 "aspect of grub. Another way would be to use a structured type, equivalent "
37864 "to this OCaml type:"
37868 #: ../src/guestfs.pod:890
37871 " type path = Path of string | Device of int | Partition of int * int\n"
37876 #: ../src/guestfs.pod:892
37877 msgid "which would allow you to pass arguments like:"
37881 #: ../src/guestfs.pod:894
37884 " Path \"/foo/bar\"\n"
37885 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
37886 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37887 " Path \"/dev/sdb2\" (* not a device *)\n"
37892 #: ../src/guestfs.pod:899
37894 "As you can see there are still problems to resolve even with this "
37895 "representation. Also consider how it might work in guestfish."
37899 #: ../src/guestfs.pod:904
37900 msgid "KEYS AND PASSPHRASES"
37901 msgstr "КЛЮЧІ І ПАРОЛІ"
37904 #: ../src/guestfs.pod:906
37906 "Certain libguestfs calls take a parameter that contains sensitive key "
37907 "material, passed in as a C string."
37911 #: ../src/guestfs.pod:909
37913 "In the future we would hope to change the libguestfs implementation so that "
37914 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37915 "swap. However this is I<not> done at the moment, because of the complexity "
37916 "of such an implementation."
37920 #: ../src/guestfs.pod:914
37922 "Therefore you should be aware that any key parameter you pass to libguestfs "
37923 "might end up being written out to the swap partition. If this is a concern, "
37924 "scrub the swap partition or don't use libguestfs on encrypted devices."
37928 #: ../src/guestfs.pod:919
37929 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37933 #: ../src/guestfs.pod:921
37935 "All high-level libguestfs actions are synchronous. If you want to use "
37936 "libguestfs asynchronously then you must create a thread."
37940 #: ../src/guestfs.pod:924
37942 "Only use the handle from a single thread. Either use the handle exclusively "
37943 "from one thread, or provide your own mutex so that two threads cannot issue "
37944 "calls on the same handle at the same time."
37948 #: ../src/guestfs.pod:928
37950 "See the graphical program guestfs-browser for one possible architecture for "
37951 "multithreaded programs using libvirt and libguestfs."
37955 #: ../src/guestfs.pod:931
37960 #: ../src/guestfs.pod:933
37962 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37967 #: ../src/guestfs.pod:936
37969 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37970 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37974 #: ../src/guestfs.pod:939
37976 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37977 "to change the directories that libguestfs will search in. The value is a "
37978 "colon-separated list of paths. The current directory is I<not> searched "
37979 "unless the path contains an empty element or C<.>. For example "
37980 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37981 "then C</usr/lib/guestfs>."
37985 #: ../src/guestfs.pod:946
37986 msgid "QEMU WRAPPERS"
37990 #: ../src/guestfs.pod:948
37992 "If you want to compile your own qemu, run qemu from a non-standard location, "
37993 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37998 #: ../src/guestfs.pod:952
38000 "There is one important rule to remember: you I<must C<exec qemu>> as the "
38001 "last command in the shell script (so that qemu replaces the shell and "
38002 "becomes the direct child of the libguestfs-using program). If you don't do "
38003 "this, then the qemu process won't be cleaned up correctly."
38007 #: ../src/guestfs.pod:957
38009 "Here is an example of a wrapper, where I have built my own copy of qemu from "
38014 #: ../src/guestfs.pod:960
38018 " qemudir=/home/rjones/d/qemu\n"
38019 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
38023 " qemudir=/home/rjones/d/qemu\n"
38024 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
38028 #: ../src/guestfs.pod:964
38030 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
38031 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
38036 #: ../src/guestfs.pod:968
38039 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
38042 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
38046 #: ../src/guestfs.pod:970
38048 "Note that libguestfs also calls qemu with the -help and -version options in "
38049 "order to determine features."
38053 #: ../src/guestfs.pod:973
38055 "Wrappers can also be used to edit the options passed to qemu. In the "
38056 "following example, the C<-machine ...> option (C<-machine> and the following "
38057 "argument) are removed from the command line and replaced with C<-machine pc,"
38058 "accel=tcg>. The while loop iterates over the options until it finds the "
38059 "right one to remove, putting the remaining options into the C<args> array."
38063 #: ../src/guestfs.pod:982
38067 " while [ $# -gt 0 ]; do\n"
38068 " case \"$1\" in\n"
38072 " args[i]=\"$1\"\n"
38081 #: ../src/guestfs.pod:994
38084 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
38089 #: ../src/guestfs.pod:996
38090 msgid "ATTACHING TO RUNNING DAEMONS"
38091 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
38094 #: ../src/guestfs.pod:998
38096 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
38097 "babies. Use with caution."
38101 #: ../src/guestfs.pod:1001
38103 "I<Note (2):> This section explains how to attach to a running daemon from a "
38104 "low level perspective. For most users, simply using virt tools such as "
38105 "L<guestfish(1)> with the I<--live> option will \"just work\"."
38109 #: ../src/guestfs.pod:1005
38110 msgid "Using guestfs_set_attach_method"
38111 msgstr "За допомогою guestfs_set_attach_method"
38114 #: ../src/guestfs.pod:1007
38116 "By calling L</guestfs_set_attach_method> you can change how the library "
38117 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
38118 "ARCHITECTURE> for some background)."
38122 #: ../src/guestfs.pod:1011
38124 "The normal attach method is C<appliance>, where a small appliance is created "
38125 "containing the daemon, and then the library connects to this."
38129 #: ../src/guestfs.pod:1014
38131 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
38132 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
38133 "daemon over the Unix domain socket."
38137 #: ../src/guestfs.pod:1018
38139 "The normal use for this is to connect to a running virtual machine that "
38140 "contains a C<guestfsd> daemon, and send commands so you can read and write "
38141 "files inside the live virtual machine."
38145 #: ../src/guestfs.pod:1022
38146 msgid "Using guestfs_add_domain with live flag"
38147 msgstr "За допомогою guestfs_add_domain з прапорцем live"
38150 #: ../src/guestfs.pod:1024
38152 "L</guestfs_add_domain> provides some help for getting the correct attach "
38153 "method. If you pass the C<live> option to this function, then (if the "
38154 "virtual machine is running) it will examine the libvirt XML looking for a "
38155 "virtio-serial channel to connect to:"
38159 #: ../src/guestfs.pod:1030
38166 " <channel type='unix'>\n"
38167 " <source mode='bind' path='/path/to/socket'/>\n"
38168 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
38179 " <channel type='unix'>\n"
38180 " <source mode='bind' path='/path/to/socket'/>\n"
38181 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
38189 #: ../src/guestfs.pod:1042
38191 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
38192 "method to C<unix:/path/to/socket>."
38196 #: ../src/guestfs.pod:1045
38198 "Some of the libguestfs tools (including guestfish) support a I<--live> "
38199 "option which is passed through to L</guestfs_add_domain> thus allowing you "
38200 "to attach to and modify live virtual machines."
38204 #: ../src/guestfs.pod:1049
38206 "The virtual machine needs to have been set up beforehand so that it has the "
38207 "virtio-serial channel and so that guestfsd is running inside it."
38211 #: ../src/guestfs.pod:1053
38212 msgid "ABI GUARANTEE"
38213 msgstr "ГАРАНТІЯ ЩОДО ABI"
38216 #: ../src/guestfs.pod:1055
38218 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
38219 "actions as outlined in this section. Although we will deprecate some "
38220 "actions, for example if they get replaced by newer calls, we will keep the "
38221 "old actions forever. This allows you the developer to program in confidence "
38222 "against the libguestfs API."
38226 #: ../src/guestfs.pod:1061
38227 msgid "BLOCK DEVICE NAMING"
38228 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
38231 #: ../src/guestfs.pod:1063
38233 "In the kernel there is now quite a profusion of schemata for naming block "
38234 "devices (in this context, by I<block device> I mean a physical or virtual "
38235 "hard drive). The original Linux IDE driver used names starting with C</dev/"
38236 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
38237 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
38238 "for the old IDE driver (particularly for SATA devices) those devices also "
38239 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
38240 "paravirtualized drivers. This has created several different naming systems, "
38241 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
38245 #: ../src/guestfs.pod:1075
38247 "As discussed above, libguestfs uses a qemu appliance running an embedded "
38248 "Linux kernel to access block devices. We can run a variety of appliances "
38249 "based on a variety of Linux kernels."
38253 #: ../src/guestfs.pod:1079
38255 "This causes a problem for libguestfs because many API calls use device or "
38256 "partition names. Working scripts and the recipe (example) scripts that we "
38257 "make available over the internet could fail if the naming scheme changes."
38261 #: ../src/guestfs.pod:1084
38263 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
38264 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
38265 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
38266 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
38270 #: ../src/guestfs.pod:1090
38272 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
38273 "L</guestfs_list_partitions> and similar calls return the true names of the "
38274 "devices and partitions as known to the appliance."
38278 #: ../src/guestfs.pod:1095
38279 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
38283 #: ../src/guestfs.pod:1097
38285 "Usually this translation is transparent. However in some (very rare) cases "
38286 "you may need to know the exact algorithm. Such cases include where you use "
38287 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
38288 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
38292 #: ../src/guestfs.pod:1103
38294 "The algorithm is applied only to I<parameters> which are known to be either "
38295 "device or partition names. Return values from functions such as L</"
38296 "guestfs_list_devices> are never changed."
38300 #: ../src/guestfs.pod:1111
38301 msgid "Is the string a parameter which is a device or partition name?"
38305 #: ../src/guestfs.pod:1115
38306 msgid "Does the string begin with C</dev/sd>?"
38307 msgstr "Чи починається рядок з C</dev/sd>?"
38310 #: ../src/guestfs.pod:1119
38312 "Does the named device exist? If so, we use that device. However if I<not> "
38313 "then we continue with this algorithm."
38317 #: ../src/guestfs.pod:1124
38318 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
38322 #: ../src/guestfs.pod:1126
38323 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
38327 #: ../src/guestfs.pod:1128
38328 msgid "If that named device exists, use it. If not, continue."
38332 #: ../src/guestfs.pod:1132
38333 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
38337 #: ../src/guestfs.pod:1134
38338 msgid "If that named device exists, use it. If not, return an error."
38342 #: ../src/guestfs.pod:1138
38343 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
38347 #: ../src/guestfs.pod:1140
38349 "Although the standard naming scheme and automatic translation is useful for "
38350 "simple programs and guestfish scripts, for larger programs it is best not to "
38351 "rely on this mechanism."
38355 #: ../src/guestfs.pod:1144
38357 "Where possible for maximum future portability programs using libguestfs "
38358 "should use these future-proof techniques:"
38362 #: ../src/guestfs.pod:1151
38364 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
38365 "device names, and then use those names directly."
38369 #: ../src/guestfs.pod:1154
38371 "Since those device names exist by definition, they will never be translated."
38375 #: ../src/guestfs.pod:1159
38377 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
38378 "filesystem labels."
38382 #: ../src/guestfs.pod:1166
38384 "This section discusses security implications of using libguestfs, "
38385 "particularly with untrusted or malicious guests or disk images."
38389 #: ../src/guestfs.pod:1169
38390 msgid "GENERAL SECURITY CONSIDERATIONS"
38391 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
38394 #: ../src/guestfs.pod:1171
38396 "Be careful with any files or data that you download from a guest (by "
38397 "\"download\" we mean not just the L</guestfs_download> command but any "
38398 "command that reads files, filenames, directories or anything else from a "
38399 "disk image). An attacker could manipulate the data to fool your program "
38400 "into doing the wrong thing. Consider cases such as:"
38404 #: ../src/guestfs.pod:1181
38405 msgid "the data (file etc) not being present"
38409 #: ../src/guestfs.pod:1185
38410 msgid "being present but empty"
38414 #: ../src/guestfs.pod:1189
38415 msgid "being much larger than normal"
38419 #: ../src/guestfs.pod:1193
38420 msgid "containing arbitrary 8 bit data"
38424 #: ../src/guestfs.pod:1197
38425 msgid "being in an unexpected character encoding"
38429 #: ../src/guestfs.pod:1201
38430 msgid "containing homoglyphs."
38434 #: ../src/guestfs.pod:1205
38435 msgid "SECURITY OF MOUNTING FILESYSTEMS"
38436 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
38439 #: ../src/guestfs.pod:1207
38441 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
38442 "(VFS) module can sometimes be escalated into exploits by deliberately "
38443 "creating a malicious, malformed filesystem. These exploits are very severe "
38444 "for two reasons. Firstly there are very many filesystem drivers in the "
38445 "kernel, and many of them are infrequently used and not much developer "
38446 "attention has been paid to the code. Linux userspace helps potential "
38447 "crackers by detecting the filesystem type and automatically choosing the "
38448 "right VFS driver, even if that filesystem type is obscure or unexpected for "
38449 "the administrator. Secondly, a kernel-level exploit is like a local root "
38450 "exploit (worse in some ways), giving immediate and total access to the "
38451 "system right down to the hardware level."
38455 #: ../src/guestfs.pod:1220
38457 "That explains why you should never mount a filesystem from an untrusted "
38458 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
38459 "inside a qemu virtual machine, usually running as a non-root user. The "
38460 "attacker would need to write a filesystem which first exploited the kernel, "
38461 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
38462 "the libguestfs protocol, and finally to be as serious as the host kernel "
38463 "exploit it would need to escalate its privileges to root. This multi-step "
38464 "escalation, performed by a static piece of data, is thought to be extremely "
38465 "hard to do, although we never say 'never' about security issues."
38469 #: ../src/guestfs.pod:1231
38471 "In any case callers can reduce the attack surface by forcing the filesystem "
38472 "type when mounting (use L</guestfs_mount_vfs>)."
38476 #: ../src/guestfs.pod:1234
38477 msgid "PROTOCOL SECURITY"
38478 msgstr "ЗАХИСТ ПРОТОКОЛУ"
38481 #: ../src/guestfs.pod:1236
38483 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
38484 "defined upper message size. However a program that uses libguestfs must "
38485 "also take care - for example you can write a program that downloads a binary "
38486 "from a disk image and executes it locally, and no amount of protocol "
38487 "security will save you from the consequences."
38491 #: ../src/guestfs.pod:1242
38492 msgid "INSPECTION SECURITY"
38496 #: ../src/guestfs.pod:1244
38498 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
38499 "directly from the guest, and these could contain any 8 bit data. Callers "
38500 "should be careful to escape these before printing them to a structured file "
38501 "(for example, use HTML escaping if creating a web page)."
38505 #: ../src/guestfs.pod:1250
38507 "Guest configuration may be altered in unusual ways by the administrator of "
38508 "the virtual machine, and may not reflect reality (particularly for untrusted "
38509 "or actively malicious guests). For example we parse the hostname from "
38510 "configuration files like C</etc/sysconfig/network> that we find in the "
38511 "guest, but the guest administrator can easily manipulate these files to "
38512 "provide the wrong hostname."
38516 #: ../src/guestfs.pod:1258
38518 "The inspection API parses guest configuration using two external libraries: "
38519 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
38520 "designed to be robust in the face of malicious data, although denial of "
38521 "service attacks are still possible, for example with oversized configuration "
38526 #: ../src/guestfs.pod:1264
38527 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
38528 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
38531 #: ../src/guestfs.pod:1266
38533 "Be very cautious about running commands from the guest. By running a "
38534 "command in the guest, you are giving CPU time to a binary that you do not "
38535 "control, under the same user account as the library, albeit wrapped in qemu "
38536 "virtualization. More information and alternatives can be found in the "
38537 "section L</RUNNING COMMANDS>."
38541 #: ../src/guestfs.pod:1272
38542 msgid "CVE-2010-3851"
38543 msgstr "CVE-2010-3851"
38546 #: ../src/guestfs.pod:1274
38547 msgid "https://bugzilla.redhat.com/642934"
38548 msgstr "https://bugzilla.redhat.com/642934"
38551 #: ../src/guestfs.pod:1276
38553 "This security bug concerns the automatic disk format detection that qemu "
38554 "does on disk images."
38558 #: ../src/guestfs.pod:1279
38560 "A raw disk image is just the raw bytes, there is no header. Other disk "
38561 "images like qcow2 contain a special header. Qemu deals with this by looking "
38562 "for one of the known headers, and if none is found then assuming the disk "
38563 "image must be raw."
38567 #: ../src/guestfs.pod:1284
38569 "This allows a guest which has been given a raw disk image to write some "
38570 "other header. At next boot (or when the disk image is accessed by "
38571 "libguestfs) qemu would do autodetection and think the disk image format was, "
38572 "say, qcow2 based on the header written by the guest."
38576 #: ../src/guestfs.pod:1289
38578 "This in itself would not be a problem, but qcow2 offers many features, one "
38579 "of which is to allow a disk image to refer to another image (called the "
38580 "\"backing disk\"). It does this by placing the path to the backing disk "
38581 "into the qcow2 header. This path is not validated and could point to any "
38582 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
38583 "\"holes\" in the qcow2 disk image, which of course is completely under the "
38584 "control of the attacker."
38588 #: ../src/guestfs.pod:1297
38590 "In libguestfs this is rather hard to exploit except under two circumstances:"
38594 #: ../src/guestfs.pod:1304
38595 msgid "You have enabled the network or have opened the disk in write mode."
38599 #: ../src/guestfs.pod:1308
38601 "You are also running untrusted code from the guest (see L</RUNNING "
38606 #: ../src/guestfs.pod:1313
38608 "The way to avoid this is to specify the expected disk format when adding "
38609 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
38610 "should always do this if the disk is raw format, and it's a good idea for "
38615 #: ../src/guestfs.pod:1318
38617 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
38618 "format is fetched from libvirt and passed through."
38622 #: ../src/guestfs.pod:1321
38624 "For libguestfs tools, use the I<--format> command line parameter as "
38629 #: ../src/guestfs.pod:1324
38630 msgid "CONNECTION MANAGEMENT"
38631 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
38634 #: ../src/guestfs.pod:1326
38635 msgid "guestfs_h *"
38636 msgstr "guestfs_h *"
38639 #: ../src/guestfs.pod:1328
38641 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
38642 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
38643 "handle and release all resources used."
38647 #: ../src/guestfs.pod:1332
38649 "For information on using multiple handles and threads, see the section L</"
38650 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
38654 #: ../src/guestfs.pod:1335
38655 msgid "guestfs_create"
38656 msgstr "guestfs_create"
38659 #: ../src/guestfs.pod:1337
38662 " guestfs_h *guestfs_create (void);\n"
38665 " guestfs_h *guestfs_create (void);\n"
38669 #: ../src/guestfs.pod:1339
38670 msgid "Create a connection handle."
38671 msgstr "Створити дескриптор з’єднання."
38674 #: ../src/guestfs.pod:1341
38676 "On success this returns a non-NULL pointer to a handle. On error it returns "
38681 #: ../src/guestfs.pod:1344
38683 "You have to \"configure\" the handle after creating it. This includes "
38684 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
38685 "handle at least once."
38689 #: ../src/guestfs.pod:1348
38690 msgid "After configuring the handle, you have to call L</guestfs_launch>."
38694 #: ../src/guestfs.pod:1350
38696 "You may also want to configure error handling for the handle. See the L</"
38697 "ERROR HANDLING> section below."
38701 #: ../src/guestfs.pod:1353
38702 msgid "guestfs_close"
38703 msgstr "guestfs_close"
38706 #: ../src/guestfs.pod:1355
38709 " void guestfs_close (guestfs_h *g);\n"
38712 " void guestfs_close (guestfs_h *g);\n"
38716 #: ../src/guestfs.pod:1357
38717 msgid "This closes the connection handle and frees up all resources used."
38721 #: ../src/guestfs.pod:1359
38723 "If autosync was set on the handle and the handle was launched, then this "
38724 "implicitly calls various functions to unmount filesystems and sync the "
38725 "disk. See L</guestfs_set_autosync> for more details."
38729 #: ../src/guestfs.pod:1363
38730 msgid "If a close callback was set on the handle, then it is called."
38734 #: ../src/guestfs.pod:1365
38735 msgid "ERROR HANDLING"
38736 msgstr "ОБРОБКА ПОМИЛОК"
38739 #: ../src/guestfs.pod:1367
38741 "API functions can return errors. For example, almost all functions that "
38742 "return C<int> will return C<-1> to indicate an error."
38746 #: ../src/guestfs.pod:1370
38748 "Additional information is available for errors: an error message string and "
38749 "optionally an error number (errno) if the thing that failed was a system "
38754 #: ../src/guestfs.pod:1374
38756 "You can get at the additional information about the last error on the handle "
38757 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38758 "up an error handler with L</guestfs_set_error_handler>."
38762 #: ../src/guestfs.pod:1379
38764 "When the handle is created, a default error handler is installed which "
38765 "prints the error message string to C<stderr>. For small short-running "
38766 "command line programs it is sufficient to do:"
38770 #: ../src/guestfs.pod:1383
38773 " if (guestfs_launch (g) == -1)\n"
38774 " exit (EXIT_FAILURE);\n"
38777 " if (guestfs_launch (g) == -1)\n"
38778 " exit (EXIT_FAILURE);\n"
38782 #: ../src/guestfs.pod:1386
38784 "since the default error handler will ensure that an error message has been "
38785 "printed to C<stderr> before the program exits."
38789 #: ../src/guestfs.pod:1389
38791 "For other programs the caller will almost certainly want to install an "
38792 "alternate error handler or do error handling in-line like this:"
38796 #: ../src/guestfs.pod:1392
38799 " /* This disables the default behaviour of printing errors\n"
38801 " guestfs_set_error_handler (g, NULL, NULL);\n"
38806 #: ../src/guestfs.pod:1396
38809 " if (guestfs_launch (g) == -1) {\n"
38810 " /* Examine the error message and print it etc. */\n"
38811 " char *msg = guestfs_last_error (g);\n"
38812 " int errnum = guestfs_last_errno (g);\n"
38813 " fprintf (stderr, \"%s\", msg);\n"
38814 " if (errnum != 0)\n"
38815 " fprintf (stderr, \": %s\", strerror (errnum));\n"
38816 " fprintf (stderr, \"\\n\");\n"
38823 #: ../src/guestfs.pod:1407
38825 "Out of memory errors are handled differently. The default action is to call "
38826 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
38827 "guestfs_set_out_of_memory_handler>."
38831 #: ../src/guestfs.pod:1411
38833 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38834 "because there is no handle if this happens there is no way to get additional "
38835 "error information. However L</guestfs_create> is supposed to be a "
38836 "lightweight operation which can only fail because of insufficient memory (it "
38837 "returns NULL in this case)."
38841 #: ../src/guestfs.pod:1417
38842 msgid "guestfs_last_error"
38843 msgstr "guestfs_last_error"
38846 #: ../src/guestfs.pod:1419
38849 " const char *guestfs_last_error (guestfs_h *g);\n"
38852 " const char *guestfs_last_error (guestfs_h *g);\n"
38856 #: ../src/guestfs.pod:1421
38858 "This returns the last error message that happened on C<g>. If there has not "
38859 "been an error since the handle was created, then this returns C<NULL>."
38863 #: ../src/guestfs.pod:1425
38865 "The lifetime of the returned string is until the next error occurs, or L</"
38866 "guestfs_close> is called."
38870 #: ../src/guestfs.pod:1428
38871 msgid "guestfs_last_errno"
38872 msgstr "guestfs_last_errno"
38875 #: ../src/guestfs.pod:1430
38878 " int guestfs_last_errno (guestfs_h *g);\n"
38881 " int guestfs_last_errno (guestfs_h *g);\n"
38885 #: ../src/guestfs.pod:1432
38886 msgid "This returns the last error number (errno) that happened on C<g>."
38890 #: ../src/guestfs.pod:1434
38891 msgid "If successful, an errno integer not equal to zero is returned."
38895 #: ../src/guestfs.pod:1436
38897 "If no error, this returns 0. This call can return 0 in three situations:"
38901 #: ../src/guestfs.pod:1443
38902 msgid "There has not been any error on the handle."
38906 #: ../src/guestfs.pod:1447
38908 "There has been an error but the errno was meaningless. This corresponds to "
38909 "the case where the error did not come from a failed system call, but for "
38910 "some other reason."
38914 #: ../src/guestfs.pod:1453
38916 "There was an error from a failed system call, but for some reason the errno "
38917 "was not captured and returned. This usually indicates a bug in libguestfs."
38921 #: ../src/guestfs.pod:1459
38923 "Libguestfs tries to convert the errno from inside the applicance into a "
38924 "corresponding errno for the caller (not entirely trivial: the appliance "
38925 "might be running a completely different operating system from the library "
38926 "and error numbers are not standardized across Un*xen). If this could not be "
38927 "done, then the error is translated to C<EINVAL>. In practice this should "
38928 "only happen in very rare circumstances."
38932 #: ../src/guestfs.pod:1467
38933 msgid "guestfs_set_error_handler"
38934 msgstr "guestfs_set_error_handler"
38937 #: ../src/guestfs.pod:1469
38940 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38942 " const char *msg);\n"
38943 " void guestfs_set_error_handler (guestfs_h *g,\n"
38944 " guestfs_error_handler_cb cb,\n"
38945 " void *opaque);\n"
38948 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38950 " const char *msg);\n"
38951 " void guestfs_set_error_handler (guestfs_h *g,\n"
38952 " guestfs_error_handler_cb cb,\n"
38953 " void *opaque);\n"
38957 #: ../src/guestfs.pod:1476
38959 "The callback C<cb> will be called if there is an error. The parameters "
38960 "passed to the callback are an opaque data pointer and the error message "
38965 #: ../src/guestfs.pod:1480
38967 "C<errno> is not passed to the callback. To get that the callback must call "
38968 "L</guestfs_last_errno>."
38972 #: ../src/guestfs.pod:1483
38974 "Note that the message string C<msg> is freed as soon as the callback "
38975 "function returns, so if you want to stash it somewhere you must make your "
38980 #: ../src/guestfs.pod:1487
38981 msgid "The default handler prints messages on C<stderr>."
38985 #: ../src/guestfs.pod:1489
38986 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38990 #: ../src/guestfs.pod:1491
38991 msgid "guestfs_get_error_handler"
38992 msgstr "guestfs_get_error_handler"
38995 #: ../src/guestfs.pod:1493
38998 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38999 " void **opaque_rtn);\n"
39002 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
39003 " void **opaque_rtn);\n"
39007 #: ../src/guestfs.pod:1496
39008 msgid "Returns the current error handler callback."
39012 #: ../src/guestfs.pod:1498
39013 msgid "guestfs_set_out_of_memory_handler"
39014 msgstr "guestfs_set_out_of_memory_handler"
39017 #: ../src/guestfs.pod:1500
39020 " typedef void (*guestfs_abort_cb) (void);\n"
39021 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
39022 " guestfs_abort_cb);\n"
39027 #: ../src/guestfs.pod:1504
39029 "The callback C<cb> will be called if there is an out of memory situation. "
39030 "I<Note this callback must not return>."
39034 #: ../src/guestfs.pod:1507
39035 msgid "The default is to call L<abort(3)>."
39039 #: ../src/guestfs.pod:1509
39041 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
39045 #: ../src/guestfs.pod:1512
39046 msgid "guestfs_get_out_of_memory_handler"
39047 msgstr "guestfs_get_out_of_memory_handler"
39050 #: ../src/guestfs.pod:1514
39053 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
39056 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
39060 #: ../src/guestfs.pod:1516
39061 msgid "This returns the current out of memory handler."
39065 #: ../src/guestfs.pod:1518
39067 msgstr "ВИКЛИКИ API"
39070 #: ../src/guestfs.pod:1522
39075 #: ../src/guestfs.pod:1524
39080 #: ../src/guestfs.pod:1526
39081 msgid "AVAILABILITY"
39082 msgstr "ДОСТУПНІСТЬ"
39085 #: ../src/guestfs.pod:1528
39086 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
39087 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
39090 #: ../src/guestfs.pod:1530
39092 "Using L</guestfs_available> you can test availability of the following "
39093 "groups of functions. This test queries the appliance to see if the "
39094 "appliance you are currently using supports the functionality."
39098 #: ../src/guestfs.pod:1535
39099 msgid "@AVAILABILITY@"
39100 msgstr "@AVAILABILITY@"
39103 #: ../src/guestfs.pod:1537
39104 msgid "GUESTFISH supported COMMAND"
39108 #: ../src/guestfs.pod:1539
39110 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
39111 "prints out the available groups and whether they are supported by this build "
39112 "of libguestfs. Note however that you have to do C<run> first."
39116 #: ../src/guestfs.pod:1544
39117 msgid "SINGLE CALLS AT COMPILE TIME"
39121 #: ../src/guestfs.pod:1546
39123 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
39124 "function, such as:"
39128 #: ../src/guestfs.pod:1549
39131 " #define LIBGUESTFS_HAVE_DD 1\n"
39134 " #define LIBGUESTFS_HAVE_DD 1\n"
39138 #: ../src/guestfs.pod:1551
39139 msgid "if L</guestfs_dd> is available."
39143 #: ../src/guestfs.pod:1553
39145 "Before version 1.5.8, if you needed to test whether a single libguestfs "
39146 "function is available at compile time, we recommended using build tools such "
39147 "as autoconf or cmake. For example in autotools you could use:"
39151 #: ../src/guestfs.pod:1558
39154 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
39155 " AC_CHECK_FUNCS([guestfs_dd])\n"
39158 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
39159 " AC_CHECK_FUNCS([guestfs_dd])\n"
39163 #: ../src/guestfs.pod:1561
39165 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
39170 #: ../src/guestfs.pod:1564
39171 msgid "SINGLE CALLS AT RUN TIME"
39175 #: ../src/guestfs.pod:1566
39177 "Testing at compile time doesn't guarantee that a function really exists in "
39178 "the library. The reason is that you might be dynamically linked against a "
39179 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
39180 "This situation unfortunately results in a segmentation fault, which is a "
39181 "shortcoming of the C dynamic linking system itself."
39185 #: ../src/guestfs.pod:1573
39187 "You can use L<dlopen(3)> to test if a function is available at run time, as "
39188 "in this example program (note that you still need the compile time check as "
39193 #: ../src/guestfs.pod:1577
39196 " #include <stdio.h>\n"
39197 " #include <stdlib.h>\n"
39198 " #include <unistd.h>\n"
39199 " #include <dlfcn.h>\n"
39200 " #include <guestfs.h>\n"
39203 " #include <stdio.h>\n"
39204 " #include <stdlib.h>\n"
39205 " #include <unistd.h>\n"
39206 " #include <dlfcn.h>\n"
39207 " #include <guestfs.h>\n"
39211 #: ../src/guestfs.pod:1583
39216 " #ifdef LIBGUESTFS_HAVE_DD\n"
39218 " int has_function;\n"
39223 " #ifdef LIBGUESTFS_HAVE_DD\n"
39225 " int has_function;\n"
39229 #: ../src/guestfs.pod:1589
39232 " /* Test if the function guestfs_dd is really available. */\n"
39233 " dl = dlopen (NULL, RTLD_LAZY);\n"
39235 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
39236 " exit (EXIT_FAILURE);\n"
39238 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
39244 #: ../src/guestfs.pod:1598
39247 " if (!has_function)\n"
39248 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
39250 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
39251 " /* Now it's safe to call\n"
39252 " guestfs_dd (g, \"foo\", \"bar\");\n"
39256 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
39263 #: ../src/guestfs.pod:1611
39265 "You may think the above is an awful lot of hassle, and it is. There are "
39266 "other ways outside of the C linking system to ensure that this kind of "
39267 "incompatibility never arises, such as using package versioning:"
39271 #: ../src/guestfs.pod:1616
39274 " Requires: libguestfs >= 1.0.80\n"
39279 #: ../src/guestfs.pod:1618
39280 msgid "CALLS WITH OPTIONAL ARGUMENTS"
39284 #: ../src/guestfs.pod:1620
39286 "A recent feature of the API is the introduction of calls which take optional "
39287 "arguments. In C these are declared 3 ways. The main way is as a call which "
39288 "takes variable arguments (ie. C<...>), as in this example:"
39292 #: ../src/guestfs.pod:1625
39295 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
39298 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
39302 #: ../src/guestfs.pod:1627
39304 "Call this with a list of optional arguments, terminated by C<-1>. So to "
39305 "call with no optional arguments specified:"
39309 #: ../src/guestfs.pod:1630
39312 " guestfs_add_drive_opts (g, filename, -1);\n"
39315 " guestfs_add_drive_opts (g, filename, -1);\n"
39319 #: ../src/guestfs.pod:1632
39320 msgid "With a single optional argument:"
39324 #: ../src/guestfs.pod:1634
39327 " guestfs_add_drive_opts (g, filename,\n"
39328 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39332 " guestfs_add_drive_opts (g, filename,\n"
39333 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39338 #: ../src/guestfs.pod:1638
39343 #: ../src/guestfs.pod:1640
39346 " guestfs_add_drive_opts (g, filename,\n"
39347 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39348 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
39352 " guestfs_add_drive_opts (g, filename,\n"
39353 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39354 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
39359 #: ../src/guestfs.pod:1645
39361 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
39366 #: ../src/guestfs.pod:1648
39367 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
39371 #: ../src/guestfs.pod:1650
39373 "The second variant has the same name with the suffix C<_va>, which works the "
39374 "same way but takes a C<va_list>. See the C manual for details. For the "
39375 "example function, this is declared:"
39379 #: ../src/guestfs.pod:1654
39382 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
39383 " va_list args);\n"
39386 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
39387 " va_list args);\n"
39391 #: ../src/guestfs.pod:1657
39392 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
39396 #: ../src/guestfs.pod:1659
39398 "The third variant is useful where you need to construct these calls. You "
39399 "pass in a structure where you fill in the optional fields. The structure "
39400 "has a bitmask as the first element which you must set to indicate which "
39401 "fields you have filled in. For our example function the structure and call "
39406 #: ../src/guestfs.pod:1665
39409 " struct guestfs_add_drive_opts_argv {\n"
39410 " uint64_t bitmask;\n"
39412 " const char *format;\n"
39415 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
39416 " const struct guestfs_add_drive_opts_argv *optargs);\n"
39419 " struct guestfs_add_drive_opts_argv {\n"
39420 " uint64_t bitmask;\n"
39422 " const char *format;\n"
39425 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
39426 " const struct guestfs_add_drive_opts_argv *optargs);\n"
39430 #: ../src/guestfs.pod:1674
39431 msgid "You could call it like this:"
39435 #: ../src/guestfs.pod:1676
39438 " struct guestfs_add_drive_opts_argv optargs = {\n"
39439 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
39440 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
39441 " .readonly = 1,\n"
39442 " .format = \"qcow2\"\n"
39446 " struct guestfs_add_drive_opts_argv optargs = {\n"
39447 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
39448 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
39449 " .readonly = 1,\n"
39450 " .format = \"qcow2\"\n"
39455 #: ../src/guestfs.pod:1683
39458 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
39461 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
39465 #: ../src/guestfs.pod:1691
39466 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
39470 #: ../src/guestfs.pod:1696
39471 msgid "You do not need to fill in all fields of the structure."
39475 #: ../src/guestfs.pod:1700
39477 "There must be a one-to-one correspondence between fields of the structure "
39478 "that are filled in, and bits set in the bitmask."
39482 #: ../src/guestfs.pod:1705
39483 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
39487 #: ../src/guestfs.pod:1707
39489 "In other languages, optional arguments are expressed in the way that is "
39490 "natural for that language. We refer you to the language-specific "
39491 "documentation for more details on that."
39495 #: ../src/guestfs.pod:1711
39496 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
39500 #: ../src/guestfs.pod:1713
39501 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
39505 #: ../src/guestfs.pod:1715
39507 "B<Note:> This section documents the generic event mechanism introduced in "
39508 "libguestfs 1.10, which you should use in new code if possible. The old "
39509 "functions C<guestfs_set_log_message_callback>, "
39510 "C<guestfs_set_subprocess_quit_callback>, "
39511 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
39512 "C<guestfs_set_progress_callback> are no longer documented in this manual "
39513 "page. Because of the ABI guarantee, the old functions continue to work."
39517 #: ../src/guestfs.pod:1724
39519 "Handles generate events when certain things happen, such as log messages "
39520 "being generated, progress messages during long-running operations, or the "
39521 "handle being closed. The API calls described below let you register a "
39522 "callback to be called when events happen. You can register multiple "
39523 "callbacks (for the same, different or overlapping sets of events), and "
39524 "individually remove callbacks. If callbacks are not removed, then they "
39525 "remain in force until the handle is closed."
39529 #: ../src/guestfs.pod:1732
39531 "In the current implementation, events are only generated synchronously: that "
39532 "means that events (and hence callbacks) can only happen while you are in the "
39533 "middle of making another libguestfs call. The callback is called in the "
39538 #: ../src/guestfs.pod:1737
39540 "Events may contain a payload, usually nothing (void), an array of 64 bit "
39541 "unsigned integers, or a message buffer. Payloads are discussed later on."
39545 #: ../src/guestfs.pod:1741
39546 msgid "CLASSES OF EVENTS"
39550 #: ../src/guestfs.pod:1745
39551 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
39555 #: ../src/guestfs.pod:1748
39557 "The callback function will be called while the handle is being closed "
39558 "(synchronously from L</guestfs_close>)."
39562 #: ../src/guestfs.pod:1751
39564 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
39565 "handles that are open when the program exits. This means that this callback "
39566 "might be called indirectly from L<exit(3)>, which can cause unexpected "
39567 "problems in higher-level languages (eg. if your HLL interpreter has already "
39568 "been cleaned up by the time this is called, and if your callback then jumps "
39569 "into some HLL function)."
39573 #: ../src/guestfs.pod:1758
39575 "If no callback is registered: the handle is closed without any callback "
39580 #: ../src/guestfs.pod:1761
39581 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
39585 #: ../src/guestfs.pod:1764
39587 "The callback function will be called when the child process quits, either "
39588 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
39589 "corresponds to a transition from any state to the CONFIG state)."
39593 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
39594 msgid "If no callback is registered: the event is ignored."
39598 #: ../src/guestfs.pod:1770
39599 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
39603 #: ../src/guestfs.pod:1773
39605 "The callback function will be called when the child process becomes ready "
39606 "first time after it has been launched. (This corresponds to a transition "
39607 "from LAUNCHING to the READY state)."
39611 #: ../src/guestfs.pod:1779
39612 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
39616 #: ../src/guestfs.pod:1782
39618 "Some long-running operations can generate progress messages. If this "
39619 "callback is registered, then it will be called each time a progress message "
39620 "is generated (usually two seconds after the operation started, and three "
39621 "times per second thereafter until it completes, although the frequency may "
39622 "change in future versions)."
39626 #: ../src/guestfs.pod:1788
39628 "The callback receives in the payload four unsigned 64 bit numbers which are "
39629 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
39633 #: ../src/guestfs.pod:1791
39635 "The units of C<total> are not defined, although for some operations C<total> "
39636 "may relate in some way to the amount of data to be transferred (eg. in bytes "
39637 "or megabytes), and C<position> may be the portion which has been transferred."
39641 #: ../src/guestfs.pod:1796
39642 msgid "The only defined and stable parts of the API are:"
39646 #: ../src/guestfs.pod:1802
39648 "The callback can display to the user some type of progress bar or indicator "
39649 "which shows the ratio of C<position>:C<total>."
39653 #: ../src/guestfs.pod:1807
39654 msgid "0 E<lt>= C<position> E<lt>= C<total>"
39658 #: ../src/guestfs.pod:1811
39660 "If any progress notification is sent during a call, then a final progress "
39661 "notification is always sent when C<position> = C<total> (I<unless> the call "
39662 "fails with an error)."
39666 #: ../src/guestfs.pod:1815
39668 "This is to simplify caller code, so callers can easily set the progress "
39669 "indicator to \"100%\" at the end of the operation, without requiring special "
39670 "code to detect this case."
39674 #: ../src/guestfs.pod:1821
39676 "For some calls we are unable to estimate the progress of the call, but we "
39677 "can still generate progress messages to indicate activity. This is known as "
39678 "\"pulse mode\", and is directly supported by certain progress bar "
39679 "implementations (eg. GtkProgressBar)."
39683 #: ../src/guestfs.pod:1826
39685 "For these calls, zero or more progress messages are generated with "
39686 "C<position = 0> and C<total = 1>, followed by a final message with "
39687 "C<position = total = 1>."
39691 #: ../src/guestfs.pod:1830
39693 "As noted above, if the call fails with an error then the final message may "
39694 "not be generated."
39698 #: ../src/guestfs.pod:1835
39700 "The callback also receives the procedure number (C<proc_nr>) and serial "
39701 "number (C<serial>) of the call. These are only useful for debugging "
39702 "protocol issues, and the callback can normally ignore them. The callback "
39703 "may want to print these numbers in error messages or debugging messages."
39707 #: ../src/guestfs.pod:1841
39708 msgid "If no callback is registered: progress messages are discarded."
39712 #: ../src/guestfs.pod:1843
39713 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
39717 #: ../src/guestfs.pod:1846
39719 "The callback function is called whenever a log message is generated by qemu, "
39720 "the appliance kernel, guestfsd (daemon), or utility programs."
39724 #: ../src/guestfs.pod:1849
39726 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39727 "guestfs_launch>) then additional debug messages are generated."
39731 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39733 "If no callback is registered: the messages are discarded unless the verbose "
39734 "flag is set in which case they are sent to stderr. You can override the "
39735 "printing of verbose messages to stderr by setting up a callback."
39739 #: ../src/guestfs.pod:1857
39740 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39744 #: ../src/guestfs.pod:1860
39746 "The callback function is called whenever a log message is generated by the "
39747 "library part of libguestfs."
39751 #: ../src/guestfs.pod:1863
39753 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39754 "messages are generated."
39758 #: ../src/guestfs.pod:1871
39759 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39763 #: ../src/guestfs.pod:1874
39765 "The callback function is called whenever a trace message is generated. This "
39766 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39770 #: ../src/guestfs.pod:1877
39772 "If no callback is registered: the messages are sent to stderr. You can "
39773 "override the printing of trace messages to stderr by setting up a callback."
39777 #: ../src/guestfs.pod:1881
39778 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39782 #: ../src/guestfs.pod:1884
39784 "The callback function is called whenever a libguestfs function is entered."
39788 #: ../src/guestfs.pod:1887
39790 "The payload is a string which contains the name of the function that we are "
39791 "entering (not including C<guestfs_> prefix)."
39795 #: ../src/guestfs.pod:1890
39797 "Note that libguestfs functions can call themselves, so you may see many "
39798 "events from a single call. A few libguestfs functions do not generate this "
39803 #: ../src/guestfs.pod:1898
39804 msgid "guestfs_set_event_callback"
39808 #: ../src/guestfs.pod:1900
39811 " int guestfs_set_event_callback (guestfs_h *g,\n"
39812 " guestfs_event_callback cb,\n"
39813 " uint64_t event_bitmask,\n"
39815 " void *opaque);\n"
39820 #: ../src/guestfs.pod:1906
39822 "This function registers a callback (C<cb>) for all event classes in the "
39823 "C<event_bitmask>."
39827 #: ../src/guestfs.pod:1909
39829 "For example, to register for all log message events, you could call this "
39830 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
39831 "To register a single callback for all possible classes of events, use "
39832 "C<GUESTFS_EVENT_ALL>."
39836 #: ../src/guestfs.pod:1915
39837 msgid "C<flags> should always be passed as 0."
39841 #: ../src/guestfs.pod:1917
39843 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
39844 "it for any purpose."
39848 #: ../src/guestfs.pod:1920
39850 "The return value is the event handle (an integer) which you can use to "
39851 "delete the callback (see below)."
39855 #: ../src/guestfs.pod:1923
39857 "If there is an error, this function returns C<-1>, and sets the error in the "
39858 "handle in the usual way (see L</guestfs_last_error> etc.)"
39862 #: ../src/guestfs.pod:1926
39864 "Callbacks remain in effect until they are deleted, or until the handle is "
39869 #: ../src/guestfs.pod:1929
39871 "In the case where multiple callbacks are registered for a particular event "
39872 "class, all of the callbacks are called. The order in which multiple "
39873 "callbacks are called is not defined."
39877 #: ../src/guestfs.pod:1933
39878 msgid "guestfs_delete_event_callback"
39882 #: ../src/guestfs.pod:1935
39885 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39890 #: ../src/guestfs.pod:1937
39892 "Delete a callback that was previously registered. C<event_handle> should be "
39893 "the integer that was returned by a previous call to "
39894 "C<guestfs_set_event_callback> on the same handle."
39898 #: ../src/guestfs.pod:1941
39899 msgid "guestfs_event_callback"
39903 #: ../src/guestfs.pod:1943
39906 " typedef void (*guestfs_event_callback) (\n"
39909 " uint64_t event,\n"
39910 " int event_handle,\n"
39912 " const char *buf, size_t buf_len,\n"
39913 " const uint64_t *array, size_t array_len);\n"
39918 #: ../src/guestfs.pod:1952
39920 "This is the type of the event callback function that you have to provide."
39924 #: ../src/guestfs.pod:1955
39926 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39927 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39928 "handle, and C<flags> which in the current API you should ignore."
39932 #: ../src/guestfs.pod:1959
39934 "The remaining parameters contain the event payload (if any). Each event may "
39935 "contain a payload, which usually relates to the event class, but for future "
39936 "proofing your code should be written to handle any payload for any event "
39941 #: ../src/guestfs.pod:1964
39943 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39944 "there is no message buffer). Note that this message buffer can contain "
39945 "arbitrary 8 bit data, including NUL bytes."
39949 #: ../src/guestfs.pod:1968
39951 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
39952 "moment this is only used for progress messages."
39956 #: ../src/guestfs.pod:1971
39957 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39961 #: ../src/guestfs.pod:1973
39963 "One motivation for the generic event API was to allow GUI programs to "
39964 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
39965 "unconditionally to C<stderr>."
39969 #: ../src/guestfs.pod:1977
39971 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39972 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
39973 "messages are not events; you must capture error messages separately)."
39977 #: ../src/guestfs.pod:1982
39979 "Programs have to set up a callback to capture the classes of events of "
39984 #: ../src/guestfs.pod:1985
39988 " guestfs_set_event_callback\n"
39989 " (g, message_callback,\n"
39990 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39991 " GUESTFS_EVENT_TRACE,\n"
39992 " 0, NULL) == -1)\n"
39993 " if (eh == -1) {\n"
39994 " // handle error in the usual way\n"
40000 #: ../src/guestfs.pod:1995
40002 "The callback can then direct messages to the appropriate place. In this "
40003 "example, messages are directed to syslog:"
40007 #: ../src/guestfs.pod:1998
40011 " message_callback (\n"
40014 " uint64_t event,\n"
40015 " int event_handle,\n"
40017 " const char *buf, size_t buf_len,\n"
40018 " const uint64_t *array, size_t array_len)\n"
40020 " const int priority = LOG_USER|LOG_INFO;\n"
40021 " if (buf_len > 0)\n"
40022 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
40028 #: ../src/guestfs.pod:2013
40029 msgid "CANCELLING LONG TRANSFERS"
40033 #: ../src/guestfs.pod:2015
40035 "Some operations can be cancelled by the caller while they are in progress. "
40036 "Currently only operations that involve uploading or downloading data can be "
40037 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
40038 "parameters in the generator)."
40042 #: ../src/guestfs.pod:2020
40043 msgid "guestfs_user_cancel"
40047 #: ../src/guestfs.pod:2022
40050 " void guestfs_user_cancel (guestfs_h *g);\n"
40055 #: ../src/guestfs.pod:2024
40057 "C<guestfs_user_cancel> cancels the current upload or download operation."
40061 #: ../src/guestfs.pod:2027
40063 "Unlike most other libguestfs calls, this function is signal safe and thread "
40064 "safe. You can call it from a signal handler or from another thread, without "
40065 "needing to do any locking."
40069 #: ../src/guestfs.pod:2031
40071 "The transfer that was in progress (if there is one) will stop shortly "
40072 "afterwards, and will return an error. The errno (see L</"
40073 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
40074 "out if the operation was cancelled or failed because of another error."
40078 #: ../src/guestfs.pod:2037
40080 "No cleanup is performed: for example, if a file was being uploaded then "
40081 "after cancellation there may be a partially uploaded file. It is the "
40082 "caller's responsibility to clean up if necessary."
40086 #: ../src/guestfs.pod:2041
40087 msgid "There are two common places that you might call C<guestfs_user_cancel>."
40091 #: ../src/guestfs.pod:2043
40093 "In an interactive text-based program, you might call it from a C<SIGINT> "
40094 "signal handler so that pressing C<^C> cancels the current operation. (You "
40095 "also need to call L</guestfs_set_pgroup> so that child processes don't "
40096 "receive the C<^C> signal)."
40100 #: ../src/guestfs.pod:2048
40102 "In a graphical program, when the main thread is displaying a progress bar "
40103 "with a cancel button, wire up the cancel button to call this function."
40107 #: ../src/guestfs.pod:2052
40108 msgid "PRIVATE DATA AREA"
40112 #: ../src/guestfs.pod:2054
40114 "You can attach named pieces of private data to the libguestfs handle, fetch "
40115 "them by name, and walk over them, for the lifetime of the handle. This is "
40116 "called the private data area and is only available from the C API."
40120 #: ../src/guestfs.pod:2059
40121 msgid "To attach a named piece of data, use the following call:"
40125 #: ../src/guestfs.pod:2061
40128 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
40131 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
40135 #: ../src/guestfs.pod:2063
40137 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
40138 "pointer (which can be C<NULL>). Any previous item with the same key is "
40143 #: ../src/guestfs.pod:2067
40145 "You can use any C<key> you want, but your key should I<not> start with an "
40146 "underscore character. Keys beginning with an underscore character are "
40147 "reserved for internal libguestfs purposes (eg. for implementing language "
40148 "bindings). It is recommended that you prefix the key with some unique "
40149 "string to avoid collisions with other users."
40153 #: ../src/guestfs.pod:2073
40154 msgid "To retrieve the pointer, use:"
40158 #: ../src/guestfs.pod:2075
40161 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
40164 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
40168 #: ../src/guestfs.pod:2077
40170 "This function returns C<NULL> if either no data is found associated with "
40171 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
40176 #: ../src/guestfs.pod:2081
40178 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
40179 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
40180 "all. In particular, libguestfs does I<not> try to free the data when the "
40181 "handle is closed. If the data must be freed, then the caller must either "
40182 "free it before calling L</guestfs_close> or must set up a close callback to "
40183 "do it (see L</GUESTFS_EVENT_CLOSE>)."
40187 #: ../src/guestfs.pod:2088
40188 msgid "To walk over all entries, use these two functions:"
40192 #: ../src/guestfs.pod:2090
40195 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
40200 #: ../src/guestfs.pod:2092
40203 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
40208 #: ../src/guestfs.pod:2094
40210 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
40211 "not have any particular meaning -- keys are not returned in any defined "
40212 "order). A pointer to the key is returned in C<*key_rtn> and the "
40213 "corresponding data pointer is returned from the function. C<NULL> is "
40214 "returned if there are no keys stored in the handle."
40218 #: ../src/guestfs.pod:2100
40220 "C<guestfs_next_private> returns the next key, pointer pair. The return "
40221 "value of this function is also C<NULL> is there are no further entries to "
40226 #: ../src/guestfs.pod:2104
40227 msgid "Notes about walking over entries:"
40231 #: ../src/guestfs.pod:2110
40233 "You must not call C<guestfs_set_private> while walking over the entries."
40237 #: ../src/guestfs.pod:2115
40239 "The handle maintains an internal iterator which is reset when you call "
40240 "C<guestfs_first_private>. This internal iterator is invalidated when you "
40241 "call C<guestfs_set_private>."
40245 #: ../src/guestfs.pod:2121
40246 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
40250 #: ../src/guestfs.pod:2123
40253 " guestfs_set_private (g, key, NULL);\n"
40258 #: ../src/guestfs.pod:2125
40259 msgid "then that C<key> is not returned when walking."
40263 #: ../src/guestfs.pod:2129
40265 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
40266 "C<guestfs_next_private> or C<guestfs_set_private>."
40270 #: ../src/guestfs.pod:2135
40272 "The following example code shows how to print all keys and data pointers "
40273 "that are associated with the handle C<g>:"
40277 #: ../src/guestfs.pod:2138
40280 " const char *key;\n"
40281 " void *data = guestfs_first_private (g, &key);\n"
40282 " while (data != NULL)\n"
40284 " printf (\"key = %s, data = %p\\n\", key, data);\n"
40285 " data = guestfs_next_private (g, &key);\n"
40291 #: ../src/guestfs.pod:2146
40293 "More commonly you are only interested in keys that begin with an application-"
40294 "specific prefix C<foo_>. Modify the loop like so:"
40298 #: ../src/guestfs.pod:2149
40301 " const char *key;\n"
40302 " void *data = guestfs_first_private (g, &key);\n"
40303 " while (data != NULL)\n"
40305 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
40306 " printf (\"key = %s, data = %p\\n\", key, data);\n"
40307 " data = guestfs_next_private (g, &key);\n"
40313 #: ../src/guestfs.pod:2158
40315 "If you need to modify keys while walking, then you have to jump back to the "
40316 "beginning of the loop. For example, to delete all keys prefixed with "
40321 #: ../src/guestfs.pod:2162
40324 " const char *key;\n"
40327 " data = guestfs_first_private (g, &key);\n"
40328 " while (data != NULL)\n"
40330 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
40332 " guestfs_set_private (g, key, NULL);\n"
40333 " /* note that 'key' pointer is now invalid, and so is\n"
40334 " the internal iterator */\n"
40337 " data = guestfs_next_private (g, &key);\n"
40343 #: ../src/guestfs.pod:2178
40345 "Note that the above loop is guaranteed to terminate because the keys are "
40346 "being deleted, but other manipulations of keys within the loop might not "
40347 "terminate unless you also maintain an indication of which keys have been "
40352 #: ../src/guestfs.pod:2183
40357 #: ../src/guestfs.pod:2185
40359 "The libguestfs C library can be probed using systemtap or DTrace. This is "
40360 "true of any library, not just libguestfs. However libguestfs also contains "
40361 "static markers to help in probing internal operations."
40365 #: ../src/guestfs.pod:2189
40366 msgid "You can list all the static markers by doing:"
40370 #: ../src/guestfs.pod:2191
40373 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
40374 " .provider(\"guestfs\").mark(\"*\")'\n"
40379 #: ../src/guestfs.pod:2194
40381 "B<Note:> These static markers are I<not> part of the stable API and may "
40382 "change in future versions."
40386 #: ../src/guestfs.pod:2197
40387 msgid "SYSTEMTAP SCRIPT EXAMPLE"
40391 #: ../src/guestfs.pod:2199
40393 "This script contains examples of displaying both the static markers and some "
40394 "ordinary C entry points:"
40398 #: ../src/guestfs.pod:2202
40406 #: ../src/guestfs.pod:2204
40409 " function display_time () {\n"
40410 " now = gettimeofday_us ();\n"
40413 " delta = now - last;\n"
40419 #: ../src/guestfs.pod:2211
40422 " printf (\"%d (+%d):\", now, delta);\n"
40428 #: ../src/guestfs.pod:2214
40433 " printf (\"ready\\n\");\n"
40439 #: ../src/guestfs.pod:2219
40442 " /* Display all calls to static markers. */\n"
40443 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
40444 " .provider(\"guestfs\").mark(\"*\") ? {\n"
40445 " display_time();\n"
40446 " printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
40452 #: ../src/guestfs.pod:2226
40455 " /* Display all calls to guestfs_mkfs* functions. */\n"
40456 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
40457 " .function(\"guestfs_mkfs*\") ? {\n"
40458 " display_time();\n"
40459 " printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
40465 #: ../src/guestfs.pod:2233
40467 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
40468 "program. Note that you either have to be root, or you have to add yourself "
40469 "to several special stap groups. Consult the systemtap documentation for "
40470 "more information."
40474 #: ../src/guestfs.pod:2238
40477 " # stap /tmp/test.stap\n"
40483 #: ../src/guestfs.pod:2241
40484 msgid "In another terminal, run a guestfish command such as this:"
40488 #: ../src/guestfs.pod:2245
40489 msgid "In the first terminal, stap trace output similar to this is shown:"
40493 #: ../src/guestfs.pod:2247
40496 " 1318248056692655 (+0):\tlaunch_start\n"
40497 " 1318248056692850 (+195): launch_build_appliance_start\n"
40498 " 1318248056818285 (+125435): launch_build_appliance_end\n"
40499 " 1318248056838059 (+19774): launch_run_qemu\n"
40500 " 1318248061071167 (+4233108): launch_end\n"
40501 " 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
40506 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
40511 #: ../src/guestfs.pod:2256
40513 "<!-- old anchor for the next section --> <a name="
40514 "\"state_machine_and_low_level_event_api\"/>"
40516 "<!-- old anchor for the next section --> <a name="
40517 "\"state_machine_and_low_level_event_api\"/>"
40520 #: ../src/guestfs.pod:2261
40521 msgid "ARCHITECTURE"
40522 msgstr "АРХІТЕКТУРА"
40525 #: ../src/guestfs.pod:2263
40527 "Internally, libguestfs is implemented by running an appliance (a special "
40528 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
40529 "process of the main program."
40533 #: ../src/guestfs.pod:2267
40536 " ___________________\n"
40538 " | main program |\n"
40540 " | | child process / appliance\n"
40541 " | | __________________________\n"
40543 " +-------------------+ RPC | +-----------------+ |\n"
40544 " | libguestfs <--------------------> guestfsd | |\n"
40545 " | | | +-----------------+ |\n"
40546 " \\___________________/ | | Linux kernel | |\n"
40547 " | +--^--------------+ |\n"
40548 " \\_________|________________/\n"
40550 " _______v______\n"
40553 " | disk image |\n"
40554 " \\______________/\n"
40559 #: ../src/guestfs.pod:2287
40561 "The library, linked to the main program, creates the child process and hence "
40562 "the appliance in the L</guestfs_launch> function."
40566 #: ../src/guestfs.pod:2290
40568 "Inside the appliance is a Linux kernel and a complete stack of userspace "
40569 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
40570 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
40571 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
40572 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
40573 "attached to the qemu process which translates device access by the "
40574 "appliance's Linux kernel into accesses to the image."
40578 #: ../src/guestfs.pod:2299
40580 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
40581 "Although the disk image you are attached to might also be used by some "
40582 "virtual machine, libguestfs doesn't know or care about this. (But you will "
40583 "care if both libguestfs's qemu process and your virtual machine are trying "
40584 "to update the disk image at the same time, since these usually results in "
40585 "massive disk corruption)."
40589 #: ../src/guestfs.pod:2306
40590 msgid "STATE MACHINE"
40591 msgstr "СКІНЧЕННИЙ АВТОМАТ"
40594 #: ../src/guestfs.pod:2308
40595 msgid "libguestfs uses a state machine to model the child process:"
40599 #: ../src/guestfs.pod:2310
40603 " guestfs_create\n"
40611 " / | \\ \\ guestfs_launch\n"
40612 " / | _\\__V______\n"
40614 " / | | LAUNCHING |\n"
40615 " / | \\___________/\n"
40617 " / | guestfs_launch\n"
40619 " ______ / __|____V\n"
40620 " / \\ ------> / \\\n"
40621 " | BUSY | | READY |\n"
40622 " \\______/ <------ \\________/\n"
40627 #: ../src/guestfs.pod:2332
40629 "The normal transitions are (1) CONFIG (when the handle is created, but there "
40630 "is no child process), (2) LAUNCHING (when the child process is booting up), "
40631 "(3) alternating between READY and BUSY as commands are issued to, and "
40632 "carried out by, the child process."
40636 #: ../src/guestfs.pod:2337
40638 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
40639 "asynchronously at any time (eg. due to some internal error), and that causes "
40640 "the state to transition back to CONFIG."
40644 #: ../src/guestfs.pod:2341
40646 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
40647 "issued when in the CONFIG state."
40651 #: ../src/guestfs.pod:2344
40653 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
40654 "L</guestfs_launch> blocks until the child process is READY to accept "
40655 "commands (or until some failure or timeout). L</guestfs_launch> internally "
40656 "moves the state from CONFIG to LAUNCHING while it is running."
40660 #: ../src/guestfs.pod:2350
40662 "API actions such as L</guestfs_mount> can only be issued when in the READY "
40663 "state. These API calls block waiting for the command to be carried out (ie. "
40664 "the state to transition to BUSY and then back to READY). There are no non-"
40665 "blocking versions, and no way to issue more than one command per handle at "
40670 #: ../src/guestfs.pod:2356
40672 "Finally, the child process sends asynchronous messages back to the main "
40673 "program, such as kernel log messages. You can register a callback to "
40674 "receive these messages."
40678 #: ../src/guestfs.pod:2360
40683 #: ../src/guestfs.pod:2362
40684 msgid "APPLIANCE BOOT PROCESS"
40688 #: ../src/guestfs.pod:2364
40690 "This process has evolved and continues to evolve. The description here "
40691 "corresponds only to the current version of libguestfs and is provided for "
40692 "information only."
40696 #: ../src/guestfs.pod:2368
40698 "In order to follow the stages involved below, enable libguestfs debugging "
40699 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
40703 #: ../src/guestfs.pod:2373
40704 msgid "Create the appliance"
40708 #: ../src/guestfs.pod:2375
40710 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
40711 "initrd and the appliance."
40715 #: ../src/guestfs.pod:2378
40717 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
40718 "directory if C<TMPDIR> is set)."
40722 #: ../src/guestfs.pod:2381
40724 "For a complete description of how the appliance is created and cached, read "
40725 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40729 #: ../src/guestfs.pod:2385
40730 msgid "Start qemu and boot the kernel"
40734 #: ../src/guestfs.pod:2387
40735 msgid "qemu is invoked to boot the kernel."
40739 #: ../src/guestfs.pod:2389
40740 msgid "Run the initrd"
40744 #: ../src/guestfs.pod:2391
40746 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
40747 "appliance. The purpose of the initrd is to load enough kernel modules in "
40748 "order that the appliance itself can be mounted and started."
40752 #: ../src/guestfs.pod:2395
40754 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40759 #: ../src/guestfs.pod:2398
40761 "When the initrd has started you will see messages showing that kernel "
40762 "modules are being loaded, similar to this:"
40766 #: ../src/guestfs.pod:2401
40769 " febootstrap: ext2 mini initrd starting up\n"
40770 " febootstrap: mounting /sys\n"
40771 " febootstrap: internal insmod libcrc32c.ko\n"
40772 " febootstrap: internal insmod crc32c-intel.ko\n"
40777 #: ../src/guestfs.pod:2406
40778 msgid "Find and mount the appliance device"
40782 #: ../src/guestfs.pod:2408
40784 "The appliance is a sparse file containing an ext2 filesystem which contains "
40785 "a familiar (although reduced in size) Linux operating system. It would "
40786 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40790 #: ../src/guestfs.pod:2412
40792 "The regular disks being inspected by libguestfs are the first devices "
40793 "exposed by qemu (eg. as C</dev/vda>)."
40797 #: ../src/guestfs.pod:2415
40799 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40800 "there was only one regular disk)."
40804 #: ../src/guestfs.pod:2418
40806 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40807 "and switch root into the appliance, and run C</init> from the appliance."
40811 #: ../src/guestfs.pod:2422
40812 msgid "If this works successfully you will see messages such as:"
40816 #: ../src/guestfs.pod:2424
40819 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40820 " febootstrap: creating /dev/root as block special 252:16\n"
40821 " febootstrap: mounting new root on /root\n"
40822 " febootstrap: chroot\n"
40823 " Starting /init script ...\n"
40828 #: ../src/guestfs.pod:2430
40830 "Note that C<Starting /init script ...> indicates that the appliance's init "
40831 "script is now running."
40835 #: ../src/guestfs.pod:2433
40836 msgid "Initialize the appliance"
40840 #: ../src/guestfs.pod:2435
40842 "The appliance itself now initializes itself. This involves starting certain "
40843 "processes like C<udev>, possibly printing some debug information, and "
40844 "finally running the daemon (C<guestfsd>)."
40848 #: ../src/guestfs.pod:2439
40853 #: ../src/guestfs.pod:2441
40855 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
40860 #: ../src/guestfs.pod:2444
40863 " verbose daemon enabled\n"
40868 #: ../src/guestfs.pod:2446
40870 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40871 "connected on the other end to the library."
40875 #: ../src/guestfs.pod:2449
40877 "The daemon connects to this port (and hence to the library) and sends a four "
40878 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40879 "protocol (see below)."
40883 #: ../src/guestfs.pod:2455
40884 msgid "COMMUNICATION PROTOCOL"
40888 #: ../src/guestfs.pod:2457
40890 "Don't rely on using this protocol directly. This section documents how it "
40891 "currently works, but it may change at any time."
40895 #: ../src/guestfs.pod:2460
40897 "The protocol used to talk between the library and the daemon running inside "
40898 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40899 "1014, RFC 1832, RFC 4506)."
40903 #: ../src/guestfs.pod:2464
40905 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40906 "this file is automatically generated)."
40910 #: ../src/guestfs.pod:2467
40912 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40913 "and C<FileOut> parameters, which are handled with very simple request/reply "
40914 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
40915 "parameters, which use the same request and reply messages, but they may also "
40916 "be followed by files sent using a chunked encoding."
40920 #: ../src/guestfs.pod:2474
40921 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40925 #: ../src/guestfs.pod:2476
40926 msgid "For ordinary functions, the request message is:"
40930 #: ../src/guestfs.pod:2478
40933 " total length (header + arguments,\n"
40934 " but not including the length word itself)\n"
40935 " struct guestfs_message_header (encoded as XDR)\n"
40936 " struct guestfs_<foo>_args (encoded as XDR)\n"
40941 #: ../src/guestfs.pod:2483
40943 "The total length field allows the daemon to allocate a fixed size buffer "
40944 "into which it slurps the rest of the message. As a result, the total length "
40945 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40946 "effective size of any request is limited to somewhere under this size."
40950 #: ../src/guestfs.pod:2489
40952 "Note also that many functions don't take any arguments, in which case the "
40953 "C<guestfs_I<foo>_args> is completely omitted."
40957 #: ../src/guestfs.pod:2492
40959 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40960 "receiver knows what type of args structure to expect, or none at all."
40964 #: ../src/guestfs.pod:2496
40966 "For functions that take optional arguments, the optional arguments are "
40967 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40968 "arguments. A bitmask in the header indicates which optional arguments are "
40969 "meaningful. The bitmask is also checked to see if it contains bits set "
40970 "which the daemon does not know about (eg. if more optional arguments were "
40971 "added in a later version of the library), and this causes the call to be "
40976 #: ../src/guestfs.pod:2504
40977 msgid "The reply message for ordinary functions is:"
40981 #: ../src/guestfs.pod:2506
40984 " total length (header + ret,\n"
40985 " but not including the length word itself)\n"
40986 " struct guestfs_message_header (encoded as XDR)\n"
40987 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40992 #: ../src/guestfs.pod:2511
40994 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40995 "functions that return no formal return values."
40999 #: ../src/guestfs.pod:2514
41001 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
41005 #: ../src/guestfs.pod:2517
41007 "In the case of an error, a flag is set in the header, and the reply message "
41008 "is slightly changed:"
41012 #: ../src/guestfs.pod:2520
41015 " total length (header + error,\n"
41016 " but not including the length word itself)\n"
41017 " struct guestfs_message_header (encoded as XDR)\n"
41018 " struct guestfs_message_error (encoded as XDR)\n"
41023 #: ../src/guestfs.pod:2525
41025 "The C<guestfs_message_error> structure contains the error message as a "
41030 #: ../src/guestfs.pod:2528
41031 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
41035 #: ../src/guestfs.pod:2530
41037 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
41038 "The normal request message is sent (see above). However this is followed by "
41039 "a sequence of file chunks."
41043 #: ../src/guestfs.pod:2534
41046 " total length (header + arguments,\n"
41047 " but not including the length word itself,\n"
41048 " and not including the chunks)\n"
41049 " struct guestfs_message_header (encoded as XDR)\n"
41050 " struct guestfs_<foo>_args (encoded as XDR)\n"
41051 " sequence of chunks for FileIn param #0\n"
41052 " sequence of chunks for FileIn param #1 etc.\n"
41057 #: ../src/guestfs.pod:2542
41058 msgid "The \"sequence of chunks\" is:"
41062 #: ../src/guestfs.pod:2544
41065 " length of chunk (not including length word itself)\n"
41066 " struct guestfs_chunk (encoded as XDR)\n"
41067 " length of chunk\n"
41068 " struct guestfs_chunk (encoded as XDR)\n"
41070 " length of chunk\n"
41071 " struct guestfs_chunk (with data.data_len == 0)\n"
41076 #: ../src/guestfs.pod:2552
41078 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
41079 "is set in the final chunk to indicate either successful completion or early "
41084 #: ../src/guestfs.pod:2556
41086 "At time of writing there are no functions that have more than one FileIn "
41087 "parameter. However this is (theoretically) supported, by sending the "
41088 "sequence of chunks for each FileIn parameter one after another (from left to "
41093 #: ../src/guestfs.pod:2561
41095 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
41096 "transfer. The library does this by sending a chunk with a special flag set "
41097 "to indicate cancellation. When the daemon sees this, it cancels the whole "
41098 "RPC, does I<not> send any reply, and goes back to reading the next request."
41102 #: ../src/guestfs.pod:2567
41104 "The daemon may also cancel. It does this by writing a special word "
41105 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
41106 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
41107 "cancel chunk). The special word is chosen so that even if cancellation "
41108 "happens right at the end of the transfer (after the library has finished "
41109 "writing and has started listening for the reply), the \"spurious\" cancel "
41110 "flag will not be confused with the reply message."
41114 #: ../src/guestfs.pod:2576
41116 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
41117 "limit), and also files where the size is not known in advance (eg. from "
41118 "pipes or sockets). However the chunks are rather small "
41119 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
41120 "to keep much in memory."
41124 #: ../src/guestfs.pod:2582
41125 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
41129 #: ../src/guestfs.pod:2584
41131 "The protocol for FileOut parameters is exactly the same as for FileIn "
41132 "parameters, but with the roles of daemon and library reversed."
41136 #: ../src/guestfs.pod:2587
41139 " total length (header + ret,\n"
41140 " but not including the length word itself,\n"
41141 " and not including the chunks)\n"
41142 " struct guestfs_message_header (encoded as XDR)\n"
41143 " struct guestfs_<foo>_ret (encoded as XDR)\n"
41144 " sequence of chunks for FileOut param #0\n"
41145 " sequence of chunks for FileOut param #1 etc.\n"
41150 #: ../src/guestfs.pod:2595
41151 msgid "INITIAL MESSAGE"
41155 #: ../src/guestfs.pod:2597
41157 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
41158 "which indicates that the guest and daemon is alive. This is what L</"
41159 "guestfs_launch> waits for."
41163 #: ../src/guestfs.pod:2601
41164 msgid "PROGRESS NOTIFICATION MESSAGES"
41168 #: ../src/guestfs.pod:2603
41170 "The daemon may send progress notification messages at any time. These are "
41171 "distinguished by the normal length word being replaced by "
41172 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
41176 #: ../src/guestfs.pod:2607
41178 "The library turns them into progress callbacks (see L</"
41179 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
41184 #: ../src/guestfs.pod:2611
41186 "The daemon self-limits the frequency of progress messages it sends (see "
41187 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
41192 #: ../src/guestfs.pod:2615
41193 msgid "LIBGUESTFS VERSION NUMBERS"
41197 #: ../src/guestfs.pod:2617
41199 "Since April 2010, libguestfs has started to make separate development and "
41200 "stable releases, along with corresponding branches in our git repository. "
41201 "These separate releases can be identified by version number:"
41205 #: ../src/guestfs.pod:2622
41208 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
41209 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
41215 " | `-------- sub-version\n"
41217 " `------ always '1' because we don't change the ABI\n"
41222 #: ../src/guestfs.pod:2633
41223 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
41227 #: ../src/guestfs.pod:2635
41229 "As time passes we cherry pick fixes from the development branch and backport "
41230 "those into the stable branch, the effect being that the stable branch should "
41231 "get more stable and less buggy over time. So the stable releases are ideal "
41232 "for people who don't need new features but would just like the software to "
41237 #: ../src/guestfs.pod:2641
41238 msgid "Our criteria for backporting changes are:"
41242 #: ../src/guestfs.pod:2647
41244 "Documentation changes which don't affect any code are backported unless the "
41245 "documentation refers to a future feature which is not in stable."
41249 #: ../src/guestfs.pod:2653
41251 "Bug fixes which are not controversial, fix obvious problems, and have been "
41252 "well tested are backported."
41256 #: ../src/guestfs.pod:2658
41258 "Simple rearrangements of code which shouldn't affect how it works get "
41259 "backported. This is so that the code in the two branches doesn't get too "
41260 "far out of step, allowing us to backport future fixes more easily."
41264 #: ../src/guestfs.pod:2664
41266 "We I<don't> backport new features, new APIs, new tools etc, except in one "
41267 "exceptional case: the new feature is required in order to implement an "
41268 "important bug fix."
41272 #: ../src/guestfs.pod:2670
41274 "A new stable branch starts when we think the new features in development are "
41275 "substantial and compelling enough over the current stable branch to warrant "
41276 "it. When that happens we create new stable and development versions 1.N.0 "
41277 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
41278 "stable at this point, but by backporting fixes from development, that branch "
41279 "will stabilize over time."
41283 #: ../src/guestfs.pod:2678
41284 msgid "EXTENDING LIBGUESTFS"
41288 #: ../src/guestfs.pod:2680
41289 msgid "ADDING A NEW API ACTION"
41293 #: ../src/guestfs.pod:2682
41295 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
41296 "documentation) are generated, and this makes it easy to extend the "
41301 #: ../src/guestfs.pod:2686
41302 msgid "To add a new API action there are two changes:"
41306 #: ../src/guestfs.pod:2692
41308 "You need to add a description of the call (name, parameters, return type, "
41309 "tests, documentation) to C<generator/generator_actions.ml>."
41313 #: ../src/guestfs.pod:2695
41315 "There are two sorts of API action, depending on whether the call goes "
41316 "through to the daemon in the appliance, or is serviced entirely by the "
41317 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
41318 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
41319 "an example of the latter, since a trace flag is maintained in the handle and "
41320 "all tracing is done on the library side."
41324 #: ../src/guestfs.pod:2703
41326 "Most new actions are of the first type, and get added to the "
41327 "C<daemon_functions> list. Each function has a unique procedure number used "
41328 "in the RPC protocol which is assigned to that action when we publish "
41329 "libguestfs and cannot be reused. Take the latest procedure number and "
41334 #: ../src/guestfs.pod:2709
41336 "For library-only actions of the second type, add to the "
41337 "C<non_daemon_functions> list. Since these functions are serviced by the "
41338 "library and do not travel over the RPC mechanism to the daemon, these "
41339 "functions do not need a procedure number, and so the procedure number is set "
41344 #: ../src/guestfs.pod:2717
41345 msgid "Implement the action (in C):"
41349 #: ../src/guestfs.pod:2719
41351 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
41352 "C<daemon/> directory."
41356 #: ../src/guestfs.pod:2722
41358 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
41359 "(note: double underscore) in the C<src/> directory."
41363 #: ../src/guestfs.pod:2725
41364 msgid "In either case, use another function as an example of what to do."
41368 #: ../src/guestfs.pod:2729
41369 msgid "After making these changes, use C<make> to compile."
41373 #: ../src/guestfs.pod:2731
41375 "Note that you don't need to implement the RPC, language bindings, manual "
41376 "pages or anything else. It's all automatically generated from the OCaml "
41381 #: ../src/guestfs.pod:2735
41382 msgid "ADDING TESTS FOR AN API ACTION"
41386 #: ../src/guestfs.pod:2737
41388 "You can supply zero or as many tests as you want per API call. The tests "
41389 "can either be added as part of the API description (C<generator/"
41390 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
41391 "into C<regressions/>. Note that adding a script to C<regressions/> is "
41392 "slower, so if possible use the first method."
41396 #: ../src/guestfs.pod:2743
41398 "The following describes the test environment used when you add an API test "
41399 "in C<generator_actions.ml>."
41403 #: ../src/guestfs.pod:2746
41404 msgid "The test environment has 4 block devices:"
41408 #: ../src/guestfs.pod:2750
41409 msgid "C</dev/sda> 500MB"
41410 msgstr "C</dev/sda> 500 МБ"
41413 #: ../src/guestfs.pod:2752
41414 msgid "General block device for testing."
41418 #: ../src/guestfs.pod:2754
41419 msgid "C</dev/sdb> 50MB"
41420 msgstr "C</dev/sdb> 50 МБ"
41423 #: ../src/guestfs.pod:2756
41425 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
41430 #: ../src/guestfs.pod:2759
41431 msgid "C</dev/sdc> 10MB"
41432 msgstr "C</dev/sdc> 10 МБ"
41435 #: ../src/guestfs.pod:2761
41436 msgid "Used in a few tests where two block devices are needed."
41440 #: ../src/guestfs.pod:2763
41441 msgid "C</dev/sdd>"
41442 msgstr "C</dev/sdd>"
41445 #: ../src/guestfs.pod:2765
41446 msgid "ISO with fixed content (see C<images/test.iso>)."
41450 #: ../src/guestfs.pod:2769
41452 "To be able to run the tests in a reasonable amount of time, the libguestfs "
41453 "appliance and block devices are reused between tests. So don't try testing "
41454 "L</guestfs_kill_subprocess> :-x"
41458 #: ../src/guestfs.pod:2773
41460 "Each test starts with an initial scenario, selected using one of the "
41461 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
41462 "initialize the disks mentioned above in a particular way as documented in "
41463 "C<generator_types.ml>. You should not assume anything about the previous "
41464 "contents of other disks that are not initialized."
41468 #: ../src/guestfs.pod:2779
41470 "You can add a prerequisite clause to any individual test. This is a run-"
41471 "time check, which, if it fails, causes the test to be skipped. Useful if "
41472 "testing a command which might not work on all variations of libguestfs "
41473 "builds. A test that has prerequisite of C<Always> means to run "
41478 #: ../src/guestfs.pod:2785
41480 "In addition, packagers can skip individual tests by setting environment "
41481 "variables before running C<make check>."
41485 #: ../src/guestfs.pod:2788
41488 " SKIP_TEST_<CMD>_<NUM>=1\n"
41493 #: ../src/guestfs.pod:2790
41494 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
41498 #: ../src/guestfs.pod:2792
41503 #: ../src/guestfs.pod:2794
41506 " SKIP_TEST_<CMD>=1\n"
41511 #: ../src/guestfs.pod:2796
41512 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
41516 #: ../src/guestfs.pod:2798
41517 msgid "Packagers can run only certain tests by setting for example:"
41521 #: ../src/guestfs.pod:2800
41524 " TEST_ONLY=\"vfs_type zerofree\"\n"
41529 #: ../src/guestfs.pod:2802
41531 "See C<capitests/tests.c> for more details of how these environment variables "
41536 #: ../src/guestfs.pod:2805
41537 msgid "DEBUGGING NEW API ACTIONS"
41541 #: ../src/guestfs.pod:2807
41542 msgid "Test new actions work before submitting them."
41546 #: ../src/guestfs.pod:2809
41547 msgid "You can use guestfish to try out new commands."
41551 #: ../src/guestfs.pod:2811
41553 "Debugging the daemon is a problem because it runs inside a minimal "
41554 "environment. However you can fprintf messages in the daemon to stderr, and "
41555 "they will show up if you use C<guestfish -v>."
41559 #: ../src/guestfs.pod:2815
41560 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
41564 #: ../src/guestfs.pod:2817
41566 "Our C source code generally adheres to some basic code-formatting "
41567 "conventions. The existing code base is not totally consistent on this "
41568 "front, but we do prefer that contributed code be formatted similarly. In "
41569 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
41570 "indentation level, and other than that, follow the K&R style."
41574 #: ../src/guestfs.pod:2823
41576 "If you use Emacs, add the following to one of one of your start-up files (e."
41577 "g., ~/.emacs), to help ensure that you get indentation right:"
41581 #: ../src/guestfs.pod:2826
41584 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
41585 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
41586 " (add-hook 'find-file-hook\n"
41587 " '(lambda () (if (and buffer-file-name\n"
41588 " (string-match \"/libguestfs\\\\>\"\n"
41589 " (buffer-file-name))\n"
41590 " (not (string-equal mode-name \"Change Log\"))\n"
41591 " (not (string-equal mode-name \"Makefile\")))\n"
41592 " (setq indent-tabs-mode nil))))\n"
41597 #: ../src/guestfs.pod:2836
41600 " ;;; When editing C sources in libguestfs, use this style.\n"
41601 " (defun libguestfs-c-mode ()\n"
41602 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
41604 " (c-set-style \"K&R\")\n"
41605 " (setq c-indent-level 2)\n"
41606 " (setq c-basic-offset 2))\n"
41607 " (add-hook 'c-mode-hook\n"
41608 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
41609 " (buffer-file-name))\n"
41610 " (libguestfs-c-mode))))\n"
41615 #: ../src/guestfs.pod:2848
41616 msgid "Enable warnings when compiling (and fix any problems this finds):"
41620 #: ../src/guestfs.pod:2851
41623 " ./configure --enable-gcc-warnings\n"
41626 " ./configure --enable-gcc-warnings\n"
41630 #: ../src/guestfs.pod:2853
41631 msgid "Useful targets are:"
41635 #: ../src/guestfs.pod:2855
41638 " make syntax-check # checks the syntax of the C code\n"
41639 " make check # runs the test suite\n"
41644 #: ../src/guestfs.pod:2858
41645 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
41649 #: ../src/guestfs.pod:2860
41651 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
41652 "which are used to do shell quoting."
41656 #: ../src/guestfs.pod:2865
41661 #: ../src/guestfs.pod:2867
41663 "Simple shell quoted string. Any spaces or other shell characters are "
41668 #: ../src/guestfs.pod:2870
41673 #: ../src/guestfs.pod:2872
41675 "Same as C<%Q> except the string is treated as a path which is prefixed by "
41680 #: ../src/guestfs.pod:2879
41683 " asprintf (&cmd, \"cat %R\", path);\n"
41686 " asprintf (&cmd, \"cat %R\", path);\n"
41690 #: ../src/guestfs.pod:2881
41691 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
41695 #: ../src/guestfs.pod:2883
41697 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
41698 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
41699 "they are not passed via the shell (instead, straight to exec). You probably "
41700 "want to use the C<sysroot_path()> function however."
41704 #: ../src/guestfs.pod:2889
41705 msgid "SUBMITTING YOUR NEW API ACTIONS"
41709 #: ../src/guestfs.pod:2891
41711 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
41712 "libguestfs> and CC to L<rjones@redhat.com>."
41716 #: ../src/guestfs.pod:2895
41717 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
41721 #: ../src/guestfs.pod:2897
41722 msgid "We support i18n (gettext anyhow) in the library."
41726 #: ../src/guestfs.pod:2899
41728 "However many messages come from the daemon, and we don't translate those at "
41729 "the moment. One reason is that the appliance generally has all locale files "
41730 "removed from it, because they take up a lot of space. So we'd have to readd "
41731 "some of those, as well as copying our PO files into the appliance."
41735 #: ../src/guestfs.pod:2905
41737 "Debugging messages are never translated, since they are intended for the "
41742 #: ../src/guestfs.pod:2908
41743 msgid "SOURCE CODE SUBDIRECTORIES"
41747 #: ../src/guestfs.pod:2912
41752 #: ../src/guestfs.pod:2914
41753 msgid "L<virt-alignment-scan(1)> command and documentation."
41757 #: ../src/guestfs.pod:2918
41758 msgid "The libguestfs appliance, build scripts and so on."
41762 #: ../src/guestfs.pod:2920
41763 msgid "C<capitests>"
41764 msgstr "C<capitests>"
41767 #: ../src/guestfs.pod:2922
41768 msgid "Automated tests of the C API."
41772 #: ../src/guestfs.pod:2924
41777 #: ../src/guestfs.pod:2926
41779 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41784 #: ../src/guestfs.pod:2929
41786 msgstr "C<caution>"
41789 #: ../src/guestfs.pod:2931
41791 "Safety and liveness tests of components that libguestfs depends upon (not of "
41792 "libguestfs itself). Mainly this is for qemu and the kernel."
41796 #: ../src/guestfs.pod:2934
41801 #: ../src/guestfs.pod:2936
41803 "Tools for cloning virtual machines. Currently contains L<virt-sysprep(1)> "
41804 "command and documentation."
41808 #: ../src/guestfs.pod:2939
41810 msgstr "C<contrib>"
41813 #: ../src/guestfs.pod:2941
41814 msgid "Outside contributions, experimental parts."
41818 #: ../src/guestfs.pod:2943
41823 #: ../src/guestfs.pod:2945
41825 "The daemon that runs inside the libguestfs appliance and carries out actions."
41829 #: ../src/guestfs.pod:2948
41834 #: ../src/guestfs.pod:2950
41835 msgid "L<virt-df(1)> command and documentation."
41839 #: ../src/guestfs.pod:2952
41844 #: ../src/guestfs.pod:2954
41845 msgid "L<virt-edit(1)> command and documentation."
41849 #: ../src/guestfs.pod:2956
41850 msgid "C<examples>"
41851 msgstr "C<examples>"
41854 #: ../src/guestfs.pod:2958
41855 msgid "C API example code."
41856 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
41859 #: ../src/guestfs.pod:2960
41864 #: ../src/guestfs.pod:2962
41866 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41867 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41868 "L<virt-tar-out(1)>."
41872 #: ../src/guestfs.pod:2966
41877 #: ../src/guestfs.pod:2968
41879 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41883 #: ../src/guestfs.pod:2970
41884 msgid "C<generator>"
41885 msgstr "C<generator>"
41888 #: ../src/guestfs.pod:2972
41890 "The crucially important generator, used to automatically generate large "
41891 "amounts of boilerplate C code for things like RPC and bindings."
41895 #: ../src/guestfs.pod:2975
41900 #: ../src/guestfs.pod:2977
41901 msgid "Files used by the test suite."
41905 #: ../src/guestfs.pod:2979
41906 msgid "Some \"phony\" guest images which we test against."
41910 #: ../src/guestfs.pod:2981
41911 msgid "C<inspector>"
41912 msgstr "C<inspector>"
41915 #: ../src/guestfs.pod:2983
41916 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41920 #: ../src/guestfs.pod:2985
41925 #: ../src/guestfs.pod:2987
41926 msgid "Logo used on the website. The fish is called Arthur by the way."
41930 #: ../src/guestfs.pod:2989
41935 #: ../src/guestfs.pod:2991
41936 msgid "M4 macros used by autoconf."
41940 #: ../src/guestfs.pod:2993
41945 #: ../src/guestfs.pod:2995
41946 msgid "Translations of simple gettext strings."
41947 msgstr "Переклади простих рядків gettext."
41950 #: ../src/guestfs.pod:2997
41952 msgstr "C<po-docs>"
41955 #: ../src/guestfs.pod:2999
41957 "The build infrastructure and PO files for translations of manpages and POD "
41958 "files. Eventually this will be combined with the C<po> directory, but that "
41959 "is rather complicated."
41963 #: ../src/guestfs.pod:3003
41964 msgid "C<regressions>"
41965 msgstr "C<regressions>"
41968 #: ../src/guestfs.pod:3005
41969 msgid "Regression tests."
41970 msgstr "Тести на регресії."
41973 #: ../src/guestfs.pod:3007
41978 #: ../src/guestfs.pod:3009
41979 msgid "L<virt-rescue(1)> command and documentation."
41983 #: ../src/guestfs.pod:3011
41988 #: ../src/guestfs.pod:3013
41989 msgid "L<virt-resize(1)> command and documentation."
41993 #: ../src/guestfs.pod:3015
41994 msgid "C<sparsify>"
41998 #: ../src/guestfs.pod:3017
41999 msgid "L<virt-sparsify(1)> command and documentation."
42003 #: ../src/guestfs.pod:3019
42008 #: ../src/guestfs.pod:3021
42009 msgid "Source code to the C library."
42013 #: ../src/guestfs.pod:3023
42018 #: ../src/guestfs.pod:3025
42020 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
42024 #: ../src/guestfs.pod:3027
42025 msgid "C<test-tool>"
42026 msgstr "C<test-tool>"
42029 #: ../src/guestfs.pod:3029
42031 "Test tool for end users to test if their qemu/kernel combination will work "
42036 #: ../src/guestfs.pod:3032
42041 #: ../src/guestfs.pod:3034
42046 #: ../src/guestfs.pod:3036
42048 msgstr "C<haskell>"
42051 #: ../src/guestfs.pod:3038
42056 #: ../src/guestfs.pod:3040
42061 #: ../src/guestfs.pod:3042
42066 #: ../src/guestfs.pod:3044
42071 #: ../src/guestfs.pod:3046
42076 #: ../src/guestfs.pod:3048
42081 #: ../src/guestfs.pod:3050
42082 msgid "Language bindings."
42083 msgstr "Прив’язки до мов програмування."
42086 #: ../src/guestfs.pod:3054
42087 msgid "MAKING A STABLE RELEASE"
42091 #: ../src/guestfs.pod:3056
42093 "When we make a stable release, there are several steps documented here. See "
42094 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
42099 #: ../src/guestfs.pod:3064
42101 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
42105 #: ../src/guestfs.pod:3069
42106 msgid "Finalize RELEASE-NOTES."
42110 #: ../src/guestfs.pod:3073
42111 msgid "Update ROADMAP."
42115 #: ../src/guestfs.pod:3077
42116 msgid "Run C<src/api-support/update-from-tarballs.sh>."
42120 #: ../src/guestfs.pod:3081
42121 msgid "Push and pull from Transifex."
42125 #: ../src/guestfs.pod:3083
42130 #: ../src/guestfs.pod:3085
42138 #: ../src/guestfs.pod:3087
42139 msgid "to push the latest POT files to Transifex. Then run:"
42143 #: ../src/guestfs.pod:3089
42151 #: ../src/guestfs.pod:3091
42152 msgid "which is a wrapper to pull the latest translated C<*.po> files."
42156 #: ../src/guestfs.pod:3095
42158 "Create new stable and development directories under L<http://libguestfs.org/"
42163 #: ../src/guestfs.pod:3100
42164 msgid "Create the branch in git:"
42168 #: ../src/guestfs.pod:3102
42171 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
42172 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
42173 " git branch stable-1.XX\n"
42174 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
42179 #: ../src/guestfs.pod:3109
42184 #: ../src/guestfs.pod:3111
42185 msgid "PROTOCOL LIMITS"
42186 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
42189 #: ../src/guestfs.pod:3113
42191 "Internally libguestfs uses a message-based protocol to pass API calls and "
42192 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
42193 "plenty more detail about this). The maximum message size used by the "
42194 "protocol is slightly less than 4 MB. For some API calls you may need to be "
42195 "aware of this limit. The API calls which may be affected are individually "
42196 "documented, with a link back to this section of the documentation."
42200 #: ../src/guestfs.pod:3121
42202 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
42203 "a simple string. Because this string is at some point internally encoded as "
42204 "a message, the maximum size that it can return is slightly under 4 MB. If "
42205 "the requested file is larger than this then you will get an error."
42209 #: ../src/guestfs.pod:3127
42211 "In order to transfer large files into and out of the guest filesystem, you "
42212 "need to use particular calls that support this. The sections L</UPLOADING> "
42213 "and L</DOWNLOADING> document how to do this."
42217 #: ../src/guestfs.pod:3131
42219 "You might also consider mounting the disk image using our FUSE filesystem "
42220 "support (L<guestmount(1)>)."
42224 #: ../src/guestfs.pod:3134
42225 msgid "MAXIMUM NUMBER OF DISKS"
42229 #: ../src/guestfs.pod:3136
42230 msgid "When using virtio disks (the default) the current limit is B<25> disks."
42234 #: ../src/guestfs.pod:3139
42236 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
42237 "slots. However febootstrap only understands disks with names C</dev/vda> "
42238 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
42243 #: ../src/guestfs.pod:3144
42245 "We are working to substantially raise this limit in future versions but it "
42246 "requires complex changes to qemu."
42250 #: ../src/guestfs.pod:3147
42252 "In future versions of libguestfs it should also be possible to \"hot plug\" "
42253 "disks (add and remove disks after calling L</guestfs_launch>). This also "
42254 "requires changes to qemu."
42258 #: ../src/guestfs.pod:3151
42259 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
42263 #: ../src/guestfs.pod:3153
42264 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
42268 #: ../src/guestfs.pod:3155
42270 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
42271 "vda>, and C</dev/vda1> through C</dev/vda15>)."
42275 #: ../src/guestfs.pod:3158
42277 "If you attach a disk with more than 15 partitions, the extra partitions are "
42278 "ignored by libguestfs."
42282 #: ../src/guestfs.pod:3161
42283 msgid "MAXIMUM SIZE OF A DISK"
42287 #: ../src/guestfs.pod:3163
42288 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
42292 #: ../src/guestfs.pod:3165
42294 "We have tested block devices up to 1 exabyte (2**60 or "
42295 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
42300 #: ../src/guestfs.pod:3169
42302 "Although libguestfs probably does not impose any limit, the underlying host "
42303 "storage will. If you store disk images on a host ext4 filesystem, then the "
42304 "maximum size will be limited by the maximum ext4 file size (currently 16 "
42305 "TB). If you store disk images as host logical volumes then you are limited "
42306 "by the maximum size of an LV."
42310 #: ../src/guestfs.pod:3175
42312 "For the hugest disk image files, we recommend using XFS on the host for "
42317 #: ../src/guestfs.pod:3178
42318 msgid "MAXIMUM SIZE OF A PARTITION"
42322 #: ../src/guestfs.pod:3180
42324 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
42325 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
42326 "address a partition located beyond 2 TB on the disk."
42330 #: ../src/guestfs.pod:3184
42332 "It is recommended that you use GPT partitions on disks which are larger than "
42333 "this size. GPT uses 64 bit sector numbers and so can address partitions "
42334 "which are theoretically larger than the largest disk we could support."
42338 #: ../src/guestfs.pod:3189
42339 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
42343 #: ../src/guestfs.pod:3191
42345 "This depends on the filesystem type. libguestfs itself does not impose any "
42346 "known limit. Consult Wikipedia or the filesystem documentation to find out "
42347 "what these limits are."
42351 #: ../src/guestfs.pod:3195
42352 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
42356 #: ../src/guestfs.pod:3197
42358 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
42359 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
42360 "uploads and downloads."
42364 #: ../src/guestfs.pod:3201
42365 msgid "INSPECTION LIMITS"
42369 #: ../src/guestfs.pod:3203
42371 "The inspection code has several arbitrary limits on things like the size of "
42372 "Windows Registry hive it will read, and the length of product name. These "
42373 "are intended to stop a malicious guest from consuming arbitrary amounts of "
42374 "memory and disk space on the host, and should not be reached in practice. "
42375 "See the source code for more information."
42379 #: ../src/guestfs.pod:3229
42381 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
42382 "effect as calling C<guestfs_set_verbose (g, 1)>."
42386 #: ../src/guestfs.pod:3241
42388 "Set the path that libguestfs uses to search for a supermin appliance. See "
42389 "the discussion of paths in section L</PATH> above."
42393 #: ../src/guestfs.pod:3250
42394 msgid "See also L</QEMU WRAPPERS> above."
42398 #: ../src/guestfs.pod:3254
42400 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
42401 "effect as calling C<guestfs_set_trace (g, 1)>."
42405 #: ../src/guestfs.pod:3272
42407 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
42408 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
42409 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
42410 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
42411 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
42412 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
42413 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
42414 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
42415 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
42416 ">, L<http://libguestfs.org/>."
42420 #: ../src/guestfs.pod:3308
42422 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
42423 "(8)>, L<disktype(1)>."
42427 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
42428 #: ../tools/virt-win-reg.pl:772
42433 #: ../src/guestfs.pod:3317
42434 msgid "To get a list of bugs against libguestfs use this link:"
42436 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
42440 #: ../src/guestfs.pod:3319
42442 "L<https://bugzilla.redhat.com/buglist.cgi?"
42443 "component=libguestfs&product=Virtualization+Tools>"
42445 "L<https://bugzilla.redhat.com/buglist.cgi?"
42446 "component=libguestfs&product=Virtualization+Tools>"
42449 #: ../src/guestfs.pod:3321
42450 msgid "To report a new bug against libguestfs use this link:"
42451 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
42454 #: ../src/guestfs.pod:3323
42456 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
42457 "component=libguestfs&product=Virtualization+Tools>"
42459 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
42460 "component=libguestfs&product=Virtualization+Tools>"
42463 #: ../src/guestfs.pod:3325
42464 msgid "When reporting a bug, please check:"
42468 #: ../src/guestfs.pod:3331
42469 msgid "That the bug hasn't been reported already."
42473 #: ../src/guestfs.pod:3335
42474 msgid "That you are testing a recent version."
42478 #: ../src/guestfs.pod:3339
42479 msgid "Describe the bug accurately, and give a way to reproduce it."
42483 #: ../src/guestfs.pod:3343
42485 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
42490 #: ../test-tool/libguestfs-test-tool.pod:5
42491 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
42495 #: ../test-tool/libguestfs-test-tool.pod:9
42498 " libguestfs-test-tool [--options]\n"
42503 #: ../test-tool/libguestfs-test-tool.pod:13
42505 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
42506 "to check basic libguestfs functionality is working. This is needed because "
42507 "libguestfs occasionally breaks for reasons beyond our control: usually "
42508 "because of changes in the underlying qemu or kernel packages, or the host "
42513 #: ../test-tool/libguestfs-test-tool.pod:19
42514 msgid "If you suspect a problem in libguestfs, then just run:"
42518 #: ../test-tool/libguestfs-test-tool.pod:21
42521 " libguestfs-test-tool\n"
42526 #: ../test-tool/libguestfs-test-tool.pod:23
42527 msgid "It will print lots of diagnostic messages."
42531 #: ../test-tool/libguestfs-test-tool.pod:25
42532 msgid "If it runs to completion successfully, you will see this near the end:"
42536 #: ../test-tool/libguestfs-test-tool.pod:27
42539 " ===== TEST FINISHED OK =====\n"
42544 #: ../test-tool/libguestfs-test-tool.pod:29
42545 msgid "and the test tool will exit with code 0."
42549 #: ../test-tool/libguestfs-test-tool.pod:31
42551 "If it fails (and/or exits with non-zero error code), please paste the "
42552 "I<complete, unedited> output of the test tool into a bug report. More "
42553 "information about reporting bugs can be found on the L<http://libguestfs.org/"
42558 #: ../test-tool/libguestfs-test-tool.pod:42
42559 msgid "Display short usage information and exit."
42563 #: ../test-tool/libguestfs-test-tool.pod:44
42564 msgid "B<--qemu qemu_binary>"
42568 #: ../test-tool/libguestfs-test-tool.pod:46
42570 "If you have downloaded another qemu binary, point this option at the full "
42571 "path of the binary to try it."
42575 #: ../test-tool/libguestfs-test-tool.pod:49
42576 msgid "B<--qemudir qemu_source_dir>"
42580 #: ../test-tool/libguestfs-test-tool.pod:51
42582 "If you have compiled qemu from source, point this option at the source "
42583 "directory to try it."
42587 #: ../test-tool/libguestfs-test-tool.pod:54
42592 #: ../test-tool/libguestfs-test-tool.pod:56
42593 msgid "B<--timeout N>"
42597 #: ../test-tool/libguestfs-test-tool.pod:58
42599 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
42600 "minutes) which does not usually need to be adjusted."
42604 #: ../test-tool/libguestfs-test-tool.pod:63
42605 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
42609 #: ../test-tool/libguestfs-test-tool.pod:65
42611 "If you have compiled another version of qemu from source and would like to "
42612 "try that, then you can use the I<--qemudir> option to point to the qemu "
42613 "source directory."
42617 #: ../test-tool/libguestfs-test-tool.pod:69
42619 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
42620 "option to point to the binary."
42624 #: ../test-tool/libguestfs-test-tool.pod:72
42626 "Note when using these options, you can ignore the business of qemu wrapper "
42627 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
42628 "wrapper script for you if one is needed."
42632 #: ../test-tool/libguestfs-test-tool.pod:76
42633 msgid "TRYING OUT A DIFFERENT KERNEL"
42637 #: ../test-tool/libguestfs-test-tool.pod:78
42639 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
42640 "libguestfs tries. You do this by setting the environment variables "
42641 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
42645 #: ../test-tool/libguestfs-test-tool.pod:82
42647 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
42652 #: ../test-tool/libguestfs-test-tool.pod:85
42653 msgid "SELF-DIAGNOSIS"
42657 #: ../test-tool/libguestfs-test-tool.pod:87
42659 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
42660 "produced by libguestfs-test-tool and/or possible errors."
42664 #: ../test-tool/libguestfs-test-tool.pod:92
42666 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
42667 "I<1> if there was an error."
42671 #: ../test-tool/libguestfs-test-tool.pod:97
42673 "For the full list of environment variables which may affect libguestfs, "
42674 "please see the L<guestfs(3)> manual page."
42678 #: ../test-tool/libguestfs-test-tool.pod:102
42679 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
42683 #: ../tools/virt-list-filesystems.pl:32
42685 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
42689 #: ../tools/virt-list-filesystems.pl:36
42692 " virt-list-filesystems [--options] domname\n"
42697 #: ../tools/virt-list-filesystems.pl:38
42700 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
42705 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
42707 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
42712 #: ../tools/virt-list-filesystems.pl:45
42714 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
42715 "are contained in a virtual machine or disk image."
42719 #: ../tools/virt-list-filesystems.pl:49
42721 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
42722 "functionality. For more complex cases you should look at the L<guestfish(1)"
42727 #: ../tools/virt-list-filesystems.pl:112
42729 "With this option, C<virt-list-filesystems> displays the type of each "
42730 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42734 #: ../tools/virt-list-filesystems.pl:119
42739 #: ../tools/virt-list-filesystems.pl:123
42741 "Normally we only show mountable filesystems. If this option is given then "
42742 "swap devices are shown too."
42746 #: ../tools/virt-list-filesystems.pl:197
42748 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42749 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42750 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42752 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42753 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42754 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42757 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42758 msgid "Copyright (C) 2009 Red Hat Inc."
42759 msgstr "© Red Hat Inc., 2009"
42762 #: ../tools/virt-list-partitions.pl:32
42764 "virt-list-partitions - List partitions in a virtual machine or disk image"
42768 #: ../tools/virt-list-partitions.pl:36
42771 " virt-list-partitions [--options] domname\n"
42774 " virt-list-partitions [--параметри] назва_домену\n"
42778 #: ../tools/virt-list-partitions.pl:38
42781 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42784 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
42788 #: ../tools/virt-list-partitions.pl:45
42790 "C<virt-list-partitions> is a command line tool to list the partitions that "
42791 "are contained in a virtual machine or disk image. It is mainly useful as a "
42792 "first step to using L<virt-resize(1)>."
42796 #: ../tools/virt-list-partitions.pl:50
42798 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42799 "functionality. For more complex cases you should look at the L<guestfish(1)"
42804 #: ../tools/virt-list-partitions.pl:113
42805 msgid "Show sizes in human-readable form (eg. \"1G\")."
42809 #: ../tools/virt-list-partitions.pl:123
42811 "With this option, C<virt-list-partitions> displays the type and size of each "
42812 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42816 #: ../tools/virt-list-partitions.pl:130
42821 #: ../tools/virt-list-partitions.pl:132
42823 msgstr "B<--total>"
42826 #: ../tools/virt-list-partitions.pl:134
42828 "Display the total size of each block device (as a separate row or rows)."
42832 #: ../tools/virt-list-partitions.pl:267
42834 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42835 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42836 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42838 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42839 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42840 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42843 #: ../tools/virt-list-partitions.pl:283
42844 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42845 msgstr "© Red Hat Inc., 2009–2010"
42848 #: ../tools/virt-make-fs.pl:37
42849 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42853 #: ../tools/virt-make-fs.pl:41
42856 " virt-make-fs [--options] input.tar output.img\n"
42861 #: ../tools/virt-make-fs.pl:43
42864 " virt-make-fs [--options] input.tar.gz output.img\n"
42869 #: ../tools/virt-make-fs.pl:45
42872 " virt-make-fs [--options] directory output.img\n"
42877 #: ../tools/virt-make-fs.pl:49
42879 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42880 "archive or some files in a directory. It is similar to tools like L<mkisofs"
42881 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
42882 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42883 "you want to attach these filesystems to existing virtual machines (eg. to "
42884 "import large amounts of read-only data to a VM)."
42888 #: ../tools/virt-make-fs.pl:57
42889 msgid "Basic usage is:"
42893 #: ../tools/virt-make-fs.pl:59
42896 " virt-make-fs input output.img\n"
42901 #: ../tools/virt-make-fs.pl:61
42903 "where C<input> is either a directory containing files that you want to add, "
42904 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42905 "C<output.img> is a disk image. The input type is detected automatically. "
42906 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42907 "extra flags (see L</OPTIONS> below)."
42911 #: ../tools/virt-make-fs.pl:67
42912 msgid "FILESYSTEM TYPE"
42913 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
42916 #: ../tools/virt-make-fs.pl:69
42918 "The default filesystem type is C<ext2>. Just about any filesystem type that "
42919 "libguestfs supports can be used (but I<not> read-only formats like "
42920 "ISO9660). Here are some of the more common choices:"
42924 #: ../tools/virt-make-fs.pl:75
42929 #: ../tools/virt-make-fs.pl:77
42931 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
42932 "you are not going to use the filesystem in a way that requires the journal, "
42933 "then this is just wasted overhead."
42937 #: ../tools/virt-make-fs.pl:81
42938 msgid "I<ntfs> or I<vfat>"
42939 msgstr "I<ntfs> або I<vfat>"
42942 #: ../tools/virt-make-fs.pl:83
42943 msgid "Useful if exporting data to a Windows guest."
42947 #: ../tools/virt-make-fs.pl:85
42949 "I<Note for vfat>: The tar archive or local directory must only contain files "
42950 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
42951 "program running within libguestfs is unable to change the ownership of non-"
42952 "root files, since vfat itself does not support this."
42956 #: ../tools/virt-make-fs.pl:90
42961 #: ../tools/virt-make-fs.pl:92
42963 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42964 "total filesystem size."
42968 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
42969 #: ../tools/virt-make-fs.pl:149
42974 #: ../tools/virt-make-fs.pl:99
42977 " virt-make-fs --type=minix input minixfs.img\n"
42982 #: ../tools/virt-make-fs.pl:101
42983 msgid "TO PARTITION OR NOT TO PARTITION"
42987 #: ../tools/virt-make-fs.pl:103
42988 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42992 #: ../tools/virt-make-fs.pl:105
42994 "Adding a partition can make the disk image more compatible with certain "
42995 "virtualized operating systems which don't expect to see a filesystem "
42996 "directly located on a block device (Linux doesn't care and will happily "
42997 "handle both types)."
43001 #: ../tools/virt-make-fs.pl:110
43003 "On the other hand, if you have a partition table then the output image is no "
43004 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
43005 "directly on a partitioned disk image. (However libguestfs tools such as "
43006 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
43010 #: ../tools/virt-make-fs.pl:118
43011 msgid "Add an MBR partition:"
43015 #: ../tools/virt-make-fs.pl:120
43018 " virt-make-fs --partition -- input disk.img\n"
43023 #: ../tools/virt-make-fs.pl:122
43025 "If the output disk image could be terabyte-sized or larger, it's better to "
43026 "use an EFI/GPT-compatible partition table:"
43030 #: ../tools/virt-make-fs.pl:125
43033 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
43038 #: ../tools/virt-make-fs.pl:127
43039 msgid "EXTRA SPACE"
43043 #: ../tools/virt-make-fs.pl:129
43045 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
43046 "the files that it contains, but might have extra space. Depending on how "
43047 "you are going to use the output, you might think this extra space is wasted "
43048 "and want to minimize it, or you might want to leave space so that more files "
43049 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
43050 "but you can use the I<--size> flag to leave space in the filesystem if you "
43055 #: ../tools/virt-make-fs.pl:137
43057 "An alternative way to leave extra space but not make the output image any "
43058 "bigger is to use an alternative disk image format (instead of the default "
43059 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
43060 "image format (check your hypervisor supports this before using it). This "
43061 "allows you to choose a large I<--size> but the extra space won't actually be "
43062 "allocated in the image until you try to store something in it."
43066 #: ../tools/virt-make-fs.pl:145
43068 "Don't forget that you can also use local commands including L<resize2fs(8)> "
43069 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
43070 "to build another image from scratch."
43074 #: ../tools/virt-make-fs.pl:151
43077 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
43080 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
43084 #: ../tools/virt-make-fs.pl:179
43085 msgid "Enable debugging information."
43086 msgstr "Увімкнути виведення діагностичних даних."
43089 #: ../tools/virt-make-fs.pl:185
43090 msgid "B<--size=E<lt>NE<gt>>"
43091 msgstr "B<--size=E<lt>NE<gt>>"
43094 #: ../tools/virt-make-fs.pl:187
43095 msgid "B<--size=+E<lt>NE<gt>>"
43096 msgstr "B<--size=+E<lt>NE<gt>>"
43099 #: ../tools/virt-make-fs.pl:189
43100 msgid "B<-s E<lt>NE<gt>>"
43101 msgstr "B<-s E<lt>NE<gt>>"
43104 #: ../tools/virt-make-fs.pl:191
43105 msgid "B<-s +E<lt>NE<gt>>"
43106 msgstr "B<-s +E<lt>NE<gt>>"
43109 #: ../tools/virt-make-fs.pl:193
43111 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
43115 #: ../tools/virt-make-fs.pl:196
43117 "If this option is I<not> given, then the output image will be just large "
43118 "enough to contain all the files, with not much wasted space."
43122 #: ../tools/virt-make-fs.pl:199
43124 "To choose a fixed size output disk, specify an absolute number followed by b/"
43125 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
43126 "Petabytes or Exabytes. This must be large enough to contain all the input "
43127 "files, else you will get an error."
43131 #: ../tools/virt-make-fs.pl:204
43133 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
43134 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
43135 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
43136 "the input files, and (approximately) an extra 200 MB free space."
43140 #: ../tools/virt-make-fs.pl:210
43142 "Note that virt-make-fs estimates free space, and therefore will not produce "
43143 "filesystems containing precisely the free space requested. (It is much more "
43144 "expensive and time-consuming to produce a filesystem which has precisely the "
43145 "desired free space)."
43149 #: ../tools/virt-make-fs.pl:219
43150 msgid "B<--format=E<lt>fmtE<gt>>"
43154 #: ../tools/virt-make-fs.pl:221
43155 msgid "B<-F E<lt>fmtE<gt>>"
43159 #: ../tools/virt-make-fs.pl:223
43160 msgid "Choose the output disk image format."
43164 #: ../tools/virt-make-fs.pl:225
43165 msgid "The default is C<raw> (raw sparse disk image)."
43169 #: ../tools/virt-make-fs.pl:227
43171 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
43172 "that would really make sense here is C<qcow2>."
43176 #: ../tools/virt-make-fs.pl:234
43177 msgid "B<--type=E<lt>fsE<gt>>"
43181 #: ../tools/virt-make-fs.pl:236
43182 msgid "B<-t E<lt>fsE<gt>>"
43186 #: ../tools/virt-make-fs.pl:238
43187 msgid "Choose the output filesystem type."
43191 #: ../tools/virt-make-fs.pl:240
43192 msgid "The default is C<ext2>."
43193 msgstr "Типовим значенням є C<ext2>."
43196 #: ../tools/virt-make-fs.pl:242
43198 "Any filesystem which is supported read-write by libguestfs can be used here."
43202 #: ../tools/virt-make-fs.pl:249
43203 msgid "B<--partition>"
43204 msgstr "B<--partition>"
43207 #: ../tools/virt-make-fs.pl:251
43208 msgid "B<--partition=E<lt>parttypeE<gt>>"
43212 #: ../tools/virt-make-fs.pl:253
43214 "If specified, this flag adds an MBR partition table to the output disk image."
43218 #: ../tools/virt-make-fs.pl:256
43220 "You can change the partition table type, eg. I<--partition=gpt> for large "
43225 #: ../tools/virt-make-fs.pl:259
43227 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
43228 "might consider the next parameter to be the partition type. For example:"
43232 #: ../tools/virt-make-fs.pl:263
43235 " virt-make-fs --partition input.tar output.img\n"
43240 #: ../tools/virt-make-fs.pl:265
43242 "would cause virt-make-fs to think you wanted to use a partition type of "
43243 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
43244 "dash) between options and the input and output arguments:"
43248 #: ../tools/virt-make-fs.pl:269
43251 " virt-make-fs --partition -- input.tar output.img\n"
43256 #: ../tools/virt-make-fs.pl:271
43257 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
43261 #: ../tools/virt-make-fs.pl:559
43263 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
43264 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
43265 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
43267 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
43268 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
43269 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
43272 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
43274 "When reporting bugs, please enable debugging and capture the I<complete> "
43279 #: ../tools/virt-make-fs.pl:576
43282 " export LIBGUESTFS_DEBUG=1\n"
43283 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
43286 " export LIBGUESTFS_DEBUG=1\n"
43287 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
43291 #: ../tools/virt-make-fs.pl:579
43293 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
43298 #: ../tools/virt-tar.pl:33
43299 msgid "virt-tar - Extract or upload files to a virtual machine"
43303 #: ../tools/virt-tar.pl:37
43306 " virt-tar [--options] -x domname directory tarball\n"
43311 #: ../tools/virt-tar.pl:39
43314 " virt-tar [--options] -u domname tarball directory\n"
43319 #: ../tools/virt-tar.pl:41
43322 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
43327 #: ../tools/virt-tar.pl:43
43330 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
43335 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
43340 #: ../tools/virt-tar.pl:47
43342 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
43343 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
43347 #: ../tools/virt-tar.pl:52
43348 msgid "Download C</home> from the VM into a local tarball:"
43352 #: ../tools/virt-tar.pl:54
43355 " virt-tar -x domname /home home.tar\n"
43360 #: ../tools/virt-tar.pl:56
43363 " virt-tar -zx domname /home home.tar.gz\n"
43368 #: ../tools/virt-tar.pl:58
43369 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
43373 #: ../tools/virt-tar.pl:60
43376 " virt-tar -u domname uploadstuff.tar /tmp\n"
43381 #: ../tools/virt-tar.pl:62
43384 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
43389 #: ../tools/virt-tar.pl:66
43391 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
43392 "virtual machines. If you do this, you risk disk corruption in the VM. "
43393 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
43397 #: ../tools/virt-tar.pl:71
43399 "You can use I<-x> (extract) on live virtual machines, but you might get "
43400 "inconsistent results or errors if there is filesystem activity inside the "
43401 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
43402 "work, but the only way to guarantee consistent results is if the virtual "
43403 "machine is shut down."
43407 #: ../tools/virt-tar.pl:79
43409 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
43410 "parts of a guest filesystem. There are many possibilities: making backups, "
43411 "uploading data files, snooping on guest activity, fixing or customizing "
43416 #: ../tools/virt-tar.pl:84
43418 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
43419 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
43420 "should look at the L<guestfish(1)> tool."
43424 #: ../tools/virt-tar.pl:88
43426 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
43427 "its contents (recursively) from the virtual machine into a local tarball. "
43428 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
43429 "virtual machine. You cannot use these two options together."
43433 #: ../tools/virt-tar.pl:94
43435 "In addition, you may need to use the I<-z> (gZip) option to enable "
43436 "compression. When uploading, you have to specify I<-z> if the upload file "
43437 "is compressed because virt-tar won't detect this on its own."
43441 #: ../tools/virt-tar.pl:98
43443 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
43444 "example it cannot do PKZip files or bzip2 compression. If you want that "
43445 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
43446 "the L<libguestfs(3)> API)."
43450 #: ../tools/virt-tar.pl:160
43451 msgid "B<--extract>"
43452 msgstr "B<--extract>"
43455 #: ../tools/virt-tar.pl:162
43456 msgid "B<--download>"
43457 msgstr "B<--download>"
43460 #: ../tools/virt-tar.pl:164
43465 #: ../tools/virt-tar.pl:166
43466 msgid "B<--upload>"
43467 msgstr "B<--upload>"
43470 #: ../tools/virt-tar.pl:168
43472 "Use I<-x> to extract (download) a directory from a virtual machine to a "
43477 #: ../tools/virt-tar.pl:171
43479 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
43480 "Please read the L</WARNING> section above before using this option."
43484 #: ../tools/virt-tar.pl:175
43485 msgid "You must specify exactly one of these options."
43489 #: ../tools/virt-tar.pl:181
43494 #: ../tools/virt-tar.pl:183
43499 #: ../tools/virt-tar.pl:185
43500 msgid "Specify that the input or output tarball is gzip-compressed."
43504 #: ../tools/virt-tar.pl:298
43506 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
43507 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
43508 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
43511 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
43512 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
43513 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
43517 #: ../tools/virt-win-reg.pl:37
43519 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
43523 #: ../tools/virt-win-reg.pl:41
43526 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
43531 #: ../tools/virt-win-reg.pl:43
43534 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
43539 #: ../tools/virt-win-reg.pl:45
43542 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
43547 #: ../tools/virt-win-reg.pl:47
43550 " virt-win-reg --merge domname [input.reg ...]\n"
43555 #: ../tools/virt-win-reg.pl:49
43558 " virt-win-reg [--options] disk.img ... # instead of domname\n"
43563 #: ../tools/virt-win-reg.pl:53
43565 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
43566 "virtual machines. If you do this, you I<will> get irreversible disk "
43567 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
43568 "but doesn't catch all cases."
43572 #: ../tools/virt-win-reg.pl:58
43574 "Modifying the Windows Registry is an inherently risky operation. The format "
43575 "is deliberately obscure and undocumented, and Registry changes can leave the "
43576 "system unbootable. Therefore when using the I<--merge> option, make sure "
43577 "you have a reliable backup first."
43581 #: ../tools/virt-win-reg.pl:65
43583 "This program can export and merge Windows Registry entries from a Windows "
43588 #: ../tools/virt-win-reg.pl:68
43590 "The first parameter is the libvirt guest name or the raw disk image of a "
43595 #: ../tools/virt-win-reg.pl:71
43597 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
43598 "exported (recursively). For example:"
43602 #: ../tools/virt-win-reg.pl:74
43605 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43608 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43612 #: ../tools/virt-win-reg.pl:76
43614 "You can also display single values from within registry keys, for example:"
43618 #: ../tools/virt-win-reg.pl:79
43621 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43622 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43623 " Windows 7 Enterprise\n"
43626 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43627 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43628 " Windows 7 Enterprise\n"
43632 #: ../tools/virt-win-reg.pl:83
43634 "With I<--merge>, you can merge a textual regedit file into the Windows "
43639 #: ../tools/virt-win-reg.pl:86
43642 " $ virt-win-reg --merge Windows7 changes.reg\n"
43645 " $ virt-win-reg --merge Windows7 changes.reg\n"
43649 #: ../tools/virt-win-reg.pl:90
43651 "This program is only meant for simple access to the registry. If you want "
43652 "to do complicated things with the registry, we suggest you download the "
43653 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
43654 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
43655 "L<hivexregedit(1)>."
43659 #: ../tools/virt-win-reg.pl:159
43661 msgstr "B<--merge>"
43664 #: ../tools/virt-win-reg.pl:161
43666 "In merge mode, this merges a textual regedit file into the Windows Registry "
43667 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
43668 "displays or exports Registry entries instead."
43672 #: ../tools/virt-win-reg.pl:165
43674 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
43675 "result in disk corruption. However exporting (without this flag) is always "
43680 #: ../tools/virt-win-reg.pl:173
43681 msgid "B<--encoding> UTF-16LE|ASCII"
43682 msgstr "B<--encoding> UTF-16LE|ASCII"
43685 #: ../tools/virt-win-reg.pl:175
43687 "When merging (only), you may need to specify the encoding for strings to be "
43688 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
43689 "(3)/ENCODING STRINGS>."
43693 #: ../tools/virt-win-reg.pl:179
43695 "The default is to use UTF-16LE, which should work with recent versions of "
43700 #: ../tools/virt-win-reg.pl:186
43701 msgid "B<--unsafe-printable-strings>"
43702 msgstr "B<--unsafe-printable-strings>"
43705 #: ../tools/virt-win-reg.pl:188
43707 "When exporting (only), assume strings are UTF-16LE and print them as strings "
43708 "instead of hex sequences. Remove the final zero codepoint from strings if "
43713 #: ../tools/virt-win-reg.pl:192
43715 "This is unsafe and does not preserve the fidelity of strings in the original "
43716 "Registry for various reasons:"
43720 #: ../tools/virt-win-reg.pl:199
43722 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
43723 "other encodings will be corrupted by this transformation."
43727 #: ../tools/virt-win-reg.pl:204
43729 "Assumes that everything which has type 1 or 2 is really a string and that "
43730 "everything else is not a string, but the type field in real Registries is "
43735 #: ../tools/virt-win-reg.pl:210
43737 "Loses information about whether a zero codepoint followed the string in the "
43742 #: ../tools/virt-win-reg.pl:215
43744 "This all happens because the Registry itself contains no information about "
43745 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43749 #: ../tools/virt-win-reg.pl:219
43751 "You should only use this option for quick hacking and debugging of the "
43752 "Registry contents, and I<never> use it if the output is going to be passed "
43753 "into another program or stored in another Registry."
43757 #: ../tools/virt-win-reg.pl:556
43758 msgid "SUPPORTED SYSTEMS"
43759 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
43762 #: ../tools/virt-win-reg.pl:558
43764 "The program currently supports Windows NT-derived guests starting with "
43765 "Windows XP through to at least Windows 7."
43769 #: ../tools/virt-win-reg.pl:561
43770 msgid "The following Registry keys are supported:"
43774 #: ../tools/virt-win-reg.pl:565
43775 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43776 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43779 #: ../tools/virt-win-reg.pl:567
43780 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43781 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43784 #: ../tools/virt-win-reg.pl:569
43785 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43786 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43789 #: ../tools/virt-win-reg.pl:571
43790 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43791 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43794 #: ../tools/virt-win-reg.pl:573
43795 msgid "C<HKEY_USERS\\.DEFAULT>"
43796 msgstr "C<HKEY_USERS\\.DEFAULT>"
43799 #: ../tools/virt-win-reg.pl:575
43800 msgid "C<HKEY_USERS\\I<SID>>"
43801 msgstr "C<HKEY_USERS\\I<SID>>"
43804 #: ../tools/virt-win-reg.pl:577
43805 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43809 #: ../tools/virt-win-reg.pl:579
43810 msgid "C<HKEY_USERS\\I<username>>"
43811 msgstr "C<HKEY_USERS\\I<користувач>>"
43814 #: ../tools/virt-win-reg.pl:581
43816 "where I<username> is a local user name (this is a libguestfs extension)."
43820 #: ../tools/virt-win-reg.pl:585
43822 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43827 #: ../tools/virt-win-reg.pl:588
43829 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43830 "supported (there is no \"current user\")."
43834 #: ../tools/virt-win-reg.pl:591
43839 #: ../tools/virt-win-reg.pl:593
43841 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43842 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
43843 "style line endings. Since Windows regedit files are often in UTF-16LE with "
43844 "Windows-style line endings, you may need to reencode the whole file before "
43845 "or after processing."
43849 #: ../tools/virt-win-reg.pl:599
43851 "To reencode a file from Windows format to Linux (before processing it with "
43852 "the I<--merge> option), you would do something like this:"
43856 #: ../tools/virt-win-reg.pl:602
43859 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43862 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43866 #: ../tools/virt-win-reg.pl:604
43868 "To go in the opposite direction, after exporting and before sending the file "
43869 "to a Windows user, do something like this:"
43873 #: ../tools/virt-win-reg.pl:607
43876 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43879 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43883 #: ../tools/virt-win-reg.pl:609
43884 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43888 #: ../tools/virt-win-reg.pl:611
43890 "If you are unsure about the current encoding, use the L<file(1)> command. "
43891 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43892 "style (CRLF) line endings, like this:"
43896 #: ../tools/virt-win-reg.pl:615
43899 " $ file software.reg\n"
43900 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43901 " with CRLF line terminators\n"
43906 #: ../tools/virt-win-reg.pl:619
43907 msgid "This file would need conversion before you could I<--merge> it."
43911 #: ../tools/virt-win-reg.pl:621
43912 msgid "CurrentControlSet etc."
43916 #: ../tools/virt-win-reg.pl:623
43918 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43919 "Registry at the level of the hive file, and therefore you cannot modify "
43924 #: ../tools/virt-win-reg.pl:627
43926 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
43927 "circumstances it might refer to another control set. The way to find out is "
43928 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43932 #: ../tools/virt-win-reg.pl:631
43935 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43936 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43937 " \"Current\"=dword:00000001\n"
43938 " \"Default\"=dword:00000001\n"
43939 " \"Failed\"=dword:00000000\n"
43940 " \"LastKnownGood\"=dword:00000002\n"
43943 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43944 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43945 " \"Current\"=dword:00000001\n"
43946 " \"Default\"=dword:00000001\n"
43947 " \"Failed\"=dword:00000000\n"
43948 " \"LastKnownGood\"=dword:00000002\n"
43952 #: ../tools/virt-win-reg.pl:638
43953 msgid "\"Current\" is the one which Windows will choose when it boots."
43957 #: ../tools/virt-win-reg.pl:640
43959 "Similarly, other C<Current...> keys in the path may need to be replaced."
43963 #: ../tools/virt-win-reg.pl:643
43964 msgid "DELETING REGISTRY KEYS AND VALUES"
43968 #: ../tools/virt-win-reg.pl:645
43969 msgid "To delete a whole registry key, use the syntax:"
43973 #: ../tools/virt-win-reg.pl:647
43976 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
43981 #: ../tools/virt-win-reg.pl:649
43982 msgid "To delete a single value within a key, use the syntax:"
43986 #: ../tools/virt-win-reg.pl:651
43989 " [HKEY_LOCAL_MACHINE\\Foo]\n"
43995 #: ../tools/virt-win-reg.pl:654
43996 msgid "WINDOWS TIPS"
44000 #: ../tools/virt-win-reg.pl:656
44002 "Note that some of these tips modify the guest disk image. The guest I<must> "
44003 "be shut off, else you will get disk corruption."
44007 #: ../tools/virt-win-reg.pl:659
44008 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
44012 #: ../tools/virt-win-reg.pl:661
44014 "Prepare a DOS batch script, VBScript or executable. Upload this using "
44015 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
44016 "is uploaded into C<C:\\>:"
44020 #: ../tools/virt-win-reg.pl:665
44023 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
44026 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
44030 #: ../tools/virt-win-reg.pl:667
44031 msgid "Prepare a regedit file containing the registry change:"
44035 #: ../tools/virt-win-reg.pl:669
44038 " cat > test.reg <<'EOF'\n"
44039 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
44040 " \"Test\"=\"c:\\\\test.bat\"\n"
44044 " cat > test.reg <<'EOF'\n"
44045 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
44046 " \"Test\"=\"c:\\\\test.bat\"\n"
44051 #: ../tools/virt-win-reg.pl:674
44053 "In this example we use the key C<RunOnce> which means that the script will "
44054 "run precisely once when the first user logs in. If you want it to run every "
44055 "time a user logs in, replace C<RunOnce> with C<Run>."
44059 #: ../tools/virt-win-reg.pl:678
44060 msgid "Now update the registry:"
44061 msgstr "Оновіть регістр:"
44064 #: ../tools/virt-win-reg.pl:680
44067 " virt-win-reg --merge WindowsGuest test.reg\n"
44072 #: ../tools/virt-win-reg.pl:682
44073 msgid "INSTALLING A SERVICE"
44077 #: ../tools/virt-win-reg.pl:684
44079 "This section assumes you are familiar with Windows services, and you either "
44080 "have a program which handles the Windows Service Control Protocol directly "
44081 "or you want to run any program using a service wrapper like SrvAny or the "
44086 #: ../tools/virt-win-reg.pl:689
44088 "First upload the program and optionally the service wrapper. In this case "
44089 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
44093 #: ../tools/virt-win-reg.pl:693
44096 " guestfish -i -d WindowsGuest <<EOF\n"
44097 " upload rhsrvany.exe /rhsrvany.exe\n"
44098 " upload test.exe /test.exe\n"
44102 " guestfish -i -d WindowsGuest <<EOF\n"
44103 " upload rhsrvany.exe /rhsrvany.exe\n"
44104 " upload test.exe /test.exe\n"
44109 #: ../tools/virt-win-reg.pl:698
44111 "Prepare a regedit file containing the registry changes. In this example, "
44112 "the first registry change is needed for the service itself or the service "
44113 "wrapper (if used). The second registry change is only needed because I am "
44114 "using the RHSrvAny service wrapper."
44118 #: ../tools/virt-win-reg.pl:703
44121 " cat > service.reg <<'EOF'\n"
44122 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
44123 " \"Type\"=dword:00000010\n"
44124 " \"Start\"=dword:00000002\n"
44125 " \"ErrorControl\"=dword:00000001\n"
44126 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
44127 " \"DisplayName\"=\"RHSrvAny\"\n"
44128 " \"ObjectName\"=\"NetworkService\"\n"
44131 " cat > service.reg <<'EOF'\n"
44132 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
44133 " \"Type\"=dword:00000010\n"
44134 " \"Start\"=dword:00000002\n"
44135 " \"ErrorControl\"=dword:00000001\n"
44136 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
44137 " \"DisplayName\"=\"RHSrvAny\"\n"
44138 " \"ObjectName\"=\"NetworkService\"\n"
44142 #: ../tools/virt-win-reg.pl:712
44145 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
44146 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
44147 " \"PWD\"=\"c:\\\\Temp\"\n"
44151 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
44152 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
44153 " \"PWD\"=\"c:\\\\Temp\"\n"
44158 #: ../tools/virt-win-reg.pl:723
44160 "For use of C<ControlSet001> see the section above in this manual page. You "
44161 "may need to adjust this according to the control set that is in use by the "
44166 #: ../tools/virt-win-reg.pl:729
44168 "C<\"ObjectName\"> controls the privileges that the service will have. An "
44169 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
44170 "privileged account."
44174 #: ../tools/virt-win-reg.pl:735
44176 "For the meaning of the magic numbers, see this Microsoft KB article: "
44177 "L<http://support.microsoft.com/kb/103000>."
44181 #: ../tools/virt-win-reg.pl:740
44182 msgid "Update the registry:"
44183 msgstr "Оновіть регістр:"
44186 #: ../tools/virt-win-reg.pl:742
44189 " virt-win-reg --merge WindowsGuest service.reg\n"
44194 #: ../tools/virt-win-reg.pl:746
44196 "Be careful when passing parameters containing C<\\> (backslash) in the "
44197 "shell. Usually you will have to use 'single quotes' or double backslashes "
44198 "(but not both) to protect them from the shell."
44202 #: ../tools/virt-win-reg.pl:750
44203 msgid "Paths and value names are case-insensitive."
44207 #: ../tools/virt-win-reg.pl:759
44209 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
44210 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
44211 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
44213 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
44214 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
44215 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
44218 #: ../tools/virt-win-reg.pl:777
44221 " export LIBGUESTFS_DEBUG=1\n"
44222 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
44227 #: ../tools/virt-win-reg.pl:780
44229 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."