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: https://bugzilla.redhat.com/\n"
11 "POT-Creation-Date: 2011-10-26 21:10+0200\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"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
22 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
23 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
24 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
25 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
26 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
27 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
28 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
29 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
30 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
31 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
32 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
33 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
34 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
35 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
36 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
37 #: ../tools/virt-win-reg.pl:35
42 #: ../align/virt-alignment-scan.pod:5
43 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
47 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
48 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
49 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
50 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
51 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
52 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
53 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
54 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
55 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
56 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
57 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
58 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
59 #: ../test-tool/libguestfs-test-tool.pod:7
60 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
61 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
62 #: ../tools/virt-win-reg.pl:39
64 msgstr "КОРОТКИЙ ОПИС"
67 #: ../align/virt-alignment-scan.pod:9
70 " virt-alignment-scan [--options] -d domname\n"
75 #: ../align/virt-alignment-scan.pod:11
78 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
83 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
84 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
85 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
86 #: ../erlang/examples/guestfs-erlang.pod:16
87 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
88 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
89 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
90 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
91 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
92 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
93 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
94 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
95 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
96 #: ../test-tool/libguestfs-test-tool.pod:11
97 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
98 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
99 #: ../tools/virt-win-reg.pl:63
104 #: ../align/virt-alignment-scan.pod:15
106 "When older operating systems install themselves, the partitioning tools "
107 "place partitions at a sector misaligned with the underlying storage "
108 "(commonly the first partition starts on sector C<63>). Misaligned "
109 "partitions can result in an operating system issuing more I/O than should be"
114 #: ../align/virt-alignment-scan.pod:21
116 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
117 "machines and disk images and warns you if there are alignment problems."
121 #: ../align/virt-alignment-scan.pod:25
123 "Currently there is no virt tool for fixing alignment problems. You can only"
124 " reinstall the guest operating system. The following NetApp document "
125 "summarises the problem and possible solutions: "
126 "L<http://media.netapp.com/documents/tr-3747.pdf>"
130 #: ../align/virt-alignment-scan.pod:30
135 #: ../align/virt-alignment-scan.pod:32
136 msgid "To run this tool on a disk image directly, use the I<-a> option:"
140 #: ../align/virt-alignment-scan.pod:34
143 " $ virt-alignment-scan -a winxp.img\n"
144 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
149 #: ../align/virt-alignment-scan.pod:37
152 " $ virt-alignment-scan -a fedora16.img\n"
153 " /dev/sda1 1048576 1024K ok\n"
154 " /dev/sda2 2097152 2048K ok\n"
155 " /dev/sda3 526385152 2048K ok\n"
160 #: ../align/virt-alignment-scan.pod:42
162 "To run the tool on a guest known to libvirt, use the I<-d> option and "
163 "possibly the I<-c> option:"
167 #: ../align/virt-alignment-scan.pod:45
170 " # virt-alignment-scan -d RHEL5\n"
171 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
172 " /dev/sda2 106928640 512 bad (alignment < 4K)\n"
177 #: ../align/virt-alignment-scan.pod:49
180 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
181 " /dev/sda1 1048576 1024K ok\n"
182 " /dev/sda2 105906176 1024K ok\n"
183 " /dev/sdb1 65536 64K ok\n"
188 #: ../align/virt-alignment-scan.pod:54
190 "The output consists of 4 or more whitespace-separated columns. Only the "
191 "first 4 columns are signficant if you want to parse this from a program. "
196 #: ../align/virt-alignment-scan.pod:60
201 #: ../align/virt-alignment-scan.pod:62
203 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
204 "on the first block device)"
208 #: ../align/virt-alignment-scan.pod:65
213 #: ../align/virt-alignment-scan.pod:67
214 msgid "the start of the partition in bytes"
218 #: ../align/virt-alignment-scan.pod:69
223 #: ../align/virt-alignment-scan.pod:71
224 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
228 #: ../align/virt-alignment-scan.pod:73
233 #: ../align/virt-alignment-scan.pod:75
235 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
236 "can cause performance problems"
240 #: ../align/virt-alignment-scan.pod:78
245 #: ../align/virt-alignment-scan.pod:80
246 msgid "optional free-text explanation."
250 #: ../align/virt-alignment-scan.pod:84
252 "The exit code from the program changes depending on whether poorly aligned "
253 "partitions were found. See L</EXIT STATUS> below."
257 #: ../align/virt-alignment-scan.pod:87
258 msgid "If you just want the exit code with no output, use the I<-q> option."
262 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
263 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
264 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
265 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
266 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
267 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
268 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
269 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
270 #: ../test-tool/libguestfs-test-tool.pod:36
271 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
272 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
273 #: ../tools/virt-win-reg.pl:96
278 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
279 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
280 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
281 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
282 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
283 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
284 #: ../test-tool/libguestfs-test-tool.pod:40
285 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
286 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
287 #: ../tools/virt-win-reg.pl:104
292 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
293 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
294 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
295 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
296 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
297 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
298 #: ../tools/virt-win-reg.pl:106
299 msgid "Display brief help."
300 msgstr "Показати коротку довідку."
303 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
304 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
305 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
306 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
311 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
312 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
313 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
314 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
315 msgid "B<--add> file"
316 msgstr "B<--add> файл"
319 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
320 msgid "Add I<file> which should be a disk image from a virtual machine."
324 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
325 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
326 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
327 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
328 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
330 "The format of the disk image is auto-detected. To override this and force a"
331 " particular format use the I<--format=..> option."
335 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
336 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
337 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
338 #: ../rescue/virt-rescue.pod:107
340 msgstr "B<-c> адреса"
343 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
344 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
345 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
346 #: ../rescue/virt-rescue.pod:109
347 msgid "B<--connect> URI"
348 msgstr "B<--connect> адреса"
351 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
352 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
353 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
354 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
355 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
356 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
358 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
359 "to the default libvirt hypervisor."
363 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
364 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
365 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
366 #: ../rescue/virt-rescue.pod:114
368 "If you specify guest block devices directly (I<-a>), then libvirt is not "
373 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
374 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
375 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
376 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
381 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
382 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
383 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
384 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
385 msgid "B<--domain> guest"
386 msgstr "B<--domain> гість"
389 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
390 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
391 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
392 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
394 "Add all the disks from the named libvirt guest. Domain UUIDs can be used "
399 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
400 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
401 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
402 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
403 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
404 msgid "B<--format=raw|qcow2|..>"
405 msgstr "B<--format=raw|qcow2|..>"
408 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
409 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
410 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
411 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
412 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
413 #: ../rescue/virt-rescue.pod:126
418 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
419 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
420 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
421 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
422 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
424 "The default for the I<-a> option is to auto-detect the format of the disk "
425 "image. Using this forces the disk format for I<-a> options which follow on "
426 "the command line. Using I<--format> with no argument switches back to auto-"
427 "detection for subsequent I<-a> options."
431 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
432 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
433 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
434 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
435 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
436 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2877
441 #: ../align/virt-alignment-scan.pod:134
444 " virt-alignment-scan --format=raw -a disk.img\n"
449 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
450 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
451 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
452 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
453 #: ../rescue/virt-rescue.pod:137
454 msgid "forces raw format (no auto-detection) for C<disk.img>."
458 #: ../align/virt-alignment-scan.pod:138
461 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
466 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
467 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
468 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
469 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
470 #: ../rescue/virt-rescue.pod:141
472 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
473 "detection for C<another.img>."
477 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
478 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
479 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
480 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
482 "If you have untrusted raw-format guest disk images, you should use this "
483 "option to specify the disk format. This avoids a possible security problem "
484 "with malicious guests (CVE-2010-3851)."
488 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:491
489 #: ../sparsify/virt-sparsify.pod:153
494 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
495 #: ../sparsify/virt-sparsify.pod:155
500 #: ../align/virt-alignment-scan.pod:151
502 "Don't produce any output. Just set the exit code (see L</EXIT STATUS> "
507 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
508 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
509 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
510 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
511 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
512 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
517 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
518 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
519 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
520 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
521 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
522 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
524 msgstr "B<--verbose>"
527 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
528 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
529 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
530 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
531 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
532 msgid "Enable verbose messages for debugging."
536 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
537 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
538 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
539 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
540 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
541 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:561
542 #: ../sparsify/virt-sparsify.pod:165
547 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
548 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
549 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
550 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
551 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
552 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:563
553 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
554 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
555 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
557 msgstr "B<--version>"
560 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
561 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
562 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
563 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
564 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:565
565 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
566 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
567 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
568 msgid "Display version number and exit."
569 msgstr "Показати дані щодо версії і завершити роботу."
572 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
573 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
574 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
575 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
576 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
577 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
578 #: ../tools/virt-tar.pl:158
583 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
584 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
585 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
586 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
587 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
588 msgid "Enable tracing of libguestfs API calls."
592 #: ../align/virt-alignment-scan.pod:172
593 msgid "RECOMMENDED ALIGNMENT"
597 #: ../align/virt-alignment-scan.pod:174
599 "Operating systems older than Windows 2008 and Linux before ca.2010 place the"
600 " first sector of the first partition at sector 63, with a 512 byte sector "
601 "size. This happens because of a historical accident. Drives have to report"
602 " a cylinder / head / sector (CHS) geometry to the BIOS. The geometry is "
603 "completely meaningless on modern drives, but it happens that the geometry "
604 "reported always has 63 sectors per track. The operating system therefore "
605 "places the first partition at the start of the second \"track\", at sector "
610 #: ../align/virt-alignment-scan.pod:183
612 "When the guest OS is virtualized, the host operating system and hypervisor "
613 "may prefer accesses aligned to one of:"
617 #: ../align/virt-alignment-scan.pod:188
622 #: ../align/virt-alignment-scan.pod:190
624 "if the host OS uses local storage directly on hard drive partitions, and the"
625 " hard drive has 512 byte physical sectors."
629 #: ../align/virt-alignment-scan.pod:193
634 #: ../align/virt-alignment-scan.pod:195
636 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
637 "backed storage on filesystems with 4Kbyte block size; or for some types of "
638 "network-attached storage."
642 #: ../align/virt-alignment-scan.pod:199
647 #: ../align/virt-alignment-scan.pod:201
649 "for high-end network-attached storage. This is the optimal block size for "
650 "some NetApp hardware."
654 #: ../align/virt-alignment-scan.pod:204
659 #: ../align/virt-alignment-scan.pod:206
660 msgid "see L</1 MB PARTITION ALIGNMENT> below."
664 #: ../align/virt-alignment-scan.pod:210
666 "Partitions which are not aligned correctly to the underlying storage cause "
667 "extra I/O. For example:"
671 #: ../align/virt-alignment-scan.pod:213
675 " +--------------------------+------\n"
677 " | filesystem block |\n"
678 " ---+------------------+------+-------------------+-----+---\n"
679 " | host block | host block |\n"
681 " ---+-------------------------+-------------------------+---\n"
686 #: ../align/virt-alignment-scan.pod:222
688 "In this example, each time a 4K guest block is read, two blocks on the host "
689 "must be accessed (so twice as much I/O is done). When a 4K guest block is "
690 "written, two host blocks must first be read, the old and new data combined, "
691 "and the two blocks written back (4x I/O)."
695 #: ../align/virt-alignment-scan.pod:227
696 msgid "LINUX HOST BLOCK AND I/O SIZE"
700 #: ../align/virt-alignment-scan.pod:229
702 "New versions of the Linux kernel expose the physical and logical block size,"
703 " and minimum and recommended I/O size."
707 #: ../align/virt-alignment-scan.pod:232
708 msgid "For a typical hard drive with 512 byte sectors:"
712 #: ../align/virt-alignment-scan.pod:234
715 " $ cat /sys/block/sda/queue/physical_block_size\n"
717 " $ cat /sys/block/sda/queue/logical_block_size\n"
719 " $ cat /sys/block/sda/queue/minimum_io_size\n"
721 " $ cat /sys/block/sda/queue/optimal_io_size\n"
727 #: ../align/virt-alignment-scan.pod:243
728 msgid "For a NetApp LUN:"
732 #: ../align/virt-alignment-scan.pod:245
735 " $ cat /sys/block/sdc/queue/logical_block_size\n"
737 " $ cat /sys/block/sdc/queue/physical_block_size\n"
739 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
741 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
747 #: ../align/virt-alignment-scan.pod:254
749 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
750 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
754 #: ../align/virt-alignment-scan.pod:258
756 "For detailed information about what these numbers mean, see "
757 "L<http://docs.redhat.com/docs/en-"
758 "US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newstorage-"
763 #: ../align/virt-alignment-scan.pod:261
765 "[Thanks to Mike Snitzer for providing NetApp data and additional "
770 #: ../align/virt-alignment-scan.pod:264
771 msgid "1 MB PARTITION ALIGNMENT"
775 #: ../align/virt-alignment-scan.pod:266
777 "Microsoft picked 1 MB as the default alignment for all partitions starting "
778 "with Windows 2008 Server, and Linux has followed this."
782 #: ../align/virt-alignment-scan.pod:269
784 "Assuming 512 byte sectors in the guest, you will now see the first partition"
785 " starting at sector 2048, and subsequent partitions (if any) will start at "
786 "a multiple of 2048 sectors."
790 #: ../align/virt-alignment-scan.pod:273
792 "1 MB alignment is compatible with all current alignment requirements (4K, "
793 "64K) and provides room for future growth in physical block sizes."
797 #: ../align/virt-alignment-scan.pod:276
798 msgid "SETTING ALIGNMENT"
802 #: ../align/virt-alignment-scan.pod:278
804 "L<virt-resize(1)> can change the alignment of the partitions of some guests."
805 " Currently it can fully align all the partitions of all Windows guests, and"
806 " it will fix the bootloader where necessary. For Linux guests, it can align"
807 " the second and subsequent partitions, so the majority of OS accesses except"
808 " at boot will be aligned."
812 #: ../align/virt-alignment-scan.pod:284
814 "Another way to correct partition alignment problems is to reinstall your "
815 "guest operating systems. If you install operating systems from templates, "
816 "ensure these have correct partition alignment too."
820 #: ../align/virt-alignment-scan.pod:288
822 "For older versions of Windows, the following NetApp document contains useful"
823 " information: L<http://media.netapp.com/documents/tr-3747.pdf>"
827 #: ../align/virt-alignment-scan.pod:291
829 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
830 "an explicit C<%pre> section that creates aligned partitions using "
831 "L<parted(8)>. Do not use the Kickstart C<part> command. The NetApp "
832 "document above contains an example."
836 #: ../align/virt-alignment-scan.pod:296 ../cat/virt-cat.pod:231
837 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
838 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
839 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
840 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:676
841 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
842 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
843 #: ../tools/virt-win-reg.pl:744
844 msgid "SHELL QUOTING"
848 #: ../align/virt-alignment-scan.pod:298 ../cat/virt-cat.pod:233
849 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
850 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
851 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
852 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:678
853 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
854 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
855 #: ../tools/virt-win-reg.pl:752
857 "Libvirt guest names can contain arbitrary characters, some of which have "
858 "meaning to the shell such as C<#> and space. You may need to quote or "
859 "escape these characters on the command line. See the shell manual page "
860 "L<sh(1)> for details."
864 #: ../align/virt-alignment-scan.pod:303 ../cat/virt-cat.pod:238
865 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
866 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
867 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
868 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375
869 #: ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:227
870 #: ../test-tool/libguestfs-test-tool.pod:90
875 #: ../align/virt-alignment-scan.pod:305
876 msgid "This program returns:"
880 #: ../align/virt-alignment-scan.pod:309 ../align/virt-alignment-scan.pod:315
881 #: ../align/virt-alignment-scan.pod:321 ../align/virt-alignment-scan.pod:328
882 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
883 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
884 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
885 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
886 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
887 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
888 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
889 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
890 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
891 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
892 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
893 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
894 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
895 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
896 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
897 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
898 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
899 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449
900 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463
901 #: ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266
902 #: ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274
903 #: ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286
904 #: ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300
905 #: ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308
906 #: ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402
907 #: ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412
908 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458
909 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719
910 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733
911 #: ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142
912 #: ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157
913 #: ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445
914 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
915 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
916 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:359
917 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372
918 #: ../resize/virt-resize.pod:378 ../sparsify/virt-sparsify.pod:32
919 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
920 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
921 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
922 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
923 #: ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:649
924 #: ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663
925 #: ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2075
926 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083
927 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2095
928 #: ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2109
929 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:2117
930 #: ../src/guestfs-actions.pod:2255 ../src/guestfs-actions.pod:2259
931 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2269
932 #: ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:2334
933 #: ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2754
934 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2768
935 #: ../src/guestfs-actions.pod:3313 ../src/guestfs-actions.pod:3319
936 #: ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3334
937 #: ../src/guestfs-actions.pod:3341 ../src/guestfs.pod:403
938 #: ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417
939 #: ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431
940 #: ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113
941 #: ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130
942 #: ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179
943 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191
944 #: ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689
945 #: ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800
946 #: ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819
947 #: ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119
948 #: ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651
949 #: ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3062
950 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075
951 #: ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098
952 #: ../src/guestfs.pod:3329 ../src/guestfs.pod:3333 ../src/guestfs.pod:3337
953 #: ../src/guestfs.pod:3341 ../tools/virt-win-reg.pl:197
954 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
955 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
956 #: ../tools/virt-win-reg.pl:733
961 #: ../align/virt-alignment-scan.pod:311
966 #: ../align/virt-alignment-scan.pod:313
968 "successful exit, all partitions are aligned E<ge> 64K for best performance"
972 #: ../align/virt-alignment-scan.pod:317
977 #: ../align/virt-alignment-scan.pod:319
978 msgid "an error scanning the disk image or guest"
982 #: ../align/virt-alignment-scan.pod:323
987 #: ../align/virt-alignment-scan.pod:325
989 "successful exit, some partitions have alignment E<lt> 64K which can result "
990 "in poor performance on high end network storage"
994 #: ../align/virt-alignment-scan.pod:330
999 #: ../align/virt-alignment-scan.pod:332
1001 "successful exit, some partitions have alignment E<lt> 4K which can result in"
1002 " poor performance on most hypervisors"
1006 #: ../align/virt-alignment-scan.pod:337 ../cat/virt-cat.pod:243
1007 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1008 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1009 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1010 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1011 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1012 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1013 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1014 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1015 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1016 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1017 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1018 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3270
1019 #: ../test-tool/libguestfs-test-tool.pod:100
1020 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1021 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1022 #: ../tools/virt-win-reg.pl:757
1024 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1027 #: ../align/virt-alignment-scan.pod:339
1029 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, L"
1030 "<virt-resize(1)>, L<http://libguestfs.org/>."
1034 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:252
1035 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1036 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1037 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1038 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:264
1039 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1040 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1041 #: ../tools/virt-win-reg.pl:783
1046 #: ../align/virt-alignment-scan.pod:348 ../cat/virt-cat.pod:254
1047 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1048 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1049 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1050 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:713
1051 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1052 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1053 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1054 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1055 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1058 #: ../align/virt-alignment-scan.pod:350 ../cat/virt-cat.pod:256
1059 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1060 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1061 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1062 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1063 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1064 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1065 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1066 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1067 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1068 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1069 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1070 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3352
1071 #: ../test-tool/libguestfs-test-tool.pod:110
1072 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1073 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1074 #: ../tools/virt-win-reg.pl:787
1076 msgstr "АВТОРСЬКІ ПРАВА"
1079 #: ../align/virt-alignment-scan.pod:352 ../clone/virt-sysprep.pod:507
1080 #: ../sparsify/virt-sparsify.pod:270
1081 msgid "Copyright (C) 2011 Red Hat Inc."
1085 #: ../align/virt-alignment-scan.pod:354 ../cat/virt-cat.pod:260
1086 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1087 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1088 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1089 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1090 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1091 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1092 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:719
1093 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1094 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1095 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1096 #: ../tools/virt-win-reg.pl:791
1098 "This program is free software; you can redistribute it and/or modify it "
1099 "under the terms of the GNU General Public License as published by the Free "
1100 "Software Foundation; either version 2 of the License, or (at your option) "
1101 "any later version."
1105 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:265
1106 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1107 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1108 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1109 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1110 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1111 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1112 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:724
1113 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1114 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1115 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1116 #: ../tools/virt-win-reg.pl:796
1118 "This program is distributed in the hope that it will be useful, but WITHOUT "
1119 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1120 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
1123 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1124 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1125 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1126 "дізнатися з GNU General Public License."
1129 #: ../align/virt-alignment-scan.pod:364 ../cat/virt-cat.pod:270
1130 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1131 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1132 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1133 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1134 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1135 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1136 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:729
1137 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1138 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1139 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1140 #: ../tools/virt-win-reg.pl:801
1142 "You should have received a copy of the GNU General Public License along with"
1143 " this program; if not, write to the Free Software Foundation, Inc., 675 Mass"
1144 " Ave, Cambridge, MA 02139, USA."
1146 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1147 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1148 "Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
1151 #: ../cat/virt-cat.pod:5
1152 msgid "virt-cat - Display files in a virtual machine"
1153 msgstr "virt-cat — показ файлів у віртуальній машині"
1156 #: ../cat/virt-cat.pod:9
1159 " virt-cat [--options] -d domname file [file ...]\n"
1162 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1166 #: ../cat/virt-cat.pod:11
1169 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1172 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1176 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1177 #: ../inspector/virt-inspector.pod:13
1179 msgstr "Застарілий стиль:"
1182 #: ../cat/virt-cat.pod:15
1185 " virt-cat domname file\n"
1188 " virt-cat назва_домену файл\n"
1192 #: ../cat/virt-cat.pod:17
1195 " virt-cat disk.img file\n"
1198 " virt-cat диск.img файл\n"
1202 #: ../cat/virt-cat.pod:21
1204 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1205 "C<file> exists in the named virtual machine (or disk image)."
1207 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1208 "зберігається у вказаній віртуальній машині (або образі диска)."
1211 #: ../cat/virt-cat.pod:24
1213 "Multiple filenames can be given, in which case they are concatenated "
1214 "together. Each filename must be a full path, starting at the root directory"
1215 " (starting with '/')."
1217 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1218 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1219 "кореневого каталогу (тобто назва має починатися з «/»)."
1222 #: ../cat/virt-cat.pod:28
1224 "C<virt-cat> can be used to quickly view a file. To edit a file, use C<virt-"
1225 "edit>. For more complex cases you should look at the L<guestfish(1)> tool "
1226 "(see L</USING GUESTFISH> below)."
1228 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1229 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1230 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1234 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1235 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1236 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1237 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1238 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1239 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1240 #: ../tools/virt-tar.pl:50
1245 #: ../cat/virt-cat.pod:34
1247 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1249 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1252 #: ../cat/virt-cat.pod:37
1255 " virt-cat -d mydomain /etc/fstab\n"
1258 " virt-cat -d mydomain /etc/fstab\n"
1262 #: ../cat/virt-cat.pod:39
1263 msgid "List syslog messages from a VM disk image file:"
1265 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1268 #: ../cat/virt-cat.pod:41
1271 " virt-cat -a disk.img /var/log/messages | tail\n"
1274 " virt-cat -a disk.img /var/log/messages | tail\n"
1278 #: ../cat/virt-cat.pod:43
1279 msgid "Find out what DHCP IP address a VM acquired:"
1280 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1283 #: ../cat/virt-cat.pod:45
1286 " virt-cat -d mydomain /var/log/messages | \\\n"
1287 " grep 'dhclient: bound to' | tail\n"
1290 " virt-cat -d mydomain /var/log/messages | \\\n"
1291 " grep 'dhclient: bound to' | tail\n"
1295 #: ../cat/virt-cat.pod:48
1296 msgid "Find out what packages were recently installed:"
1297 msgstr "Пошук нещодавно встановлених пакунків:"
1300 #: ../cat/virt-cat.pod:50
1303 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1306 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1310 #: ../cat/virt-cat.pod:52
1311 msgid "Find out who is logged on inside a virtual machine:"
1312 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1315 #: ../cat/virt-cat.pod:54
1318 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1322 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1327 #: ../cat/virt-cat.pod:57
1328 msgid "or who was logged on:"
1329 msgstr "або тих, які у ній працювали:"
1332 #: ../cat/virt-cat.pod:59
1335 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1336 " last -f /tmp/wtmp\n"
1339 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1340 " last -f /tmp/wtmp\n"
1344 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1345 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1346 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1348 "Add I<file> which should be a disk image from a virtual machine. If the "
1349 "virtual machine has multiple block devices, you must supply all of them with"
1350 " separate I<-a> options."
1354 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1355 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1356 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1357 msgid "B<--echo-keys>"
1358 msgstr "B<--echo-keys>"
1361 #: ../cat/virt-cat.pod:100
1363 "When prompting for keys and passphrases, virt-cat normally turns echoing off"
1364 " so you cannot see what you are typing. If you are not worried about "
1365 "Tempest attacks and there is no one else in the room you can specify this "
1366 "flag to see what you are typing."
1370 #: ../cat/virt-cat.pod:116
1373 " virt-cat --format=raw -a disk.img file\n"
1376 " virt-cat --format=raw -a disk.img file\n"
1380 #: ../cat/virt-cat.pod:120
1383 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1386 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1390 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1391 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1392 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1393 msgid "B<--keys-from-stdin>"
1394 msgstr "B<--keys-from-stdin>"
1397 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1398 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1399 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1401 "Read key or passphrase parameters from stdin. The default is to try to read"
1402 " passphrases from the user by opening C</dev/tty>."
1406 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1407 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1408 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1412 #: ../cat/virt-cat.pod:154
1413 msgid "Previous versions of virt-cat allowed you to write either:"
1417 #: ../cat/virt-cat.pod:156
1420 " virt-cat disk.img [disk.img ...] file\n"
1425 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1426 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1431 #: ../cat/virt-cat.pod:160
1434 " virt-cat guestname file\n"
1439 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1440 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1442 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1443 "the confusing case where a disk image might have the same name as a guest."
1447 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1448 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1449 msgid "For compatibility the old style is still supported."
1453 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1454 msgid "WINDOWS PATHS"
1455 msgstr "ШЛЯХИ У WINDOWS"
1458 #: ../cat/virt-cat.pod:170
1460 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1461 "paths (eg. C<E:\\foo\\bar.txt>)."
1465 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1466 msgid "If and only if the guest is running Windows then:"
1470 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1472 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1473 "to the correct filesystem."
1477 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1479 "Any backslash (C<\\>) characters in the path are replaced with forward "
1480 "slashes so that libguestfs can process it."
1484 #: ../cat/virt-cat.pod:189
1486 "The path is resolved case insensitively to locate the file that should be "
1491 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1492 msgid "There are some known shortcomings:"
1496 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1497 msgid "Some NTFS symbolic links may not be followed correctly."
1501 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1502 msgid "NTFS junction points that cross filesystems are not followed."
1506 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1507 msgid "USING GUESTFISH"
1508 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1511 #: ../cat/virt-cat.pod:210
1513 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1514 "C<virt-cat> doesn't work."
1518 #: ../cat/virt-cat.pod:213
1519 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1523 #: ../cat/virt-cat.pod:215
1526 " guestfish --ro -i -d domname download file -\n"
1531 #: ../cat/virt-cat.pod:217
1533 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1534 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
1538 #: ../cat/virt-cat.pod:221
1540 "The command above uses libguestfs's guest inspection feature and so does not"
1541 " work on guests that libguestfs cannot inspect, or on things like arbitrary "
1542 "disk images that don't contain guests. To display a file from a disk image "
1547 #: ../cat/virt-cat.pod:226
1550 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1555 #: ../cat/virt-cat.pod:228
1557 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1558 "the disk image, and C<file> is the full path to the file."
1562 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1563 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1564 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1565 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
1567 "This program returns 0 if successful, or non-zero if there was an error."
1571 #: ../cat/virt-cat.pod:245
1573 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L"
1574 "<virt-tar-out(1)>, L<http://libguestfs.org/>."
1576 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L"
1577 "<virt-tar-out(1)>, L<http://libguestfs.org/>."
1580 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:405
1581 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1582 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1583 msgstr "©Red Hat Inc., 2010–2011"
1586 #: ../cat/virt-filesystems.pod:5
1588 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1589 "virtual machine or disk image"
1593 #: ../cat/virt-filesystems.pod:9
1596 " virt-filesystems [--options] -d domname\n"
1599 " virt-filesystems [--параметри] -d назва_домену\n"
1603 #: ../cat/virt-filesystems.pod:11
1606 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1611 #: ../cat/virt-filesystems.pod:15
1613 "This tool allows you to discover filesystems, partitions, logical volumes, "
1614 "and their sizes in a disk image or virtual machine. It is a replacement for"
1615 " L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1619 #: ../cat/virt-filesystems.pod:20
1621 "One use for this tool is from shell scripts to iterate over all filesystems "
1622 "from a disk image:"
1626 #: ../cat/virt-filesystems.pod:23
1629 " for fs in $(virt-filesystems -a disk.img); do\n"
1634 " for fs in $(virt-filesystems -a disk.img); do\n"
1640 #: ../cat/virt-filesystems.pod:27
1642 "Another use is to list partitions before using another tool to modify those "
1643 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
1644 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1648 #: ../cat/virt-filesystems.pod:32
1650 "Various command line options control what this program displays. You need "
1651 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1652 "guest respectively. If you just specify that then the program shows "
1653 "filesystems found, one per line, like this:"
1657 #: ../cat/virt-filesystems.pod:37
1660 " $ virt-filesystems -a disk.img\n"
1662 " /dev/vg_guest/lv_root\n"
1665 " $ virt-filesystems -a disk.img\n"
1667 " /dev/vg_guest/lv_root\n"
1671 #: ../cat/virt-filesystems.pod:41
1673 "If you add I<-l> or I<--long> then the output includes extra information:"
1677 #: ../cat/virt-filesystems.pod:44
1680 " $ virt-filesystems -a disk.img -l\n"
1681 " Name Type VFS Label Size\n"
1682 " /dev/sda1 filesystem ext4 boot 524288000\n"
1683 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
1688 #: ../cat/virt-filesystems.pod:49
1690 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1695 #: ../cat/virt-filesystems.pod:52
1698 " $ virt-filesystems -a disk.img --extra\n"
1700 " /dev/vg_guest/lv_root\n"
1701 " /dev/vg_guest/lv_swap\n"
1702 " /dev/vg_guest/lv_data\n"
1705 " $ virt-filesystems -a disk.img --extra\n"
1707 " /dev/vg_guest/lv_root\n"
1708 " /dev/vg_guest/lv_swap\n"
1709 " /dev/vg_guest/lv_data\n"
1713 #: ../cat/virt-filesystems.pod:58
1715 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1719 #: ../cat/virt-filesystems.pod:60
1722 " $ virt-filesystems -a disk.img --partitions\n"
1727 " $ virt-filesystems -a disk.img --partitions\n"
1733 #: ../cat/virt-filesystems.pod:64
1735 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I"
1736 "<--physical-volumes>, I<--block-devices> to list those items."
1740 #: ../cat/virt-filesystems.pod:67
1742 "You can use these options in combination as well (if you want a combination "
1743 "including filesystems, you have to add I<--filesystems>). Notice that some "
1744 "items fall into several categories (eg. C</dev/sda1> might be both a "
1745 "partition and a filesystem). These items are listed several times. To get "
1746 "a list which includes absolutely everything that virt-filesystems knows "
1747 "about, use the I<--all> option."
1751 #: ../cat/virt-filesystems.pod:74
1753 "UUIDs (because they are quite long) are not shown by default. Add the "
1754 "I<--uuid> option to display device and filesystem UUIDs in the long output."
1758 #: ../cat/virt-filesystems.pod:78
1760 "I<--all --long --uuid> is a useful combination to display all possible "
1761 "information about everything."
1765 #: ../cat/virt-filesystems.pod:81
1768 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1769 " Name Type VFS Label Size Parent UUID\n"
1770 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1771 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1772 " /dev/sda1 partition - - 100M /dev/sda -\n"
1773 " /dev/sda2 partition - - 20G /dev/sda -\n"
1774 " /dev/sda device - - 20G - -\n"
1779 #: ../cat/virt-filesystems.pod:89
1781 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1785 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1790 #: ../cat/virt-filesystems.pod:112
1792 "Display everything. This is currently the same as specifying these options:"
1793 " I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I"
1794 "<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may "
1795 "be added to this list in future)."
1799 #: ../cat/virt-filesystems.pod:117
1800 msgid "See also I<--long>."
1801 msgstr "Див. також I<--long>."
1804 #: ../cat/virt-filesystems.pod:119
1805 msgid "B<--blkdevs>"
1806 msgstr "B<--blkdevs>"
1809 #: ../cat/virt-filesystems.pod:121
1810 msgid "B<--block-devices>"
1811 msgstr "B<--block-devices>"
1814 #: ../cat/virt-filesystems.pod:123
1815 msgid "Display block devices."
1816 msgstr "Показати список блокових пристроїв."
1819 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1824 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1826 "Write out the results in CSV format (comma-separated values). This format "
1827 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1828 "ABOUT CSV FORMAT> below."
1832 #: ../cat/virt-filesystems.pod:150
1834 "When prompting for keys and passphrases, virt-filesystems normally turns "
1835 "echoing off so you cannot see what you are typing. If you are not worried "
1836 "about Tempest attacks and there is no one else in the room you can specify "
1837 "this flag to see what you are typing."
1841 #: ../cat/virt-filesystems.pod:155
1846 #: ../cat/virt-filesystems.pod:157
1848 "This causes filesystems that are not ordinary, mountable filesystems to be "
1849 "displayed. This category includes swapspace, and filesystems that are empty"
1850 " or contain unknown data."
1854 #: ../cat/virt-filesystems.pod:161
1855 msgid "This option implies I<--filesystems>."
1859 #: ../cat/virt-filesystems.pod:163
1860 msgid "B<--filesystems>"
1861 msgstr "B<--filesystems>"
1864 #: ../cat/virt-filesystems.pod:165
1866 "Display mountable filesystems. If no display option was selected then this "
1867 "option is implied."
1871 #: ../cat/virt-filesystems.pod:168
1872 msgid "With I<--extra>, non-mountable filesystems are shown too."
1876 #: ../cat/virt-filesystems.pod:181
1879 " virt-filesystems --format=raw -a disk.img\n"
1882 " virt-filesystems --format=raw -a диск.img\n"
1886 #: ../cat/virt-filesystems.pod:185
1889 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1894 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1895 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1896 #: ../tools/virt-list-partitions.pl:109
1901 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1902 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1903 msgid "B<--human-readable>"
1904 msgstr "B<--human-readable>"
1907 #: ../cat/virt-filesystems.pod:198
1908 msgid "In I<--long> mode, display sizes in human-readable format."
1912 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1913 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1918 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1919 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1924 #: ../cat/virt-filesystems.pod:209
1925 msgid "Display extra columns of data (\"long format\")."
1929 #: ../cat/virt-filesystems.pod:211
1930 msgid "A title row is added unless you also specify I<--no-title>."
1934 #: ../cat/virt-filesystems.pod:213
1936 "The extra columns displayed depend on what output you select, and the "
1937 "ordering of columns may change in future versions. Use the title row, "
1938 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
1943 #: ../cat/virt-filesystems.pod:218
1945 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1946 "default is to show raw numbers of I<bytes>."
1950 #: ../cat/virt-filesystems.pod:221
1951 msgid "Use I<--uuid> to display UUIDs too."
1955 #: ../cat/virt-filesystems.pod:223
1960 #: ../cat/virt-filesystems.pod:225
1961 msgid "B<--logvols>"
1962 msgstr "B<--logvols>"
1965 #: ../cat/virt-filesystems.pod:227
1966 msgid "B<--logical-volumes>"
1967 msgstr "B<--logical-volumes>"
1970 #: ../cat/virt-filesystems.pod:229
1972 "Display LVM logical volumes. In this mode, these are displayed irrespective"
1973 " of whether the LVs contain filesystems."
1977 #: ../cat/virt-filesystems.pod:232
1978 msgid "B<--no-title>"
1979 msgstr "B<--no-title>"
1982 #: ../cat/virt-filesystems.pod:234
1983 msgid "In I<--long> mode, don't add a title row."
1987 #: ../cat/virt-filesystems.pod:236
1989 "Note that the order of the columns is not fixed, and may change in future "
1990 "versions of virt-filesystems, so using this option may give you unexpected "
1995 #: ../cat/virt-filesystems.pod:240
2000 #: ../cat/virt-filesystems.pod:242
2001 msgid "B<--partitions>"
2002 msgstr "B<--partitions>"
2005 #: ../cat/virt-filesystems.pod:244
2007 "Display partitions. In this mode, these are displayed irrespective of "
2008 "whether the partitions contain filesystems."
2012 #: ../cat/virt-filesystems.pod:247
2017 #: ../cat/virt-filesystems.pod:249
2018 msgid "B<--physvols>"
2019 msgstr "B<--physvols>"
2022 #: ../cat/virt-filesystems.pod:251
2023 msgid "B<--physical-volumes>"
2024 msgstr "B<--physical-volumes>"
2027 #: ../cat/virt-filesystems.pod:253
2028 msgid "Display LVM physical volumes."
2032 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
2037 #: ../cat/virt-filesystems.pod:257
2042 #: ../cat/virt-filesystems.pod:259
2043 msgid "In I<--long> mode, display UUIDs as well."
2047 #: ../cat/virt-filesystems.pod:273
2052 #: ../cat/virt-filesystems.pod:275
2053 msgid "B<--volgroups>"
2054 msgstr "B<--volgroups>"
2057 #: ../cat/virt-filesystems.pod:277
2058 msgid "B<--volume-groups>"
2059 msgstr "B<--volume-groups>"
2062 #: ../cat/virt-filesystems.pod:279
2063 msgid "Display LVM volume groups."
2067 #: ../cat/virt-filesystems.pod:287
2072 #: ../cat/virt-filesystems.pod:289
2074 "Note that columns in the output are subject to reordering and change in "
2075 "future versions of this tool."
2079 #: ../cat/virt-filesystems.pod:294
2084 #: ../cat/virt-filesystems.pod:296
2085 msgid "The filesystem, partition, block device or LVM name."
2089 #: ../cat/virt-filesystems.pod:298
2091 "For device and partition names these are displayed as canonical libguestfs "
2092 "names, so that for example C</dev/sda2> is the second partition on the first"
2097 #: ../cat/virt-filesystems.pod:302
2099 "If the I<--long> option is B<not> specified, then only the name column is "
2100 "shown in the output."
2104 #: ../cat/virt-filesystems.pod:305
2109 #: ../cat/virt-filesystems.pod:307
2110 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2114 #: ../cat/virt-filesystems.pod:309
2119 #: ../cat/virt-filesystems.pod:311
2121 "If there is a filesystem, then this column displays the filesystem type if "
2122 "one could be detected, eg. C<ext4>."
2126 #: ../cat/virt-filesystems.pod:314
2131 #: ../cat/virt-filesystems.pod:316
2133 "If the object has a label (used for identifying and mounting filesystems) "
2134 "then this column contains the label."
2138 #: ../cat/virt-filesystems.pod:319
2143 #: ../cat/virt-filesystems.pod:321
2145 "The partition type byte, displayed as a two digit hexadecimal number. A "
2146 "comprehensive list of partition types can be found here: "
2147 "L<http://www.win.tue.nl/~aeb/partitions/partition_types-1.html>"
2151 #: ../cat/virt-filesystems.pod:325
2152 msgid "This is only applicable for DOS (MBR) partitions."
2156 #: ../cat/virt-filesystems.pod:327
2161 #: ../cat/virt-filesystems.pod:329
2163 "The size of the object in bytes. If the I<--human> option is used then the "
2164 "size is displayed in a human-readable form."
2168 #: ../cat/virt-filesystems.pod:332
2173 #: ../cat/virt-filesystems.pod:334
2175 "The parent column records the parent relationship between objects. For "
2176 "example, if the object is a partition, then this column contains the name of"
2177 " the containing device. If the object is a logical volume, then this column"
2178 " is the name of the volume group."
2182 #: ../cat/virt-filesystems.pod:339
2187 #: ../cat/virt-filesystems.pod:341
2189 "If the object has a UUID (used for identifying and mounting filesystems and "
2190 "block devices) then this column contains the UUID as a string."
2194 #: ../cat/virt-filesystems.pod:345
2195 msgid "The UUID is only displayed if the I<--uuid> option is given."
2199 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2200 #: ../df/virt-df.pod:191
2201 msgid "NOTE ABOUT CSV FORMAT"
2205 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2206 #: ../df/virt-df.pod:193
2208 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
2209 "should be easy to parse, but it is definitely not easy to parse."
2213 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2214 #: ../df/virt-df.pod:196
2216 "Myth: Just split fields at commas. Reality: This does I<not> work reliably."
2217 " This example has two columns:"
2221 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2222 #: ../df/virt-df.pod:199
2225 " \"foo,bar\",baz\n"
2230 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2231 #: ../df/virt-df.pod:201
2233 "Myth: Read the file one line at a time. Reality: This does I<not> work "
2234 "reliably. This example has one row:"
2238 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2239 #: ../df/virt-df.pod:204
2248 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2249 #: ../df/virt-df.pod:207
2251 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2252 "packaged in major Linux distributions)."
2256 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2257 #: ../df/virt-df.pod:210
2259 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl"
2260 " or Python's built-in csv library)."
2264 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2265 #: ../df/virt-df.pod:213
2266 msgid "Most spreadsheets and databases can import CSV directly."
2270 #: ../cat/virt-filesystems.pod:387
2272 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2273 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
2274 "L<http://libguestfs.org/>."
2276 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2277 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
2278 "L<http://libguestfs.org/>."
2281 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2282 msgid "Copyright (C) 2010 Red Hat Inc."
2283 msgstr "©Red Hat Inc., 2010"
2286 #: ../cat/virt-ls.pod:5
2287 msgid "virt-ls - List files in a virtual machine"
2291 #: ../cat/virt-ls.pod:9
2294 " virt-ls [--options] -d domname directory [directory ...]\n"
2299 #: ../cat/virt-ls.pod:11
2302 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2307 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2309 msgstr "Старий стиль:"
2312 #: ../cat/virt-ls.pod:15
2315 " virt-ls [--options] domname directory\n"
2320 #: ../cat/virt-ls.pod:17
2323 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2328 #: ../cat/virt-ls.pod:21
2330 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2331 "more from a virtual machine or disk image."
2335 #: ../cat/virt-ls.pod:24
2337 "Multiple directory names can be given, in which case the output from each is"
2342 #: ../cat/virt-ls.pod:27
2344 "To list directories from a libvirt guest use the I<-d> option to specify the"
2345 " name of the guest. For a disk image, use the I<-a> option."
2349 #: ../cat/virt-ls.pod:31
2351 "C<virt-ls> can do many simple file listings. For more complicated cases you"
2352 " may need to use L<guestfish(1)>, or write a program directly to the "
2353 "L<guestfs(3)> API."
2357 #: ../cat/virt-ls.pod:37
2358 msgid "Get a list of all files and directories in a virtual machine:"
2362 #: ../cat/virt-ls.pod:39
2365 " virt-ls -R -d guest /\n"
2370 #: ../cat/virt-ls.pod:41
2371 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2375 #: ../cat/virt-ls.pod:43
2378 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2383 #: ../cat/virt-ls.pod:45
2384 msgid "List all public-writable directories in a Linux virtual machine:"
2388 #: ../cat/virt-ls.pod:47
2391 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2396 #: ../cat/virt-ls.pod:49
2397 msgid "List all Unix domain sockets in a Linux virtual machine:"
2401 #: ../cat/virt-ls.pod:51
2404 " virt-ls -lR -d guest / | grep '^s'\n"
2409 #: ../cat/virt-ls.pod:53
2410 msgid "List all regular files with filenames ending in '.png':"
2414 #: ../cat/virt-ls.pod:55
2417 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2422 #: ../cat/virt-ls.pod:57
2423 msgid "To display files larger than 10MB in home directories:"
2427 #: ../cat/virt-ls.pod:59
2430 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2435 #: ../cat/virt-ls.pod:61
2436 msgid "Find everything modified in the last 7 days:"
2440 #: ../cat/virt-ls.pod:63
2443 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2448 #: ../cat/virt-ls.pod:65
2449 msgid "Find regular files modified in the last 24 hours:"
2453 #: ../cat/virt-ls.pod:67
2456 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2461 #: ../cat/virt-ls.pod:69
2462 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2466 #: ../cat/virt-ls.pod:71
2468 "Find the differences between files in a guest and an earlier snapshot of the"
2473 #: ../cat/virt-ls.pod:74
2476 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2477 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2478 " diff -u old new | less\n"
2483 #: ../cat/virt-ls.pod:78
2485 "The commands above won't find files where the content has changed but the "
2486 "metadata (eg. file size and modification date) is the same. To do that, you"
2487 " need to add the I<--checksum> parameter to both C<virt-ls> commands. "
2488 "I<--checksum> can be quite slow since it has to read and compute a checksum "
2489 "of every regular file in the virtual machine."
2493 #: ../cat/virt-ls.pod:84
2494 msgid "OUTPUT MODES"
2495 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2498 #: ../cat/virt-ls.pod:86
2500 "C<virt-ls> has four output modes, controlled by different combinations of "
2501 "the I<-l> and I<-R> options."
2505 #: ../cat/virt-ls.pod:89
2506 msgid "SIMPLE LISTING"
2507 msgstr "ПРОСТИЙ СПИСОК"
2510 #: ../cat/virt-ls.pod:91
2511 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2515 #: ../cat/virt-ls.pod:93
2518 " $ virt-ls -d guest /\n"
2524 " $ virt-ls -d guest /\n"
2531 #: ../cat/virt-ls.pod:98
2532 msgid "LONG LISTING"
2533 msgstr "ДОВГИЙ СПИСОК"
2536 #: ../cat/virt-ls.pod:100
2538 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2539 "(more specifically, like the C<guestfs_ll> function)."
2543 #: ../cat/virt-ls.pod:103
2546 " $ virt-ls -l -d guest /\n"
2548 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2549 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2553 " $ virt-ls -l -d guest /\n"
2555 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2556 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2561 #: ../cat/virt-ls.pod:109
2563 "Note that while this is useful for displaying a directory, do not try "
2564 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
2569 #: ../cat/virt-ls.pod:113
2570 msgid "RECURSIVE LISTING"
2571 msgstr "РЕКУРСИВНИЙ СПИСОК"
2574 #: ../cat/virt-ls.pod:115
2576 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2577 "and directories recursively:"
2581 #: ../cat/virt-ls.pod:118
2584 " $ virt-ls -R -d guest /tmp\n"
2590 " $ virt-ls -R -d guest /tmp\n"
2597 #: ../cat/virt-ls.pod:123
2599 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2600 "converts C<\\0> characters to C<\\n>."
2604 #: ../cat/virt-ls.pod:126
2605 msgid "RECURSIVE LONG LISTING"
2606 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2609 #: ../cat/virt-ls.pod:128
2611 "Using I<-lR> options together changes the output to display directories "
2612 "recursively, with file stats, and optionally other features such as "
2613 "checksums and extended attributes."
2617 #: ../cat/virt-ls.pod:132
2619 "Most of the interesting features of C<virt-ls> are only available when using"
2624 #: ../cat/virt-ls.pod:135
2626 "The fields are normally space-separated. Filenames are B<not> quoted, so "
2627 "you cannot use the output in another program (because filenames can contain "
2628 "spaces and other unsafe characters). If the guest was untrusted and someone"
2629 " knew you were using C<virt-ls> to analyze the guest, they could play tricks"
2630 " on you by creating filenames with embedded newline characters. To "
2631 "B<safely> parse the output in another program, use the I<--csv> (Comma-"
2632 "Separated Values) option."
2636 #: ../cat/virt-ls.pod:143
2638 "Note that this output format is completely unrelated to the C<ls -lR> "
2643 #: ../cat/virt-ls.pod:146
2646 " $ virt-ls -lR -d guest /bin\n"
2647 " d 0555 4096 /bin\n"
2648 " - 0755 123 /bin/alsaunmute\n"
2649 " - 0755 28328 /bin/arch\n"
2650 " l 0777 4 /bin/awk -> gawk\n"
2651 " - 0755 27216 /bin/basename\n"
2652 " - 0755 943360 /bin/bash\n"
2656 " $ virt-ls -lR -d guest /bin\n"
2657 " d 0555 4096 /bin\n"
2658 " - 0755 123 /bin/alsaunmute\n"
2659 " - 0755 28328 /bin/arch\n"
2660 " l 0777 4 /bin/awk -> gawk\n"
2661 " - 0755 27216 /bin/basename\n"
2662 " - 0755 943360 /bin/bash\n"
2667 #: ../cat/virt-ls.pod:155
2668 msgid "These basic fields are always shown:"
2672 #: ../cat/virt-ls.pod:159
2677 #: ../cat/virt-ls.pod:161
2679 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2680 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2681 "link), C<s> (socket) or C<u> (unknown)."
2685 #: ../cat/virt-ls.pod:171
2687 msgstr "права доступу"
2690 #: ../cat/virt-ls.pod:173
2691 msgid "The Unix permissions, displayed as a 4 digit octal number."
2695 #: ../cat/virt-ls.pod:175
2700 #: ../cat/virt-ls.pod:177
2702 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2703 "readable> option is given, in which case this is shown as a human-readable "
2708 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4395
2713 #: ../cat/virt-ls.pod:183
2714 msgid "The full path of the file or directory."
2718 #: ../cat/virt-ls.pod:185
2723 #: ../cat/virt-ls.pod:187
2724 msgid "For symbolic links only, the link target."
2728 #: ../cat/virt-ls.pod:191
2730 "In I<-lR> mode, additional command line options enable the display of more "
2735 #: ../cat/virt-ls.pod:194
2737 "With the I<--uids> flag, these additional fields are displayed before the "
2742 #: ../cat/virt-ls.pod:199
2747 #: ../cat/virt-ls.pod:201
2752 #: ../cat/virt-ls.pod:203
2754 "The UID and GID of the owner of the file (displayed numerically). Note "
2755 "these only make sense in the context of a Unix-like guest."
2759 #: ../cat/virt-ls.pod:208
2760 msgid "With the I<--times> flag, these additional fields are displayed:"
2764 #: ../cat/virt-ls.pod:212
2769 #: ../cat/virt-ls.pod:214
2770 msgid "The time of last access."
2771 msgstr "Час останнього доступу."
2774 #: ../cat/virt-ls.pod:216
2779 #: ../cat/virt-ls.pod:218
2780 msgid "The time of last modification."
2781 msgstr "Час останнього внесення змін."
2784 #: ../cat/virt-ls.pod:220
2789 #: ../cat/virt-ls.pod:222
2790 msgid "The time of last status change."
2791 msgstr "Час останньої зміни стану."
2794 #: ../cat/virt-ls.pod:226
2796 "The time fields are displayed as string dates and times, unless one of the "
2797 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2801 #: ../cat/virt-ls.pod:229
2802 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2806 #: ../cat/virt-ls.pod:233
2811 #: ../cat/virt-ls.pod:235
2813 "The device containing the file (displayed as major:minor). This may not "
2814 "match devices as known to the guest."
2818 #: ../cat/virt-ls.pod:238
2823 #: ../cat/virt-ls.pod:240
2824 msgid "The inode number."
2828 #: ../cat/virt-ls.pod:242
2833 #: ../cat/virt-ls.pod:244
2834 msgid "The number of hard links."
2835 msgstr "Кількість жорстких посилань."
2838 #: ../cat/virt-ls.pod:246
2843 #: ../cat/virt-ls.pod:248
2845 "For block and char special files, the device (displayed as major:minor)."
2849 #: ../cat/virt-ls.pod:251
2854 #: ../cat/virt-ls.pod:253
2855 msgid "The number of 512 byte blocks allocated to the file."
2859 #: ../cat/virt-ls.pod:257
2861 "With the I<--checksum> flag, the checksum of the file contents is shown "
2862 "(only for regular files). Computing file checksums can take a considerable "
2867 #: ../cat/virt-ls.pod:280
2868 msgid "B<--checksum>"
2869 msgstr "B<--checksum>"
2872 #: ../cat/virt-ls.pod:282
2873 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2874 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2877 #: ../cat/virt-ls.pod:284
2879 "Display checksum over file contents for regular files. With no argument, "
2880 "this defaults to using I<md5>. Using an argument, you can select the "
2881 "checksum type to use."
2885 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2886 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2887 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2889 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2894 #: ../cat/virt-ls.pod:316
2896 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2897 "so you cannot see what you are typing. If you are not worried about Tempest"
2898 " attacks and there is no one else in the room you can specify this flag to "
2899 "see what you are typing."
2903 #: ../cat/virt-ls.pod:321
2904 msgid "B<--extra-stats>"
2905 msgstr "B<--extra-stats>"
2908 #: ../cat/virt-ls.pod:323
2909 msgid "Display extra stats."
2910 msgstr "Показати додаткові дані."
2913 #: ../cat/virt-ls.pod:339
2916 " virt-ls --format=raw -a disk.img /dir\n"
2921 #: ../cat/virt-ls.pod:343
2924 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2929 #: ../cat/virt-ls.pod:356
2930 msgid "Display file sizes in human-readable format."
2934 #: ../cat/virt-ls.pod:370
2939 #: ../cat/virt-ls.pod:372
2940 msgid "B<--recursive>"
2941 msgstr "B<--recursive>"
2944 #: ../cat/virt-ls.pod:374
2946 "Select the mode. With neither of these options, C<virt-ls> produces a "
2947 "simple, flat list of the files in the named directory. See L</SIMPLE "
2952 #: ../cat/virt-ls.pod:378
2954 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See "
2959 #: ../cat/virt-ls.pod:381
2961 "C<virt-ls -R> produces a recursive list of files starting at the named "
2962 "directory. See L</RECURSIVE LISTING>."
2966 #: ../cat/virt-ls.pod:384
2968 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2969 "parsed. See L</RECURSIVE LONG LISTING>."
2973 #: ../cat/virt-ls.pod:387
2978 #: ../cat/virt-ls.pod:389
2979 msgid "Display time fields."
2983 #: ../cat/virt-ls.pod:394
2984 msgid "B<--time-days>"
2985 msgstr "B<--time-days>"
2988 #: ../cat/virt-ls.pod:396
2989 msgid "Display time fields as days before now (negative if in the future)."
2993 #: ../cat/virt-ls.pod:398
2995 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2996 "of the file is between 0 and 86399 seconds."
3000 #: ../cat/virt-ls.pod:404
3001 msgid "B<--time-relative>"
3002 msgstr "B<--time-relative>"
3005 #: ../cat/virt-ls.pod:406
3006 msgid "Display time fields as seconds before now (negative if in the future)."
3010 #: ../cat/virt-ls.pod:411
3012 msgstr "B<--time-t>"
3015 #: ../cat/virt-ls.pod:413
3016 msgid "Display time fields as seconds since the Unix epoch."
3020 #: ../cat/virt-ls.pod:418
3025 #: ../cat/virt-ls.pod:420
3026 msgid "Display UID and GID fields."
3030 #: ../cat/virt-ls.pod:445
3031 msgid "Previous versions of virt-ls allowed you to write either:"
3035 #: ../cat/virt-ls.pod:447
3038 " virt-ls disk.img [disk.img ...] /dir\n"
3043 #: ../cat/virt-ls.pod:451
3046 " virt-ls guestname /dir\n"
3051 #: ../cat/virt-ls.pod:497
3053 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3054 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3055 "L<http://libguestfs.org/>."
3057 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3058 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3059 "L<http://libguestfs.org/>."
3062 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
3063 #: ../rescue/virt-rescue.pod:302
3064 msgid "Copyright (C) 2009-2011 Red Hat Inc."
3065 msgstr "©Red Hat Inc., 2009–2011"
3068 #: ../clone/virt-sysprep.pod:5
3070 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3074 #: ../clone/virt-sysprep.pod:9
3077 " virt-sysprep [--options] -d domname\n"
3082 #: ../clone/virt-sysprep.pod:11
3085 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3090 #: ../clone/virt-sysprep.pod:15
3092 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones"
3093 " can be made from it. Steps in this process include removing SSH host keys,"
3094 " removing persistent network MAC configuration, and removing user accounts."
3095 " Each step can be enabled or disabled as required."
3099 #: ../clone/virt-sysprep.pod:21
3101 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3102 "customization by the system administrator."
3106 #: ../clone/virt-sysprep.pod:24
3108 "Virt-sysprep modifies the guest or disk image I<in place>. The guest must "
3109 "be shut down. If you want to preserve the existing contents of the guest, "
3110 "you I<must copy or clone the disk first>. See L</COPYING AND CLONING> "
3115 #: ../clone/virt-sysprep.pod:29
3117 "You do I<not> need to run virt-sysprep as root. In fact we'd generally "
3118 "recommend that you don't. The time you might want to run it as root is when"
3119 " you need root in order to access the disk image, but even in this case it "
3120 "would be better to change the permissions on the disk image to be writable "
3121 "as the non-root user running virt-sysprep."
3125 #: ../clone/virt-sysprep.pod:35
3127 "\"Sysprep\" stands for \"system preparation\" tool. The name comes from the"
3128 " Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3129 "machines in preparation for cloning them. Having said that, virt-sysprep "
3130 "does I<not> currently work on Microsoft Windows guests. We plan to support "
3131 "Windows sysprepping in a future version, and we already have code to do it."
3135 #: ../clone/virt-sysprep.pod:76
3136 msgid "B<--enable=...>"
3140 #: ../clone/virt-sysprep.pod:78
3142 "Choose which sysprep operations to perform. Give a comma-separated list of "
3143 "operations, for example:"
3147 #: ../clone/virt-sysprep.pod:81
3150 " --enable=ssh-hostkeys,udev-persistent-net\n"
3155 #: ../clone/virt-sysprep.pod:83
3157 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3161 #: ../clone/virt-sysprep.pod:85
3163 "If the I<--enable> option is not given, then we default to trying all "
3164 "possible sysprep operations. But some sysprep operations are skipped for "
3169 #: ../clone/virt-sysprep.pod:89
3171 "Use I<--list-operations> to list operations supported by a particular "
3172 "version of virt-sysprep."
3176 #: ../clone/virt-sysprep.pod:92
3178 "See L</OPERATIONS> below for a list and an explanation of each operation."
3182 #: ../clone/virt-sysprep.pod:106
3185 " virt-sysprep --format=raw -a disk.img\n"
3190 #: ../clone/virt-sysprep.pod:110
3193 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3198 #: ../clone/virt-sysprep.pod:119
3199 msgid "B<--hostname> newhostname"
3203 #: ../clone/virt-sysprep.pod:121
3205 "Change the hostname. See the L</hostname> operation below. If not given, "
3206 "defaults to C<localhost.localdomain>."
3210 #: ../clone/virt-sysprep.pod:124
3211 msgid "B<--list-operations>"
3215 #: ../clone/virt-sysprep.pod:126
3216 msgid "List the operations supported by the virt-sysprep program."
3220 #: ../clone/virt-sysprep.pod:128
3221 msgid "B<--selinux-relabel>"
3225 #: ../clone/virt-sysprep.pod:130
3226 msgid "B<--no-selinux-relabel>"
3230 #: ../clone/virt-sysprep.pod:132
3232 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots. "
3233 "I<--no-selinux-relabel> disables relabelling."
3237 #: ../clone/virt-sysprep.pod:135
3239 "The default is to try to detect if SELinux relabelling is required. See "
3240 "L</SELINUX RELABELLING> below for more details."
3244 #: ../clone/virt-sysprep.pod:156
3249 #: ../clone/virt-sysprep.pod:158
3251 "If the I<--enable> option is I<not> given, then I<all sysprep operations are"
3252 " enabled>, although some are skipped depending on the type of guest."
3256 #: ../clone/virt-sysprep.pod:162
3258 "Operations can be individually enabled using the I<--enable> option. Use a "
3259 "comma-separated list, for example:"
3263 #: ../clone/virt-sysprep.pod:165
3266 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3271 #: ../clone/virt-sysprep.pod:167
3273 "To list the operations supported by the current version of virt-sysprep, use"
3274 " I<--list-operations>."
3278 #: ../clone/virt-sysprep.pod:170
3280 "Future versions of virt-sysprep may add more operations. If you are using "
3281 "virt-sysprep and want predictable behaviour, specify only the operations "
3282 "that you want to have enabled."
3286 #: ../clone/virt-sysprep.pod:174
3291 #: ../clone/virt-sysprep.pod:176
3292 msgid "Remove user at-jobs and cron-jobs."
3296 #: ../clone/virt-sysprep.pod:178
3297 msgid "dhcp-client-state"
3301 #: ../clone/virt-sysprep.pod:180
3302 msgid "Remove DHCP client leases."
3306 #: ../clone/virt-sysprep.pod:182
3307 msgid "dhcp-server-state"
3311 #: ../clone/virt-sysprep.pod:184
3312 msgid "Remove DHCP server leases."
3316 #: ../clone/virt-sysprep.pod:186
3321 #: ../clone/virt-sysprep.pod:188
3323 "Changes the hostname of the guest to the value given in the I<--hostname> "
3328 #: ../clone/virt-sysprep.pod:191
3330 "If the I<--hostname> parameter is not given, then the hostname is changed to"
3331 " C<localhost.localdomain>."
3335 #: ../clone/virt-sysprep.pod:194
3340 #: ../clone/virt-sysprep.pod:196
3341 msgid "Remove many log files."
3345 #: ../clone/virt-sysprep.pod:198
3350 #: ../clone/virt-sysprep.pod:200
3351 msgid "Remove email from the local mail spool directory."
3355 #: ../clone/virt-sysprep.pod:202
3360 #: ../clone/virt-sysprep.pod:204
3362 "Remove HWADDR (hard-coded MAC address) configuration. For Fedora and Red "
3363 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3367 #: ../clone/virt-sysprep.pod:207
3372 #: ../clone/virt-sysprep.pod:209
3374 "Write some random bytes from the host into the random seed file of the "
3379 #: ../clone/virt-sysprep.pod:212
3380 msgid "See L</RANDOM SEED> below."
3384 #: ../clone/virt-sysprep.pod:214
3385 msgid "rhn-systemid"
3389 #: ../clone/virt-sysprep.pod:216
3390 msgid "Remove the RHN system ID."
3394 #: ../clone/virt-sysprep.pod:218
3399 #: ../clone/virt-sysprep.pod:220
3400 msgid "Remove the Smolt hardware UUID."
3404 #: ../clone/virt-sysprep.pod:222
3405 msgid "ssh-hostkeys"
3409 #: ../clone/virt-sysprep.pod:224
3410 msgid "Remove the SSH host keys in the guest."
3414 #: ../clone/virt-sysprep.pod:226
3416 "The SSH host keys are regenerated (differently) next time the guest is "
3421 #: ../clone/virt-sysprep.pod:229
3423 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3424 "stark warning about the host key changing:"
3428 #: ../clone/virt-sysprep.pod:232
3431 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3432 " @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\n"
3433 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3434 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3439 #: ../clone/virt-sysprep.pod:237
3440 msgid "udev-persistent-net"
3444 #: ../clone/virt-sysprep.pod:239
3446 "Remove udev persistent net rules which map the guest's existing MAC address "
3447 "to a fixed ethernet device (eg. eth0)."
3451 #: ../clone/virt-sysprep.pod:242
3453 "After a guest is cloned, the MAC address usually changes. Since the old MAC"
3454 " address occupies the old name (eg. eth0), this means the fresh MAC address "
3455 "is assigned to a new name (eg. eth1) and this is usually undesirable. "
3456 "Erasing the udev persistent net rules avoids this."
3460 #: ../clone/virt-sysprep.pod:247
3465 #: ../clone/virt-sysprep.pod:249
3466 msgid "Remove the utmp file."
3470 #: ../clone/virt-sysprep.pod:251
3472 "This records who is currently logged in on a machine. In modern Linux "
3473 "distros it is stored in a ramdisk and hence not part of the virtual "
3474 "machine's disk, but it was stored on disk in older distros."
3478 #: ../clone/virt-sysprep.pod:255
3483 #: ../clone/virt-sysprep.pod:257
3484 msgid "Remove the yum UUID."
3488 #: ../clone/virt-sysprep.pod:259
3490 "Yum creates a fresh UUID the next time it runs when it notices that the "
3491 "original UUID has been erased."
3495 #: ../clone/virt-sysprep.pod:262
3496 msgid "COPYING AND CLONING"
3500 #: ../clone/virt-sysprep.pod:264
3502 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3503 "prepare a template from which guests can be cloned. There are many "
3504 "different ways to achieve this using the virt tools, and this section is "
3505 "just an introduction."
3509 #: ../clone/virt-sysprep.pod:269
3510 msgid "A virtual machine (when switched off) consists of two parts:"
3514 #: ../clone/virt-sysprep.pod:273
3515 msgid "I<configuration>"
3519 #: ../clone/virt-sysprep.pod:275
3521 "The configuration or description of the guest. eg. The libvirt XML (see "
3522 "C<virsh dumpxml>), the running configuration of the guest, or another "
3523 "external format like OVF."
3527 #: ../clone/virt-sysprep.pod:279
3528 msgid "Some configuration items that might need to be changed:"
3532 #: ../clone/virt-sysprep.pod:285
3537 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3542 #: ../clone/virt-sysprep.pod:293
3543 msgid "path to block device(s)"
3547 #: ../clone/virt-sysprep.pod:297
3548 msgid "network card MAC address"
3552 #: ../clone/virt-sysprep.pod:301
3553 msgid "I<block device(s)>"
3557 #: ../clone/virt-sysprep.pod:303
3559 "One or more hard disk images, themselves containing files, directories, "
3560 "applications, kernels, configuration, etc."
3564 #: ../clone/virt-sysprep.pod:306
3565 msgid "Some things inside the block devices that might need to be changed:"
3569 #: ../clone/virt-sysprep.pod:312
3570 msgid "hostname and other net configuration"
3574 #: ../clone/virt-sysprep.pod:320
3575 msgid "SSH host keys"
3579 #: ../clone/virt-sysprep.pod:324
3580 msgid "Windows unique security ID (SID)"
3584 #: ../clone/virt-sysprep.pod:328
3585 msgid "Puppet registration"
3589 #: ../clone/virt-sysprep.pod:334
3590 msgid "COPYING THE BLOCK DEVICE"
3594 #: ../clone/virt-sysprep.pod:336
3596 "Starting with an original guest, you probably wish to copy the guest block "
3597 "device and its configuration to make a template. Then once you are happy "
3598 "with the template, you will want to make many clones from it."
3602 #: ../clone/virt-sysprep.pod:341
3608 " original guest --------> template ---------->\n"
3609 " \\------> cloned\n"
3610 " \\-----> guests\n"
3616 #: ../clone/virt-sysprep.pod:349
3618 "You can, of course, just copy the block device on the host using L<cp(1)> or"
3623 #: ../clone/virt-sysprep.pod:352
3627 " original guest --------> template ---------->\n"
3628 " \\------> cloned\n"
3629 " \\-----> guests\n"
3635 #: ../clone/virt-sysprep.pod:358
3636 msgid "There are some smarter (and faster) ways too:"
3640 #: ../clone/virt-sysprep.pod:364
3644 " template ---------->\n"
3645 " \\------> cloned\n"
3646 " \\-----> guests\n"
3652 #: ../clone/virt-sysprep.pod:370
3654 "Use the block device as a backing file and create a snapshot on top for each"
3655 " guest. The advantage is that you don't need to copy the block device (very"
3656 " fast) and only changes are stored (less storage required)."
3660 #: ../clone/virt-sysprep.pod:375
3662 "Note that writing to the backing file once you have created guests on top of"
3663 " it is not possible: you will corrupt the guests."
3667 #: ../clone/virt-sysprep.pod:378
3669 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 "
3670 "-o backing_file> option), L<lvcreate(8)> (I<--snapshot> option). Some "
3671 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3672 "also create cheap snapshots from files or LUNs."
3676 #: ../clone/virt-sysprep.pod:386
3677 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3681 #: ../clone/virt-sysprep.pod:390
3682 msgid "Prepare your template using L<virt-sparsify(1)>. See below."
3686 #: ../clone/virt-sysprep.pod:394
3691 #: ../clone/virt-sysprep.pod:396
3693 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device"
3694 " and/or modify the external libvirt configuration of a guest. It will reset"
3695 " the name, UUID and MAC address of the guest in the libvirt XML."
3699 #: ../clone/virt-sysprep.pod:401
3701 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3702 "image. This was the original motivation to write virt-sysprep."
3706 #: ../clone/virt-sysprep.pod:404
3711 #: ../clone/virt-sysprep.pod:406
3715 " original guest --------> template\n"
3720 #: ../clone/virt-sysprep.pod:409
3722 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making"
3723 " it easier to compress and/or faster to copy."
3727 #: ../clone/virt-sysprep.pod:412
3729 "Notice that since virt-sparsify also copies the image, you can use it to "
3730 "make the initial copy (instead of C<dd>)."
3734 #: ../clone/virt-sysprep.pod:415
3739 #: ../clone/virt-sysprep.pod:417
3743 " template ---------->\n"
3744 " \\------> cloned\n"
3745 " \\-----> guests\n"
3751 #: ../clone/virt-sysprep.pod:423
3753 "If you want to give people cloned guests, but let them pick the size of the "
3754 "guest themselves (eg. depending on how much they are prepared to pay for "
3755 "disk space), then instead of copying the template, you can run L<virt-"
3756 "resize(1)>. Virt-resize performs a copy and resize, and thus is ideal for "
3757 "cloning guests from a template."
3761 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3766 #: ../clone/virt-sysprep.pod:431
3768 "Although virt-sysprep removes some sensitive information from the guest, it "
3769 "does not pretend to remove all of it. You should examine the L</OPERATIONS>"
3770 " above, and the implementation of the operations in the shell script. You "
3771 "should also examine the guest afterwards."
3775 #: ../clone/virt-sysprep.pod:436
3777 "Sensitive files are simply removed. The data they contained may still exist"
3778 " on the disk, easily recovered with a hex editor or undelete tool. Use L"
3779 "<virt-sparsify(1)> as one way to remove this content. See also the "
3780 "L<scrub(1)> command to get rid of deleted content in directory entries and "
3785 #: ../clone/virt-sysprep.pod:442
3790 #: ../clone/virt-sysprep.pod:444
3791 msgid "I<(This section applies to Linux guests only)>"
3795 #: ../clone/virt-sysprep.pod:446
3797 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3798 "from the host into the guest's random seed file."
3802 #: ../clone/virt-sysprep.pod:449
3804 "If this is just done once and the guest is cloned from the same template, "
3805 "then each guest will start with the same entropy, and things like SSH host "
3806 "keys and TCP sequence numbers may be predictable."
3810 #: ../clone/virt-sysprep.pod:453
3812 "Therefore you should arrange to add more randomness I<after> cloning from a "
3813 "template too, which can be done by just enabling the C<random-seed> "
3818 #: ../clone/virt-sysprep.pod:457
3821 " cp template.img newguest.img\n"
3822 " virt-sysprep --enable=random-seed -a newguest.img\n"
3827 #: ../clone/virt-sysprep.pod:460
3828 msgid "SELINUX RELABELLING"
3832 #: ../clone/virt-sysprep.pod:462
3833 msgid "I<(This section applies to Linux guests using SELinux only)>"
3837 #: ../clone/virt-sysprep.pod:464
3839 "If any new files are created by virt-sysprep, then virt-sysprep touches "
3840 "C</.autorelabel> so that these will be correctly labelled by SELinux the "
3841 "next time the guest is booted. This process interrupts boot and can take "
3846 #: ../clone/virt-sysprep.pod:469
3848 "You can force relabelling for all guests by supplying the I<--selinux-"
3853 #: ../clone/virt-sysprep.pod:472
3855 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3860 #: ../clone/virt-sysprep.pod:484
3861 msgid "This program returns 0 on success, or 1 if there was an error."
3865 #: ../clone/virt-sysprep.pod:488
3867 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3868 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-"
3869 "img(1)>, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3873 #: ../df/virt-df.pod:5
3874 msgid "virt-df - Display free space on virtual filesystems"
3878 #: ../df/virt-df.pod:9
3881 " virt-df [--options]\n"
3884 " virt-df [--параметри]\n"
3888 #: ../df/virt-df.pod:11
3891 " virt-df [--options] -d domname\n"
3896 #: ../df/virt-df.pod:13
3899 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3904 #: ../df/virt-df.pod:17
3907 " virt-df [--options] domname\n"
3912 #: ../df/virt-df.pod:19
3915 " virt-df [--options] disk.img [disk.img ...]\n"
3920 #: ../df/virt-df.pod:23
3922 "C<virt-df> is a command line tool to display free space on virtual machine "
3923 "filesystems. Unlike other tools, it doesn't just display the size of disk "
3924 "allocated to a virtual machine, but can look inside disk images to see how "
3925 "much space is really being used."
3929 #: ../df/virt-df.pod:28
3931 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt"
3932 " to get a list of all active and inactive guests, and performs a C<df>-type "
3933 "operation on each one in turn, printing out the results."
3937 #: ../df/virt-df.pod:32
3939 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
3940 "C<df>-type operation on either the single named libvirt domain, or on the "
3941 "disk image(s) listed on the command line (which must all belong to a single "
3942 "VM). In this mode (with arguments), C<virt-df> will I<only work for a "
3943 "single guest>. If you want to run on multiple guests, then you have to "
3944 "invoke C<virt-df> multiple times."
3948 #: ../df/virt-df.pod:39
3950 "Use the I<--csv> option to get a format which can be easily parsed by other "
3951 "programs. Other options are similar to the standard L<df(1)> command."
3955 #: ../df/virt-df.pod:45
3957 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
3958 "output human-readable:"
3962 #: ../df/virt-df.pod:48
3965 " # virt-df -d F14x64 -h\n"
3966 " Filesystem Size Used Available Use%\n"
3967 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
3968 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
3973 #: ../df/virt-df.pod:53
3974 msgid "Show disk usage for a disk image file called C<test.img>:"
3978 #: ../df/virt-df.pod:55
3981 " $ virt-df -a test1.img\n"
3982 " Filesystem 1K-blocks Used Available Use%\n"
3983 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
3988 #: ../df/virt-df.pod:112
3991 " virt-df --format=raw -a disk.img\n"
3996 #: ../df/virt-df.pod:116
3999 " virt-df --format=raw -a disk.img --format -a another.img\n"
4004 #: ../df/virt-df.pod:129
4005 msgid "Print sizes in human-readable format."
4009 #: ../df/virt-df.pod:131
4010 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
4014 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
4019 #: ../df/virt-df.pod:135
4021 msgstr "B<--inodes>"
4024 #: ../df/virt-df.pod:137
4025 msgid "Print inodes instead of blocks."
4029 #: ../df/virt-df.pod:139
4030 msgid "B<--one-per-guest>"
4031 msgstr "B<--one-per-guest>"
4034 #: ../df/virt-df.pod:141
4036 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
4037 "disks from several guests to a single libguestfs appliance."
4041 #: ../df/virt-df.pod:144
4042 msgid "You might use this option in the following circumstances:"
4046 #: ../df/virt-df.pod:150
4048 "If you think an untrusted guest might actively try to exploit the libguestfs"
4049 " appliance kernel, then this prevents one guest from interfering with the "
4050 "stats printed for another guest."
4054 #: ../df/virt-df.pod:156
4056 "If the kernel has a bug which stops it from accessing a filesystem in one "
4057 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
4058 "and report stats for further guests."
4062 #: ../df/virt-df.pod:165
4064 "Print UUIDs instead of names. This is useful for following a guest even "
4065 "when the guest is migrated or renamed, or when two guests happen to have the"
4070 #: ../df/virt-df.pod:169
4072 "Note that only domains that we fetch from libvirt come with UUIDs. For disk"
4073 " images, we still print the disk image name even when this option is "
4078 #: ../df/virt-df.pod:229
4080 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
4081 "L<http://libguestfs.org/>."
4085 #: ../edit/virt-edit.pod:5
4086 msgid "virt-edit - Edit a file in a virtual machine"
4090 #: ../edit/virt-edit.pod:9
4093 " virt-edit [--options] -d domname file [file ...]\n"
4098 #: ../edit/virt-edit.pod:11
4101 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4106 #: ../edit/virt-edit.pod:13
4109 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4114 #: ../edit/virt-edit.pod:17
4117 " virt-edit domname file\n"
4122 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4125 " virt-edit disk.img [disk.img ...] file\n"
4130 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4131 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4132 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4133 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4135 msgstr "ПОПЕРЕДЖЕННЯ"
4138 #: ../edit/virt-edit.pod:23
4140 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
4141 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
4142 "doing this, but doesn't catch all cases."
4146 #: ../edit/virt-edit.pod:29
4148 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4149 "exists in the named virtual machine (or disk image)."
4153 #: ../edit/virt-edit.pod:32
4155 "Multiple filenames can be given, in which case they are each edited in turn."
4156 " Each filename must be a full path, starting at the root directory "
4157 "(starting with '/')."
4161 #: ../edit/virt-edit.pod:36
4162 msgid "If you want to just view a file, use L<virt-cat(1)>."
4166 #: ../edit/virt-edit.pod:38
4168 "For more complex cases you should look at the L<guestfish(1)> tool (see "
4169 "L</USING GUESTFISH> below)."
4173 #: ../edit/virt-edit.pod:41
4175 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
4176 "that and much more."
4180 #: ../edit/virt-edit.pod:46
4181 msgid "Edit the named files interactively:"
4185 #: ../edit/virt-edit.pod:48
4188 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4193 #: ../edit/virt-edit.pod:50
4196 " virt-edit -d mydomain /etc/passwd\n"
4201 #: ../edit/virt-edit.pod:52
4202 msgid "For Windows guests, some Windows paths are understood:"
4206 #: ../edit/virt-edit.pod:54
4209 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4214 #: ../edit/virt-edit.pod:56
4216 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4217 "INTERACTIVE EDITING> below). To change the init default level to 5:"
4221 #: ../edit/virt-edit.pod:60
4224 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4229 #: ../edit/virt-edit.pod:81
4230 msgid "B<-b> extension"
4234 #: ../edit/virt-edit.pod:83
4235 msgid "B<--backup> extension"
4239 #: ../edit/virt-edit.pod:85
4241 "Create a backup of the original file I<in the guest disk image>. The backup"
4242 " has the original filename with C<extension> added."
4246 #: ../edit/virt-edit.pod:88
4248 "Usually the first character of C<extension> would be a dot C<.> so you would"
4253 #: ../edit/virt-edit.pod:91
4256 " virt-edit -b .orig [etc]\n"
4261 #: ../edit/virt-edit.pod:93
4262 msgid "By default, no backup file is made."
4266 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4267 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4268 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4269 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4271 msgstr "B<-c адреса>"
4274 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4275 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4276 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4277 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4278 msgid "B<--connect URI>"
4279 msgstr "B<--connect адреса>"
4282 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4283 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4284 #: ../tools/virt-win-reg.pl:135
4286 "If you specify guest block devices directly, then libvirt is not used at "
4291 #: ../edit/virt-edit.pod:114
4293 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4294 "off so you cannot see what you are typing. If you are not worried about "
4295 "Tempest attacks and there is no one else in the room you can specify this "
4296 "flag to see what you are typing."
4300 #: ../edit/virt-edit.pod:119
4302 msgstr "B<-e> вираз"
4305 #: ../edit/virt-edit.pod:121
4306 msgid "B<--expr> EXPR"
4307 msgstr "B<--expr> вираз"
4310 #: ../edit/virt-edit.pod:123
4312 "Instead of launching the external editor, non-interactively apply the Perl "
4313 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
4318 #: ../edit/virt-edit.pod:127
4320 "Be careful to properly quote the expression to prevent it from being altered"
4325 #: ../edit/virt-edit.pod:130
4326 msgid "Note that this option is only available when Perl 5 is installed."
4330 #: ../edit/virt-edit.pod:132
4331 msgid "B<--format> raw|qcow2|..."
4332 msgstr "B<--format> raw|qcow2|..."
4335 #: ../edit/virt-edit.pod:143
4338 " virt-edit --format=raw -a disk.img file\n"
4343 #: ../edit/virt-edit.pod:147
4346 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4351 #: ../edit/virt-edit.pod:181
4352 msgid "Previous versions of virt-edit allowed you to write either:"
4356 #: ../edit/virt-edit.pod:187
4359 " virt-edit guestname file\n"
4364 #: ../edit/virt-edit.pod:195
4365 msgid "NON-INTERACTIVE EDITING"
4366 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4369 #: ../edit/virt-edit.pod:197
4371 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4372 "administrator can interactively edit the file."
4376 #: ../edit/virt-edit.pod:200
4378 "There are two ways also to use C<virt-edit> from scripts in order to make "
4379 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
4380 "like this, it's less error-prone to write scripts directly using the "
4381 "libguestfs API and Augeas for configuration file editing.)"
4385 #: ../edit/virt-edit.pod:206
4387 "The first method is to temporarily set C<$EDITOR> to any script or program "
4388 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
4389 "update C<tmpfile> in place however it likes."
4393 #: ../edit/virt-edit.pod:210
4395 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4396 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
4397 "instances of C<foo> with C<bar> in a file:"
4401 #: ../edit/virt-edit.pod:214
4404 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4409 #: ../edit/virt-edit.pod:216
4411 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
4412 "For example to delete root's password you could do:"
4416 #: ../edit/virt-edit.pod:219
4419 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4422 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4426 #: ../edit/virt-edit.pod:221
4428 "What really happens is that the snippet is evaluated as a Perl expression "
4429 "for each line of the file. The line, including the final C<\\n>, is passed "
4430 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4434 #: ../edit/virt-edit.pod:226
4436 "To delete a line, set C<$_> to the empty string. For example, to delete the"
4437 " C<apache> user account from the password file you can do:"
4441 #: ../edit/virt-edit.pod:229
4444 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4447 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4451 #: ../edit/virt-edit.pod:231
4453 "To insert a line, prepend or append it to C<$_>. However appending lines to"
4454 " the end of the file is rather difficult this way since there is no concept "
4455 "of \"last line of the file\" - your expression just doesn't get called "
4456 "again. You might want to use the first method (setting C<$EDITOR>) if you "
4461 #: ../edit/virt-edit.pod:237
4463 "The variable C<$lineno> contains the current line number. As is "
4464 "traditional, the first line in the file is number C<1>."
4468 #: ../edit/virt-edit.pod:240
4470 "The return value from the expression is ignored, but the expression may call"
4471 " C<die> in order to abort the whole program, leaving the original file "
4476 #: ../edit/virt-edit.pod:244
4478 "Remember when matching the end of a line that C<$_> may contain the final "
4479 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4480 "newline then neither of these. Thus to match or substitute some text at the"
4481 " end of a line, use this regular expression:"
4485 #: ../edit/virt-edit.pod:249
4488 " /some text(\\r?\\n)?$/\n"
4491 " /якийсь текст(\\r?\\n)?$/\n"
4495 #: ../edit/virt-edit.pod:251
4497 "Alternately, use the perl C<chomp> function, being careful not to chomp "
4498 "C<$_> itself (since that would remove all newlines from the file):"
4502 #: ../edit/virt-edit.pod:255
4505 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4508 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4512 #: ../edit/virt-edit.pod:259
4514 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4515 "paths (eg. C<E:\\foo\\bar.txt>)."
4519 #: ../edit/virt-edit.pod:278
4521 "The path is resolved case insensitively to locate the file that should be "
4526 #: ../edit/virt-edit.pod:299
4528 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4529 "C<virt-edit> doesn't work."
4533 #: ../edit/virt-edit.pod:302
4534 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4538 #: ../edit/virt-edit.pod:304
4541 " guestfish --rw -i -d domname edit /file\n"
4546 #: ../edit/virt-edit.pod:306
4548 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4553 #: ../edit/virt-edit.pod:309
4555 "The command above uses libguestfs's guest inspection feature and so does not"
4556 " work on guests that libguestfs cannot inspect, or on things like arbitrary "
4557 "disk images that don't contain guests. To edit a file on a disk image "
4562 #: ../edit/virt-edit.pod:314
4565 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4570 #: ../edit/virt-edit.pod:316
4572 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4573 "the disk image to edit, and C</file> is the full path to the file."
4577 #: ../edit/virt-edit.pod:320
4579 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
4580 "C<write> or C<upload> instead:"
4584 #: ../edit/virt-edit.pod:323
4587 " guestfish --rw -i -d domname touch /newfile\n"
4592 #: ../edit/virt-edit.pod:325
4595 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4600 #: ../edit/virt-edit.pod:327
4603 " guestfish --rw -i -d domname upload localfile /newfile\n"
4608 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4609 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4610 #: ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4611 msgid "ENVIRONMENT VARIABLES"
4612 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4615 #: ../edit/virt-edit.pod:333
4620 #: ../edit/virt-edit.pod:335
4622 "If set, this string is used as the editor. It may contain arguments, eg. "
4627 #: ../edit/virt-edit.pod:338
4628 msgid "If not set, C<vi> is used."
4632 #: ../edit/virt-edit.pod:356
4634 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4635 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4636 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4638 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4639 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4640 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4643 #: ../erlang/examples/guestfs-erlang.pod:5
4644 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4648 #: ../erlang/examples/guestfs-erlang.pod:9
4651 " {ok, G} = guestfs:create(),\n"
4652 " ok = guestfs:add_drive_opts(G, Disk,\n"
4653 " [{format, \"raw\"}, {readonly, true}]),\n"
4654 " ok = guestfs:launch(G),\n"
4655 " [Device] = guestfs:list_devices(G),\n"
4656 " ok = guestfs:close(G).\n"
4661 #: ../erlang/examples/guestfs-erlang.pod:18
4663 "This manual page documents how to call libguestfs from the Erlang "
4664 "programming language. This page just documents the differences from the C "
4665 "API and gives some examples. If you are not familiar with using libguestfs,"
4666 " you also need to read L<guestfs(3)>."
4670 #: ../erlang/examples/guestfs-erlang.pod:23
4671 msgid "OPENING AND CLOSING THE HANDLE"
4675 #: ../erlang/examples/guestfs-erlang.pod:25
4677 "The Erlang bindings are implemented using an external program called C<erl-"
4678 "guestfs>. This program must be on the current PATH, or else you should "
4679 "specify the full path to the program:"
4683 #: ../erlang/examples/guestfs-erlang.pod:29
4686 " {ok, G} = guestfs:create().\n"
4691 #: ../erlang/examples/guestfs-erlang.pod:31
4694 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4699 #: ../erlang/examples/guestfs-erlang.pod:33
4701 "C<G> is the libguestfs handle which you should pass to other functions."
4705 #: ../erlang/examples/guestfs-erlang.pod:36
4706 msgid "To close the handle:"
4710 #: ../erlang/examples/guestfs-erlang.pod:38
4713 " ok = guestfs:close(G).\n"
4718 #: ../erlang/examples/guestfs-erlang.pod:40
4719 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4723 #: ../erlang/examples/guestfs-erlang.pod:42
4725 "For functions that take optional arguments, the first arguments are the non-"
4726 "optional ones. The last argument is a list of tuples supplying the "
4727 "remaining optional arguments."
4731 #: ../erlang/examples/guestfs-erlang.pod:46
4734 " ok = guestfs:add_drive_opts(G, Disk,\n"
4735 " [{format, \"raw\"}, {readonly, true}]).\n"
4740 #: ../erlang/examples/guestfs-erlang.pod:49
4741 msgid "If the last argument would be an empty list, you can also omit it:"
4745 #: ../erlang/examples/guestfs-erlang.pod:51
4748 " ok = guestfs:add_drive_opts(G, Disk).\n"
4753 #: ../erlang/examples/guestfs-erlang.pod:53
4754 msgid "RETURN VALUES AND ERRORS"
4758 #: ../erlang/examples/guestfs-erlang.pod:55
4760 "On success, most functions return a C<Result> term (which could be a list, "
4761 "string, tuple etc.). If there is nothing for the function to return, then "
4762 "the atom C<ok> is returned."
4766 #: ../erlang/examples/guestfs-erlang.pod:59
4767 msgid "On error, you would see one of the following tuples:"
4771 #: ../erlang/examples/guestfs-erlang.pod:63
4772 msgid "C<{error, Msg, Errno}>"
4776 #: ../erlang/examples/guestfs-erlang.pod:65
4777 msgid "This indicates an ordinary error from the function."
4781 #: ../erlang/examples/guestfs-erlang.pod:67
4783 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4788 #: ../erlang/examples/guestfs-erlang.pod:70
4789 msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
4793 #: ../erlang/examples/guestfs-erlang.pod:72
4794 msgid "C<{unknown, Function}>"
4798 #: ../erlang/examples/guestfs-erlang.pod:74
4800 "This indicates that the function you called is not known. Generally this "
4801 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4802 "which you should not do."
4806 #: ../erlang/examples/guestfs-erlang.pod:78
4807 msgid "C<Function> is the name of the unknown function."
4811 #: ../erlang/examples/guestfs-erlang.pod:80
4812 msgid "C<{unknownarg, Arg}>"
4816 #: ../erlang/examples/guestfs-erlang.pod:82
4818 "This indicates that you called a function with optional arguments, with an "
4819 "unknown argument name."
4823 #: ../erlang/examples/guestfs-erlang.pod:85
4824 msgid "C<Arg> is the name of the unknown argument."
4828 #: ../erlang/examples/guestfs-erlang.pod:89
4829 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4830 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4831 #: ../python/examples/guestfs-python.pod:34
4832 #: ../ruby/examples/guestfs-ruby.pod:28
4833 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4834 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4837 #: ../erlang/examples/guestfs-erlang.pod:91
4838 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4839 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4840 #: ../python/examples/guestfs-python.pod:36
4841 #: ../ruby/examples/guestfs-ruby.pod:30
4846 #: ../erlang/examples/guestfs-erlang.pod:93
4847 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4848 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4849 #: ../python/examples/guestfs-python.pod:38
4850 #: ../ruby/examples/guestfs-ruby.pod:32
4851 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4852 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4855 #: ../erlang/examples/guestfs-erlang.pod:95
4856 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4857 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4858 #: ../python/examples/guestfs-python.pod:40
4859 #: ../ruby/examples/guestfs-ruby.pod:34
4864 #: ../erlang/examples/guestfs-erlang.pod:99
4866 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-"
4867 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4868 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
4872 #: ../erlang/examples/guestfs-erlang.pod:110
4873 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4874 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4875 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4876 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4877 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4878 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4879 #: ../python/examples/guestfs-python.pod:54
4880 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3348
4881 #: ../test-tool/libguestfs-test-tool.pod:106
4886 #: ../erlang/examples/guestfs-erlang.pod:112
4887 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4888 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4889 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4890 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4891 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4892 #: ../perl/examples/guestfs-perl.pod:54
4893 #: ../python/examples/guestfs-python.pod:56
4894 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3350
4895 #: ../test-tool/libguestfs-test-tool.pod:108
4896 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4897 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4900 #: ../erlang/examples/guestfs-erlang.pod:116
4901 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4902 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4906 #: ../erlang/examples/guestfs-erlang.pod:118
4907 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4908 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4909 #: ../perl/examples/guestfs-perl.pod:60
4910 #: ../python/examples/guestfs-python.pod:62
4911 #: ../ruby/examples/guestfs-ruby.pod:56
4913 "The examples in this manual page may be freely copied, modified and "
4914 "distributed without any restrictions."
4918 #: ../erlang/examples/guestfs-erlang.pod:121
4919 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4920 #: ../java/examples/guestfs-java.pod:69
4921 #: ../ocaml/examples/guestfs-ocaml.pod:102
4922 #: ../perl/examples/guestfs-perl.pod:63
4923 #: ../python/examples/guestfs-python.pod:65
4924 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3357
4926 "This library is free software; you can redistribute it and/or modify it "
4927 "under the terms of the GNU Lesser General Public License as published by the"
4928 " Free Software Foundation; either version 2 of the License, or (at your "
4929 "option) any later version."
4933 #: ../erlang/examples/guestfs-erlang.pod:126
4934 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4935 #: ../java/examples/guestfs-java.pod:74
4936 #: ../ocaml/examples/guestfs-ocaml.pod:107
4937 #: ../perl/examples/guestfs-perl.pod:68
4938 #: ../python/examples/guestfs-python.pod:70
4939 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3362
4941 "This library is distributed in the hope that it will be useful, but WITHOUT "
4942 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4943 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License"
4944 " for more details."
4948 #: ../erlang/examples/guestfs-erlang.pod:131
4949 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4950 #: ../java/examples/guestfs-java.pod:79
4951 #: ../ocaml/examples/guestfs-ocaml.pod:112
4952 #: ../perl/examples/guestfs-perl.pod:73
4953 #: ../python/examples/guestfs-python.pod:75
4954 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3367
4956 "You should have received a copy of the GNU Lesser General Public License "
4957 "along with this library; if not, write to the Free Software Foundation, "
4958 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4962 #: ../examples/guestfs-examples.pod:5
4963 msgid "guestfs-examples - Examples of using libguestfs from C"
4967 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4970 " #include <guestfs.h>\n"
4973 " #include <guestfs.h>\n"
4977 #: ../examples/guestfs-examples.pod:11
4980 " guestfs_h *g = guestfs_create ();\n"
4981 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4982 " guestfs_launch (g);\n"
4985 " guestfs_h *g = guestfs_create ();\n"
4986 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4987 " guestfs_launch (g);\n"
4991 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4994 " cc prog.c -o prog -lguestfs\n"
4996 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4999 " cc prog.c -o prog -lguestfs\n"
5001 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5005 #: ../examples/guestfs-examples.pod:21
5007 "This manual page contains examples of calling libguestfs from the C "
5008 "programming language. If you are not familiar with using libguestfs, you "
5009 "also need to read L<guestfs(3)>."
5013 #: ../examples/guestfs-examples.pod:35
5015 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
5016 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5017 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5021 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
5022 #: ../python/examples/guestfs-python.pod:60
5023 #: ../ruby/examples/guestfs-ruby.pod:54
5024 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5028 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5033 #: ../examples/guestfs-recipes.pod:5
5035 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5036 "here. The only way which works for both sorts of output is to just write "
5037 "the URL directly. Do NOT use L<...> for URLs."
5041 #: ../examples/guestfs-recipes.pod:9
5043 "We break with tradition here and don't use ALL CAPS for the section "
5044 "headings, as this makes them much easier to read."
5048 #: ../examples/guestfs-recipes.pod:16
5049 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5053 #: ../examples/guestfs-recipes.pod:20
5055 "This page contains recipes for and links to things you can do using "
5056 "libguestfs, L<guestfish(1)> and the virt tools."
5060 #: ../examples/guestfs-recipes.pod:23
5061 msgid "Audit a virtual machine for setuid files"
5065 #: ../examples/guestfs-recipes.pod:25
5067 "The link below contains a small program which can be used to audit a Linux "
5068 "virtual machine to see what setuid and setgid files it contains."
5072 #: ../examples/guestfs-recipes.pod:28
5074 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5079 #: ../examples/guestfs-recipes.pod:30
5080 msgid "Change the background image in a Windows XP VM"
5084 #: ../examples/guestfs-recipes.pod:32
5086 "The links below explain how to use L<guestfish(1)> to change the background "
5087 "image for a user of a Windows XP VM. Unfortunately the technique appears to"
5088 " be substantially different for each version of Windows."
5092 #: ../examples/guestfs-recipes.pod:37
5094 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
5095 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5099 #: ../examples/guestfs-recipes.pod:40
5100 msgid "Cloning a virtual machine (Linux)"
5104 #: ../examples/guestfs-recipes.pod:42
5106 "The guestfish technique described in the link below works well for most "
5107 "Linux VMs. Depending on the Linux distro you may need to change the paths "
5112 #: ../examples/guestfs-recipes.pod:46
5114 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5119 #: ../examples/guestfs-recipes.pod:48
5121 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
5126 #: ../examples/guestfs-recipes.pod:51
5127 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5131 #: ../examples/guestfs-recipes.pod:53
5132 msgid "Cloning a virtual machine (Windows)"
5136 #: ../examples/guestfs-recipes.pod:55
5138 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5139 "straightforward. Currently there is code in the Aeolus Oz project which "
5140 "does this (using libguestfs). As part of our review of the virt-clone tool,"
5141 " we may add sysprepping ability."
5145 #: ../examples/guestfs-recipes.pod:60
5147 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-"
5148 "tools-list/2011-May/msg00019.html"
5152 #: ../examples/guestfs-recipes.pod:63
5153 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5157 #: ../examples/guestfs-recipes.pod:65
5158 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5162 #: ../examples/guestfs-recipes.pod:67
5165 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5170 #: ../examples/guestfs-recipes.pod:69
5171 msgid "To export just a subdirectory, eg. C</files>, do:"
5175 #: ../examples/guestfs-recipes.pod:71
5178 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5183 #: ../examples/guestfs-recipes.pod:73
5184 msgid "Create empty disk images"
5188 #: ../examples/guestfs-recipes.pod:75
5190 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
5191 "The useful guide below explains the options available."
5195 #: ../examples/guestfs-recipes.pod:78
5197 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-"
5202 #: ../examples/guestfs-recipes.pod:80
5203 msgid "Dump raw filesystem content from inside a disk image or VM"
5207 #: ../examples/guestfs-recipes.pod:82
5209 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5210 "filesystem content from any filesystem in a disk image or a VM (even one "
5211 "which is encrypted or buried inside an LV):"
5215 #: ../examples/guestfs-recipes.pod:86
5218 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5223 #: ../examples/guestfs-recipes.pod:88
5226 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5231 #: ../examples/guestfs-recipes.pod:90
5232 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5236 #: ../examples/guestfs-recipes.pod:92
5237 msgid "Edit grub configuration in a VM"
5241 #: ../examples/guestfs-recipes.pod:94
5242 msgid "You can use this to:"
5246 #: ../examples/guestfs-recipes.pod:100
5247 msgid "Fix a virtual machine that does not boot."
5251 #: ../examples/guestfs-recipes.pod:104
5252 msgid "Change which kernel is used to boot the VM."
5256 #: ../examples/guestfs-recipes.pod:108
5257 msgid "Change kernel command line options."
5261 #: ../examples/guestfs-recipes.pod:112
5262 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5266 #: ../examples/guestfs-recipes.pod:114
5269 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5274 #: ../examples/guestfs-recipes.pod:116
5276 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5281 #: ../examples/guestfs-recipes.pod:119
5284 " virt-rescue -d BrokenGuest\n"
5289 #: ../examples/guestfs-recipes.pod:121
5290 msgid "Export any directory from a VM"
5294 #: ../examples/guestfs-recipes.pod:123
5296 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5300 #: ../examples/guestfs-recipes.pod:126
5303 " virt-copy-out -d Guest /home .\n"
5308 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5309 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5310 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5311 #: ../src/guestfs-actions.pod:2326 ../src/guestfs-actions.pod:2750
5312 #: ../src/guestfs-actions.pod:3309 ../src/guestfs.pod:1685
5313 #: ../tools/virt-win-reg.pl:717
5318 #: ../examples/guestfs-recipes.pod:134
5320 "The final dot of the command is not a printing error. It means we want to "
5321 "copy out to the current directory."
5325 #: ../examples/guestfs-recipes.pod:139
5326 msgid "This creates a directory called C<home> under the current directory."
5330 #: ../examples/guestfs-recipes.pod:143
5332 "If the guest is a Windows guest then you can use drive letters and "
5333 "backslashes, but you must prefix the path with C<win:> and quote it to "
5334 "protect it from the shell, like this:"
5338 #: ../examples/guestfs-recipes.pod:147
5341 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5346 #: ../examples/guestfs-recipes.pod:149
5347 msgid "To get the output as a compressed tarball, do:"
5351 #: ../examples/guestfs-recipes.pod:151
5354 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5359 #: ../examples/guestfs-recipes.pod:153
5361 "Although it sounds tempting, this is usually not a reliable way to get a "
5362 "backup from a running guest. See the entry in the FAQ: "
5363 "http://libguestfs.org/FAQ.html#backup"
5367 #: ../examples/guestfs-recipes.pod:157
5368 msgid "Find out which user is using the most space"
5372 #: ../examples/guestfs-recipes.pod:159
5374 "This simple script examines a Linux guest to find out which user is using "
5375 "the most space in their home directory:"
5379 #: ../examples/guestfs-recipes.pod:162
5387 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5395 #: ../examples/guestfs-recipes.pod:166
5404 #: ../examples/guestfs-recipes.pod:169
5407 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5412 #: ../examples/guestfs-recipes.pod:171
5415 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5416 " echo -n \"$dir/$d\"\n"
5418 " guestfish --remote du \"$dir/$d\";\n"
5419 " done | sort -nr -k 2\n"
5424 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5427 " guestfish --remote exit\n"
5432 #: ../examples/guestfs-recipes.pod:179
5433 msgid "Get DHCP address from a VM"
5437 #: ../examples/guestfs-recipes.pod:181
5439 "The link below explains the many different possible techniques for getting "
5440 "the last assigned DHCP address of a virtual machine."
5444 #: ../examples/guestfs-recipes.pod:184
5446 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-"
5447 "from-a-virtual-machine-disk-image/#content"
5451 #: ../examples/guestfs-recipes.pod:186
5453 "In the libguestfs source examples directory you will find the latest version"
5454 " of the C<virt-dhcp-address.c> program."
5458 #: ../examples/guestfs-recipes.pod:189
5459 msgid "Get the operating system product name string"
5463 #: ../examples/guestfs-recipes.pod:191
5464 msgid "Save the following script into a file called C<product-name.sh>:"
5468 #: ../examples/guestfs-recipes.pod:193
5473 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5474 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5475 " guestfish --remote inspect-get-product-name \"$root\"\n"
5476 " guestfish --remote exit\n"
5481 #: ../examples/guestfs-recipes.pod:200
5482 msgid "Make the script executable and run it on a named guest:"
5486 #: ../examples/guestfs-recipes.pod:202
5489 " # product-name.sh RHEL60x64\n"
5490 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5495 #: ../examples/guestfs-recipes.pod:205
5497 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5498 "C<xpath> command line tool or from your favourite programming language:"
5502 #: ../examples/guestfs-recipes.pod:209
5505 " # virt-inspector RHEL60x64 > xml\n"
5506 " # xpath '//product_name' < xml\n"
5509 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5514 #: ../examples/guestfs-recipes.pod:215
5515 msgid "Get the default boot kernel for a Linux VM"
5519 #: ../examples/guestfs-recipes.pod:217
5521 "The link below contains a program to print the default boot kernel for a "
5526 #: ../examples/guestfs-recipes.pod:220
5528 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-"
5529 "boot-kernel-for-a-vm/#content"
5533 #: ../examples/guestfs-recipes.pod:222
5535 "It uses Augeas, and the technique is generally applicable for many different"
5540 #: ../examples/guestfs-recipes.pod:229
5541 msgid "listing the user accounts in the guest"
5545 #: ../examples/guestfs-recipes.pod:233
5546 msgid "what repositories is it configured to use"
5550 #: ../examples/guestfs-recipes.pod:237
5551 msgid "what NTP servers does it connect to"
5555 #: ../examples/guestfs-recipes.pod:241
5556 msgid "what were the boot messages last time it booted"
5560 #: ../examples/guestfs-recipes.pod:245
5561 msgid "listing who was logged in recently"
5565 #: ../examples/guestfs-recipes.pod:249
5566 msgid "http://augeas.net/"
5570 #: ../examples/guestfs-recipes.pod:251
5571 msgid "Install RPMs in a guest"
5575 #: ../examples/guestfs-recipes.pod:253
5577 "The link below contains a method to install RPMs in a guest. In fact the "
5578 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5579 "installs them next time the guest is booted. You could use this technique "
5580 "to install vital security updates in an offline guest."
5584 #: ../examples/guestfs-recipes.pod:259
5586 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5590 #: ../examples/guestfs-recipes.pod:261
5591 msgid "List applications installed in a VM"
5595 #: ../examples/guestfs-recipes.pod:263
5596 msgid "Save the following to a file C<list-apps.sh>:"
5600 #: ../examples/guestfs-recipes.pod:265
5605 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5606 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5607 " guestfish --remote inspect-list-applications \"$root\"\n"
5608 " guestfish --remote exit\n"
5613 #: ../examples/guestfs-recipes.pod:272
5615 "Make the file executable and then you can run it on any named virtual "
5620 #: ../examples/guestfs-recipes.pod:275
5623 " # list-apps.sh WinGuest\n"
5625 " app_name: Mozilla Firefox (3.6.12)\n"
5626 " app_display_name: Mozilla Firefox (3.6.12)\n"
5628 " app_version: 3.6.12 (en-GB)\n"
5630 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5631 " app_trans_path:\n"
5632 " app_publisher: Mozilla\n"
5633 " app_url: http://www.mozilla.com/en-GB/\n"
5634 " app_source_package:\n"
5636 " app_description: Mozilla Firefox\n"
5639 " app_name: VLC media player\n"
5640 " app_display_name: VLC media player 1.1.5\n"
5642 " app_version: 1.1.5\n"
5644 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5645 " app_trans_path:\n"
5646 " app_publisher: VideoLAN\n"
5647 " app_url: http://www.videolan.org/\n"
5648 " app_source_package:\n"
5650 " app_description:\n"
5656 #: ../examples/guestfs-recipes.pod:305
5658 "If you want to run the script on disk images (instead of libvirt virtual "
5659 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-"
5664 #: ../examples/guestfs-recipes.pod:309
5665 msgid "List files and directories in a VM"
5669 #: ../examples/guestfs-recipes.pod:311
5670 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5674 #: ../examples/guestfs-recipes.pod:313
5677 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5682 #: ../examples/guestfs-recipes.pod:315
5683 msgid "List services in a Windows VM"
5687 #: ../examples/guestfs-recipes.pod:317
5689 "The link below contains a script that can be used to list out the services "
5690 "from a Windows VM, and whether those services run at boot time or are loaded"
5695 #: ../examples/guestfs-recipes.pod:321
5697 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-"
5702 #: ../examples/guestfs-recipes.pod:323
5703 msgid "Make a disk image sparse"
5707 #: ../examples/guestfs-recipes.pod:325
5709 "The link below contains some guides for making a disk image sparse (or "
5710 "reintroducing sparseness)."
5714 #: ../examples/guestfs-recipes.pod:328
5716 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-"
5721 #: ../examples/guestfs-recipes.pod:330
5722 msgid "Monitor disk usage over time"
5726 #: ../examples/guestfs-recipes.pod:332
5728 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
5729 "The link below contains a guide."
5733 #: ../examples/guestfs-recipes.pod:335
5734 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5738 #: ../examples/guestfs-recipes.pod:337
5739 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5743 #: ../examples/guestfs-recipes.pod:339
5745 "L<guestfish(1)> plus the tools described in the link below can be used to "
5746 "read out the Windows Event Log from any virtual machine running Windows "
5747 "Vista or a later version."
5751 #: ../examples/guestfs-recipes.pod:343
5753 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5754 "guestfish/#content"
5758 #: ../examples/guestfs-recipes.pod:345
5759 msgid "Remove root password (Linux)"
5763 #: ../examples/guestfs-recipes.pod:347
5765 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5766 "files. One use is to remove the root password from a Linux guest:"
5770 #: ../examples/guestfs-recipes.pod:350
5773 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5778 #: ../examples/guestfs-recipes.pod:352
5779 msgid "Remove Administrator password (Windows)"
5783 #: ../examples/guestfs-recipes.pod:354
5785 "The link below contains one technique for removing the Administrator "
5786 "password from a Windows VM, or to be more precise, it gives you a command "
5787 "prompt the next time you log in which you can use to bypass any security:"
5791 #: ../examples/guestfs-recipes.pod:359
5793 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5794 "administrator-password-with-guestfish/"
5798 #: ../examples/guestfs-recipes.pod:361
5799 msgid "Unpack a live CD"
5803 #: ../examples/guestfs-recipes.pod:363
5805 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5806 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
5807 "layers, as outlined in the guide below."
5811 #: ../examples/guestfs-recipes.pod:367
5813 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5818 #: ../examples/guestfs-recipes.pod:369
5819 msgid "Uploading and downloading files"
5823 #: ../examples/guestfs-recipes.pod:371
5825 "The link below contains general tips on uploading (copying in) and "
5826 "downloading (copying out) files from VMs."
5830 #: ../examples/guestfs-recipes.pod:374
5832 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5836 #: ../examples/guestfs-recipes.pod:376
5837 msgid "Use libguestfs tools on VMware ESX guests"
5841 #: ../examples/guestfs-recipes.pod:378
5843 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5844 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5848 #: ../examples/guestfs-recipes.pod:382
5850 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5855 #: ../examples/guestfs-recipes.pod:386
5857 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-"
5858 "erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L"
5859 "<guestfs-python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5863 #: ../examples/guestfs-recipes.pod:403
5864 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5868 #: ../fish/guestfish-actions.pod:1
5873 #: ../fish/guestfish-actions.pod:3
5876 " add-cdrom filename\n"
5881 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5882 msgid "This function adds a virtual CD-ROM disk image to the guest."
5886 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5887 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5891 #: ../fish/guestfish-actions.pod:15
5893 "This call checks for the existence of C<filename>. This stops you from "
5894 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5895 "and C<http:> URLs. To specify those, use the general L</config> call "
5900 #: ../fish/guestfish-actions.pod:22
5902 "If you just want to add an ISO file (often you use this as an efficient way "
5903 "to transfer large files into the guest), then you should probably use L"
5904 "</add-drive-ro> instead."
5908 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
5909 #: ../fish/guestfish-actions.pod:228
5911 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call"
5916 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
5917 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
5918 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
5919 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
5920 #: ../fish/guestfish-actions.pod:3293 ../fish/guestfish-actions.pod:3604
5921 #: ../fish/guestfish-actions.pod:3652 ../fish/guestfish-actions.pod:4579
5922 #: ../fish/guestfish-actions.pod:4602 ../fish/guestfish-actions.pod:4624
5923 #: ../fish/guestfish-actions.pod:4662 ../fish/guestfish-actions.pod:5311
5924 #: ../fish/guestfish-actions.pod:5417 ../src/guestfs-actions.pod:10
5925 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
5926 #: ../src/guestfs-actions.pod:1572 ../src/guestfs-actions.pod:1629
5927 #: ../src/guestfs-actions.pod:1912 ../src/guestfs-actions.pod:2411
5928 #: ../src/guestfs-actions.pod:2432 ../src/guestfs-actions.pod:5077
5929 #: ../src/guestfs-actions.pod:5599 ../src/guestfs-actions.pod:5699
5930 #: ../src/guestfs-actions.pod:6999 ../src/guestfs-actions.pod:7043
5931 #: ../src/guestfs-actions.pod:7077 ../src/guestfs-actions.pod:7140
5932 #: ../src/guestfs-actions.pod:8072 ../src/guestfs-actions.pod:8181
5933 #: ../src/guestfs-actions.pod:8364
5935 "Deprecated functions will not be removed from the API, but the fact that "
5936 "they are deprecated indicates that there are problems with correct use of "
5941 #: ../fish/guestfish-actions.pod:35
5946 #: ../fish/guestfish-actions.pod:37
5951 #: ../fish/guestfish-actions.pod:39
5954 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..] [readonlydisk:..]\n"
5959 #: ../fish/guestfish-actions.pod:41
5961 "This function adds the disk(s) attached to the named libvirt domain C<dom>."
5962 " It works by connecting to libvirt, requesting the domain and domain XML "
5963 "from libvirt, parsing it for disks, and calling L</add-drive-opts> on each "
5968 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
5970 "The number of disks added is returned. This operation is atomic: if an "
5971 "error is returned, then no disks are added."
5975 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
5977 "This function does some minimal checks to make sure the libvirt domain is "
5978 "not running (unless C<readonly> is true). In a future version we will try "
5979 "to acquire the libvirt lock on each disk."
5983 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
5985 "Disks must be accessible locally. This often means that adding disks from a"
5986 " remote libvirt connection (see L<http://libvirt.org/remote.html>) will "
5987 "fail unless those disks are accessible via the same device path locally too."
5991 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
5993 "The optional C<libvirturi> parameter sets the libvirt URI (see "
5994 "L<http://libvirt.org/uri.html>). If this is not set then we connect to the "
5995 "default libvirt URI (or one set through an environment variable, see the "
5996 "libvirt documentation for full details)."
6000 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6002 "The optional C<live> flag controls whether this call will try to connect to "
6003 "a running virtual machine C<guestfsd> process if it sees a suitable "
6004 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
6005 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING"
6006 " DAEMONS> for more information."
6010 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6012 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6013 "passed instead of the domain name. The C<dom> string is treated as a UUID "
6014 "first and looked up, and if that lookup fails then we treat C<dom> as a name"
6019 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6021 "The optional C<readonlydisk> parameter controls what we do for disks which "
6022 "are marked E<lt>readonly/E<gt> in the libvirt XML. Possible values are:"
6026 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6027 msgid "readonlydisk = \"error\""
6031 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
6032 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
6033 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6034 msgid "If C<readonly> is false:"
6038 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6040 "The whole call is aborted with an error if any disk with the "
6041 "E<lt>readonly/E<gt> flag is found."
6045 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
6046 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
6047 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6048 msgid "If C<readonly> is true:"
6052 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
6053 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
6054 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6055 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6059 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6060 msgid "readonlydisk = \"read\""
6064 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6066 "Disks with the E<lt>readonly/E<gt> flag are added read-only. Other disks "
6067 "are added read/write."
6071 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6072 msgid "readonlydisk = \"write\" (default)"
6076 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6077 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6081 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6082 msgid "readonlydisk = \"ignore\""
6086 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6087 msgid "If C<readonly> is true or false:"
6091 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6092 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6096 #: ../fish/guestfish-actions.pod:122
6098 "The other optional parameters are passed directly through to L</add-drive-"
6103 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6104 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6105 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6106 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6107 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6108 #: ../fish/guestfish-actions.pod:3342 ../fish/guestfish-actions.pod:3505
6109 #: ../fish/guestfish-actions.pod:3640
6111 "This command has one or more optional arguments. See L</OPTIONAL "
6116 #: ../fish/guestfish-actions.pod:127
6121 #: ../fish/guestfish-actions.pod:129
6124 " add-drive filename\n"
6127 " add-drive назва_файла\n"
6131 #: ../fish/guestfish-actions.pod:131
6133 "This function is the equivalent of calling L</add-drive-opts> with no "
6134 "optional parameters, so the disk is added writable, with the format being "
6135 "detected automatically."
6139 #: ../fish/guestfish-actions.pod:135
6141 "Automatic detection of the format opens you up to a potential security hole "
6142 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6143 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
6144 "you should think about replacing calls to this function with calls to L"
6145 "</add-drive-opts>, and specifying the format."
6149 #: ../fish/guestfish-actions.pod:142
6150 msgid "add-drive-opts"
6151 msgstr "add-drive-opts"
6154 #: ../fish/guestfish-actions.pod:144
6159 #: ../fish/guestfish-actions.pod:146
6162 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
6167 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6169 "This function adds a virtual machine disk image C<filename> to libguestfs. "
6170 "The first time you call this function, the disk appears as C</dev/sda>, the "
6171 "second time as C</dev/sdb>, and so on."
6175 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6177 "You don't necessarily need to be root when using libguestfs. However you "
6178 "obviously do need sufficient permissions to access the filename for whatever"
6179 " operations you want to perform (ie. read access if you just want to read "
6180 "the image or write access if you want to modify the image)."
6184 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6185 msgid "This call checks that C<filename> exists."
6189 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3304
6190 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5114
6191 msgid "The optional arguments are:"
6195 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6197 msgstr "C<readonly>"
6200 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6202 "If true then the image is treated as read-only. Writes are still allowed, "
6203 "but they are stored in a temporary snapshot overlay which is discarded at "
6204 "the end. The disk that you add is not modified."
6208 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6213 #: ../fish/guestfish-actions.pod:173
6215 "This forces the image format. If you omit this (or use L</add-drive> or L"
6216 "</add-drive-ro>) then the format is automatically detected. Possible "
6217 "formats include C<raw> and C<qcow2>."
6221 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6223 "Automatic detection of the format opens you up to a potential security hole "
6224 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6225 "RHBZ#642934. Specifying the format closes this security hole."
6229 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6234 #: ../fish/guestfish-actions.pod:184
6236 "This rarely-used option lets you emulate the behaviour of the deprecated L"
6237 "</add-drive-with-if> call (q.v.)"
6241 #: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:247
6246 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6248 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as"
6249 " a hint to the guest inspection process if it is available."
6253 #: ../fish/guestfish-actions.pod:196
6254 msgid "add-drive-ro"
6255 msgstr "add-drive-ro"
6258 #: ../fish/guestfish-actions.pod:198
6263 #: ../fish/guestfish-actions.pod:200
6266 " add-drive-ro filename\n"
6271 #: ../fish/guestfish-actions.pod:202
6273 "This function is the equivalent of calling L</add-drive-opts> with the "
6274 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6275 "is added read-only, with the format being detected automatically."
6279 #: ../fish/guestfish-actions.pod:207
6280 msgid "add-drive-ro-with-if"
6284 #: ../fish/guestfish-actions.pod:209
6287 " add-drive-ro-with-if filename iface\n"
6292 #: ../fish/guestfish-actions.pod:211
6294 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6295 "interface emulation to use at run time."
6299 #: ../fish/guestfish-actions.pod:221
6300 msgid "add-drive-with-if"
6304 #: ../fish/guestfish-actions.pod:223
6307 " add-drive-with-if filename iface\n"
6312 #: ../fish/guestfish-actions.pod:225
6314 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6315 "interface emulation to use at run time."
6319 #: ../fish/guestfish-actions.pod:235
6324 #: ../fish/guestfish-actions.pod:237
6327 " aug-clear augpath\n"
6332 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6334 "Set the value associated with C<path> to C<NULL>. This is the same as the "
6335 "L<augtool(1)> C<clear> command."
6339 #: ../fish/guestfish-actions.pod:242
6344 #: ../fish/guestfish-actions.pod:244
6352 #: ../fish/guestfish-actions.pod:246
6354 "Close the current Augeas handle and free up any resources used by it. After"
6355 " calling this, you have to call L</aug-init> again before you can use any "
6356 "other Augeas functions."
6360 #: ../fish/guestfish-actions.pod:251
6365 #: ../fish/guestfish-actions.pod:253
6368 " aug-defnode name expr val\n"
6373 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6375 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6379 #: ../fish/guestfish-actions.pod:258
6381 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6382 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
6383 "containing that single node."
6387 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6389 "On success this returns a pair containing the number of nodes in the "
6390 "nodeset, and a boolean flag if a node was created."
6394 #: ../fish/guestfish-actions.pod:266
6399 #: ../fish/guestfish-actions.pod:268
6402 " aug-defvar name expr\n"
6407 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6409 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6410 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
6414 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6416 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6417 "evaluates to something which is not a nodeset."
6421 #: ../fish/guestfish-actions.pod:277
6426 #: ../fish/guestfish-actions.pod:279
6429 " aug-get augpath\n"
6434 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6436 "Look up the value associated with C<path>. If C<path> matches exactly one "
6437 "node, the C<value> is returned."
6441 #: ../fish/guestfish-actions.pod:284
6446 #: ../fish/guestfish-actions.pod:286
6449 " aug-init root flags\n"
6454 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6456 "Create a new Augeas handle for editing configuration files. If there was "
6457 "any previous Augeas handle associated with this guestfs session, then it is "
6462 #: ../fish/guestfish-actions.pod:292
6463 msgid "You must call this before using any other L</aug-*> commands."
6467 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6469 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
6473 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6475 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6476 "logical I<or> of the following integers:"
6480 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6481 msgid "C<AUG_SAVE_BACKUP> = 1"
6482 msgstr "C<AUG_SAVE_BACKUP> = 1"
6485 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6486 msgid "Keep the original file with a C<.augsave> extension."
6490 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6491 msgid "C<AUG_SAVE_NEWFILE> = 2"
6492 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6495 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6497 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6498 "original. Overrides C<AUG_SAVE_BACKUP>."
6502 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6503 msgid "C<AUG_TYPE_CHECK> = 4"
6504 msgstr "C<AUG_TYPE_CHECK> = 4"
6507 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6508 msgid "Typecheck lenses."
6512 #: ../fish/guestfish-actions.pod:317
6514 "This option is only useful when debugging Augeas lenses. Use of this option"
6515 " may require additional memory for the libguestfs appliance. You may need "
6516 "to set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-"
6521 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6522 msgid "C<AUG_NO_STDINC> = 8"
6523 msgstr "C<AUG_NO_STDINC> = 8"
6526 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6527 msgid "Do not use standard load path for modules."
6531 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6532 msgid "C<AUG_SAVE_NOOP> = 16"
6533 msgstr "C<AUG_SAVE_NOOP> = 16"
6536 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6537 msgid "Make save a no-op, just record what would have been changed."
6541 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6542 msgid "C<AUG_NO_LOAD> = 32"
6543 msgstr "C<AUG_NO_LOAD> = 32"
6546 #: ../fish/guestfish-actions.pod:332
6547 msgid "Do not load the tree in L</aug-init>."
6551 #: ../fish/guestfish-actions.pod:336
6552 msgid "To close the handle, you can call L</aug-close>."
6556 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6557 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6561 #: ../fish/guestfish-actions.pod:340
6566 #: ../fish/guestfish-actions.pod:342
6569 " aug-insert augpath label true|false\n"
6574 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6576 "Create a new sibling C<label> for C<path>, inserting it into the tree before"
6577 " or after C<path> (depending on the boolean flag C<before>)."
6581 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6583 "C<path> must match exactly one existing node in the tree, and C<label> must "
6584 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6588 #: ../fish/guestfish-actions.pod:352
6593 #: ../fish/guestfish-actions.pod:354
6601 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6602 msgid "Load files into the tree."
6603 msgstr "Завантажити файли до ієрархії."
6606 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6607 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6611 #: ../fish/guestfish-actions.pod:361
6616 #: ../fish/guestfish-actions.pod:363
6624 #: ../fish/guestfish-actions.pod:365
6626 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6627 "resulting nodes into alphabetical order."
6631 #: ../fish/guestfish-actions.pod:368
6636 #: ../fish/guestfish-actions.pod:370
6639 " aug-match augpath\n"
6644 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6646 "Returns a list of paths which match the path expression C<path>. The "
6647 "returned paths are sufficiently qualified so that they match exactly one "
6648 "node in the current tree."
6652 #: ../fish/guestfish-actions.pod:376
6657 #: ../fish/guestfish-actions.pod:378
6660 " aug-mv src dest\n"
6665 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6667 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
6668 "C<dest> is overwritten if it exists."
6672 #: ../fish/guestfish-actions.pod:383
6677 #: ../fish/guestfish-actions.pod:385
6685 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6686 msgid "Remove C<path> and all of its children."
6690 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6691 msgid "On success this returns the number of entries which were removed."
6695 #: ../fish/guestfish-actions.pod:391
6700 #: ../fish/guestfish-actions.pod:393
6708 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6709 msgid "This writes all pending changes to disk."
6713 #: ../fish/guestfish-actions.pod:397
6715 "The flags which were passed to L</aug-init> affect exactly how files are "
6720 #: ../fish/guestfish-actions.pod:400
6725 #: ../fish/guestfish-actions.pod:402
6728 " aug-set augpath val\n"
6733 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6734 msgid "Set the value associated with C<path> to C<val>."
6738 #: ../fish/guestfish-actions.pod:406
6740 "In the Augeas API, it is possible to clear a node by setting the value to "
6741 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
6742 "this call. Instead you must use the L</aug-clear> call."
6746 #: ../fish/guestfish-actions.pod:411
6751 #: ../fish/guestfish-actions.pod:413
6754 " available 'groups ...'\n"
6759 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6761 "This command is used to check the availability of some groups of "
6762 "functionality in the appliance, which not all builds of the libguestfs "
6763 "appliance will be able to provide."
6767 #: ../fish/guestfish-actions.pod:419
6769 "The libguestfs groups, and the functions that those groups correspond to, "
6770 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
6771 "runtime by calling L</available-all-groups>."
6775 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6777 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6778 "\"augeas\"]> would check for the availability of the Linux inotify functions"
6779 " and Augeas (configuration file editing) functions."
6783 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6784 msgid "The command returns no error if I<all> requested groups are available."
6788 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6790 "It fails with an error if one or more of the requested groups is unavailable"
6791 " in the appliance."
6795 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6797 "If an unknown group name is included in the list of groups then an error is "
6802 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6804 msgstr "I<Нотатки:>"
6807 #: ../fish/guestfish-actions.pod:443
6808 msgid "You must call L</launch> before calling this function."
6812 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6814 "The reason is because we don't know what groups are supported by the "
6815 "appliance/daemon until it is running and can be queried."
6819 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6821 "If a group of functions is available, this does not necessarily mean that "
6822 "they will work. You still have to check for errors when calling individual "
6823 "API functions even if they are available."
6827 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6829 "It is usually the job of distro packagers to build complete functionality "
6830 "into the libguestfs appliance. Upstream libguestfs, if built from source "
6831 "with all requirements satisfied, will support everything."
6835 #: ../fish/guestfish-actions.pod:465
6837 "This call was added in version C<1.0.80>. In previous versions of "
6838 "libguestfs all you could do would be to speculatively execute a command to "
6839 "find out if the daemon implemented it. See also L</version>."
6843 #: ../fish/guestfish-actions.pod:472
6844 msgid "available-all-groups"
6848 #: ../fish/guestfish-actions.pod:474
6851 " available-all-groups\n"
6856 #: ../fish/guestfish-actions.pod:476
6858 "This command returns a list of all optional groups that this daemon knows "
6859 "about. Note this returns both supported and unsupported groups. To find "
6860 "out which ones the daemon can actually support you have to call "
6861 "L</available> on each member of the returned list."
6865 #: ../fish/guestfish-actions.pod:482
6866 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6870 #: ../fish/guestfish-actions.pod:484
6875 #: ../fish/guestfish-actions.pod:486
6878 " base64-in (base64file|-) filename\n"
6883 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6885 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6889 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
6890 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
6891 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
6892 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
6893 #: ../fish/guestfish-actions.pod:4882 ../fish/guestfish-actions.pod:4894
6894 #: ../fish/guestfish-actions.pod:4905 ../fish/guestfish-actions.pod:4916
6895 #: ../fish/guestfish-actions.pod:4968 ../fish/guestfish-actions.pod:4977
6896 #: ../fish/guestfish-actions.pod:5031 ../fish/guestfish-actions.pod:5054
6897 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6901 #: ../fish/guestfish-actions.pod:493
6906 #: ../fish/guestfish-actions.pod:495
6909 " base64-out filename (base64file|-)\n"
6914 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
6916 "This command downloads the contents of C<filename>, writing it out to local "
6917 "file C<base64file> encoded as base64."
6921 #: ../fish/guestfish-actions.pod:502
6922 msgid "blockdev-flushbufs"
6926 #: ../fish/guestfish-actions.pod:504
6929 " blockdev-flushbufs device\n"
6934 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
6936 "This tells the kernel to flush internal buffers associated with C<device>."
6940 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
6941 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
6942 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
6943 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
6944 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
6945 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
6946 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
6947 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
6948 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
6949 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
6950 msgid "This uses the L<blockdev(8)> command."
6954 #: ../fish/guestfish-actions.pod:511
6955 msgid "blockdev-getbsz"
6959 #: ../fish/guestfish-actions.pod:513
6962 " blockdev-getbsz device\n"
6967 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
6968 msgid "This returns the block size of a device."
6972 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
6973 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
6975 "(Note this is different from both I<size in blocks> and I<filesystem block "
6980 #: ../fish/guestfish-actions.pod:522
6981 msgid "blockdev-getro"
6985 #: ../fish/guestfish-actions.pod:524
6988 " blockdev-getro device\n"
6993 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
6995 "Returns a boolean indicating if the block device is read-only (true if read-"
6996 "only, false if not)."
7000 #: ../fish/guestfish-actions.pod:531
7001 msgid "blockdev-getsize64"
7005 #: ../fish/guestfish-actions.pod:533
7008 " blockdev-getsize64 device\n"
7013 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7014 msgid "This returns the size of the device in bytes."
7018 #: ../fish/guestfish-actions.pod:537
7019 msgid "See also L</blockdev-getsz>."
7020 msgstr "Див. також L</blockdev-getsz>."
7023 #: ../fish/guestfish-actions.pod:541
7024 msgid "blockdev-getss"
7028 #: ../fish/guestfish-actions.pod:543
7031 " blockdev-getss device\n"
7036 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7038 "This returns the size of sectors on a block device. Usually 512, but can be"
7039 " larger for modern devices."
7043 #: ../fish/guestfish-actions.pod:548
7045 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7049 #: ../fish/guestfish-actions.pod:553
7050 msgid "blockdev-getsz"
7054 #: ../fish/guestfish-actions.pod:555
7057 " blockdev-getsz device\n"
7062 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7064 "This returns the size of the device in units of 512-byte sectors (even if "
7065 "the sectorsize isn't 512 bytes ... weird)."
7069 #: ../fish/guestfish-actions.pod:560
7071 "See also L</blockdev-getss> for the real sector size of the device, and L"
7072 "</blockdev-getsize64> for the more useful I<size in bytes>."
7076 #: ../fish/guestfish-actions.pod:566
7077 msgid "blockdev-rereadpt"
7081 #: ../fish/guestfish-actions.pod:568
7084 " blockdev-rereadpt device\n"
7089 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7090 msgid "Reread the partition table on C<device>."
7094 #: ../fish/guestfish-actions.pod:574
7095 msgid "blockdev-setbsz"
7099 #: ../fish/guestfish-actions.pod:576
7102 " blockdev-setbsz device blocksize\n"
7107 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7108 msgid "This sets the block size of a device."
7112 #: ../fish/guestfish-actions.pod:585
7113 msgid "blockdev-setro"
7117 #: ../fish/guestfish-actions.pod:587
7120 " blockdev-setro device\n"
7125 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7126 msgid "Sets the block device named C<device> to read-only."
7130 #: ../fish/guestfish-actions.pod:593
7131 msgid "blockdev-setrw"
7135 #: ../fish/guestfish-actions.pod:595
7138 " blockdev-setrw device\n"
7143 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7144 msgid "Sets the block device named C<device> to read-write."
7148 #: ../fish/guestfish-actions.pod:601
7149 msgid "btrfs-filesystem-resize"
7153 #: ../fish/guestfish-actions.pod:603
7156 " btrfs-filesystem-resize mountpoint [size:..]\n"
7161 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7162 msgid "This command resizes a btrfs filesystem."
7166 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7168 "Note that unlike other resize calls, the filesystem has to be mounted and "
7169 "the parameter is the mountpoint not the device (this is a requirement of "
7174 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3615
7175 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:5638
7176 msgid "The optional parameters are:"
7180 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3619
7181 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5642
7186 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7188 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
7189 "resized to the maximum size."
7193 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7194 msgid "See also L<btrfs(8)>."
7195 msgstr "Див. також L<btrfs(8)>."
7198 #: ../fish/guestfish-actions.pod:626
7199 msgid "case-sensitive-path"
7203 #: ../fish/guestfish-actions.pod:628
7206 " case-sensitive-path path\n"
7211 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7213 "This can be used to resolve case insensitive paths on a filesystem which is "
7214 "case sensitive. The use case is to resolve paths which you have read from "
7215 "Windows configuration files or the Windows Registry, to the true path."
7219 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7221 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7222 "(and probably others), which is that although the underlying filesystem is "
7223 "case-insensitive, the driver exports the filesystem to Linux as case-"
7228 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7230 "One consequence of this is that special directories such as C<c:\\windows> "
7231 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7232 "precise details of how they were created. In Windows itself this would not "
7237 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7239 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-"
7240 "faq/#posixfilenames1>"
7244 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7246 "This function resolves the true case of each element in the path and returns"
7247 " the case-sensitive path."
7251 #: ../fish/guestfish-actions.pod:652
7253 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return "
7254 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7255 "how the directories were originally created under Windows)."
7259 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7260 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7264 #: ../fish/guestfish-actions.pod:660
7265 msgid "See also L</realpath>."
7266 msgstr "Див. також L</realpath>."
7269 #: ../fish/guestfish-actions.pod:662
7274 #: ../fish/guestfish-actions.pod:664
7284 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4049
7285 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6299
7286 msgid "Return the contents of the file named C<path>."
7290 #: ../fish/guestfish-actions.pod:668
7292 "Note that this function cannot correctly handle binary files (specifically, "
7293 "files containing C<\\0> character which is treated as end of string). For "
7294 "those you need to use the L</read-file> or L</download> functions which have"
7295 " a more complex interface."
7299 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7300 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7301 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7302 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7303 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7304 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7305 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7306 #: ../fish/guestfish-actions.pod:3919 ../fish/guestfish-actions.pod:3934
7307 #: ../fish/guestfish-actions.pod:4010 ../fish/guestfish-actions.pod:4027
7308 #: ../fish/guestfish-actions.pod:4042 ../fish/guestfish-actions.pod:4723
7309 #: ../fish/guestfish-actions.pod:4769 ../fish/guestfish-actions.pod:4854
7310 #: ../fish/guestfish-actions.pod:4869 ../fish/guestfish-actions.pod:5275
7311 #: ../fish/guestfish-actions.pod:5287 ../fish/guestfish-actions.pod:5305
7312 #: ../fish/guestfish-actions.pod:5322 ../fish/guestfish-actions.pod:5332
7313 #: ../fish/guestfish-actions.pod:5389 ../fish/guestfish-actions.pod:5399
7314 #: ../fish/guestfish-actions.pod:5428 ../fish/guestfish-actions.pod:5438
7315 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7316 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1847
7317 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:1969
7318 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2234
7319 #: ../src/guestfs-actions.pod:2716 ../src/guestfs-actions.pod:2735
7320 #: ../src/guestfs-actions.pod:2800 ../src/guestfs-actions.pod:2824
7321 #: ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2870
7322 #: ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6107
7323 #: ../src/guestfs-actions.pod:6238 ../src/guestfs-actions.pod:6264
7324 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:7255
7325 #: ../src/guestfs-actions.pod:7310 ../src/guestfs-actions.pod:7456
7326 #: ../src/guestfs-actions.pod:7480 ../src/guestfs-actions.pod:8145
7327 #: ../src/guestfs-actions.pod:8165 ../src/guestfs-actions.pod:8198
7328 #: ../src/guestfs-actions.pod:8217 ../src/guestfs-actions.pod:8236
7329 #: ../src/guestfs-actions.pod:8330 ../src/guestfs-actions.pod:8349
7330 #: ../src/guestfs-actions.pod:8395 ../src/guestfs-actions.pod:8414
7332 "Because of the message protocol, there is a transfer limit of somewhere "
7333 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
7337 #: ../fish/guestfish-actions.pod:676
7342 #: ../fish/guestfish-actions.pod:678
7345 " checksum csumtype path\n"
7350 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7352 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7356 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7358 "The type of checksum to compute is given by the C<csumtype> parameter which "
7359 "must have one of the following values:"
7363 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7368 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7370 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7375 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7380 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7381 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7385 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7390 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7391 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7395 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7400 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7401 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7405 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7410 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7411 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7415 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7420 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7421 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7425 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7430 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7431 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7435 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7436 msgid "The checksum is returned as a printable string."
7440 #: ../fish/guestfish-actions.pod:721
7441 msgid "To get the checksum for a device, use L</checksum-device>."
7445 #: ../fish/guestfish-actions.pod:723
7446 msgid "To get the checksums for many files, use L</checksums-out>."
7450 #: ../fish/guestfish-actions.pod:725
7451 msgid "checksum-device"
7452 msgstr "checksum-device"
7455 #: ../fish/guestfish-actions.pod:727
7458 " checksum-device csumtype device\n"
7463 #: ../fish/guestfish-actions.pod:729
7465 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7466 "device named C<device>. For the types of checksums supported see the "
7467 "L</checksum> command."
7471 #: ../fish/guestfish-actions.pod:733
7472 msgid "checksums-out"
7476 #: ../fish/guestfish-actions.pod:735
7479 " checksums-out csumtype directory (sumsfile|-)\n"
7484 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7486 "This command computes the checksums of all regular files in C<directory> and"
7487 " then emits a list of those checksums to the local output file C<sumsfile>."
7491 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7493 "This can be used for verifying the integrity of a virtual machine. However "
7494 "to be properly secure you should pay attention to the output of the checksum"
7495 " command (it uses the ones from GNU coreutils). In particular when the "
7496 "filename is not printable, coreutils uses a special backslash syntax. For "
7497 "more information, see the GNU coreutils info file."
7501 #: ../fish/guestfish-actions.pod:751
7506 #: ../fish/guestfish-actions.pod:753
7509 " chmod mode path\n"
7514 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7516 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are"
7521 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7523 "I<Note>: When using this command from guestfish, C<mode> by default would be"
7524 " decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7529 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3268
7530 #: ../fish/guestfish-actions.pod:3407 ../fish/guestfish-actions.pod:3417
7531 #: ../fish/guestfish-actions.pod:3427 ../src/guestfs-actions.pod:1117
7532 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5254
7533 #: ../src/guestfs-actions.pod:5273 ../src/guestfs-actions.pod:5292
7534 msgid "The mode actually set is affected by the umask."
7538 #: ../fish/guestfish-actions.pod:764
7543 #: ../fish/guestfish-actions.pod:766
7546 " chown owner group path\n"
7551 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7552 msgid "Change the file owner to C<owner> and group to C<group>."
7556 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
7557 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4116
7559 "Only numeric uid and gid are supported. If you want to use names, you will "
7560 "need to locate and parse the password file yourself (Augeas support makes "
7561 "this relatively easy)."
7565 #: ../fish/guestfish-actions.pod:774
7570 #: ../fish/guestfish-actions.pod:776
7573 " command 'arguments ...'\n"
7576 " command 'параметри...'\n"
7580 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7582 "This call runs a command from the guest filesystem. The filesystem must be "
7583 "mounted, and must contain a compatible operating system (ie. something "
7584 "Linux, with the same or compatible processor architecture)."
7588 #: ../fish/guestfish-actions.pod:783
7590 "The single parameter is an argv-style list of arguments. The first element "
7591 "is the name of the program to run. Subsequent elements are parameters. The"
7592 " list must be non-empty (ie. must contain a program name). Note that the "
7593 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7597 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7598 msgid "The return value is anything printed to I<stdout> by the command."
7602 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7604 "If the command returns a non-zero exit status, then this function returns an"
7605 " error message. The error message string is the content of I<stderr> from "
7610 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7612 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
7613 "C</bin>. If you require a program from another location, you should provide"
7614 " the full path in the first parameter."
7618 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7620 "Shared libraries and data files required by the program must be available on"
7621 " filesystems which are mounted in the correct places. It is the caller's "
7622 "responsibility to ensure all filesystems that are needed are mounted at the "
7627 #: ../fish/guestfish-actions.pod:811
7628 msgid "command-lines"
7632 #: ../fish/guestfish-actions.pod:813
7635 " command-lines 'arguments ...'\n"
7640 #: ../fish/guestfish-actions.pod:815
7642 "This is the same as L</command>, but splits the result into a list of lines."
7646 #: ../fish/guestfish-actions.pod:818
7647 msgid "See also: L</sh-lines>"
7648 msgstr "Див. також L</sh-lines>"
7651 #: ../fish/guestfish-actions.pod:823
7652 msgid "compress-device-out"
7656 #: ../fish/guestfish-actions.pod:825
7659 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7664 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7666 "This command compresses C<device> and writes it out to the local file "
7671 #: ../fish/guestfish-actions.pod:830
7673 "The C<ctype> and optional C<level> parameters have the same meaning as in L"
7678 #: ../fish/guestfish-actions.pod:837
7679 msgid "compress-out"
7683 #: ../fish/guestfish-actions.pod:839
7686 " compress-out ctype file (zfile|-) [level:..]\n"
7691 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7693 "This command compresses C<file> and writes it out to the local file "
7698 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7700 "The compression program used is controlled by the C<ctype> parameter. "
7701 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
7702 "Some compression types may not be supported by particular builds of "
7703 "libguestfs, in which case you will get an error containing the substring "
7704 "\"not supported\"."
7708 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7710 "The optional C<level> parameter controls compression level. The meaning and"
7711 " default for this parameter depends on the compression program being used."
7715 #: ../fish/guestfish-actions.pod:858
7720 #: ../fish/guestfish-actions.pod:860
7723 " config qemuparam qemuvalue\n"
7728 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7730 "This can be used to add arbitrary qemu command line parameters of the form "
7731 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
7732 "setting some parameters which would interfere with parameters that we use."
7736 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7737 msgid "The first character of C<param> string must be a C<-> (dash)."
7741 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7742 msgid "C<value> can be NULL."
7746 #: ../fish/guestfish-actions.pod:871
7747 msgid "copy-device-to-device"
7751 #: ../fish/guestfish-actions.pod:873
7754 " copy-device-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7759 #: ../fish/guestfish-actions.pod:875
7761 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
7762 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
7763 "(device|file) to a destination (device|file)."
7767 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7769 "Partial copies can be made since you can specify optionally the source "
7770 "offset, destination offset and size to copy. These values are all specified"
7771 " in bytes. If not given, the offsets both default to zero, and the size "
7772 "defaults to copying as much as possible until we hit the end of the source."
7776 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7778 "The source and destination may be the same object. However overlapping "
7779 "regions may not be copied correctly."
7783 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7785 "If the destination is a file, it is created if required. If the destination"
7786 " file is not large enough, it is extended."
7790 #: ../fish/guestfish-actions.pod:896
7791 msgid "copy-device-to-file"
7795 #: ../fish/guestfish-actions.pod:898
7798 " copy-device-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7803 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
7804 #: ../fish/guestfish-actions.pod:918
7805 msgid "See L</copy-device-to-device> for a general overview of this call."
7809 #: ../fish/guestfish-actions.pod:905
7810 msgid "copy-file-to-device"
7814 #: ../fish/guestfish-actions.pod:907
7817 " copy-file-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7822 #: ../fish/guestfish-actions.pod:914
7823 msgid "copy-file-to-file"
7827 #: ../fish/guestfish-actions.pod:916
7830 " copy-file-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7835 #: ../fish/guestfish-actions.pod:921
7837 "This is B<not> the function you want for copying files. This is for copying"
7838 " blocks within existing files. See L</cp>, L</cp-a> and L</mv> for general "
7839 "file copying and moving functions."
7843 #: ../fish/guestfish-actions.pod:928
7848 #: ../fish/guestfish-actions.pod:930
7851 " copy-size src dest size\n"
7856 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1576
7858 "This command copies exactly C<size> bytes from one source device or file "
7859 "C<src> to another destination device or file C<dest>."
7863 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1579
7865 "Note this will fail if the source is too short or if the destination is not "
7870 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7872 "I<This function is deprecated.> In new code, use the "
7873 "L</copy_device_to_device> call instead."
7877 #: ../fish/guestfish-actions.pod:945
7882 #: ../fish/guestfish-actions.pod:947
7890 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1598
7892 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7893 "destination filename or destination directory."
7897 #: ../fish/guestfish-actions.pod:952
7902 #: ../fish/guestfish-actions.pod:954
7910 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1612
7912 "This copies a file or directory from C<src> to C<dest> recursively using the"
7913 " C<cp -a> command."
7917 #: ../fish/guestfish-actions.pod:959
7922 #: ../fish/guestfish-actions.pod:961
7930 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1633
7932 "This command copies from one source device or file C<src> to another "
7933 "destination device or file C<dest>. Normally you would use this to copy to "
7934 "or from a device or partition, for example to duplicate a filesystem."
7938 #: ../fish/guestfish-actions.pod:968
7940 "If the destination is a device, it must be as large or larger than the "
7941 "source file or device, otherwise the copy will fail. This command cannot do"
7942 " partial copies (see L</copy-device-to-device>)."
7946 #: ../fish/guestfish-actions.pod:980
7951 #: ../fish/guestfish-actions.pod:982
7961 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1652
7962 msgid "This command runs the C<df> command to report disk space used."
7966 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
7968 "This command is mostly useful for interactive sessions. It is I<not> "
7969 "intended that you try to parse the output string. Use L</statvfs> from "
7974 #: ../fish/guestfish-actions.pod:990
7979 #: ../fish/guestfish-actions.pod:992
7989 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1668
7991 "This command runs the C<df -h> command to report disk space used in human-"
7996 #: ../fish/guestfish-actions.pod:1001
8001 #: ../fish/guestfish-actions.pod:1003
8011 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1685
8013 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
8014 "This is sometimes useful for extended debugging of problems."
8018 #: ../fish/guestfish-actions.pod:1009
8020 "Another way to get the same information is to enable verbose messages with L"
8021 "</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8022 "before running the program."
8026 #: ../fish/guestfish-actions.pod:1014
8031 #: ../fish/guestfish-actions.pod:1016
8034 " download remotefilename (filename|-)\n"
8039 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
8040 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:1731
8042 "Download file C<remotefilename> and save it as C<filename> on the local "
8047 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5027
8048 #: ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:7715
8049 msgid "C<filename> can also be a named pipe."
8053 #: ../fish/guestfish-actions.pod:1023
8054 msgid "See also L</upload>, L</cat>."
8058 #: ../fish/guestfish-actions.pod:1027
8059 msgid "download-offset"
8060 msgstr "download-offset"
8063 #: ../fish/guestfish-actions.pod:1029
8066 " download-offset remotefilename (filename|-) offset size\n"
8071 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1734
8073 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8074 "region must be within the file or device)."
8078 #: ../fish/guestfish-actions.pod:1037
8080 "Note that there is no limit on the amount of data that can be downloaded "
8081 "with this call, unlike with L</pread>, and this call always reads the full "
8082 "amount unless an error occurs."
8086 #: ../fish/guestfish-actions.pod:1042
8087 msgid "See also L</download>, L</pread>."
8091 #: ../fish/guestfish-actions.pod:1046
8096 #: ../fish/guestfish-actions.pod:1048
8099 " drop-caches whattodrop\n"
8104 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1759
8106 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8107 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
8108 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8112 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1764
8113 msgid "Setting C<whattodrop> to 3 should drop everything."
8117 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1766
8119 "This automatically calls L<sync(2)> before the operation, so that the "
8120 "maximum guest memory is freed."
8124 #: ../fish/guestfish-actions.pod:1060
8129 #: ../fish/guestfish-actions.pod:1062
8139 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1779
8141 "This command runs the C<du -s> command to estimate file space usage for "
8146 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1782
8148 "C<path> can be a file or a directory. If C<path> is a directory then the "
8149 "estimate includes the contents of the directory and all subdirectories "
8154 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1786
8156 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8160 #: ../fish/guestfish-actions.pod:1074
8165 #: ../fish/guestfish-actions.pod:1076
8168 " e2fsck-f device\n"
8173 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1804
8175 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8176 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be"
8181 #: ../fish/guestfish-actions.pod:1082
8183 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
8184 "should use L</fsck>."
8188 #: ../fish/guestfish-actions.pod:1085
8193 #: ../fish/guestfish-actions.pod:1087
8196 " echo-daemon 'words ...'\n"
8201 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1821
8203 "This command concatenates the list of C<words> passed with single spaces "
8204 "between them and returns the resulting string."
8208 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1824
8209 msgid "You can use this command to test the connection through to the daemon."
8213 #: ../fish/guestfish-actions.pod:1094
8214 msgid "See also L</ping-daemon>."
8215 msgstr "Див. також L</ping-daemon>."
8218 #: ../fish/guestfish-actions.pod:1096
8223 #: ../fish/guestfish-actions.pod:1098
8226 " egrep regex path\n"
8231 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1840
8233 "This calls the external C<egrep> program and returns the matching lines."
8237 #: ../fish/guestfish-actions.pod:1106
8242 #: ../fish/guestfish-actions.pod:1108
8245 " egrepi regex path\n"
8250 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1859
8252 "This calls the external C<egrep -i> program and returns the matching lines."
8256 #: ../fish/guestfish-actions.pod:1116
8261 #: ../fish/guestfish-actions.pod:1118
8264 " equal file1 file2\n"
8267 " equal файл1 файл2\n"
8271 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1878
8273 "This compares the two files C<file1> and C<file2> and returns true if their "
8274 "content is exactly equal, or false otherwise."
8278 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1881
8279 msgid "The external L<cmp(1)> program is used for the comparison."
8283 #: ../fish/guestfish-actions.pod:1125
8288 #: ../fish/guestfish-actions.pod:1127
8298 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1893
8300 "This returns C<true> if and only if there is a file, directory (or anything)"
8301 " with the given C<path> name."
8305 #: ../fish/guestfish-actions.pod:1132
8306 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8307 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8310 #: ../fish/guestfish-actions.pod:1134
8315 #: ../fish/guestfish-actions.pod:1136
8318 " fallocate path len\n"
8321 " fallocate шлях довжина\n"
8325 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8326 #: ../src/guestfs-actions.pod:1916 ../src/guestfs-actions.pod:1935
8328 "This command preallocates a file (containing zero bytes) named C<path> of "
8329 "size C<len> bytes. If the file exists already, it is overwritten."
8333 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1920
8335 "Do not confuse this with the guestfish-specific C<alloc> command which "
8336 "allocates a file in the host and attaches it as a device."
8340 #: ../fish/guestfish-actions.pod:1146
8342 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8347 #: ../fish/guestfish-actions.pod:1153
8349 msgstr "fallocate64"
8352 #: ../fish/guestfish-actions.pod:1155
8355 " fallocate64 path len\n"
8358 " fallocate64 шлях довжина\n"
8362 #: ../fish/guestfish-actions.pod:1161
8364 "Note that this call allocates disk blocks for the file. To create a sparse "
8365 "file use L</truncate-size> instead."
8369 #: ../fish/guestfish-actions.pod:1164
8371 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8372 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8373 "maximum size of files created through that call to 1GB."
8377 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1947
8379 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8380 "commands which create a file in the host and attach it as a device."
8384 #: ../fish/guestfish-actions.pod:1173
8389 #: ../fish/guestfish-actions.pod:1175
8392 " fgrep pattern path\n"
8395 " fgrep шаблон шлях\n"
8399 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1962
8401 "This calls the external C<fgrep> program and returns the matching lines."
8405 #: ../fish/guestfish-actions.pod:1183
8410 #: ../fish/guestfish-actions.pod:1185
8413 " fgrepi pattern path\n"
8416 " fgrepi шаблон шлях\n"
8420 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1981
8422 "This calls the external C<fgrep -i> program and returns the matching lines."
8426 #: ../fish/guestfish-actions.pod:1193
8431 #: ../fish/guestfish-actions.pod:1195
8441 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1999
8443 "This call uses the standard L<file(1)> command to determine the type or "
8444 "contents of the file."
8448 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2002
8450 "This call will also transparently look inside various types of compressed "
8455 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2005
8457 "The exact command which runs is C<file -zb path>. Note in particular that "
8458 "the filename is not prepended to the output (the I<-b> option)."
8462 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2009
8464 "The output depends on the output of the underlying L<file(1)> command and it"
8465 " can change in future in ways beyond our control. In other words, the "
8466 "output is not guaranteed by the ABI."
8470 #: ../fish/guestfish-actions.pod:1211
8472 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8473 "(etc), L</is-zero>."
8477 #: ../fish/guestfish-actions.pod:1214
8478 msgid "file-architecture"
8479 msgstr "file-architecture"
8482 #: ../fish/guestfish-actions.pod:1216
8485 " file-architecture filename\n"
8488 " file-architecture назва_файла\n"
8492 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2027
8494 "This detects the architecture of the binary C<filename>, and returns it if "
8499 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2030
8500 msgid "Currently defined architectures are:"
8504 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2034
8509 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2036
8511 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8512 "irrespective of the precise processor requirements of the binary."
8516 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2039
8521 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2041
8522 msgid "64 bit x86-64."
8526 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2043
8531 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2045
8532 msgid "32 bit SPARC."
8536 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2047
8541 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2049
8542 msgid "64 bit SPARC V9 and above."
8546 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2051
8551 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2053
8552 msgid "Intel Itanium."
8553 msgstr "Intel Itanium."
8556 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2055
8561 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2057
8562 msgid "32 bit Power PC."
8566 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2059
8571 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2061
8572 msgid "64 bit Power PC."
8576 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2065
8577 msgid "Libguestfs may return other architecture strings in future."
8581 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2067
8582 msgid "The function works on at least the following types of files:"
8586 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2073
8587 msgid "many types of Un*x and Linux binary"
8591 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2077
8592 msgid "many types of Un*x and Linux shared library"
8596 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2081
8597 msgid "Windows Win32 and Win64 binaries"
8601 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2085
8602 msgid "Windows Win32 and Win64 DLLs"
8606 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2087
8607 msgid "Win32 binaries and DLLs return C<i386>."
8611 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2089
8612 msgid "Win64 binaries and DLLs return C<x86_64>."
8616 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2093
8617 msgid "Linux kernel modules"
8621 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2097
8622 msgid "Linux new-style initrd images"
8626 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2101
8627 msgid "some non-x86 Linux vmlinuz kernels"
8631 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2105
8632 msgid "What it can't do currently:"
8636 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2111
8637 msgid "static libraries (libfoo.a)"
8641 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2115
8642 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8646 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2119
8647 msgid "x86 Linux vmlinuz kernels"
8651 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2121
8653 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8654 "compressed code, and are horribly hard to unpack. If you want to find the "
8655 "architecture of a kernel, use the architecture of the associated initrd or "
8656 "kernel module(s) instead."
8660 #: ../fish/guestfish-actions.pod:1319
8665 #: ../fish/guestfish-actions.pod:1321
8675 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2139
8676 msgid "This command returns the size of C<file> in bytes."
8680 #: ../fish/guestfish-actions.pod:1325
8682 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8683 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
8687 #: ../fish/guestfish-actions.pod:1329
8692 #: ../fish/guestfish-actions.pod:1331
8695 " fill c len path\n"
8700 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2157
8702 "This command creates a new file called C<path>. The initial content of the "
8703 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
8708 #: ../fish/guestfish-actions.pod:1337
8710 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8711 "L</truncate-size>. To create a file with a pattern of repeating bytes use L"
8716 #: ../fish/guestfish-actions.pod:1342
8717 msgid "fill-pattern"
8718 msgstr "fill-pattern"
8721 #: ../fish/guestfish-actions.pod:1344
8724 " fill-pattern pattern len path\n"
8729 #: ../fish/guestfish-actions.pod:1346
8731 "This function is like L</fill> except that it creates a new file of length "
8732 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern"
8733 " is truncated if necessary to ensure the length of the file is exactly "
8738 #: ../fish/guestfish-actions.pod:1351
8743 #: ../fish/guestfish-actions.pod:1353
8753 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2203
8755 "This command lists out all files and directories, recursively, starting at "
8756 "C<directory>. It is essentially equivalent to running the shell command "
8757 "C<find directory -print> but some post-processing happens on the output, "
8762 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2208
8764 "This returns a list of strings I<without any prefix>. Thus if the directory"
8769 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2211
8779 #: ../fish/guestfish-actions.pod:1367
8780 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8784 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2218
8795 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2223
8797 "If C<directory> is not a directory, then this command returns an error."
8801 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2226
8802 msgid "The returned list is sorted."
8806 #: ../fish/guestfish-actions.pod:1380
8807 msgid "See also L</find0>."
8808 msgstr "Див. також L</find0>."
8811 #: ../fish/guestfish-actions.pod:1385
8816 #: ../fish/guestfish-actions.pod:1387
8819 " find0 directory (files|-)\n"
8822 " find0 каталог (файли|-)\n"
8826 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2246
8828 "This command lists out all files and directories, recursively, starting at "
8829 "C<directory>, placing the resulting list in the external file called "
8834 #: ../fish/guestfish-actions.pod:1393
8836 "This command works the same way as L</find> with the following exceptions:"
8840 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2257
8841 msgid "The resulting list is written to an external file."
8845 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2261
8847 "Items (filenames) in the result are separated by C<\\0> characters. See "
8848 "L<find(1)> option I<-print0>."
8852 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2266
8853 msgid "This command is not limited in the number of names that it can return."
8857 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2271
8858 msgid "The result list is not sorted."
8862 #: ../fish/guestfish-actions.pod:1420
8863 msgid "findfs-label"
8864 msgstr "findfs-label"
8867 #: ../fish/guestfish-actions.pod:1422
8870 " findfs-label label\n"
8873 " findfs-label мітка\n"
8877 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2285
8879 "This command searches the filesystems and returns the one which has the "
8880 "given label. An error is returned if no such filesystem can be found."
8884 #: ../fish/guestfish-actions.pod:1428
8885 msgid "To find the label of a filesystem, use L</vfs-label>."
8886 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8889 #: ../fish/guestfish-actions.pod:1430
8891 msgstr "findfs-uuid"
8894 #: ../fish/guestfish-actions.pod:1432
8897 " findfs-uuid uuid\n"
8900 " findfs-uuid uuid\n"
8904 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2302
8906 "This command searches the filesystems and returns the one which has the "
8907 "given UUID. An error is returned if no such filesystem can be found."
8911 #: ../fish/guestfish-actions.pod:1438
8912 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8913 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8916 #: ../fish/guestfish-actions.pod:1440
8921 #: ../fish/guestfish-actions.pod:1442
8924 " fsck fstype device\n"
8927 " fsck тип_файлової_системи пристрій\n"
8931 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2320
8933 "This runs the filesystem checker (fsck) on C<device> which should have "
8934 "filesystem type C<fstype>."
8938 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2323
8940 "The returned integer is the status. See L<fsck(8)> for the list of status "
8941 "codes from C<fsck>."
8945 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2332
8946 msgid "Multiple status codes can be summed together."
8950 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2336
8952 "A non-zero return code can mean \"success\", for example if errors have been"
8953 " corrected on the filesystem."
8957 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2341
8958 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8962 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2346
8964 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8968 #: ../fish/guestfish-actions.pod:1472
8973 #: ../fish/guestfish-actions.pod:1474
8983 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2357
8985 "Return the additional kernel options which are added to the guest kernel "
8990 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2360
8991 msgid "If C<NULL> then no options are added."
8995 #: ../fish/guestfish-actions.pod:1481
8996 msgid "get-attach-method"
8997 msgstr "get-attach-method"
9000 #: ../fish/guestfish-actions.pod:1483
9003 " get-attach-method\n"
9006 " get-attach-method\n"
9010 #: ../fish/guestfish-actions.pod:1485
9011 msgid "Return the current attach method. See L</set-attach-method>."
9015 #: ../fish/guestfish-actions.pod:1487
9016 msgid "get-autosync"
9017 msgstr "get-autosync"
9020 #: ../fish/guestfish-actions.pod:1489
9030 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2385
9031 msgid "Get the autosync flag."
9035 #: ../fish/guestfish-actions.pod:1493
9040 #: ../fish/guestfish-actions.pod:1495
9050 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2396
9051 msgid "Return the direct appliance mode flag."
9055 #: ../fish/guestfish-actions.pod:1499
9057 msgstr "get-e2label"
9060 #: ../fish/guestfish-actions.pod:1501
9063 " get-e2label device\n"
9066 " get-e2label пристрій\n"
9070 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2415
9072 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9076 #: ../fish/guestfish-actions.pod:1506
9078 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9083 #: ../fish/guestfish-actions.pod:1513
9088 #: ../fish/guestfish-actions.pod:1515
9091 " get-e2uuid device\n"
9094 " get-e2uuid пристрій\n"
9098 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2436
9100 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9104 #: ../fish/guestfish-actions.pod:1520
9106 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9111 #: ../fish/guestfish-actions.pod:1527
9113 msgstr "get-memsize"
9116 #: ../fish/guestfish-actions.pod:1529
9126 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2449
9128 "This gets the memory size in megabytes allocated to the qemu subprocess."
9132 #: ../fish/guestfish-actions.pod:1534
9134 "If L</set-memsize> was not called on this handle, and if "
9135 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default"
9136 " value for memsize."
9140 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
9141 #: ../fish/guestfish-actions.pod:4375 ../fish/guestfish-actions.pod:4477
9142 #: ../src/guestfs-actions.pod:2456 ../src/guestfs-actions.pod:2548
9143 #: ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:6886
9145 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9149 #: ../fish/guestfish-actions.pod:1541
9151 msgstr "get-network"
9154 #: ../fish/guestfish-actions.pod:1543
9164 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2468
9165 msgid "This returns the enable network flag."
9169 #: ../fish/guestfish-actions.pod:1547
9174 #: ../fish/guestfish-actions.pod:1549
9184 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2479
9185 msgid "Return the current search path."
9189 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2481
9191 "This is always non-NULL. If it wasn't set already, then this will return "
9196 #: ../fish/guestfish-actions.pod:1556
9201 #: ../fish/guestfish-actions.pod:1558
9209 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2494
9210 msgid "This returns the process group flag."
9214 #: ../fish/guestfish-actions.pod:1562
9219 #: ../fish/guestfish-actions.pod:1564
9224 #: ../fish/guestfish-actions.pod:1566
9234 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2505
9236 "Return the process ID of the qemu subprocess. If there is no qemu "
9237 "subprocess, then this will return an error."
9241 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2508
9242 msgid "This is an internal call used for debugging and testing."
9246 #: ../fish/guestfish-actions.pod:1573
9251 #: ../fish/guestfish-actions.pod:1575
9261 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2519
9262 msgid "Return the current qemu binary."
9266 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2521
9268 "This is always non-NULL. If it wasn't set already, then this will return "
9269 "the default qemu binary name."
9273 #: ../fish/guestfish-actions.pod:1582
9274 msgid "get-recovery-proc"
9275 msgstr "get-recovery-proc"
9278 #: ../fish/guestfish-actions.pod:1584
9281 " get-recovery-proc\n"
9284 " get-recovery-proc\n"
9288 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2534
9289 msgid "Return the recovery process enabled flag."
9293 #: ../fish/guestfish-actions.pod:1588
9295 msgstr "get-selinux"
9298 #: ../fish/guestfish-actions.pod:1590
9308 #: ../fish/guestfish-actions.pod:1592
9310 "This returns the current setting of the selinux flag which is passed to the "
9311 "appliance at boot time. See L</set-selinux>."
9315 #: ../fish/guestfish-actions.pod:1598
9320 #: ../fish/guestfish-actions.pod:1600
9328 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2560
9329 msgid "This returns the number of virtual CPUs assigned to the appliance."
9333 #: ../fish/guestfish-actions.pod:1604
9338 #: ../fish/guestfish-actions.pod:1606
9348 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2571
9350 "This returns the current state as an opaque integer. This is only useful "
9351 "for printing debug and internal error messages."
9355 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
9356 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
9357 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2574
9358 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3922
9359 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4010
9360 msgid "For more information on states, see L<guestfs(3)>."
9364 #: ../fish/guestfish-actions.pod:1613
9369 #: ../fish/guestfish-actions.pod:1615
9379 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2585
9380 msgid "Return the command trace flag."
9384 #: ../fish/guestfish-actions.pod:1619
9389 #: ../fish/guestfish-actions.pod:1621
9399 #: ../fish/guestfish-actions.pod:1623
9401 "Return the current umask. By default the umask is C<022> unless it has been"
9402 " set by calling L</umask>."
9406 #: ../fish/guestfish-actions.pod:1626
9408 msgstr "get-verbose"
9411 #: ../fish/guestfish-actions.pod:1628
9421 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2608
9422 msgid "This returns the verbose messages flag."
9426 #: ../fish/guestfish-actions.pod:1632
9431 #: ../fish/guestfish-actions.pod:1634
9441 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2619
9442 msgid "This gets the SELinux security context of the daemon."
9446 #: ../fish/guestfish-actions.pod:1638
9447 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9451 #: ../fish/guestfish-actions.pod:1641
9456 #: ../fish/guestfish-actions.pod:1643
9459 " getxattr path name\n"
9462 " getxattr шлях назва\n"
9466 #: ../fish/guestfish-actions.pod:1645
9468 "Get a single extended attribute from file C<path> named C<name>. This call "
9469 "follows symlinks. If you want to lookup an extended attribute for the "
9470 "symlink itself, use L</lgetxattr>."
9474 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9476 "Normally it is better to get all extended attributes from a file in one go "
9477 "by calling L</getxattrs>. However some Linux filesystem implementations are"
9478 " buggy and do not provide a way to list out attributes. For these "
9479 "filesystems (notably ntfs-3g) you have to know the names of the extended "
9480 "attributes you want in advance and call this function."
9484 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
9485 #: ../src/guestfs-actions.pod:2648 ../src/guestfs-actions.pod:4143
9487 "Extended attribute values are blobs of binary data. If there is no extended"
9488 " attribute named C<name>, this returns an error."
9492 #: ../fish/guestfish-actions.pod:1659
9493 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9494 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9497 #: ../fish/guestfish-actions.pod:1661
9502 #: ../fish/guestfish-actions.pod:1663
9512 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2665
9514 "This call lists the extended attributes of the file or directory C<path>."
9518 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2668
9520 "At the system call level, this is a combination of the L<listxattr(2)> and "
9521 "L<getxattr(2)> calls."
9525 #: ../fish/guestfish-actions.pod:1671
9526 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9527 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9530 #: ../fish/guestfish-actions.pod:1673
9532 msgstr "glob-expand"
9535 #: ../fish/guestfish-actions.pod:1675
9538 " glob-expand pattern\n"
9541 " glob-expand шаблон\n"
9545 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2685
9547 "This command searches for all the pathnames matching C<pattern> according to"
9548 " the wildcard expansion rules used by the shell."
9552 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2689
9554 "If no paths match, then this returns an empty list (note: not an error)."
9558 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2692
9560 "It is just a wrapper around the C L<glob(3)> function with flags "
9561 "C<GLOB_MARK|GLOB_BRACE>. See that manual page for more details."
9565 #: ../fish/guestfish-actions.pod:1688
9570 #: ../fish/guestfish-actions.pod:1690
9573 " grep regex path\n"
9576 " grepi формальний_вираз шлях\n"
9580 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2709
9582 "This calls the external C<grep> program and returns the matching lines."
9586 #: ../fish/guestfish-actions.pod:1698
9591 #: ../fish/guestfish-actions.pod:1700
9594 " grepi regex path\n"
9597 " grepi формальний_вираз шлях\n"
9601 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2728
9603 "This calls the external C<grep -i> program and returns the matching lines."
9607 #: ../fish/guestfish-actions.pod:1708
9608 msgid "grub-install"
9609 msgstr "grub-install"
9612 #: ../fish/guestfish-actions.pod:1710
9615 " grub-install root device\n"
9618 " grub-install кореневий пристрій\n"
9622 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2747
9624 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9625 "with the root directory being C<root>."
9629 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2756
9631 "There is currently no way in the API to install grub2, which is used by most"
9632 " modern Linux guests. It is possible to run the grub2 command from the "
9633 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9637 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2763
9639 "This uses C<grub-install> from the host. Unfortunately grub is not always "
9640 "compatible with itself, so this only works in rather narrow circumstances. "
9641 "Careful testing with each guest version is advisable."
9645 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2770
9647 "If grub-install reports the error \"No suitable drive was found in the "
9648 "generated device map.\" it may be that you need to create a "
9649 "C</boot/grub/device.map> file first that contains the mapping between grub "
9650 "device names and Linux device names. It is usually sufficient to create a "
9655 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2777
9663 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2779
9664 msgid "replacing C</dev/vda> with the name of the installation device."
9668 #: ../fish/guestfish-actions.pod:1748
9673 #: ../fish/guestfish-actions.pod:1750
9683 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2793
9685 "This command returns up to the first 10 lines of a file as a list of "
9690 #: ../fish/guestfish-actions.pod:1758
9695 #: ../fish/guestfish-actions.pod:1760
9698 " head-n nrlines path\n"
9703 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2812
9705 "If the parameter C<nrlines> is a positive number, this returns the first "
9706 "C<nrlines> lines of the file C<path>."
9710 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2815
9712 "If the parameter C<nrlines> is a negative number, this returns lines from "
9713 "the file C<path>, excluding the last C<nrlines> lines."
9717 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4867
9718 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:7474
9719 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9723 #: ../fish/guestfish-actions.pod:1773
9728 #: ../fish/guestfish-actions.pod:1775
9738 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2835
9740 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
9741 "readable, canonical hex dump of the file."
9745 #: ../fish/guestfish-actions.pod:1783
9750 #: ../fish/guestfish-actions.pod:1785
9753 " initrd-cat initrdpath filename\n"
9756 " initrd-cat шлях_initrd назва_файла\n"
9760 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2854
9762 "This command unpacks the file C<filename> from the initrd file called "
9763 "C<initrdpath>. The filename must be given I<without> the initial C</> "
9768 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2858
9770 "For example, in guestfish you could use the following command to examine the"
9771 " boot script (usually called C</init>) contained in a Linux initrd or "
9776 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2862
9779 " initrd-cat /boot/initrd-<version>.img init\n"
9784 #: ../fish/guestfish-actions.pod:1797
9785 msgid "See also L</initrd-list>."
9786 msgstr "Див. також L</initrd-list>."
9789 #: ../fish/guestfish-actions.pod:1802
9791 msgstr "initrd-list"
9794 #: ../fish/guestfish-actions.pod:1804
9797 " initrd-list path\n"
9800 " initrd-list шлях\n"
9804 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2881
9805 msgid "This command lists out files contained in an initrd."
9809 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2883
9811 "The files are listed without any initial C</> character. The files are "
9812 "listed in the order they appear (not necessarily alphabetical). Directory "
9813 "names are listed as separate items."
9817 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2887
9819 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9820 "initrd. We I<only> support the newer initramfs format (compressed cpio "
9825 #: ../fish/guestfish-actions.pod:1816
9826 msgid "inotify-add-watch"
9827 msgstr "inotify-add-watch"
9830 #: ../fish/guestfish-actions.pod:1818
9833 " inotify-add-watch path mask\n"
9836 " inotify-add-watch шлях маска\n"
9840 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2904
9841 msgid "Watch C<path> for the events listed in C<mask>."
9845 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2906
9847 "Note that if C<path> is a directory then events within that directory are "
9848 "watched, but this does I<not> happen recursively (in subdirectories)."
9852 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2910
9854 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9855 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9859 #: ../fish/guestfish-actions.pod:1830
9860 msgid "inotify-close"
9861 msgstr "inotify-close"
9864 #: ../fish/guestfish-actions.pod:1832
9874 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2923
9876 "This closes the inotify handle which was previously opened by inotify_init."
9877 " It removes all watches, throws away any pending events, and deallocates "
9882 #: ../fish/guestfish-actions.pod:1838
9883 msgid "inotify-files"
9884 msgstr "inotify-files"
9887 #: ../fish/guestfish-actions.pod:1840
9897 #: ../fish/guestfish-actions.pod:1842
9899 "This function is a helpful wrapper around L</inotify-read> which just "
9900 "returns a list of pathnames of objects that were touched. The returned "
9901 "pathnames are sorted and deduplicated."
9905 #: ../fish/guestfish-actions.pod:1846
9906 msgid "inotify-init"
9907 msgstr "inotify-init"
9910 #: ../fish/guestfish-actions.pod:1848
9913 " inotify-init maxevents\n"
9918 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2952
9920 "This command creates a new inotify handle. The inotify subsystem can be "
9921 "used to notify events which happen to objects in the guest filesystem."
9925 #: ../fish/guestfish-actions.pod:1854
9927 "C<maxevents> is the maximum number of events which will be queued up between"
9928 " calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>,"
9929 " then the kernel (or previously set) default is used. For Linux 2.6.29 the"
9930 " default was 16384 events. Beyond this limit, the kernel throws away "
9931 "events, but records the fact that it threw them away by setting a flag "
9932 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9936 #: ../fish/guestfish-actions.pod:1864
9938 "Before any events are generated, you have to add some watches to the "
9939 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and L"
9940 "</inotify-watch-all>."
9944 #: ../fish/guestfish-actions.pod:1870
9946 "Queued up events should be read periodically by calling L</inotify-read> (or"
9947 " L</inotify-files> which is just a helpful wrapper around L</inotify-read>)."
9948 " If you don't read the events out often enough then you risk the internal "
9949 "queue overflowing."
9953 #: ../fish/guestfish-actions.pod:1877
9955 "The handle should be closed after use by calling L</inotify-close>. This "
9956 "also removes any watches automatically."
9960 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2983
9962 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9963 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
9964 "that there is one global inotify handle per libguestfs instance."
9968 #: ../fish/guestfish-actions.pod:1886
9969 msgid "inotify-read"
9970 msgstr "inotify-read"
9973 #: ../fish/guestfish-actions.pod:1888
9983 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:2997
9985 "Return the complete queue of events that have happened since the previous "
9990 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3000
9991 msgid "If no events have happened, this returns an empty list."
9995 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3002
9997 "I<Note>: In order to make sure that all events have been read, you must call"
9998 " this function repeatedly until it returns an empty list. The reason is "
9999 "that the call will read events up to the maximum appliance-to-host message "
10000 "size and leave remaining events in the queue."
10004 #: ../fish/guestfish-actions.pod:1901
10005 msgid "inotify-rm-watch"
10006 msgstr "inotify-rm-watch"
10009 #: ../fish/guestfish-actions.pod:1903
10012 " inotify-rm-watch wd\n"
10017 #: ../fish/guestfish-actions.pod:1905
10018 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
10022 #: ../fish/guestfish-actions.pod:1908
10023 msgid "inspect-get-arch"
10024 msgstr "inspect-get-arch"
10027 #: ../fish/guestfish-actions.pod:1910
10030 " inspect-get-arch root\n"
10033 " inspect-get-arch корінь\n"
10037 #: ../fish/guestfish-actions.pod:1912
10039 "This returns the architecture of the inspected operating system. The "
10040 "possible return values are listed under L</file-architecture>."
10044 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3037
10046 "If the architecture could not be determined, then the string C<unknown> is "
10051 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
10052 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
10053 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
10054 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
10055 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
10056 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
10057 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
10058 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
10059 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3040
10060 #: ../src/guestfs-actions.pod:3142 ../src/guestfs-actions.pod:3246
10061 #: ../src/guestfs-actions.pod:3265 ../src/guestfs-actions.pod:3396
10062 #: ../src/guestfs-actions.pod:3480 ../src/guestfs-actions.pod:3508
10063 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3582
10064 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3646
10065 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3683
10066 #: ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3717
10067 #: ../src/guestfs-actions.pod:3819 ../src/guestfs-actions.pod:3860
10068 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10072 #: ../fish/guestfish-actions.pod:1921
10073 msgid "inspect-get-distro"
10074 msgstr "inspect-get-distro"
10077 #: ../fish/guestfish-actions.pod:1923
10080 " inspect-get-distro root\n"
10083 " inspect-get-distro корінь\n"
10087 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3053
10089 "This returns the distro (distribution) of the inspected operating system."
10093 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3056
10094 msgid "Currently defined distros are:"
10098 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3060
10099 msgid "\"archlinux\""
10100 msgstr "\"archlinux\""
10103 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3062
10104 msgid "Arch Linux."
10105 msgstr "Arch Linux."
10108 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3064
10113 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3066
10118 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3068
10120 msgstr "\"debian\""
10123 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3070
10128 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3072
10130 msgstr "\"fedora\""
10133 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3074
10138 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3076
10140 msgstr "\"gentoo\""
10143 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3078
10148 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3080
10149 msgid "\"linuxmint\""
10150 msgstr "\"linuxmint\""
10153 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3082
10154 msgid "Linux Mint."
10155 msgstr "Linux Mint."
10158 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3084
10163 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3086
10168 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3088
10169 msgid "\"mandriva\""
10170 msgstr "\"mandriva\""
10173 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3090
10178 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3092
10183 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3094
10188 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3096
10189 msgid "\"opensuse\""
10193 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3098
10198 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3100
10200 msgstr "\"pardus\""
10203 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3102
10208 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3104
10209 msgid "\"redhat-based\""
10210 msgstr "\"redhat-based\""
10213 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3106
10214 msgid "Some Red Hat-derived distro."
10215 msgstr "Дистрибутив, що походить від Red Hat."
10218 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3108
10223 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3110
10224 msgid "Red Hat Enterprise Linux."
10225 msgstr "Red Hat Enterprise Linux."
10228 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3112
10229 msgid "\"scientificlinux\""
10230 msgstr "\"scientificlinux\""
10233 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3114
10234 msgid "Scientific Linux."
10235 msgstr "Scientific Linux."
10238 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3116
10239 msgid "\"slackware\""
10240 msgstr "\"slackware\""
10243 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3118
10245 msgstr "Slackware."
10248 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3120
10249 msgid "\"ttylinux\""
10253 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3122
10258 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3124
10260 msgstr "\"ubuntu\""
10263 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3126
10268 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10269 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3128
10270 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3617
10271 msgid "\"unknown\""
10272 msgstr "\"unknown\""
10275 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3130
10276 msgid "The distro could not be determined."
10277 msgstr "Дистрибутив, тип якого не вдалося визначити."
10280 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10281 #: ../src/guestfs-actions.pod:3132 ../src/guestfs-actions.pod:3605
10282 msgid "\"windows\""
10283 msgstr "\"windows\""
10286 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3134
10288 "Windows does not have distributions. This string is returned if the OS type"
10293 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10294 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3139
10295 #: ../src/guestfs-actions.pod:3243 ../src/guestfs-actions.pod:3623
10297 "Future versions of libguestfs may return other strings here. The caller "
10298 "should be prepared to handle any string."
10302 #: ../fish/guestfish-actions.pod:2016
10303 msgid "inspect-get-drive-mappings"
10307 #: ../fish/guestfish-actions.pod:2018
10310 " inspect-get-drive-mappings root\n"
10315 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3155
10317 "This call is useful for Windows which uses a primitive system of assigning "
10318 "drive letters (like \"C:\") to partitions. This inspection API examines the"
10319 " Windows Registry to find out how disks/partitions are mapped to drive "
10320 "letters, and returns a hash table as in the example below:"
10324 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3161
10327 " C => /dev/vda2\n"
10328 " E => /dev/vdb1\n"
10329 " F => /dev/vdc1\n"
10334 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3165
10336 "Note that keys are drive letters. For Windows, the key is case insensitive "
10337 "and just contains the drive letter, without the customary colon separator "
10342 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3169
10344 "In future we may support other operating systems that also used drive "
10345 "letters, but the keys for those might not be case insensitive and might be "
10346 "longer than 1 character. For example in OS-9, hard drives were named C<h0>,"
10351 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3174
10353 "For Windows guests, currently only hard drive mappings are returned. "
10354 "Removable disks (eg. DVD-ROMs) are ignored."
10358 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3177
10360 "For guests that do not use drive mappings, or if the drive mappings could "
10361 "not be determined, this returns an empty hash table."
10365 #: ../fish/guestfish-actions.pod:2045
10367 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10368 "get-mountpoints>, L</inspect-get-filesystems>."
10372 #: ../fish/guestfish-actions.pod:2049
10373 msgid "inspect-get-filesystems"
10374 msgstr "inspect-get-filesystems"
10377 #: ../fish/guestfish-actions.pod:2051
10380 " inspect-get-filesystems root\n"
10383 " inspect-get-filesystems корінь\n"
10387 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3198
10389 "This returns a list of all the filesystems that we think are associated with"
10390 " this operating system. This includes the root filesystem, other ordinary "
10391 "filesystems, and non-mounted devices like swap partitions."
10395 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3203
10397 "In the case of a multi-boot virtual machine, it is possible for a filesystem"
10398 " to be shared between operating systems."
10402 #: ../fish/guestfish-actions.pod:2061
10404 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10405 "get-mountpoints>."
10409 #: ../fish/guestfish-actions.pod:2064
10410 msgid "inspect-get-format"
10411 msgstr "inspect-get-format"
10414 #: ../fish/guestfish-actions.pod:2066
10417 " inspect-get-format root\n"
10420 " inspect-get-format корінь\n"
10424 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3221
10426 "This returns the format of the inspected operating system. You can use it "
10427 "to detect install images, live CDs and similar."
10431 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3224
10432 msgid "Currently defined formats are:"
10436 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3228
10437 msgid "\"installed\""
10438 msgstr "\"installed\""
10441 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3230
10442 msgid "This is an installed operating system."
10443 msgstr "Це встановлена операційна система."
10446 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3232
10447 msgid "\"installer\""
10451 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3234
10453 "The disk image being inspected is not an installed operating system, but a "
10454 "I<bootable> install disk, live CD, or similar."
10458 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3239
10459 msgid "The format of this disk image is not known."
10463 #: ../fish/guestfish-actions.pod:2095
10464 msgid "inspect-get-hostname"
10465 msgstr "inspect-get-hostname"
10468 #: ../fish/guestfish-actions.pod:2097
10471 " inspect-get-hostname root\n"
10474 " inspect-get-hostname корінь\n"
10478 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3259
10480 "This function returns the hostname of the operating system as found by "
10481 "inspection of the guest's configuration files."
10485 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3262
10487 "If the hostname could not be determined, then the string C<unknown> is "
10492 #: ../fish/guestfish-actions.pod:2107
10493 msgid "inspect-get-icon"
10497 #: ../fish/guestfish-actions.pod:2109
10500 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10505 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3288
10507 "This function returns an icon corresponding to the inspected operating "
10508 "system. The icon is returned as a buffer containing a PNG image (re-encoded"
10509 " to PNG if necessary)."
10513 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3292
10515 "If it was not possible to get an icon this function returns a zero-length "
10516 "(non-NULL) buffer. I<Callers must check for this case>."
10520 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3295
10522 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10523 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10524 "this file will be returned. You can disable favicons by passing the "
10525 "optional C<favicon> boolean as false (default is true)."
10529 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3301
10531 "If finding the favicon fails, then we look in other places in the guest for "
10536 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3304
10538 "If the optional C<highquality> boolean is true then only high quality icons "
10539 "are returned, which means only icons of high resolution with an alpha "
10540 "channel. The default (false) is to return any icon we can, even if it is of"
10541 " substandard quality."
10545 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3315
10547 "Unlike most other inspection API calls, the guest's disks must be mounted up"
10548 " before you call this, since it needs to read information from the guest "
10549 "filesystem during the call."
10553 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3321
10555 "B<Security:> The icon data comes from the untrusted guest, and should be "
10556 "treated with caution. PNG files have been known to contain exploits. "
10557 "Ensure that libpng (or other relevant libraries) are fully up to date before"
10558 " trying to process or display the icon."
10562 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3329
10564 "The PNG image returned can be any size. It might not be square. Libguestfs"
10565 " tries to return the largest, highest quality icon available. The "
10566 "application must scale the icon to the required size."
10570 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3336
10572 "Extracting icons from Windows guests requires the external C<wrestool> "
10573 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10574 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
10575 "installed separately."
10579 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3343
10581 "Operating system icons are usually trademarks. Seek legal advice before "
10582 "using trademarks in applications."
10586 #: ../fish/guestfish-actions.pod:2173
10587 msgid "inspect-get-major-version"
10588 msgstr "inspect-get-major-version"
10591 #: ../fish/guestfish-actions.pod:2175
10594 " inspect-get-major-version root\n"
10597 " inspect-get-major-version корінь\n"
10601 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3384
10603 "This returns the major version number of the inspected operating system."
10607 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3387
10609 "Windows uses a consistent versioning scheme which is I<not> reflected in the"
10610 " popular public names used by the operating system. Notably the operating "
10611 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10612 "1). You can find out the real versions corresponding to releases of Windows"
10613 " by consulting Wikipedia or MSDN."
10617 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
10618 #: ../src/guestfs-actions.pod:3394 ../src/guestfs-actions.pod:3411
10619 msgid "If the version could not be determined, then C<0> is returned."
10623 #: ../fish/guestfish-actions.pod:2191
10624 msgid "inspect-get-minor-version"
10625 msgstr "inspect-get-minor-version"
10628 #: ../fish/guestfish-actions.pod:2193
10631 " inspect-get-minor-version root\n"
10634 " inspect-get-minor-version корінь\n"
10638 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3408
10640 "This returns the minor version number of the inspected operating system."
10644 #: ../fish/guestfish-actions.pod:2200
10646 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10647 "get-major-version>."
10651 #: ../fish/guestfish-actions.pod:2203
10652 msgid "inspect-get-mountpoints"
10653 msgstr "inspect-get-mountpoints"
10656 #: ../fish/guestfish-actions.pod:2205
10659 " inspect-get-mountpoints root\n"
10662 " inspect-get-mountpoints корінь\n"
10666 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3426
10668 "This returns a hash of where we think the filesystems associated with this "
10669 "operating system should be mounted. Callers should note that this is at "
10670 "best an educated guess made by reading configuration files such as "
10671 "C</etc/fstab>. I<In particular note> that this may return filesystems which"
10672 " are non-existent or not mountable and callers should be prepared to handle "
10673 "or ignore failures if they try to mount them."
10677 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3435
10679 "Each element in the returned hashtable has a key which is the path of the "
10680 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10681 "mounted there (eg. C</dev/sda1>)."
10685 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3440
10687 "Non-mounted devices such as swap devices are I<not> returned in this list."
10691 #: ../fish/guestfish-actions.pod:2224
10693 "For operating systems like Windows which still use drive letters, this call "
10694 "will only return an entry for the first drive \"mounted on\" C</>. For "
10695 "information about the mapping of drive letters to partitions, see L"
10696 "</inspect-get-drive-mappings>."
10700 #: ../fish/guestfish-actions.pod:2230
10702 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10703 "get-filesystems>."
10707 #: ../fish/guestfish-actions.pod:2233
10708 msgid "inspect-get-package-format"
10709 msgstr "inspect-get-package-format"
10712 #: ../fish/guestfish-actions.pod:2235
10715 " inspect-get-package-format root\n"
10718 " inspect-get-package-format корінь\n"
10722 #: ../fish/guestfish-actions.pod:2237
10724 "This function and L</inspect-get-package-management> return the package "
10725 "format and package management tool used by the inspected operating system. "
10726 "For example for Fedora these functions would return C<rpm> (package format) "
10727 "and C<yum> (package management)."
10731 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3472
10733 "This returns the string C<unknown> if we could not determine the package "
10734 "format I<or> if the operating system does not have a real packaging system "
10739 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3476
10741 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10742 "C<pkgsrc>. Future versions of libguestfs may return other strings."
10746 #: ../fish/guestfish-actions.pod:2253
10747 msgid "inspect-get-package-management"
10748 msgstr "inspect-get-package-management"
10751 #: ../fish/guestfish-actions.pod:2255
10754 " inspect-get-package-management root\n"
10757 " inspect-get-package-management корінь\n"
10761 #: ../fish/guestfish-actions.pod:2257
10763 "L</inspect-get-package-format> and this function return the package format "
10764 "and package management tool used by the inspected operating system. For "
10765 "example for Fedora these functions would return C<rpm> (package format) and "
10766 "C<yum> (package management)."
10770 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3499
10772 "This returns the string C<unknown> if we could not determine the package "
10773 "management tool I<or> if the operating system does not have a real packaging"
10774 " system (eg. Windows)."
10778 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3503
10780 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10781 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>. Future "
10782 "versions of libguestfs may return other strings."
10786 #: ../fish/guestfish-actions.pod:2274
10787 msgid "inspect-get-product-name"
10788 msgstr "inspect-get-product-name"
10791 #: ../fish/guestfish-actions.pod:2276
10794 " inspect-get-product-name root\n"
10797 " inspect-get-product-name корінь\n"
10801 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3521
10803 "This returns the product name of the inspected operating system. The "
10804 "product name is generally some freeform string which can be displayed to the"
10805 " user, but should not be parsed by programs."
10809 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3526
10811 "If the product name could not be determined, then the string C<unknown> is "
10816 #: ../fish/guestfish-actions.pod:2288
10817 msgid "inspect-get-product-variant"
10821 #: ../fish/guestfish-actions.pod:2290
10824 " inspect-get-product-variant root\n"
10829 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3542
10830 msgid "This returns the product variant of the inspected operating system."
10834 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3545
10836 "For Windows guests, this returns the contents of the Registry key "
10837 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType>"
10838 " which is usually a string such as C<Client> or C<Server> (other values are "
10839 "possible). This can be used to distinguish consumer and enterprise versions"
10840 " of Windows that have the same version number (for example, Windows 7 and "
10841 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10842 "the latter is C<Server>)."
10846 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3554
10848 "For enterprise Linux guests, in future we intend this to return the product "
10849 "variant such as C<Desktop>, C<Server> and so on. But this is not "
10850 "implemented at present."
10854 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3558
10856 "If the product variant could not be determined, then the string C<unknown> "
10861 #: ../fish/guestfish-actions.pod:2311
10863 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10864 "get-product-name>, L</inspect-get-major-version>."
10868 #: ../fish/guestfish-actions.pod:2315
10869 msgid "inspect-get-roots"
10870 msgstr "inspect-get-roots"
10873 #: ../fish/guestfish-actions.pod:2317
10876 " inspect-get-roots\n"
10879 " inspect-get-roots\n"
10883 #: ../fish/guestfish-actions.pod:2319
10885 "This function is a convenient way to get the list of root devices, as "
10886 "returned from a previous call to L</inspect-os>, but without redoing the "
10887 "whole inspection process."
10891 #: ../fish/guestfish-actions.pod:2323
10893 "This returns an empty list if either no root devices were found or the "
10894 "caller has not called L</inspect-os>."
10898 #: ../fish/guestfish-actions.pod:2328
10899 msgid "inspect-get-type"
10900 msgstr "inspect-get-type"
10903 #: ../fish/guestfish-actions.pod:2330
10906 " inspect-get-type root\n"
10909 " inspect-get-type корінь\n"
10913 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3596
10915 "This returns the type of the inspected operating system. Currently defined "
10920 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3601
10925 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3603
10926 msgid "Any Linux-based operating system."
10930 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3607
10931 msgid "Any Microsoft Windows operating system."
10935 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3609
10936 msgid "\"freebsd\""
10937 msgstr "\"freebsd\""
10940 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3611
10945 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3613
10950 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3615
10955 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3619
10956 msgid "The operating system type could not be determined."
10960 #: ../fish/guestfish-actions.pod:2364
10961 msgid "inspect-get-windows-current-control-set"
10965 #: ../fish/guestfish-actions.pod:2366
10968 " inspect-get-windows-current-control-set root\n"
10973 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3639
10975 "This returns the Windows CurrentControlSet of the inspected guest. The "
10976 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10980 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3642
10982 "This call assumes that the guest is Windows and that the Registry could be "
10983 "examined by inspection. If this is not the case then an error is returned."
10987 #: ../fish/guestfish-actions.pod:2377
10988 msgid "inspect-get-windows-systemroot"
10989 msgstr "inspect-get-windows-systemroot"
10992 #: ../fish/guestfish-actions.pod:2379
10995 " inspect-get-windows-systemroot root\n"
10998 " inspect-get-windows-systemroot корінь\n"
11002 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3659
11004 "This returns the Windows systemroot of the inspected guest. The systemroot "
11005 "is a directory path such as C</WINDOWS>."
11009 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3662
11011 "This call assumes that the guest is Windows and that the systemroot could be"
11012 " determined by inspection. If this is not the case then an error is "
11017 #: ../fish/guestfish-actions.pod:2390
11018 msgid "inspect-is-live"
11019 msgstr "inspect-is-live"
11022 #: ../fish/guestfish-actions.pod:2392
11025 " inspect-is-live root\n"
11028 " inspect-is-live корінь\n"
11032 #: ../fish/guestfish-actions.pod:2394
11034 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11035 "then this returns true if a live image was detected on the disk."
11039 #: ../fish/guestfish-actions.pod:2400
11040 msgid "inspect-is-multipart"
11041 msgstr "inspect-is-multipart"
11044 #: ../fish/guestfish-actions.pod:2402
11047 " inspect-is-multipart root\n"
11050 " inspect-is-multipart корінь\n"
11054 #: ../fish/guestfish-actions.pod:2404
11056 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11057 "then this returns true if the disk is part of a set."
11061 #: ../fish/guestfish-actions.pod:2410
11062 msgid "inspect-is-netinst"
11063 msgstr "inspect-is-netinst"
11066 #: ../fish/guestfish-actions.pod:2412
11069 " inspect-is-netinst root\n"
11072 " inspect-is-netinst корінь\n"
11076 #: ../fish/guestfish-actions.pod:2414
11078 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11079 "then this returns true if the disk is a network installer, ie. not a self-"
11080 "contained install CD but one which is likely to require network access to "
11081 "complete the install."
11085 #: ../fish/guestfish-actions.pod:2422
11086 msgid "inspect-list-applications"
11087 msgstr "inspect-list-applications"
11090 #: ../fish/guestfish-actions.pod:2424
11093 " inspect-list-applications root\n"
11096 " inspect-list-applications кореневий_каталог\n"
11100 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3729
11101 msgid "Return the list of applications installed in the operating system."
11105 #: ../fish/guestfish-actions.pod:2428
11107 "I<Note:> This call works differently from other parts of the inspection API."
11108 " You have to call L</inspect-os>, then L</inspect-get-mountpoints>, then "
11109 "mount up the disks, before calling this. Listing applications is a "
11110 "significantly more difficult operation which requires access to the full "
11111 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
11112 "are just returning data cached in the libguestfs handle, this call actually "
11113 "reads parts of the mounted filesystems during the call."
11117 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3741
11119 "This returns an empty list if the inspection code was not able to determine "
11120 "the list of applications."
11124 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3744
11125 msgid "The application structure contains the following fields:"
11129 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3748
11130 msgid "C<app_name>"
11131 msgstr "C<app_name>"
11134 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3750
11136 "The name of the application. For Red Hat-derived and Debian-derived Linux "
11137 "guests, this is the package name."
11141 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3753
11142 msgid "C<app_display_name>"
11143 msgstr "C<app_display_name>"
11146 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3755
11148 "The display name of the application, sometimes localized to the install "
11149 "language of the guest operating system."
11153 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3758
11155 "If unavailable this is returned as an empty string C<\"\">. Callers needing"
11156 " to display something can use C<app_name> instead."
11160 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3761
11161 msgid "C<app_epoch>"
11162 msgstr "C<app_epoch>"
11165 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3763
11167 "For package managers which use epochs, this contains the epoch of the "
11168 "package (an integer). If unavailable, this is returned as C<0>."
11172 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3766
11173 msgid "C<app_version>"
11174 msgstr "C<app_version>"
11177 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3768
11179 "The version string of the application or package. If unavailable this is "
11180 "returned as an empty string C<\"\">."
11184 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3771
11185 msgid "C<app_release>"
11186 msgstr "C<app_release>"
11189 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3773
11191 "The release string of the application or package, for package managers that "
11192 "use this. If unavailable this is returned as an empty string C<\"\">."
11196 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3777
11197 msgid "C<app_install_path>"
11198 msgstr "C<app_install_path>"
11201 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3779
11203 "The installation path of the application (on operating systems such as "
11204 "Windows which use installation paths). This path is in the format used by "
11205 "the guest operating system, it is not a libguestfs path."
11209 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3784
11210 msgid "If unavailable this is returned as an empty string C<\"\">."
11214 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3786
11215 msgid "C<app_trans_path>"
11216 msgstr "C<app_trans_path>"
11219 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3788
11221 "The install path translated into a libguestfs path. If unavailable this is "
11222 "returned as an empty string C<\"\">."
11226 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3791
11227 msgid "C<app_publisher>"
11228 msgstr "C<app_publisher>"
11231 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3793
11233 "The name of the publisher of the application, for package managers that use "
11234 "this. If unavailable this is returned as an empty string C<\"\">."
11238 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3797
11240 msgstr "C<app_url>"
11243 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3799
11245 "The URL (eg. upstream URL) of the application. If unavailable this is "
11246 "returned as an empty string C<\"\">."
11250 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3802
11251 msgid "C<app_source_package>"
11252 msgstr "C<app_source_package>"
11255 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3804
11257 "For packaging systems which support this, the name of the source package. "
11258 "If unavailable this is returned as an empty string C<\"\">."
11262 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3807
11263 msgid "C<app_summary>"
11264 msgstr "C<app_summary>"
11267 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3809
11269 "A short (usually one line) description of the application or package. If "
11270 "unavailable this is returned as an empty string C<\"\">."
11274 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3812
11275 msgid "C<app_description>"
11276 msgstr "C<app_description>"
11279 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3814
11281 "A longer description of the application or package. If unavailable this is "
11282 "returned as an empty string C<\"\">."
11286 #: ../fish/guestfish-actions.pod:2518
11288 msgstr "inspect-os"
11291 #: ../fish/guestfish-actions.pod:2520
11301 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3832
11303 "This function uses other libguestfs functions and certain heuristics to "
11304 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11305 "for operating systems."
11309 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3836
11310 msgid "The list returned is empty if no operating systems were found."
11314 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3838
11316 "If one operating system was found, then this returns a list with a single "
11317 "element, which is the name of the root filesystem of this operating system."
11318 " It is also possible for this function to return a list containing more "
11319 "than one element, indicating a dual-boot or multi-boot virtual machine, with"
11320 " each element being the root filesystem of one of the operating systems."
11324 #: ../fish/guestfish-actions.pod:2535
11326 "You can pass the root string(s) returned to other L</inspect-get-*> "
11327 "functions in order to query further information about each operating system,"
11328 " such as the name and version."
11332 #: ../fish/guestfish-actions.pod:2540
11334 "This function uses other libguestfs features such as L</mount-ro> and L"
11335 "</umount-all> in order to mount and unmount filesystems and look at the "
11336 "contents. This should be called with no disks currently mounted. The "
11337 "function may also use Augeas, so any existing Augeas handle will be closed."
11341 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3856
11343 "This function cannot decrypt encrypted disks. The caller must do that first"
11344 " (supplying the necessary keys) if the disk is encrypted."
11348 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
11349 #: ../fish/guestfish-actions.pod:2809
11350 msgid "See also L</list-filesystems>."
11351 msgstr "Див. також L</list-filesystems>."
11354 #: ../fish/guestfish-actions.pod:2554
11355 msgid "is-blockdev"
11356 msgstr "is-blockdev"
11359 #: ../fish/guestfish-actions.pod:2556
11362 " is-blockdev path\n"
11365 " is-blockdev шлях\n"
11369 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3876
11371 "This returns C<true> if and only if there is a block device with the given "
11376 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
11377 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
11378 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
11379 #: ../fish/guestfish-actions.pod:2660
11380 msgid "See also L</stat>."
11381 msgstr "Див. також L</stat>."
11384 #: ../fish/guestfish-actions.pod:2563
11389 #: ../fish/guestfish-actions.pod:2565
11399 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3890
11401 "This returns true iff this handle is busy processing a command (in the "
11406 #: ../fish/guestfish-actions.pod:2572
11408 msgstr "is-chardev"
11411 #: ../fish/guestfish-actions.pod:2574
11414 " is-chardev path\n"
11417 " is-chardev шлях\n"
11421 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3905
11423 "This returns C<true> if and only if there is a character device with the "
11424 "given C<path> name."
11428 #: ../fish/guestfish-actions.pod:2581
11433 #: ../fish/guestfish-actions.pod:2583
11443 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3919
11445 "This returns true iff this handle is being configured (in the C<CONFIG> "
11450 #: ../fish/guestfish-actions.pod:2590
11455 #: ../fish/guestfish-actions.pod:2592
11465 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3934
11467 "This returns C<true> if and only if there is a directory with the given "
11468 "C<path> name. Note that it returns false for other objects like files."
11472 #: ../fish/guestfish-actions.pod:2600
11477 #: ../fish/guestfish-actions.pod:2602
11487 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3950
11489 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
11490 "given C<path> name."
11494 #: ../fish/guestfish-actions.pod:2609
11499 #: ../fish/guestfish-actions.pod:2611
11509 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3965
11511 "This returns C<true> if and only if there is a regular file with the given "
11512 "C<path> name. Note that it returns false for other objects like "
11517 #: ../fish/guestfish-actions.pod:2619
11518 msgid "is-launching"
11519 msgstr "is-launching"
11522 #: ../fish/guestfish-actions.pod:2621
11532 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3980
11534 "This returns true iff this handle is launching the subprocess (in the "
11535 "C<LAUNCHING> state)."
11539 #: ../fish/guestfish-actions.pod:2628
11544 #: ../fish/guestfish-actions.pod:2630
11550 " is-lv пристрій\n"
11554 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:3995
11556 "This command tests whether C<device> is a logical volume, and returns true "
11557 "iff this is the case."
11561 #: ../fish/guestfish-actions.pod:2635
11566 #: ../fish/guestfish-actions.pod:2637
11576 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4007
11578 "This returns true iff this handle is ready to accept commands (in the "
11583 #: ../fish/guestfish-actions.pod:2644
11588 #: ../fish/guestfish-actions.pod:2646
11591 " is-socket path\n"
11594 " is-socket шлях\n"
11598 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4022
11600 "This returns C<true> if and only if there is a Unix domain socket with the "
11601 "given C<path> name."
11605 #: ../fish/guestfish-actions.pod:2653
11607 msgstr "is-symlink"
11610 #: ../fish/guestfish-actions.pod:2655
11613 " is-symlink path\n"
11616 " is-symlink шлях\n"
11620 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4037
11622 "This returns C<true> if and only if there is a symbolic link with the given "
11627 #: ../fish/guestfish-actions.pod:2662
11632 #: ../fish/guestfish-actions.pod:2664
11640 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4052
11642 "This returns true iff the file exists and the file is empty or it contains "
11647 #: ../fish/guestfish-actions.pod:2669
11648 msgid "is-zero-device"
11652 #: ../fish/guestfish-actions.pod:2671
11655 " is-zero-device device\n"
11660 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4065
11661 msgid "This returns true iff the device exists and contains all zero bytes."
11665 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4067
11666 msgid "Note that for large devices this can take a long time to run."
11670 #: ../fish/guestfish-actions.pod:2677
11671 msgid "kill-subprocess"
11672 msgstr "kill-subprocess"
11675 #: ../fish/guestfish-actions.pod:2679
11678 " kill-subprocess\n"
11681 " kill-subprocess\n"
11685 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4078
11686 msgid "This kills the qemu subprocess. You should never need to call this."
11690 #: ../fish/guestfish-actions.pod:2683
11695 #: ../fish/guestfish-actions.pod:2685
11700 #: ../fish/guestfish-actions.pod:2687
11710 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4089
11712 "Internally libguestfs is implemented by running a virtual machine using "
11717 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4092
11719 "You should call this after configuring the handle (eg. adding drives) but "
11720 "before performing any actions."
11724 #: ../fish/guestfish-actions.pod:2695
11729 #: ../fish/guestfish-actions.pod:2697
11732 " lchown owner group path\n"
11735 " lchown власник група шлях\n"
11739 #: ../fish/guestfish-actions.pod:2699
11741 "Change the file owner to C<owner> and group to C<group>. This is like "
11742 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
11747 #: ../fish/guestfish-actions.pod:2707
11752 #: ../fish/guestfish-actions.pod:2709
11755 " lgetxattr path name\n"
11758 " lgetxattr шлях назва\n"
11762 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4132
11764 "Get a single extended attribute from file C<path> named C<name>. If C<path>"
11765 " is a symlink, then this call returns an extended attribute from the "
11770 #: ../fish/guestfish-actions.pod:2725
11771 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11772 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11775 #: ../fish/guestfish-actions.pod:2727
11777 msgstr "lgetxattrs"
11780 #: ../fish/guestfish-actions.pod:2729
11783 " lgetxattrs path\n"
11786 " lgetxattrs шлях\n"
11790 #: ../fish/guestfish-actions.pod:2731
11792 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11793 "it returns the extended attributes of the link itself."
11797 #: ../fish/guestfish-actions.pod:2735
11802 #: ../fish/guestfish-actions.pod:2737
11810 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4175
11812 "List all 9p filesystems attached to the guest. A list of mount tags is "
11817 #: ../fish/guestfish-actions.pod:2742
11818 msgid "list-devices"
11819 msgstr "list-devices"
11822 #: ../fish/guestfish-actions.pod:2744
11832 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4189
11833 msgid "List all the block devices."
11837 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4191
11838 msgid "The full block device names are returned, eg. C</dev/sda>."
11842 #: ../fish/guestfish-actions.pod:2752
11843 msgid "list-dm-devices"
11847 #: ../fish/guestfish-actions.pod:2754
11850 " list-dm-devices\n"
11855 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4206
11856 msgid "List all device mapper devices."
11860 #: ../fish/guestfish-actions.pod:2758
11862 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11863 "previous call to L</luks-open>."
11867 #: ../fish/guestfish-actions.pod:2761
11869 "Device mapper devices which correspond to logical volumes are I<not> "
11870 "returned in this list. Call L</lvs> if you want to list logical volumes."
11874 #: ../fish/guestfish-actions.pod:2765
11875 msgid "list-filesystems"
11876 msgstr "list-filesystems"
11879 #: ../fish/guestfish-actions.pod:2767
11882 " list-filesystems\n"
11885 " list-filesystems\n"
11889 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4226
11891 "This inspection command looks for filesystems on partitions, block devices "
11892 "and logical volumes, returning a list of devices containing filesystems and "
11897 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4230
11899 "The return value is a hash, where the keys are the devices containing "
11900 "filesystems, and the values are the filesystem types. For example:"
11904 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4234
11907 " \"/dev/sda1\" => \"ntfs\"\n"
11908 " \"/dev/sda2\" => \"ext2\"\n"
11909 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11910 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11915 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4239
11917 "The value can have the special value \"unknown\", meaning the content of the"
11918 " device is undetermined or empty. \"swap\" means a Linux swap partition."
11922 #: ../fish/guestfish-actions.pod:2786
11924 "This command runs other libguestfs commands, which might include L</mount> "
11925 "and L</umount>, and therefore you should use this soon after launch and only"
11926 " when nothing is mounted."
11930 #: ../fish/guestfish-actions.pod:2790
11932 "Not all of the filesystems returned will be mountable. In particular, swap "
11933 "partitions are returned in the list. Also this command does not check that "
11934 "each filesystem found is valid and mountable, and some filesystems might be "
11935 "mountable but require special options. Filesystems may not all belong to a "
11936 "single logical operating system (use L</inspect-os> to look for OSes)."
11940 #: ../fish/guestfish-actions.pod:2798
11941 msgid "list-partitions"
11942 msgstr "list-partitions"
11945 #: ../fish/guestfish-actions.pod:2800
11948 " list-partitions\n"
11951 " list-partitions\n"
11955 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4268
11956 msgid "List all the partitions detected on all block devices."
11960 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4270
11961 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11965 #: ../fish/guestfish-actions.pod:2806
11967 "This does not return logical volumes. For that you will need to call "
11972 #: ../fish/guestfish-actions.pod:2811
11977 #: ../fish/guestfish-actions.pod:2813
11987 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4289
11989 "List the files in C<directory> (relative to the root directory, there is no "
11990 "cwd) in the format of 'ls -la'."
11994 #: ../fish/guestfish-actions.pod:2818 ../src/guestfs-actions.pod:4292
11996 "This command is mostly useful for interactive sessions. It is I<not> "
11997 "intended that you try to parse the output string."
12001 #: ../fish/guestfish-actions.pod:2821
12006 #: ../fish/guestfish-actions.pod:2823
12009 " ln target linkname\n"
12012 " ln призначення назва_посилання\n"
12016 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4307
12017 msgid "This command creates a hard link using the C<ln> command."
12021 #: ../fish/guestfish-actions.pod:2827
12026 #: ../fish/guestfish-actions.pod:2829
12029 " ln-f target linkname\n"
12032 " ln-f призначення назва_посилання\n"
12036 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4320
12038 "This command creates a hard link using the C<ln -f> command. The I<-f> "
12039 "option removes the link (C<linkname>) if it exists already."
12043 #: ../fish/guestfish-actions.pod:2834
12048 #: ../fish/guestfish-actions.pod:2836
12051 " ln-s target linkname\n"
12054 " ln-s призначення назва_посилання\n"
12058 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4334
12059 msgid "This command creates a symbolic link using the C<ln -s> command."
12063 #: ../fish/guestfish-actions.pod:2840
12068 #: ../fish/guestfish-actions.pod:2842
12071 " ln-sf target linkname\n"
12074 " ln-sf призначення назва_посилання\n"
12078 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4347
12080 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12081 "option removes the link (C<linkname>) if it exists already."
12085 #: ../fish/guestfish-actions.pod:2847
12086 msgid "lremovexattr"
12087 msgstr "lremovexattr"
12090 #: ../fish/guestfish-actions.pod:2849
12093 " lremovexattr xattr path\n"
12098 #: ../fish/guestfish-actions.pod:2851
12100 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then"
12101 " it removes an extended attribute of the link itself."
12105 #: ../fish/guestfish-actions.pod:2855
12110 #: ../fish/guestfish-actions.pod:2857
12120 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4375
12122 "List the files in C<directory> (relative to the root directory, there is no "
12123 "cwd). The '.' and '..' entries are not returned, but hidden files are "
12128 #: ../fish/guestfish-actions.pod:2863
12130 "This command is mostly useful for interactive sessions. Programs should "
12131 "probably use L</readdir> instead."
12135 #: ../fish/guestfish-actions.pod:2866
12140 #: ../fish/guestfish-actions.pod:2868
12143 " lsetxattr xattr val vallen path\n"
12148 #: ../fish/guestfish-actions.pod:2870
12150 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it"
12151 " sets an extended attribute of the link itself."
12155 #: ../fish/guestfish-actions.pod:2874
12160 #: ../fish/guestfish-actions.pod:2876
12170 #: ../fish/guestfish-actions.pod:2878 ../fish/guestfish-actions.pod:4702
12171 #: ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:7214
12172 msgid "Returns file information for the given C<path>."
12176 #: ../fish/guestfish-actions.pod:2880
12178 "This is the same as L</stat> except that if C<path> is a symbolic link, then"
12179 " the link is stat-ed, not the file it refers to."
12183 #: ../fish/guestfish-actions.pod:2884 ../src/guestfs-actions.pod:4417
12184 msgid "This is the same as the C<lstat(2)> system call."
12188 #: ../fish/guestfish-actions.pod:2886
12193 #: ../fish/guestfish-actions.pod:2888
12196 " lstatlist path 'names ...'\n"
12201 #: ../fish/guestfish-actions.pod:2890
12203 "This call allows you to perform the L</lstat> operation on multiple files, "
12204 "where all files are in the directory C<path>. C<names> is the list of files"
12205 " from this directory."
12209 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4436
12211 "On return you get a list of stat structs, with a one-to-one correspondence "
12212 "to the C<names> list. If any name did not exist or could not be lstat'd, "
12213 "then the C<ino> field of that structure is set to C<-1>."
12217 #: ../fish/guestfish-actions.pod:2899
12219 "This call is intended for programs that want to efficiently list a directory"
12220 " contents without making many round-trips. See also L</lxattrlist> for a "
12221 "similarly efficient call for getting extended attributes. Very long "
12222 "directory listings might cause the protocol message size to be exceeded, "
12223 "causing this call to fail. The caller must split up such requests into "
12224 "smaller groups of names."
12228 #: ../fish/guestfish-actions.pod:2907
12229 msgid "luks-add-key"
12230 msgstr "luks-add-key"
12233 #: ../fish/guestfish-actions.pod:2909
12236 " luks-add-key device keyslot\n"
12241 #: ../fish/guestfish-actions.pod:2911 ../src/guestfs-actions.pod:4464
12243 "This command adds a new key on LUKS device C<device>. C<key> is any "
12244 "existing key, and is used to access the device. C<newkey> is the new key to"
12245 " add. C<keyslot> is the key slot that will be replaced."
12249 #: ../fish/guestfish-actions.pod:2916
12251 "Note that if C<keyslot> already contains a key, then this command will fail."
12252 " You have to use L</luks-kill-slot> first to remove that key."
12256 #: ../fish/guestfish-actions.pod:2920 ../fish/guestfish-actions.pod:2942
12257 #: ../fish/guestfish-actions.pod:2955 ../fish/guestfish-actions.pod:2969
12258 #: ../fish/guestfish-actions.pod:2995 ../fish/guestfish-actions.pod:3005
12260 "This command has one or more key or passphrase parameters. Guestfish will "
12261 "prompt for these separately."
12265 #: ../fish/guestfish-actions.pod:2923
12267 msgstr "luks-close"
12270 #: ../fish/guestfish-actions.pod:2925
12273 " luks-close device\n"
12276 " luks-close пристрій\n"
12280 #: ../fish/guestfish-actions.pod:2927
12282 "This closes a LUKS device that was created earlier by L</luks-open> or L"
12283 "</luks-open-ro>. The C<device> parameter must be the name of the LUKS "
12284 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12285 "underlying block device."
12289 #: ../fish/guestfish-actions.pod:2933
12290 msgid "luks-format"
12291 msgstr "luks-format"
12294 #: ../fish/guestfish-actions.pod:2935
12297 " luks-format device keyslot\n"
12302 #: ../fish/guestfish-actions.pod:2937 ../src/guestfs-actions.pod:4505
12304 "This command erases existing data on C<device> and formats the device as a "
12305 "LUKS encrypted device. C<key> is the initial key, which is added to key "
12306 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
12310 #: ../fish/guestfish-actions.pod:2945 ../fish/guestfish-actions.pod:2958
12311 #: ../fish/guestfish-actions.pod:3045 ../fish/guestfish-actions.pod:3696
12312 #: ../fish/guestfish-actions.pod:4236 ../fish/guestfish-actions.pod:4573
12313 #: ../fish/guestfish-actions.pod:4596 ../fish/guestfish-actions.pod:4618
12314 #: ../fish/guestfish-actions.pod:5364 ../src/guestfs-actions.pod:4512
12315 #: ../src/guestfs-actions.pod:4535 ../src/guestfs-actions.pod:4678
12316 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:6577
12317 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7058
12318 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:8290
12320 "B<This command is dangerous. Without careful use you can easily destroy all"
12325 #: ../fish/guestfish-actions.pod:2948
12326 msgid "luks-format-cipher"
12327 msgstr "luks-format-cipher"
12330 #: ../fish/guestfish-actions.pod:2950
12333 " luks-format-cipher device keyslot cipher\n"
12338 #: ../fish/guestfish-actions.pod:2952
12340 "This command is the same as L</luks-format> but it also allows you to set "
12341 "the C<cipher> used."
12345 #: ../fish/guestfish-actions.pod:2961
12346 msgid "luks-kill-slot"
12347 msgstr "luks-kill-slot"
12350 #: ../fish/guestfish-actions.pod:2963
12353 " luks-kill-slot device keyslot\n"
12358 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4552
12360 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12361 "device C<device>. C<key> must be one of the I<other> keys."
12365 #: ../fish/guestfish-actions.pod:2972
12370 #: ../fish/guestfish-actions.pod:2974
12373 " luks-open device mapname\n"
12378 #: ../fish/guestfish-actions.pod:2976 ../src/guestfs-actions.pod:4572
12380 "This command opens a block device which has been encrypted according to the "
12381 "Linux Unified Key Setup (LUKS) standard."
12385 #: ../fish/guestfish-actions.pod:2979 ../src/guestfs-actions.pod:4575
12386 msgid "C<device> is the encrypted block device or partition."
12390 #: ../fish/guestfish-actions.pod:2981 ../src/guestfs-actions.pod:4577
12392 "The caller must supply one of the keys associated with the LUKS block "
12393 "device, in the C<key> parameter."
12397 #: ../fish/guestfish-actions.pod:2984 ../src/guestfs-actions.pod:4580
12399 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
12400 "writes to this block device are decrypted from and encrypted to the "
12401 "underlying C<device> respectively."
12405 #: ../fish/guestfish-actions.pod:2988
12407 "If this block device contains LVM volume groups, then calling L</vgscan> "
12408 "followed by L</vg-activate-all> will make them visible."
12412 #: ../fish/guestfish-actions.pod:2992
12413 msgid "Use L</list-dm-devices> to list all device mapper devices."
12417 #: ../fish/guestfish-actions.pod:2998
12418 msgid "luks-open-ro"
12419 msgstr "luks-open-ro"
12422 #: ../fish/guestfish-actions.pod:3000
12425 " luks-open-ro device mapname\n"
12430 #: ../fish/guestfish-actions.pod:3002
12432 "This is the same as L</luks-open> except that a read-only mapping is "
12437 #: ../fish/guestfish-actions.pod:3008
12442 #: ../fish/guestfish-actions.pod:3010
12445 " lvcreate logvol volgroup mbytes\n"
12450 #: ../fish/guestfish-actions.pod:3012 ../src/guestfs-actions.pod:4626
12452 "This creates an LVM logical volume called C<logvol> on the volume group "
12453 "C<volgroup>, with C<size> megabytes."
12457 #: ../fish/guestfish-actions.pod:3015
12458 msgid "lvm-canonical-lv-name"
12459 msgstr "lvm-canonical-lv-name"
12462 #: ../fish/guestfish-actions.pod:3017
12465 " lvm-canonical-lv-name lvname\n"
12470 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4639
12472 "This converts alternative naming schemes for LVs that you might find to the "
12473 "canonical name. For example, C</dev/mapper/VG-LV> is converted to "
12478 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4643
12480 "This command returns an error if the C<lvname> parameter does not refer to a"
12485 #: ../fish/guestfish-actions.pod:3026
12486 msgid "See also L</is-lv>."
12487 msgstr "Див. також L</is-lv>."
12490 #: ../fish/guestfish-actions.pod:3028
12491 msgid "lvm-clear-filter"
12492 msgstr "lvm-clear-filter"
12495 #: ../fish/guestfish-actions.pod:3030
12498 " lvm-clear-filter\n"
12501 " lvm-clear-filter\n"
12505 #: ../fish/guestfish-actions.pod:3032
12507 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every"
12512 #: ../fish/guestfish-actions.pod:3035 ../fish/guestfish-actions.pod:3066
12513 #: ../src/guestfs-actions.pod:4661 ../src/guestfs-actions.pod:4703
12515 "This command also clears the LVM cache and performs a volume group scan."
12519 #: ../fish/guestfish-actions.pod:3038
12520 msgid "lvm-remove-all"
12521 msgstr "lvm-remove-all"
12524 #: ../fish/guestfish-actions.pod:3040
12527 " lvm-remove-all\n"
12530 " lvm-remove-all\n"
12534 #: ../fish/guestfish-actions.pod:3042 ../src/guestfs-actions.pod:4673
12536 "This command removes all LVM logical volumes, volume groups and physical "
12541 #: ../fish/guestfish-actions.pod:3048
12542 msgid "lvm-set-filter"
12543 msgstr "lvm-set-filter"
12546 #: ../fish/guestfish-actions.pod:3050
12549 " lvm-set-filter 'devices ...'\n"
12552 " lvm-set-filter 'пристрої...'\n"
12556 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4689
12558 "This sets the LVM device filter so that LVM will only be able to \"see\" the"
12559 " block devices in the list C<devices>, and will ignore all other attached "
12564 #: ../fish/guestfish-actions.pod:3056 ../src/guestfs-actions.pod:4693
12566 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12567 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also"
12568 " there are two types of duplication possible: either cloned PVs/VGs which "
12569 "have identical UUIDs; or VGs that are not cloned but just happen to have the"
12570 " same name. In normal operation you cannot create this situation, but you "
12571 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
12572 "inside the LVM metadata."
12576 #: ../fish/guestfish-actions.pod:3069 ../src/guestfs-actions.pod:4706
12577 msgid "You can filter whole block devices or individual partitions."
12581 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4708
12583 "You cannot use this if any VG is currently in use (eg. contains a mounted "
12584 "filesystem), even if you are not filtering out that VG."
12588 #: ../fish/guestfish-actions.pod:3075
12593 #: ../fish/guestfish-actions.pod:3077
12596 " lvremove device\n"
12599 " lvremove пристрій\n"
12603 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4722
12605 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12606 "LV, such as C</dev/VG/LV>."
12610 #: ../fish/guestfish-actions.pod:3082 ../src/guestfs-actions.pod:4725
12612 "You can also remove all LVs in a volume group by specifying the VG name, "
12617 #: ../fish/guestfish-actions.pod:3085
12622 #: ../fish/guestfish-actions.pod:3087
12625 " lvrename logvol newlogvol\n"
12630 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4739
12631 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12635 #: ../fish/guestfish-actions.pod:3091
12640 #: ../fish/guestfish-actions.pod:3093
12643 " lvresize device mbytes\n"
12648 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4752
12650 "This resizes (expands or shrinks) an existing LVM logical volume to "
12651 "C<mbytes>. When reducing, data in the reduced part is lost."
12655 #: ../fish/guestfish-actions.pod:3099
12656 msgid "lvresize-free"
12657 msgstr "lvresize-free"
12660 #: ../fish/guestfish-actions.pod:3101
12663 " lvresize-free lv percent\n"
12668 #: ../fish/guestfish-actions.pod:3103 ../src/guestfs-actions.pod:4767
12670 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the"
12671 " remaining free space in the volume group. Commonly you would call this "
12672 "with pc = 100 which expands the logical volume as much as possible, using "
12673 "all remaining free space in the volume group."
12677 #: ../fish/guestfish-actions.pod:3109
12682 #: ../fish/guestfish-actions.pod:3111
12692 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4782
12694 "List all the logical volumes detected. This is the equivalent of the "
12695 "L<lvs(8)> command."
12699 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4785
12701 "This returns a list of the logical volume device names (eg. "
12702 "C</dev/VolGroup00/LogVol00>)."
12706 #: ../fish/guestfish-actions.pod:3119
12707 msgid "See also L</lvs-full>, L</list-filesystems>."
12708 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12711 #: ../fish/guestfish-actions.pod:3121
12716 #: ../fish/guestfish-actions.pod:3123
12726 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4801
12728 "List all the logical volumes detected. This is the equivalent of the "
12729 "L<lvs(8)> command. The \"full\" version includes all fields."
12733 #: ../fish/guestfish-actions.pod:3128
12738 #: ../fish/guestfish-actions.pod:3130
12744 " lvuuid пристрій\n"
12748 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4816
12749 msgid "This command returns the UUID of the LVM LV C<device>."
12753 #: ../fish/guestfish-actions.pod:3134
12755 msgstr "lxattrlist"
12758 #: ../fish/guestfish-actions.pod:3136
12761 " lxattrlist path 'names ...'\n"
12766 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4830
12768 "This call allows you to get the extended attributes of multiple files, where"
12769 " all files are in the directory C<path>. C<names> is the list of files from"
12774 #: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4834
12776 "On return you get a flat list of xattr structs which must be interpreted "
12777 "sequentially. The first xattr struct always has a zero-length C<attrname>."
12778 " C<attrval> in this struct is zero-length to indicate there was an error "
12779 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12780 "number (the number of following attributes for this file, which could be "
12781 "C<\"0\">). Then after the first xattr struct are the zero or more "
12782 "attributes for the first named file. This repeats for the second and "
12783 "subsequent files."
12787 #: ../fish/guestfish-actions.pod:3152
12789 "This call is intended for programs that want to efficiently list a directory"
12790 " contents without making many round-trips. See also L</lstatlist> for a "
12791 "similarly efficient call for getting standard stats. Very long directory "
12792 "listings might cause the protocol message size to be exceeded, causing this "
12793 "call to fail. The caller must split up such requests into smaller groups of"
12798 #: ../fish/guestfish-actions.pod:3160
12803 #: ../fish/guestfish-actions.pod:3162
12813 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4864
12814 msgid "Create a directory named C<path>."
12818 #: ../fish/guestfish-actions.pod:3166
12820 msgstr "mkdir-mode"
12823 #: ../fish/guestfish-actions.pod:3168
12826 " mkdir-mode path mode\n"
12829 " mkdir-mode шлях режим\n"
12833 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4877
12835 "This command creates a directory, setting the initial permissions of the "
12836 "directory to C<mode>."
12840 #: ../fish/guestfish-actions.pod:3173 ../src/guestfs-actions.pod:4880
12842 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12843 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
12848 #: ../fish/guestfish-actions.pod:3177
12849 msgid "See also L</mkdir>, L</umask>"
12850 msgstr "Див. також L</mkdir>, L</umask>"
12853 #: ../fish/guestfish-actions.pod:3179
12858 #: ../fish/guestfish-actions.pod:3181
12868 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4896
12870 "Create a directory named C<path>, creating any parent directories as "
12871 "necessary. This is like the C<mkdir -p> shell command."
12875 #: ../fish/guestfish-actions.pod:3186
12880 #: ../fish/guestfish-actions.pod:3188
12883 " mkdtemp template\n"
12886 " mkdtemp шаблон\n"
12890 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4909
12892 "This command creates a temporary directory. The C<template> parameter "
12893 "should be a full pathname for the temporary directory name with the final "
12894 "six characters being \"XXXXXX\"."
12898 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4914
12900 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one"
12901 " being suitable for Windows filesystems."
12905 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4917
12906 msgid "The name of the temporary directory that was created is returned."
12910 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4920
12912 "The temporary directory is created with mode 0700 and is owned by root."
12916 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4923
12918 "The caller is responsible for deleting the temporary directory and its "
12919 "contents after use."
12923 #: ../fish/guestfish-actions.pod:3207 ../src/guestfs-actions.pod:4926
12924 msgid "See also: L<mkdtemp(3)>"
12925 msgstr "Див. також L<mkdtemp(3)>"
12928 #: ../fish/guestfish-actions.pod:3209
12933 #: ../fish/guestfish-actions.pod:3211
12936 " mke2fs-J fstype blocksize device journal\n"
12941 #: ../fish/guestfish-actions.pod:3213 ../src/guestfs-actions.pod:4942
12943 "This creates an ext2/3/4 filesystem on C<device> with an external journal on"
12944 " C<journal>. It is equivalent to the command:"
12948 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4946
12951 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12954 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
12958 #: ../fish/guestfish-actions.pod:3219
12959 msgid "See also L</mke2journal>."
12960 msgstr "Див. також L</mke2journal>."
12963 #: ../fish/guestfish-actions.pod:3221
12968 #: ../fish/guestfish-actions.pod:3223
12971 " mke2fs-JL fstype blocksize device label\n"
12976 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4963
12978 "This creates an ext2/3/4 filesystem on C<device> with an external journal on"
12979 " the journal labeled C<label>."
12983 #: ../fish/guestfish-actions.pod:3228
12984 msgid "See also L</mke2journal-L>."
12985 msgstr "Див. також L</mke2journal-L>."
12988 #: ../fish/guestfish-actions.pod:3230
12993 #: ../fish/guestfish-actions.pod:3232
12996 " mke2fs-JU fstype blocksize device uuid\n"
13001 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4981
13003 "This creates an ext2/3/4 filesystem on C<device> with an external journal on"
13004 " the journal with UUID C<uuid>."
13008 #: ../fish/guestfish-actions.pod:3237
13009 msgid "See also L</mke2journal-U>."
13010 msgstr "Див. також L</mke2journal-U>."
13013 #: ../fish/guestfish-actions.pod:3239
13014 msgid "mke2journal"
13015 msgstr "mke2journal"
13018 #: ../fish/guestfish-actions.pod:3241
13021 " mke2journal blocksize device\n"
13026 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4997
13028 "This creates an ext2 external journal on C<device>. It is equivalent to the"
13033 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:5000
13036 " mke2fs -O journal_dev -b blocksize device\n"
13041 #: ../fish/guestfish-actions.pod:3248
13042 msgid "mke2journal-L"
13043 msgstr "mke2journal-L"
13046 #: ../fish/guestfish-actions.pod:3250
13049 " mke2journal-L blocksize label device\n"
13054 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:5014
13056 "This creates an ext2 external journal on C<device> with label C<label>."
13060 #: ../fish/guestfish-actions.pod:3254
13061 msgid "mke2journal-U"
13062 msgstr "mke2journal-U"
13065 #: ../fish/guestfish-actions.pod:3256
13068 " mke2journal-U blocksize uuid device\n"
13073 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:5028
13074 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13078 #: ../fish/guestfish-actions.pod:3260
13083 #: ../fish/guestfish-actions.pod:3262
13086 " mkfifo mode path\n"
13089 " mkfifo режим шлях\n"
13093 #: ../fish/guestfish-actions.pod:3264
13095 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
13096 "is just a convenient wrapper around L</mknod>."
13100 #: ../fish/guestfish-actions.pod:3270
13105 #: ../fish/guestfish-actions.pod:3272
13108 " mkfs fstype device\n"
13111 " mkfs тип_файлової_системи пристрій\n"
13115 #: ../fish/guestfish-actions.pod:3274 ../src/guestfs-actions.pod:5058
13117 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13118 "volume). The filesystem type is C<fstype>, for example C<ext3>."
13122 #: ../fish/guestfish-actions.pod:3278
13127 #: ../fish/guestfish-actions.pod:3280
13130 " mkfs-b fstype blocksize device\n"
13135 #: ../fish/guestfish-actions.pod:3282
13137 "This call is similar to L</mkfs>, but it allows you to control the block "
13138 "size of the resulting filesystem. Supported block sizes depend on the "
13139 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13143 #: ../fish/guestfish-actions.pod:3287 ../fish/guestfish-actions.pod:3314
13144 #: ../src/guestfs-actions.pod:5086 ../src/guestfs-actions.pod:5124
13146 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13151 #: ../fish/guestfish-actions.pod:3290
13153 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13158 #: ../fish/guestfish-actions.pod:3297
13163 #: ../fish/guestfish-actions.pod:3299
13166 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
13171 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5111
13173 "This function creates a filesystem on C<device>. The filesystem type is "
13174 "C<fstype>, for example C<ext3>."
13178 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:5118
13179 msgid "C<blocksize>"
13180 msgstr "C<blocksize>"
13183 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5120
13185 "The filesystem block size. Supported block sizes depend on the filesystem "
13186 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13191 #: ../fish/guestfish-actions.pod:3317 ../src/guestfs-actions.pod:5127
13192 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13196 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5129
13197 msgid "C<features>"
13198 msgstr "C<features>"
13201 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5131
13202 msgid "This passes the I<-O> parameter to the external mkfs program."
13206 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5133
13208 "For certain filesystem types, this allows extra filesystem features to be "
13209 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13213 #: ../fish/guestfish-actions.pod:3327 ../src/guestfs-actions.pod:5137
13215 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem"
13220 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5140
13225 #: ../fish/guestfish-actions.pod:3332 ../src/guestfs-actions.pod:5142
13227 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13228 "sets the inode size (only for ext2/3/4 filesystems at present)."
13232 #: ../fish/guestfish-actions.pod:3335 ../src/guestfs-actions.pod:5145
13233 msgid "C<sectorsize>"
13234 msgstr "C<sectorsize>"
13237 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5147
13239 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13240 "sets sector size for ufs filesystem."
13244 #: ../fish/guestfish-actions.pod:3344
13245 msgid "mkmountpoint"
13246 msgstr "mkmountpoint"
13249 #: ../fish/guestfish-actions.pod:3346
13252 " mkmountpoint exemptpath\n"
13257 #: ../fish/guestfish-actions.pod:3348
13259 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used"
13260 " to create extra mountpoints before mounting the first filesystem."
13264 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5190
13266 "These calls are I<only> necessary in some very limited circumstances, mainly"
13267 " the case where you want to mount a mix of unrelated and/or read-only "
13268 "filesystems together."
13272 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5194
13274 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13275 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13276 "inside that. You can unpack this as follows in guestfish:"
13280 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5199
13283 " add-ro Fedora-11-i686-Live.iso\n"
13285 " mkmountpoint /cd\n"
13286 " mkmountpoint /sqsh\n"
13287 " mkmountpoint /ext3fs\n"
13288 " mount /dev/sda /cd\n"
13289 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13290 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13293 " add-ro Fedora-11-i686-Live.iso\n"
13295 " mkmountpoint /cd\n"
13296 " mkmountpoint /sqsh\n"
13297 " mkmountpoint /ext3fs\n"
13298 " mount /dev/sda /cd\n"
13299 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13300 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13304 #: ../fish/guestfish-actions.pod:3370 ../src/guestfs-actions.pod:5208
13305 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13309 #: ../fish/guestfish-actions.pod:3372
13311 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
13312 "unexpected errors if you try to mix these calls. It is safest to manually "
13313 "unmount filesystems and remove mountpoints after use."
13317 #: ../fish/guestfish-actions.pod:3376
13319 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13320 "for this to work for manual mountpoints, you must ensure that the innermost "
13321 "mountpoints have the longest pathnames, as in the example code above."
13325 #: ../fish/guestfish-actions.pod:3381 ../src/guestfs-actions.pod:5219
13327 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13331 #: ../fish/guestfish-actions.pod:3383
13333 "Autosync [see L</set-autosync>, this is set by default on handles] can cause"
13334 " L</umount-all> to be called when the handle is closed which can also "
13335 "trigger these issues."
13339 #: ../fish/guestfish-actions.pod:3387
13344 #: ../fish/guestfish-actions.pod:3389
13347 " mknod mode devmajor devminor path\n"
13352 #: ../fish/guestfish-actions.pod:3391 ../src/guestfs-actions.pod:5238
13354 "This call creates block or character special devices, or named pipes "
13359 #: ../fish/guestfish-actions.pod:3394 ../src/guestfs-actions.pod:5241
13361 "The C<mode> parameter should be the mode, using the standard constants. "
13362 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13363 "used when creating block and character special devices."
13367 #: ../fish/guestfish-actions.pod:3399
13369 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13370 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13371 "regular file). These constants are available in the standard Linux header "
13372 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13373 "wrappers around this command which bitwise OR in the appropriate constant "
13378 #: ../fish/guestfish-actions.pod:3409
13383 #: ../fish/guestfish-actions.pod:3411
13386 " mknod-b mode devmajor devminor path\n"
13391 #: ../fish/guestfish-actions.pod:3413
13393 "This call creates a block device node called C<path> with mode C<mode> and "
13394 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13395 "wrapper around L</mknod>."
13399 #: ../fish/guestfish-actions.pod:3419
13404 #: ../fish/guestfish-actions.pod:3421
13407 " mknod-c mode devmajor devminor path\n"
13412 #: ../fish/guestfish-actions.pod:3423
13414 "This call creates a char device node called C<path> with mode C<mode> and "
13415 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13416 "wrapper around L</mknod>."
13420 #: ../fish/guestfish-actions.pod:3429
13425 #: ../fish/guestfish-actions.pod:3431
13431 " mkswap пристрій\n"
13435 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5304
13436 msgid "Create a swap partition on C<device>."
13440 #: ../fish/guestfish-actions.pod:3435
13445 #: ../fish/guestfish-actions.pod:3437
13448 " mkswap-L label device\n"
13451 " mkswap-L мітка пристрій\n"
13455 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5317
13456 msgid "Create a swap partition on C<device> with label C<label>."
13460 #: ../fish/guestfish-actions.pod:3441 ../src/guestfs-actions.pod:5319
13462 "Note that you cannot attach a swap label to a block device (eg. "
13463 "C</dev/sda>), just to a partition. This appears to be a limitation of the "
13464 "kernel or swap tools."
13468 #: ../fish/guestfish-actions.pod:3445
13473 #: ../fish/guestfish-actions.pod:3447
13476 " mkswap-U uuid device\n"
13479 " mkswap-U uuid пристрій\n"
13483 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5334
13484 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13488 #: ../fish/guestfish-actions.pod:3451
13489 msgid "mkswap-file"
13490 msgstr "mkswap-file"
13493 #: ../fish/guestfish-actions.pod:3453
13496 " mkswap-file path\n"
13499 " mkswap-file шлях\n"
13503 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5346
13504 msgid "Create a swap file."
13505 msgstr "Створити файл резервної пам’яті."
13508 #: ../fish/guestfish-actions.pod:3457
13510 "This command just writes a swap file signature to an existing file. To "
13511 "create the file itself, use something like L</fallocate>."
13515 #: ../fish/guestfish-actions.pod:3460
13520 #: ../fish/guestfish-actions.pod:3462
13523 " modprobe modulename\n"
13526 " modprobe назва_модуля\n"
13530 #: ../fish/guestfish-actions.pod:3464 ../src/guestfs-actions.pod:5361
13531 msgid "This loads a kernel module in the appliance."
13535 #: ../fish/guestfish-actions.pod:3466 ../src/guestfs-actions.pod:5363
13537 "The kernel module must have been whitelisted when libguestfs was built (see "
13538 "C<appliance/kmod.whitelist.in> in the source)."
13542 #: ../fish/guestfish-actions.pod:3469
13547 #: ../fish/guestfish-actions.pod:3471
13550 " mount device mountpoint\n"
13553 " mount пристрій точка_монтування\n"
13557 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5377
13559 "Mount a guest disk at a position in the filesystem. Block devices are named"
13560 " C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
13561 "those block devices contain partitions, they will have the usual names (eg. "
13562 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
13566 #: ../fish/guestfish-actions.pod:3479 ../src/guestfs-actions.pod:5383
13568 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13569 "mounted on C</> before others can be mounted. Other filesystems can only be"
13570 " mounted on directories which already exist."
13574 #: ../fish/guestfish-actions.pod:3484 ../src/guestfs-actions.pod:5388
13576 "The mounted filesystem is writable, if we have sufficient permissions on the"
13577 " underlying device."
13581 #: ../fish/guestfish-actions.pod:3487
13583 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13584 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
13585 "problems for users. If your program might need to work with older versions "
13586 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13587 "first parameter if you don't want any options)."
13591 #: ../fish/guestfish-actions.pod:3494
13596 #: ../fish/guestfish-actions.pod:3496
13599 " mount-9p mounttag mountpoint [options:..]\n"
13604 #: ../fish/guestfish-actions.pod:3498 ../src/guestfs-actions.pod:5417
13606 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13611 #: ../fish/guestfish-actions.pod:3501 ../src/guestfs-actions.pod:5420
13613 "If required, C<trans=virtio> will be automatically added to the options. "
13614 "Any other options required can be passed in the optional C<options> "
13619 #: ../fish/guestfish-actions.pod:3507
13621 msgstr "mount-loop"
13624 #: ../fish/guestfish-actions.pod:3509
13627 " mount-loop file mountpoint\n"
13632 #: ../fish/guestfish-actions.pod:3511 ../src/guestfs-actions.pod:5459
13634 "This command lets you mount C<file> (a filesystem image in a file) on a "
13635 "mount point. It is entirely equivalent to the command C<mount -o loop file "
13640 #: ../fish/guestfish-actions.pod:3515
13641 msgid "mount-options"
13642 msgstr "mount-options"
13645 #: ../fish/guestfish-actions.pod:3517
13648 " mount-options options device mountpoint\n"
13653 #: ../fish/guestfish-actions.pod:3519
13655 "This is the same as the L</mount> command, but it allows you to set the "
13656 "mount options as for the L<mount(8)> I<-o> flag."
13660 #: ../fish/guestfish-actions.pod:3523 ../src/guestfs-actions.pod:5479
13662 "If the C<options> parameter is an empty string, then no options are passed "
13663 "(all options default to whatever the filesystem uses)."
13667 #: ../fish/guestfish-actions.pod:3527
13672 #: ../fish/guestfish-actions.pod:3529
13675 " mount-ro device mountpoint\n"
13678 " mount-ro пристрій точка_монтування\n"
13682 #: ../fish/guestfish-actions.pod:3531
13684 "This is the same as the L</mount> command, but it mounts the filesystem with"
13685 " the read-only (I<-o ro>) flag."
13689 #: ../fish/guestfish-actions.pod:3534
13694 #: ../fish/guestfish-actions.pod:3536
13697 " mount-vfs options vfstype device mountpoint\n"
13702 #: ../fish/guestfish-actions.pod:3538
13704 "This is the same as the L</mount> command, but it allows you to set both the"
13705 " mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13709 #: ../fish/guestfish-actions.pod:3542
13710 msgid "mountpoints"
13711 msgstr "mountpoints"
13714 #: ../fish/guestfish-actions.pod:3544
13724 #: ../fish/guestfish-actions.pod:3546
13726 "This call is similar to L</mounts>. That call returns a list of devices. "
13727 "This one returns a hash table (map) of device name to directory where the "
13728 "device is mounted."
13732 #: ../fish/guestfish-actions.pod:3550
13737 #: ../fish/guestfish-actions.pod:3552
13747 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5540
13749 "This returns the list of currently mounted filesystems. It returns the list"
13750 " of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13754 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5543
13755 msgid "Some internal mounts are not shown."
13759 #: ../fish/guestfish-actions.pod:3559
13760 msgid "See also: L</mountpoints>"
13761 msgstr "Див. також L</mountpoints>"
13764 #: ../fish/guestfish-actions.pod:3561
13769 #: ../fish/guestfish-actions.pod:3563
13775 " mv джерело призначення\n"
13779 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5560
13781 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13782 "destination filename or destination directory."
13786 #: ../fish/guestfish-actions.pod:3568
13787 msgid "ntfs-3g-probe"
13788 msgstr "ntfs-3g-probe"
13791 #: ../fish/guestfish-actions.pod:3570
13794 " ntfs-3g-probe true|false device\n"
13799 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5574
13801 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13802 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
13803 "write, and some cannot be mounted at all)."
13807 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5578
13809 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
13810 "can be mounted read-write. Set it to false if you want to test if the "
13811 "volume can be mounted read-only."
13815 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5582
13817 "The return value is an integer which C<0> if the operation would succeed, or"
13818 " some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13822 #: ../fish/guestfish-actions.pod:3584
13824 msgstr "ntfsresize"
13827 #: ../fish/guestfish-actions.pod:3586
13830 " ntfsresize device\n"
13833 " ntfsresize пристрій\n"
13837 #: ../fish/guestfish-actions.pod:3588 ../fish/guestfish-actions.pod:3612
13838 #: ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5635
13840 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13841 "size of the underlying device."
13845 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5606
13847 "I<Note:> After the resize operation, the filesystem is marked as requiring a"
13848 " consistency check (for safety). You have to boot into Windows to perform "
13849 "this check and clear this condition. Furthermore, ntfsresize refuses to "
13850 "resize filesystems which have been marked in this way. So in effect it is "
13851 "not possible to call ntfsresize multiple times on a single filesystem "
13852 "without booting into Windows between each resize."
13856 #: ../fish/guestfish-actions.pod:3599 ../fish/guestfish-actions.pod:3638
13857 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5661
13858 msgid "See also L<ntfsresize(8)>."
13859 msgstr "Див. також L<ntfsresize(8)>."
13862 #: ../fish/guestfish-actions.pod:3601 ../fish/guestfish-actions.pod:3649
13864 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13869 #: ../fish/guestfish-actions.pod:3608
13870 msgid "ntfsresize-opts"
13874 #: ../fish/guestfish-actions.pod:3610
13877 " ntfsresize-opts device [size:..] [force:..]\n"
13882 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5644
13884 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
13885 "resized to fit the container (eg. partition)."
13889 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5647
13894 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5649
13896 "If this option is true, then force the resize of the filesystem even if the "
13897 "filesystem is marked as requiring a consistency check."
13901 #: ../fish/guestfish-actions.pod:3629
13903 "After the resize operation, the filesystem is always marked as requiring a "
13904 "consistency check (for safety). You have to boot into Windows to perform "
13905 "this check and clear this condition. If you I<don't> set the C<force> "
13906 "option then it is not possible to call L</ntfsresize-opts> multiple times on"
13907 " a single filesystem without booting into Windows between each resize."
13911 #: ../fish/guestfish-actions.pod:3642
13912 msgid "ntfsresize-size"
13913 msgstr "ntfsresize-size"
13916 #: ../fish/guestfish-actions.pod:3644
13919 " ntfsresize-size device size\n"
13924 #: ../fish/guestfish-actions.pod:3646
13926 "This command is the same as L</ntfsresize> except that it allows you to "
13927 "specify the new size (in bytes) explicitly."
13931 #: ../fish/guestfish-actions.pod:3656
13936 #: ../fish/guestfish-actions.pod:3658
13939 " part-add device prlogex startsect endsect\n"
13944 #: ../fish/guestfish-actions.pod:3660
13946 "This command adds a partition to C<device>. If there is no partition table "
13947 "on the device, call L</part-init> first."
13951 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5722
13953 "The C<prlogex> parameter is the type of partition. Normally you should pass"
13954 " C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13955 "C<logical>) and C<e> (or C<extended>) partition types."
13959 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5727
13961 "C<startsect> and C<endsect> are the start and end of the partition in "
13962 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
13963 "from the end of the disk (C<-1> is the last sector)."
13967 #: ../fish/guestfish-actions.pod:3672
13969 "Creating a partition which covers the whole disk is not so easy. Use L"
13970 "</part-disk> to do that."
13974 #: ../fish/guestfish-actions.pod:3675
13979 #: ../fish/guestfish-actions.pod:3677
13982 " part-del device partnum\n"
13987 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5745
13988 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13992 #: ../fish/guestfish-actions.pod:3681 ../src/guestfs-actions.pod:5747
13994 "Note that in the case of MBR partitioning, deleting an extended partition "
13995 "also deletes any logical partitions it contains."
13999 #: ../fish/guestfish-actions.pod:3685
14004 #: ../fish/guestfish-actions.pod:3687
14007 " part-disk device parttype\n"
14010 " part-disk пристрій тип_розділу\n"
14014 #: ../fish/guestfish-actions.pod:3689
14016 "This command is simply a combination of L</part-init> followed by L</part-"
14017 "add> to create a single primary partition covering the whole disk."
14021 #: ../fish/guestfish-actions.pod:3693
14023 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other"
14024 " possible values are described in L</part-init>."
14028 #: ../fish/guestfish-actions.pod:3699
14029 msgid "part-get-bootable"
14030 msgstr "part-get-bootable"
14033 #: ../fish/guestfish-actions.pod:3701
14036 " part-get-bootable device partnum\n"
14041 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5783
14043 "This command returns true if the partition C<partnum> on C<device> has the "
14044 "bootable flag set."
14048 #: ../fish/guestfish-actions.pod:3706
14049 msgid "See also L</part-set-bootable>."
14050 msgstr "Див. також L</part-set-bootable>."
14053 #: ../fish/guestfish-actions.pod:3708
14054 msgid "part-get-mbr-id"
14055 msgstr "part-get-mbr-id"
14058 #: ../fish/guestfish-actions.pod:3710
14061 " part-get-mbr-id device partnum\n"
14066 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5799
14068 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14069 "partition C<partnum>."
14073 #: ../fish/guestfish-actions.pod:3715 ../fish/guestfish-actions.pod:3859
14075 "Note that only MBR (old DOS-style) partitions have type bytes. You will get"
14076 " undefined results for other partition table types (see L</part-get-"
14081 #: ../fish/guestfish-actions.pod:3719
14082 msgid "part-get-parttype"
14083 msgstr "part-get-parttype"
14086 #: ../fish/guestfish-actions.pod:3721
14089 " part-get-parttype device\n"
14092 " part-get-parttype пристрій\n"
14096 #: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5816
14098 "This command examines the partition table on C<device> and returns the "
14099 "partition table type (format) being used."
14103 #: ../fish/guestfish-actions.pod:3726
14105 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14106 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
14107 "possible, although unusual. See L</part-init> for a full list."
14111 #: ../fish/guestfish-actions.pod:3731
14116 #: ../fish/guestfish-actions.pod:3733
14119 " part-init device parttype\n"
14124 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5836
14126 "This creates an empty partition table on C<device> of one of the partition "
14127 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt>"
14128 " (for large disks)."
14132 #: ../fish/guestfish-actions.pod:3739
14134 "Initially there are no partitions. Following this, you should call L</part-"
14135 "add> for each partition required."
14139 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5843
14140 msgid "Possible values for C<parttype> are:"
14144 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5847
14149 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5849
14154 #: ../fish/guestfish-actions.pod:3750 ../src/guestfs-actions.pod:5851
14155 msgid "Intel EFI / GPT partition table."
14159 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5853
14161 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14162 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
14163 "the C<mbr> format."
14167 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5857
14172 #: ../fish/guestfish-actions.pod:3758 ../src/guestfs-actions.pod:5859
14177 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5861
14179 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14180 "Windows. This partition type will B<only> work for device sizes up to 2 TB."
14181 " For large disks we recommend using C<gpt>."
14185 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5868
14187 "Other partition table types that may work but are not supported include:"
14191 #: ../fish/guestfish-actions.pod:3772 ../src/guestfs-actions.pod:5873
14196 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5875
14197 msgid "AIX disk labels."
14198 msgstr "Мітки дисків AIX."
14201 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5877
14206 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5879
14211 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5881
14212 msgid "Amiga \"Rigid Disk Block\" format."
14213 msgstr "Формат \"Rigid Disk Block\" Amiga."
14216 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5883
14221 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5885
14222 msgid "BSD disk labels."
14223 msgstr "Мітки дисків BSD."
14226 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5887
14231 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5889
14232 msgid "DASD, used on IBM mainframes."
14233 msgstr "DASD, використовувалися у мейнфреймах IBM."
14236 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5891
14241 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5893
14242 msgid "MIPS/SGI volumes."
14243 msgstr "Томи MIPS/SGI."
14246 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5895
14251 #: ../fish/guestfish-actions.pod:3796 ../src/guestfs-actions.pod:5897
14252 msgid "Old Mac partition format. Modern Macs use C<gpt>."
14254 "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14257 #: ../fish/guestfish-actions.pod:3798 ../src/guestfs-actions.pod:5899
14262 #: ../fish/guestfish-actions.pod:3800 ../src/guestfs-actions.pod:5901
14263 msgid "NEC PC-98 format, common in Japan apparently."
14264 msgstr "Формат NEC PC-98, поширений у Японії."
14267 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5903
14272 #: ../fish/guestfish-actions.pod:3804 ../src/guestfs-actions.pod:5905
14273 msgid "Sun disk labels."
14274 msgstr "Мітки дисків Sun."
14277 #: ../fish/guestfish-actions.pod:3808
14282 #: ../fish/guestfish-actions.pod:3810
14285 " part-list device\n"
14288 " part-list device\n"
14292 #: ../fish/guestfish-actions.pod:3812 ../src/guestfs-actions.pod:5919
14294 "This command parses the partition table on C<device> and returns the list of"
14295 " partitions found."
14299 #: ../fish/guestfish-actions.pod:3815 ../src/guestfs-actions.pod:5922
14300 msgid "The fields in the returned structure are:"
14304 #: ../fish/guestfish-actions.pod:3819 ../src/guestfs-actions.pod:5926
14305 msgid "B<part_num>"
14306 msgstr "B<part_num>"
14309 #: ../fish/guestfish-actions.pod:3821 ../src/guestfs-actions.pod:5928
14310 msgid "Partition number, counting from 1."
14314 #: ../fish/guestfish-actions.pod:3823 ../src/guestfs-actions.pod:5930
14315 msgid "B<part_start>"
14316 msgstr "B<part_start>"
14319 #: ../fish/guestfish-actions.pod:3825
14321 "Start of the partition I<in bytes>. To get sectors you have to divide by "
14322 "the device's sector size, see L</blockdev-getss>."
14326 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5935
14327 msgid "B<part_end>"
14328 msgstr "B<part_end>"
14331 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5937
14332 msgid "End of the partition in bytes."
14336 #: ../fish/guestfish-actions.pod:3832 ../src/guestfs-actions.pod:5939
14337 msgid "B<part_size>"
14338 msgstr "B<part_size>"
14341 #: ../fish/guestfish-actions.pod:3834 ../src/guestfs-actions.pod:5941
14342 msgid "Size of the partition in bytes."
14346 #: ../fish/guestfish-actions.pod:3838
14347 msgid "part-set-bootable"
14348 msgstr "part-set-bootable"
14351 #: ../fish/guestfish-actions.pod:3840
14354 " part-set-bootable device partnum true|false\n"
14359 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5959
14361 "This sets the bootable flag on partition numbered C<partnum> on device "
14362 "C<device>. Note that partitions are numbered from 1."
14366 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5962
14368 "The bootable flag is used by some operating systems (notably Windows) to "
14369 "determine which partition to boot from. It is by no means universally "
14374 #: ../fish/guestfish-actions.pod:3849
14375 msgid "part-set-mbr-id"
14376 msgstr "part-set-mbr-id"
14379 #: ../fish/guestfish-actions.pod:3851
14382 " part-set-mbr-id device partnum idbyte\n"
14387 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5978
14389 "Sets the MBR type byte (also known as the ID byte) of the numbered partition"
14390 " C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
14391 "documentation are in fact hexadecimal numbers, but usually documented "
14392 "without any leading \"0x\" which might be confusing."
14396 #: ../fish/guestfish-actions.pod:3863
14397 msgid "part-set-name"
14398 msgstr "part-set-name"
14401 #: ../fish/guestfish-actions.pod:3865
14404 " part-set-name device partnum name\n"
14409 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:6000
14411 "This sets the partition name on partition numbered C<partnum> on device "
14412 "C<device>. Note that partitions are numbered from 1."
14416 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:6003
14418 "The partition name can only be set on certain types of partition table. "
14419 "This works on C<gpt> but not on C<mbr> partitions."
14423 #: ../fish/guestfish-actions.pod:3873
14424 msgid "part-to-dev"
14425 msgstr "part-to-dev"
14428 #: ../fish/guestfish-actions.pod:3875
14431 " part-to-dev partition\n"
14434 " part-to-dev розділ\n"
14438 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6016
14440 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14441 "partition number, returning the device name (eg. \"/dev/sdb\")."
14445 #: ../fish/guestfish-actions.pod:3881 ../fish/guestfish-actions.pod:3893
14447 "The named partition must exist, for example as a string returned from L"
14448 "</list-partitions>."
14452 #: ../fish/guestfish-actions.pod:3884
14453 msgid "See also L</part-to-partnum>."
14457 #: ../fish/guestfish-actions.pod:3886
14458 msgid "part-to-partnum"
14462 #: ../fish/guestfish-actions.pod:3888
14465 " part-to-partnum partition\n"
14470 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6036
14472 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14473 "partition number (eg. C<1>)."
14477 #: ../fish/guestfish-actions.pod:3896
14478 msgid "See also L</part-to-dev>."
14482 #: ../fish/guestfish-actions.pod:3898
14483 msgid "ping-daemon"
14484 msgstr "ping-daemon"
14487 #: ../fish/guestfish-actions.pod:3900
14497 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:6051
14499 "This is a test probe into the guestfs daemon running inside the qemu "
14500 "subprocess. Calling this function checks that the daemon responds to the "
14501 "ping message, without affecting the daemon or attached block device(s) in "
14506 #: ../fish/guestfish-actions.pod:3907
14511 #: ../fish/guestfish-actions.pod:3909
14514 " pread path count offset\n"
14519 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6069
14521 "This command lets you read part of a file. It reads C<count> bytes of the "
14522 "file, starting at C<offset>, from file C<path>."
14526 #: ../fish/guestfish-actions.pod:3914 ../fish/guestfish-actions.pod:3929
14527 #: ../src/guestfs-actions.pod:6072 ../src/guestfs-actions.pod:6098
14529 "This may read fewer bytes than requested. For further details see the "
14530 "L<pread(2)> system call."
14534 #: ../fish/guestfish-actions.pod:3917
14535 msgid "See also L</pwrite>, L</pread-device>."
14536 msgstr "Див. також L</pwrite>, L</pread-device>."
14539 #: ../fish/guestfish-actions.pod:3922
14540 msgid "pread-device"
14541 msgstr "pread-device"
14544 #: ../fish/guestfish-actions.pod:3924
14547 " pread-device device count offset\n"
14552 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6095
14554 "This command lets you read part of a file. It reads C<count> bytes of "
14555 "C<device>, starting at C<offset>."
14559 #: ../fish/guestfish-actions.pod:3932
14560 msgid "See also L</pread>."
14561 msgstr "Див. також L</pread>."
14564 #: ../fish/guestfish-actions.pod:3937
14569 #: ../fish/guestfish-actions.pod:3939
14572 " pvcreate device\n"
14575 " pvcreate пристрій\n"
14579 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:6118
14581 "This creates an LVM physical volume on the named C<device>, where C<device> "
14582 "should usually be a partition name such as C</dev/sda1>."
14586 #: ../fish/guestfish-actions.pod:3945
14591 #: ../fish/guestfish-actions.pod:3947
14594 " pvremove device\n"
14597 " pvremove пристрій\n"
14601 #: ../fish/guestfish-actions.pod:3949 ../src/guestfs-actions.pod:6132
14603 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14608 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6135
14610 "The implementation uses the C<pvremove> command which refuses to wipe "
14611 "physical volumes that contain any volume groups, so you have to remove those"
14616 #: ../fish/guestfish-actions.pod:3956
14621 #: ../fish/guestfish-actions.pod:3958
14624 " pvresize device\n"
14627 " pvresize пристрій\n"
14631 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6149
14633 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14634 "the new size of the underlying device."
14638 #: ../fish/guestfish-actions.pod:3963
14639 msgid "pvresize-size"
14640 msgstr "pvresize-size"
14643 #: ../fish/guestfish-actions.pod:3965
14646 " pvresize-size device size\n"
14651 #: ../fish/guestfish-actions.pod:3967
14653 "This command is the same as L</pvresize> except that it allows you to "
14654 "specify the new size (in bytes) explicitly."
14658 #: ../fish/guestfish-actions.pod:3970
14663 #: ../fish/guestfish-actions.pod:3972
14673 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6175
14675 "List all the physical volumes detected. This is the equivalent of the "
14676 "L<pvs(8)> command."
14680 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6178
14682 "This returns a list of just the device names that contain PVs (eg. "
14687 #: ../fish/guestfish-actions.pod:3980
14688 msgid "See also L</pvs-full>."
14689 msgstr "Див. також L</pvs-full>."
14692 #: ../fish/guestfish-actions.pod:3982
14697 #: ../fish/guestfish-actions.pod:3984
14707 #: ../fish/guestfish-actions.pod:3986 ../src/guestfs-actions.pod:6194
14709 "List all the physical volumes detected. This is the equivalent of the "
14710 "L<pvs(8)> command. The \"full\" version includes all fields."
14714 #: ../fish/guestfish-actions.pod:3989
14719 #: ../fish/guestfish-actions.pod:3991
14725 " pvuuid пристрій\n"
14729 #: ../fish/guestfish-actions.pod:3993 ../src/guestfs-actions.pod:6209
14730 msgid "This command returns the UUID of the LVM PV C<device>."
14734 #: ../fish/guestfish-actions.pod:3995
14739 #: ../fish/guestfish-actions.pod:3997
14742 " pwrite path content offset\n"
14747 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6225
14749 "This command writes to part of a file. It writes the data buffer C<content>"
14750 " to the file C<path> starting at offset C<offset>."
14754 #: ../fish/guestfish-actions.pod:4002 ../src/guestfs-actions.pod:6228
14756 "This command implements the L<pwrite(2)> system call, and like that system "
14757 "call it may not write the full data requested. The return value is the "
14758 "number of bytes that were actually written to the file. This could even be "
14759 "0, although short writes are unlikely for regular files in ordinary "
14764 #: ../fish/guestfish-actions.pod:4008
14765 msgid "See also L</pread>, L</pwrite-device>."
14766 msgstr "Див. також L</pread>, L</pwrite-device>."
14769 #: ../fish/guestfish-actions.pod:4013
14770 msgid "pwrite-device"
14771 msgstr "pwrite-device"
14774 #: ../fish/guestfish-actions.pod:4015
14777 " pwrite-device device content offset\n"
14782 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6252
14784 "This command writes to part of a device. It writes the data buffer "
14785 "C<content> to C<device> starting at offset C<offset>."
14789 #: ../fish/guestfish-actions.pod:4020 ../src/guestfs-actions.pod:6255
14791 "This command implements the L<pwrite(2)> system call, and like that system "
14792 "call it may not write the full data requested (although short writes to disk"
14793 " devices and partitions are probably impossible with standard Linux "
14798 #: ../fish/guestfish-actions.pod:4025
14799 msgid "See also L</pwrite>."
14800 msgstr "Див. також L</pwrite>."
14803 #: ../fish/guestfish-actions.pod:4030
14808 #: ../fish/guestfish-actions.pod:4032
14811 " read-file path\n"
14814 " read-file шлях\n"
14818 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6276
14819 msgid "This calls returns the contents of the file C<path> as a buffer."
14823 #: ../fish/guestfish-actions.pod:4037
14825 "Unlike L</cat>, this function can correctly handle files that contain "
14826 "embedded ASCII NUL characters. However unlike L</download>, this function "
14827 "is limited in the total size of file that can be handled."
14831 #: ../fish/guestfish-actions.pod:4045
14833 msgstr "read-lines"
14836 #: ../fish/guestfish-actions.pod:4047
14839 " read-lines path\n"
14842 " read-lines шлях\n"
14846 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6301
14848 "The file contents are returned as a list of lines. Trailing C<LF> and "
14849 "C<CRLF> character sequences are I<not> returned."
14853 #: ../fish/guestfish-actions.pod:4054
14855 "Note that this function cannot correctly handle binary files (specifically, "
14856 "files containing C<\\0> character which is treated as end of line). For "
14857 "those you need to use the L</read-file> function which has a more complex "
14862 #: ../fish/guestfish-actions.pod:4059
14867 #: ../fish/guestfish-actions.pod:4061
14873 " readdir каталог\n"
14877 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6321
14878 msgid "This returns the list of directory entries in directory C<dir>."
14882 #: ../fish/guestfish-actions.pod:4065 ../src/guestfs-actions.pod:6323
14884 "All entries in the directory are returned, including C<.> and C<..>. The "
14885 "entries are I<not> sorted, but returned in the same order as the underlying "
14890 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6327
14892 "Also this call returns basic file type information about each file. The "
14893 "C<ftyp> field will contain one of the following characters:"
14897 #: ../fish/guestfish-actions.pod:4074 ../src/guestfs-actions.pod:6332
14902 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6334
14903 msgid "Block special"
14904 msgstr "Блоковий особливий"
14907 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6336
14912 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6338
14913 msgid "Char special"
14914 msgstr "Символьний особливий"
14917 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6340
14922 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6342
14927 #: ../fish/guestfish-actions.pod:4086 ../src/guestfs-actions.pod:6344
14932 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6346
14933 msgid "FIFO (named pipe)"
14934 msgstr "FIFO (іменований канал)"
14937 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6348
14942 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6350
14943 msgid "Symbolic link"
14944 msgstr "Символічне посилання"
14947 #: ../fish/guestfish-actions.pod:4094 ../src/guestfs-actions.pod:6352
14952 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6354
14953 msgid "Regular file"
14954 msgstr "Звичайний файл"
14957 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6356
14962 #: ../fish/guestfish-actions.pod:4100 ../src/guestfs-actions.pod:6358
14967 #: ../fish/guestfish-actions.pod:4102 ../src/guestfs-actions.pod:6360
14972 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6362
14973 msgid "Unknown file type"
14974 msgstr "Невідомий тип файла"
14977 #: ../fish/guestfish-actions.pod:4106 ../src/guestfs-actions.pod:6364
14982 #: ../fish/guestfish-actions.pod:4108 ../src/guestfs-actions.pod:6366
14984 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14988 #: ../fish/guestfish-actions.pod:4113
14990 "This function is primarily intended for use by programs. To get a simple "
14991 "list of names, use L</ls>. To get a printable directory for human "
14992 "consumption, use L</ll>."
14996 #: ../fish/guestfish-actions.pod:4117
15001 #: ../fish/guestfish-actions.pod:4119
15011 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6387
15012 msgid "This command reads the target of a symbolic link."
15016 #: ../fish/guestfish-actions.pod:4123
15017 msgid "readlinklist"
15018 msgstr "readlinklist"
15021 #: ../fish/guestfish-actions.pod:4125
15024 " readlinklist path 'names ...'\n"
15029 #: ../fish/guestfish-actions.pod:4127 ../src/guestfs-actions.pod:6401
15031 "This call allows you to do a C<readlink> operation on multiple files, where "
15032 "all files are in the directory C<path>. C<names> is the list of files from "
15037 #: ../fish/guestfish-actions.pod:4131 ../src/guestfs-actions.pod:6405
15039 "On return you get a list of strings, with a one-to-one correspondence to the"
15040 " C<names> list. Each string is the value of the symbolic link."
15044 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6409
15046 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15047 "result string is the empty string C<\"\">. However the whole operation is "
15048 "completed even if there were C<readlink(2)> errors, and so you can call this"
15049 " function with names where you don't know if they are symbolic links already"
15050 " (albeit slightly less efficient)."
15054 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6416
15056 "This call is intended for programs that want to efficiently list a directory"
15057 " contents without making many round-trips. Very long directory listings "
15058 "might cause the protocol message size to be exceeded, causing this call to "
15059 "fail. The caller must split up such requests into smaller groups of names."
15063 #: ../fish/guestfish-actions.pod:4149
15068 #: ../fish/guestfish-actions.pod:4151
15078 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6435
15080 "Return the canonicalized absolute pathname of C<path>. The returned path "
15081 "has no C<.>, C<..> or symbolic link path elements."
15085 #: ../fish/guestfish-actions.pod:4156
15086 msgid "removexattr"
15087 msgstr "removexattr"
15090 #: ../fish/guestfish-actions.pod:4158
15093 " removexattr xattr path\n"
15098 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6450
15100 "This call removes the extended attribute named C<xattr> of the file C<path>."
15104 #: ../fish/guestfish-actions.pod:4163
15105 msgid "See also: L</lremovexattr>, L<attr(5)>."
15106 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
15109 #: ../fish/guestfish-actions.pod:4165
15114 #: ../fish/guestfish-actions.pod:4167
15117 " resize2fs device\n"
15120 " resize2fs пристрій\n"
15124 #: ../fish/guestfish-actions.pod:4169 ../src/guestfs-actions.pod:6465
15126 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15127 "underlying device."
15131 #: ../fish/guestfish-actions.pod:4172
15133 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device>"
15134 " before calling this command. For unknown reasons C<resize2fs> sometimes "
15135 "gives an error about this and sometimes not. In any case, it is always safe"
15136 " to call L</e2fsck-f> before calling this function."
15140 #: ../fish/guestfish-actions.pod:4178
15141 msgid "resize2fs-M"
15142 msgstr "resize2fs-M"
15145 #: ../fish/guestfish-actions.pod:4180
15148 " resize2fs-M device\n"
15151 " resize2fs-M пристрій\n"
15155 #: ../fish/guestfish-actions.pod:4182
15157 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15158 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
15163 #: ../fish/guestfish-actions.pod:4186
15165 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15166 "and read the C<Block size> and C<Block count> values. These two numbers, "
15167 "multiplied together, give the resulting size of the minimal filesystem in "
15172 #: ../fish/guestfish-actions.pod:4191
15173 msgid "resize2fs-size"
15174 msgstr "resize2fs-size"
15177 #: ../fish/guestfish-actions.pod:4193
15180 " resize2fs-size device size\n"
15185 #: ../fish/guestfish-actions.pod:4195
15187 "This command is the same as L</resize2fs> except that it allows you to "
15188 "specify the new size (in bytes) explicitly."
15192 #: ../fish/guestfish-actions.pod:4198
15197 #: ../fish/guestfish-actions.pod:4200
15207 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6517
15208 msgid "Remove the single file C<path>."
15212 #: ../fish/guestfish-actions.pod:4204
15217 #: ../fish/guestfish-actions.pod:4206
15227 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6529
15229 "Remove the file or directory C<path>, recursively removing the contents if "
15230 "its a directory. This is like the C<rm -rf> shell command."
15234 #: ../fish/guestfish-actions.pod:4212
15239 #: ../fish/guestfish-actions.pod:4214
15249 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6543
15250 msgid "Remove the single directory C<path>."
15254 #: ../fish/guestfish-actions.pod:4218
15255 msgid "rmmountpoint"
15256 msgstr "rmmountpoint"
15259 #: ../fish/guestfish-actions.pod:4220
15262 " rmmountpoint exemptpath\n"
15267 #: ../fish/guestfish-actions.pod:4222
15269 "This calls removes a mountpoint that was previously created with "
15270 "L</mkmountpoint>. See L</mkmountpoint> for full details."
15274 #: ../fish/guestfish-actions.pod:4226
15275 msgid "scrub-device"
15276 msgstr "scrub-device"
15279 #: ../fish/guestfish-actions.pod:4228
15282 " scrub-device device\n"
15285 " scrub-device пристрій\n"
15289 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6569
15291 "This command writes patterns over C<device> to make data retrieval more "
15296 #: ../fish/guestfish-actions.pod:4233 ../fish/guestfish-actions.pod:4248
15297 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6572
15298 #: ../src/guestfs-actions.pod:6593 ../src/guestfs-actions.pod:6612
15300 "It is an interface to the L<scrub(1)> program. See that manual page for "
15305 #: ../fish/guestfish-actions.pod:4239
15307 msgstr "scrub-file"
15310 #: ../fish/guestfish-actions.pod:4241
15313 " scrub-file file\n"
15316 " scrub-file файл\n"
15320 #: ../fish/guestfish-actions.pod:4243 ../src/guestfs-actions.pod:6588
15322 "This command writes patterns over a file to make data retrieval more "
15327 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6591
15328 msgid "The file is I<removed> after scrubbing."
15332 #: ../fish/guestfish-actions.pod:4251
15333 msgid "scrub-freespace"
15334 msgstr "scrub-freespace"
15337 #: ../fish/guestfish-actions.pod:4253
15340 " scrub-freespace dir\n"
15343 " scrub-freespace каталог\n"
15347 #: ../fish/guestfish-actions.pod:4255
15349 "This command creates the directory C<dir> and then fills it with files until"
15350 " the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15351 "deletes them. The intention is to scrub any free space on the partition "
15352 "containing C<dir>."
15356 #: ../fish/guestfish-actions.pod:4264
15358 msgstr "set-append"
15361 #: ../fish/guestfish-actions.pod:4266
15366 #: ../fish/guestfish-actions.pod:4268
15369 " set-append append\n"
15374 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6625
15376 "This function is used to add additional options to the guest kernel command "
15381 #: ../fish/guestfish-actions.pod:4273 ../src/guestfs-actions.pod:6628
15383 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15384 "environment variable."
15388 #: ../fish/guestfish-actions.pod:4276 ../src/guestfs-actions.pod:6631
15390 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15391 "(libguestfs always adds a few of its own)."
15395 #: ../fish/guestfish-actions.pod:4279
15396 msgid "set-attach-method"
15397 msgstr "set-attach-method"
15400 #: ../fish/guestfish-actions.pod:4281
15401 msgid "attach-method"
15405 #: ../fish/guestfish-actions.pod:4283
15408 " set-attach-method attachmethod\n"
15413 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6644
15415 "Set the method that libguestfs uses to connect to the back end guestfsd "
15416 "daemon. Possible methods are:"
15420 #: ../fish/guestfish-actions.pod:4290 ../src/guestfs-actions.pod:6649
15421 #: ../src/guestfs.pod:2916
15422 msgid "C<appliance>"
15423 msgstr "C<appliance>"
15426 #: ../fish/guestfish-actions.pod:4292 ../src/guestfs-actions.pod:6651
15428 "Launch an appliance and connect to it. This is the ordinary method and the "
15433 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6654
15434 msgid "C<unix:I<path>>"
15435 msgstr "C<unix:I<шлях>>"
15438 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6656
15439 msgid "Connect to the Unix domain socket I<path>."
15440 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15443 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6658
15445 "This method lets you connect to an existing daemon or (using virtio-serial) "
15446 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
15447 "RUNNING DAEMONS>."
15451 #: ../fish/guestfish-actions.pod:4305
15452 msgid "set-autosync"
15453 msgstr "set-autosync"
15456 #: ../fish/guestfish-actions.pod:4307
15461 #: ../fish/guestfish-actions.pod:4309
15464 " set-autosync true|false\n"
15467 " set-autosync true|false\n"
15471 #: ../fish/guestfish-actions.pod:4311 ../src/guestfs-actions.pod:6674
15473 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
15474 "effort attempt to make filesystems consistent and synchronized when the "
15475 "handle is closed (also if the program exits without closing handles)."
15479 #: ../fish/guestfish-actions.pod:4316 ../src/guestfs-actions.pod:6679
15481 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15482 "disabled by default)."
15486 #: ../fish/guestfish-actions.pod:4319
15488 msgstr "set-direct"
15491 #: ../fish/guestfish-actions.pod:4321
15496 #: ../fish/guestfish-actions.pod:4323
15499 " set-direct true|false\n"
15502 " set-direct true|false\n"
15506 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6692
15508 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15509 "passed directly through to the appliance once it is launched."
15513 #: ../fish/guestfish-actions.pod:4329
15515 "One consequence of this is that log messages aren't caught by the library "
15516 "and handled by L</set-log-message-callback>, but go straight to stdout."
15520 #: ../fish/guestfish-actions.pod:4333 ../src/guestfs-actions.pod:6700
15522 "You probably don't want to use this unless you know what you are doing."
15526 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6703
15527 msgid "The default is disabled."
15531 #: ../fish/guestfish-actions.pod:4338
15532 msgid "set-e2label"
15533 msgstr "set-e2label"
15536 #: ../fish/guestfish-actions.pod:4340
15539 " set-e2label device label\n"
15544 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6716
15546 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15547 "C<label>. Filesystem labels are limited to 16 characters."
15551 #: ../fish/guestfish-actions.pod:4346
15553 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15554 "label on a filesystem."
15558 #: ../fish/guestfish-actions.pod:4349
15560 msgstr "set-e2uuid"
15563 #: ../fish/guestfish-actions.pod:4351
15566 " set-e2uuid device uuid\n"
15571 #: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6734
15573 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15574 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
15575 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15579 #: ../fish/guestfish-actions.pod:4358
15581 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15582 "UUID of a filesystem."
15586 #: ../fish/guestfish-actions.pod:4361
15587 msgid "set-memsize"
15588 msgstr "set-memsize"
15591 #: ../fish/guestfish-actions.pod:4363
15596 #: ../fish/guestfish-actions.pod:4365
15599 " set-memsize memsize\n"
15604 #: ../fish/guestfish-actions.pod:4367
15606 "This sets the memory size in megabytes allocated to the qemu subprocess. "
15607 "This only has any effect if called before L</launch>."
15611 #: ../fish/guestfish-actions.pod:4371 ../src/guestfs-actions.pod:6756
15613 "You can also change this by setting the environment variable "
15614 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15618 #: ../fish/guestfish-actions.pod:4378
15619 msgid "set-network"
15620 msgstr "set-network"
15623 #: ../fish/guestfish-actions.pod:4380
15628 #: ../fish/guestfish-actions.pod:4382
15631 " set-network true|false\n"
15634 " set-network true|false\n"
15638 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6773
15640 "If C<network> is true, then the network is enabled in the libguestfs "
15641 "appliance. The default is false."
15645 #: ../fish/guestfish-actions.pod:4387 ../src/guestfs-actions.pod:6776
15647 "This affects whether commands are able to access the network (see "
15648 "L<guestfs(3)/RUNNING COMMANDS>)."
15652 #: ../fish/guestfish-actions.pod:4390
15654 "You must call this before calling L</launch>, otherwise it has no effect."
15658 #: ../fish/guestfish-actions.pod:4393
15663 #: ../fish/guestfish-actions.pod:4397
15666 " set-path searchpath\n"
15671 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6792
15672 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15676 #: ../fish/guestfish-actions.pod:4401 ../src/guestfs-actions.pod:6794
15678 "The default is C<$libdir/guestfs> unless overridden by setting "
15679 "C<LIBGUESTFS_PATH> environment variable."
15683 #: ../fish/guestfish-actions.pod:4404 ../src/guestfs-actions.pod:6797
15684 msgid "Setting C<path> to C<NULL> restores the default path."
15688 #: ../fish/guestfish-actions.pod:4406
15693 #: ../fish/guestfish-actions.pod:4408
15698 #: ../fish/guestfish-actions.pod:4410
15701 " set-pgroup true|false\n"
15706 #: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:6809
15708 "If C<pgroup> is true, child processes are placed into their own process "
15713 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6812
15715 "The practical upshot of this is that signals like C<SIGINT> (from users "
15716 "pressing C<^C>) won't be received by the child process."
15720 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6815
15722 "The default for this flag is false, because usually you want C<^C> to kill "
15727 #: ../fish/guestfish-actions.pod:4421
15732 #: ../fish/guestfish-actions.pod:4423
15737 #: ../fish/guestfish-actions.pod:4425
15747 #: ../fish/guestfish-actions.pod:4427 ../src/guestfs-actions.pod:6828
15748 msgid "Set the qemu binary that we will use."
15752 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6830
15754 "The default is chosen when the library was compiled by the configure script."
15758 #: ../fish/guestfish-actions.pod:4432 ../src/guestfs-actions.pod:6833
15760 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15765 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6836
15766 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15770 #: ../fish/guestfish-actions.pod:4437 ../src/guestfs-actions.pod:6838
15772 "Note that you should call this function as early as possible after creating "
15773 "the handle. This is because some pre-launch operations depend on testing "
15774 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
15775 "don't retest features, and so you might see inconsistent results. Using the"
15776 " environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15777 "the qemu binary at the same time as the handle is created."
15781 #: ../fish/guestfish-actions.pod:4445
15782 msgid "set-recovery-proc"
15783 msgstr "set-recovery-proc"
15786 #: ../fish/guestfish-actions.pod:4447
15787 msgid "recovery-proc"
15788 msgstr "recovery-proc"
15791 #: ../fish/guestfish-actions.pod:4449
15794 " set-recovery-proc true|false\n"
15797 " set-recovery-proc true|false\n"
15801 #: ../fish/guestfish-actions.pod:4451
15803 "If this is called with the parameter C<false> then L</launch> does not "
15804 "create a recovery process. The purpose of the recovery process is to stop "
15805 "runaway qemu processes in the case where the main program aborts abruptly."
15809 #: ../fish/guestfish-actions.pod:4456
15811 "This only has any effect if called before L</launch>, and the default is "
15816 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6864
15818 "About the only time when you would want to disable this is if the main "
15819 "process will fork itself into the background (\"daemonize\" itself). In "
15820 "this case the recovery process thinks that the main program has disappeared "
15821 "and so kills qemu, which is not very helpful."
15825 #: ../fish/guestfish-actions.pod:4465
15826 msgid "set-selinux"
15827 msgstr "set-selinux"
15830 #: ../fish/guestfish-actions.pod:4467
15835 #: ../fish/guestfish-actions.pod:4469
15838 " set-selinux true|false\n"
15841 " set-selinux true|false\n"
15845 #: ../fish/guestfish-actions.pod:4471 ../src/guestfs-actions.pod:6880
15847 "This sets the selinux flag that is passed to the appliance at boot time. "
15848 "The default is C<selinux=0> (disabled)."
15852 #: ../fish/guestfish-actions.pod:4474 ../src/guestfs-actions.pod:6883
15854 "Note that if SELinux is enabled, it is always in Permissive mode "
15855 "(C<enforcing=0>)."
15859 #: ../fish/guestfish-actions.pod:4480
15864 #: ../fish/guestfish-actions.pod:4482
15869 #: ../fish/guestfish-actions.pod:4484
15877 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6899
15879 "Change the number of virtual CPUs assigned to the appliance. The default is"
15880 " C<1>. Increasing this may improve performance, though often it has no "
15885 #: ../fish/guestfish-actions.pod:4490
15886 msgid "This function must be called before L</launch>."
15890 #: ../fish/guestfish-actions.pod:4492
15895 #: ../fish/guestfish-actions.pod:4494
15900 #: ../fish/guestfish-actions.pod:4496
15903 " set-trace true|false\n"
15906 " set-trace true|false\n"
15910 #: ../fish/guestfish-actions.pod:4498 ../src/guestfs-actions.pod:6915
15912 "If the command trace flag is set to 1, then libguestfs calls, parameters and"
15913 " return values are traced."
15917 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6918
15919 "If you want to trace C API calls into libguestfs (and other libraries) then "
15920 "possibly a better way is to use the external ltrace(1) command."
15924 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6922
15926 "Command traces are disabled unless the environment variable "
15927 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15931 #: ../fish/guestfish-actions.pod:4508
15933 "Trace messages are normally sent to C<stderr>, unless you register a "
15934 "callback to send them somewhere else (see L</set-event-callback>)."
15938 #: ../fish/guestfish-actions.pod:4512
15939 msgid "set-verbose"
15940 msgstr "set-verbose"
15943 #: ../fish/guestfish-actions.pod:4514
15948 #: ../fish/guestfish-actions.pod:4516
15951 " set-verbose true|false\n"
15954 " set-verbose true|false\n"
15958 #: ../fish/guestfish-actions.pod:4518 ../src/guestfs-actions.pod:6939
15959 msgid "If C<verbose> is true, this turns on verbose messages."
15963 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6941
15965 "Verbose messages are disabled unless the environment variable "
15966 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15970 #: ../fish/guestfish-actions.pod:4523
15972 "Verbose messages are normally sent to C<stderr>, unless you register a "
15973 "callback to send them somewhere else (see L</set-event-callback>)."
15977 #: ../fish/guestfish-actions.pod:4527
15982 #: ../fish/guestfish-actions.pod:4529
15985 " setcon context\n"
15988 " setcon контекст\n"
15992 #: ../fish/guestfish-actions.pod:4531 ../src/guestfs-actions.pod:6958
15994 "This sets the SELinux security context of the daemon to the string "
15999 #: ../fish/guestfish-actions.pod:4534 ../src/guestfs-actions.pod:6961
16000 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16004 #: ../fish/guestfish-actions.pod:4536
16009 #: ../fish/guestfish-actions.pod:4538
16012 " setxattr xattr val vallen path\n"
16017 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6976
16019 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16020 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
16024 #: ../fish/guestfish-actions.pod:4544
16025 msgid "See also: L</lsetxattr>, L<attr(5)>."
16026 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
16029 #: ../fish/guestfish-actions.pod:4546
16034 #: ../fish/guestfish-actions.pod:4548
16037 " sfdisk device cyls heads sectors 'lines ...'\n"
16042 #: ../fish/guestfish-actions.pod:4550 ../src/guestfs-actions.pod:7003
16044 "This is a direct interface to the L<sfdisk(8)> program for creating "
16045 "partitions on block devices."
16049 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7006
16050 msgid "C<device> should be a block device, for example C</dev/sda>."
16054 #: ../fish/guestfish-actions.pod:4555 ../src/guestfs-actions.pod:7008
16056 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16057 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
16058 "I<-H> and I<-S> parameters. If you pass C<0> for any of these, then the "
16059 "corresponding parameter is omitted. Usually for 'large' disks, you can just"
16060 " pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather,"
16061 " the kernel) cannot work out the right geometry and you will need to tell "
16066 #: ../fish/guestfish-actions.pod:4563 ../src/guestfs-actions.pod:7016
16068 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information"
16069 " refer to the L<sfdisk(8)> manpage."
16073 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:7019
16075 "To create a single partition occupying the whole disk, you would pass "
16076 "C<lines> as a single element list, when the single element being the string "
16081 #: ../fish/guestfish-actions.pod:4570
16082 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16083 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16086 #: ../fish/guestfish-actions.pod:4576 ../fish/guestfish-actions.pod:4599
16087 #: ../fish/guestfish-actions.pod:4621
16089 "I<This function is deprecated.> In new code, use the L</part_add> call "
16094 #: ../fish/guestfish-actions.pod:4583
16099 #: ../fish/guestfish-actions.pod:4585
16102 " sfdiskM device 'lines ...'\n"
16107 #: ../fish/guestfish-actions.pod:4587
16109 "This is a simplified interface to the L</sfdisk> command, where partition "
16110 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16111 "you don't need to specify the cyls, heads and sectors parameters which were "
16112 "rarely if ever used anyway."
16116 #: ../fish/guestfish-actions.pod:4593
16117 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16119 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
16122 #: ../fish/guestfish-actions.pod:4606
16127 #: ../fish/guestfish-actions.pod:4608
16130 " sfdisk-N device partnum cyls heads sectors line\n"
16135 #: ../fish/guestfish-actions.pod:4610 ../src/guestfs-actions.pod:7081
16137 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16138 "(note: C<n> counts from 1)."
16142 #: ../fish/guestfish-actions.pod:4613
16144 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
16145 "cyls/heads/sectors parameters."
16149 #: ../fish/guestfish-actions.pod:4616
16150 msgid "See also: L</part-add>"
16151 msgstr "Див. також L</part-add>"
16154 #: ../fish/guestfish-actions.pod:4628
16155 msgid "sfdisk-disk-geometry"
16156 msgstr "sfdisk-disk-geometry"
16159 #: ../fish/guestfish-actions.pod:4630
16162 " sfdisk-disk-geometry device\n"
16165 " sfdisk-disk-geometry пристрій\n"
16169 #: ../fish/guestfish-actions.pod:4632
16171 "This displays the disk geometry of C<device> read from the partition table."
16172 " Especially in the case where the underlying block device has been resized,"
16173 " this can be different from the kernel's idea of the geometry (see L"
16174 "</sfdisk-kernel-geometry>)."
16178 #: ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4646
16179 #: ../src/guestfs-actions.pod:7107 ../src/guestfs-actions.pod:7123
16180 msgid "The result is in human-readable format, and not designed to be parsed."
16184 #: ../fish/guestfish-actions.pod:4640
16185 msgid "sfdisk-kernel-geometry"
16186 msgstr "sfdisk-kernel-geometry"
16189 #: ../fish/guestfish-actions.pod:4642
16192 " sfdisk-kernel-geometry device\n"
16195 " sfdisk-kernel-geometry пристрій\n"
16199 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:7121
16200 msgid "This displays the kernel's idea of the geometry of C<device>."
16204 #: ../fish/guestfish-actions.pod:4649
16209 #: ../fish/guestfish-actions.pod:4651
16212 " sfdisk-l device\n"
16215 " sfdisk-l пристрій\n"
16219 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7144
16221 "This displays the partition table on C<device>, in the human-readable output"
16222 " of the L<sfdisk(8)> command. It is not intended to be parsed."
16226 #: ../fish/guestfish-actions.pod:4657
16227 msgid "See also: L</part-list>"
16228 msgstr "Див. також L</part-list>"
16231 #: ../fish/guestfish-actions.pod:4659
16233 "I<This function is deprecated.> In new code, use the L</part_list> call "
16238 #: ../fish/guestfish-actions.pod:4666
16243 #: ../fish/guestfish-actions.pod:4668
16253 #: ../fish/guestfish-actions.pod:4670 ../src/guestfs-actions.pod:7161
16255 "This call runs a command from the guest filesystem via the guest's "
16260 #: ../fish/guestfish-actions.pod:4673
16261 msgid "This is like L</command>, but passes the command to:"
16265 #: ../fish/guestfish-actions.pod:4675 ../src/guestfs-actions.pod:7166
16268 " /bin/sh -c \"command\"\n"
16273 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7168
16275 "Depending on the guest's shell, this usually results in wildcards being "
16276 "expanded, shell expressions being interpolated and so on."
16280 #: ../fish/guestfish-actions.pod:4681
16281 msgid "All the provisos about L</command> apply to this call."
16285 #: ../fish/guestfish-actions.pod:4683
16290 #: ../fish/guestfish-actions.pod:4685
16293 " sh-lines command\n"
16296 " sh-lines команда\n"
16300 #: ../fish/guestfish-actions.pod:4687
16302 "This is the same as L</sh>, but splits the result into a list of lines."
16306 #: ../fish/guestfish-actions.pod:4690
16307 msgid "See also: L</command-lines>"
16308 msgstr "Див. також L</command-lines>"
16311 #: ../fish/guestfish-actions.pod:4692
16316 #: ../fish/guestfish-actions.pod:4694
16322 " sleep час_у_секундах\n"
16326 #: ../fish/guestfish-actions.pod:4696 ../src/guestfs-actions.pod:7202
16327 msgid "Sleep for C<secs> seconds."
16331 #: ../fish/guestfish-actions.pod:4698
16336 #: ../fish/guestfish-actions.pod:4700
16346 #: ../fish/guestfish-actions.pod:4704 ../src/guestfs-actions.pod:7216
16347 msgid "This is the same as the C<stat(2)> system call."
16351 #: ../fish/guestfish-actions.pod:4706
16356 #: ../fish/guestfish-actions.pod:4708
16366 #: ../fish/guestfish-actions.pod:4710 ../src/guestfs-actions.pod:7230
16368 "Returns file system statistics for any mounted file system. C<path> should "
16369 "be a file or directory in the mounted file system (typically it is the mount"
16370 " point itself, but it doesn't need to be)."
16374 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7234
16375 msgid "This is the same as the C<statvfs(2)> system call."
16379 #: ../fish/guestfish-actions.pod:4716
16384 #: ../fish/guestfish-actions.pod:4718
16394 #: ../fish/guestfish-actions.pod:4720 ../src/guestfs-actions.pod:7248
16396 "This runs the L<strings(1)> command on a file and returns the list of "
16397 "printable strings found."
16401 #: ../fish/guestfish-actions.pod:4726
16406 #: ../fish/guestfish-actions.pod:4728
16409 " strings-e encoding path\n"
16412 " strings-e кодування шлях\n"
16416 #: ../fish/guestfish-actions.pod:4730
16418 "This is like the L</strings> command, but allows you to specify the encoding"
16419 " of strings that are looked for in the source file C<path>."
16423 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7271
16424 msgid "Allowed encodings are:"
16425 msgstr "Можливими кодуваннями є:"
16428 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7275
16433 #: ../fish/guestfish-actions.pod:4740
16435 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16436 "ISO-8859-X (this is what L</strings> uses)."
16440 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7280
16445 #: ../fish/guestfish-actions.pod:4745 ../src/guestfs-actions.pod:7282
16446 msgid "Single 8-bit-byte characters."
16447 msgstr "Окремі 8-бітові-байтові символи."
16450 #: ../fish/guestfish-actions.pod:4747 ../src/guestfs-actions.pod:7284
16455 #: ../fish/guestfish-actions.pod:4749 ../src/guestfs-actions.pod:7286
16457 "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16461 #: ../fish/guestfish-actions.pod:4752 ../src/guestfs-actions.pod:7289
16462 msgid "l (lower case letter L)"
16466 #: ../fish/guestfish-actions.pod:4754 ../src/guestfs-actions.pod:7291
16468 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
16469 "examining binaries in Windows guests."
16473 #: ../fish/guestfish-actions.pod:4757 ../src/guestfs-actions.pod:7294
16478 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7296
16479 msgid "32-bit big endian such as UCS-4BE."
16483 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7298
16488 #: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7300
16489 msgid "32-bit little endian such as UCS-4LE."
16493 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7304
16494 msgid "The returned strings are transcoded to UTF-8."
16498 #: ../fish/guestfish-actions.pod:4772
16499 msgid "swapoff-device"
16500 msgstr "swapoff-device"
16503 #: ../fish/guestfish-actions.pod:4774
16506 " swapoff-device device\n"
16509 " swapoff-device пристрій\n"
16513 #: ../fish/guestfish-actions.pod:4776
16515 "This command disables the libguestfs appliance swap device or partition "
16516 "named C<device>. See L</swapon-device>."
16520 #: ../fish/guestfish-actions.pod:4780
16521 msgid "swapoff-file"
16522 msgstr "swapoff-file"
16525 #: ../fish/guestfish-actions.pod:4782
16528 " swapoff-file file\n"
16531 " swapoff-file файл\n"
16535 #: ../fish/guestfish-actions.pod:4784 ../src/guestfs-actions.pod:7335
16536 msgid "This command disables the libguestfs appliance swap on file."
16540 #: ../fish/guestfish-actions.pod:4786
16541 msgid "swapoff-label"
16542 msgstr "swapoff-label"
16545 #: ../fish/guestfish-actions.pod:4788
16548 " swapoff-label label\n"
16551 " swapoff-label мітка\n"
16555 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7347
16557 "This command disables the libguestfs appliance swap on labeled swap "
16562 #: ../fish/guestfish-actions.pod:4793
16563 msgid "swapoff-uuid"
16564 msgstr "swapoff-uuid"
16567 #: ../fish/guestfish-actions.pod:4795
16570 " swapoff-uuid uuid\n"
16573 " swapoff-uuid uuid\n"
16577 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7360
16579 "This command disables the libguestfs appliance swap partition with the given"
16584 #: ../fish/guestfish-actions.pod:4800
16585 msgid "swapon-device"
16586 msgstr "swapon-device"
16589 #: ../fish/guestfish-actions.pod:4802
16592 " swapon-device device\n"
16595 " swapon-device пристрій\n"
16599 #: ../fish/guestfish-actions.pod:4804
16601 "This command enables the libguestfs appliance to use the swap device or "
16602 "partition named C<device>. The increased memory is made available for all "
16603 "commands, for example those run using L</command> or L</sh>."
16607 #: ../fish/guestfish-actions.pod:4809 ../src/guestfs-actions.pod:7378
16609 "Note that you should not swap to existing guest swap partitions unless you "
16610 "know what you are doing. They may contain hibernation information, or other"
16611 " information that the guest doesn't want you to trash. You also risk "
16612 "leaking information about the host to the guest this way. Instead, attach a"
16613 " new host device to the guest and swap on that."
16617 #: ../fish/guestfish-actions.pod:4816
16618 msgid "swapon-file"
16619 msgstr "swapon-file"
16622 #: ../fish/guestfish-actions.pod:4818
16625 " swapon-file file\n"
16628 " swapon-file файл\n"
16632 #: ../fish/guestfish-actions.pod:4820
16634 "This command enables swap to a file. See L</swapon-device> for other notes."
16638 #: ../fish/guestfish-actions.pod:4823
16639 msgid "swapon-label"
16640 msgstr "swapon-label"
16643 #: ../fish/guestfish-actions.pod:4825
16646 " swapon-label label\n"
16649 " swapon-label мітка\n"
16653 #: ../fish/guestfish-actions.pod:4827
16655 "This command enables swap to a labeled swap partition. See L</swapon-"
16656 "device> for other notes."
16660 #: ../fish/guestfish-actions.pod:4830
16661 msgid "swapon-uuid"
16662 msgstr "swapon-uuid"
16665 #: ../fish/guestfish-actions.pod:4832
16668 " swapon-uuid uuid\n"
16671 " swapon-uuid uuid\n"
16675 #: ../fish/guestfish-actions.pod:4834
16677 "This command enables swap to a swap partition with the given UUID. See L"
16678 "</swapon-device> for other notes."
16682 #: ../fish/guestfish-actions.pod:4837
16687 #: ../fish/guestfish-actions.pod:4839
16697 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7433
16699 "This syncs the disk, so that any writes are flushed through to the "
16700 "underlying disk image."
16704 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7436
16706 "You should always call this if you have modified a disk image, before "
16707 "closing the handle."
16711 #: ../fish/guestfish-actions.pod:4847
16716 #: ../fish/guestfish-actions.pod:4849
16726 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7449
16728 "This command returns up to the last 10 lines of a file as a list of strings."
16732 #: ../fish/guestfish-actions.pod:4857
16737 #: ../fish/guestfish-actions.pod:4859
16740 " tail-n nrlines path\n"
16745 #: ../fish/guestfish-actions.pod:4861 ../src/guestfs-actions.pod:7468
16747 "If the parameter C<nrlines> is a positive number, this returns the last "
16748 "C<nrlines> lines of the file C<path>."
16752 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7471
16754 "If the parameter C<nrlines> is a negative number, this returns lines from "
16755 "the file C<path>, starting with the C<-nrlines>th line."
16759 #: ../fish/guestfish-actions.pod:4872
16764 #: ../fish/guestfish-actions.pod:4874
16767 " tar-in (tarfile|-) directory\n"
16770 " tar-in (файл_tar|-) каталог\n"
16774 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7492
16776 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16777 "tar file) into C<directory>."
16781 #: ../fish/guestfish-actions.pod:4879
16782 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16786 #: ../fish/guestfish-actions.pod:4884
16791 #: ../fish/guestfish-actions.pod:4886
16794 " tar-out directory (tarfile|-)\n"
16797 " tar-out каталог (файл tar|-)\n"
16801 #: ../fish/guestfish-actions.pod:4888 ../src/guestfs-actions.pod:7509
16803 "This command packs the contents of C<directory> and downloads it to local "
16808 #: ../fish/guestfish-actions.pod:4891
16809 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16813 #: ../fish/guestfish-actions.pod:4896
16818 #: ../fish/guestfish-actions.pod:4898
16821 " tgz-in (tarball|-) directory\n"
16824 " tgz-in (архів tar|-) каталог\n"
16828 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7526
16830 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed>"
16831 " tar file) into C<directory>."
16835 #: ../fish/guestfish-actions.pod:4903
16836 msgid "To upload an uncompressed tarball, use L</tar-in>."
16840 #: ../fish/guestfish-actions.pod:4907
16845 #: ../fish/guestfish-actions.pod:4909
16848 " tgz-out directory (tarball|-)\n"
16851 " tgz-out каталог (архів tar|-)\n"
16855 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7542
16857 "This command packs the contents of C<directory> and downloads it to local "
16862 #: ../fish/guestfish-actions.pod:4914
16863 msgid "To download an uncompressed tarball, use L</tar-out>."
16867 #: ../fish/guestfish-actions.pod:4918
16872 #: ../fish/guestfish-actions.pod:4920
16882 #: ../fish/guestfish-actions.pod:4922 ../src/guestfs-actions.pod:7557
16884 "Touch acts like the L<touch(1)> command. It can be used to update the "
16885 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16890 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7561
16892 "This command only works on regular files, and will fail on other file types "
16893 "such as directories, symbolic links, block special etc."
16897 #: ../fish/guestfish-actions.pod:4929
16902 #: ../fish/guestfish-actions.pod:4931
16912 #: ../fish/guestfish-actions.pod:4933 ../src/guestfs-actions.pod:7574
16914 "This command truncates C<path> to a zero-length file. The file must exist "
16919 #: ../fish/guestfish-actions.pod:4936
16920 msgid "truncate-size"
16921 msgstr "truncate-size"
16924 #: ../fish/guestfish-actions.pod:4938
16927 " truncate-size path size\n"
16930 " truncate-size шлях розмір\n"
16934 #: ../fish/guestfish-actions.pod:4940 ../src/guestfs-actions.pod:7588
16936 "This command truncates C<path> to size C<size> bytes. The file must exist "
16941 #: ../fish/guestfish-actions.pod:4943
16943 "If the current file size is less than C<size> then the file is extended to "
16944 "the required size with zero bytes. This creates a sparse file (ie. disk "
16945 "blocks are not allocated for the file until you write to it). To create a "
16946 "non-sparse file of zeroes, use L</fallocate64> instead."
16950 #: ../fish/guestfish-actions.pod:4949
16955 #: ../fish/guestfish-actions.pod:4951
16958 " tune2fs-l device\n"
16961 " tune2fs-l пристрій\n"
16965 #: ../fish/guestfish-actions.pod:4953 ../src/guestfs-actions.pod:7607
16967 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on"
16972 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7610
16974 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
16975 "for more details. The list of fields returned isn't clearly defined, and "
16976 "depends on both the version of C<tune2fs> that libguestfs was built against,"
16977 " and the filesystem itself."
16981 #: ../fish/guestfish-actions.pod:4961
16986 #: ../fish/guestfish-actions.pod:4963
16989 " txz-in (tarball|-) directory\n"
16992 " txz-in (архів tar|-) каталог\n"
16996 #: ../fish/guestfish-actions.pod:4965 ../src/guestfs-actions.pod:7630
16998 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16999 "tar file) into C<directory>."
17003 #: ../fish/guestfish-actions.pod:4970
17008 #: ../fish/guestfish-actions.pod:4972
17011 " txz-out directory (tarball|-)\n"
17014 " txz-out каталог (архів tar|-)\n"
17018 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7644
17020 "This command packs the contents of C<directory> and downloads it to local "
17021 "file C<tarball> (as an xz compressed tar archive)."
17025 #: ../fish/guestfish-actions.pod:4979
17030 #: ../fish/guestfish-actions.pod:4981
17040 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7657
17042 "This function sets the mask used for creating new files and device nodes to "
17047 #: ../fish/guestfish-actions.pod:4986 ../src/guestfs-actions.pod:7660
17049 "Typical umask values would be C<022> which creates new files with "
17050 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17051 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17055 #: ../fish/guestfish-actions.pod:4991 ../src/guestfs-actions.pod:7665
17057 "The default umask is C<022>. This is important because it means that "
17058 "directories and device nodes will be created with C<0644> or C<0755> mode "
17059 "even if you specify C<0777>."
17063 #: ../fish/guestfish-actions.pod:4995
17064 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17065 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17068 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7672
17069 msgid "This call returns the previous umask."
17073 #: ../fish/guestfish-actions.pod:5000
17078 #: ../fish/guestfish-actions.pod:5002
17083 #: ../fish/guestfish-actions.pod:5004
17086 " umount pathordevice\n"
17089 " umount шлях_або_пристрій\n"
17093 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7684
17095 "This unmounts the given filesystem. The filesystem may be specified either "
17096 "by its mountpoint (path) or the device which contains the filesystem."
17100 #: ../fish/guestfish-actions.pod:5010
17102 msgstr "umount-all"
17105 #: ../fish/guestfish-actions.pod:5012
17106 msgid "unmount-all"
17107 msgstr "unmount-all"
17110 #: ../fish/guestfish-actions.pod:5014
17120 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7697
17121 msgid "This unmounts all mounted filesystems."
17125 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7699
17126 msgid "Some internal mounts are not unmounted by this call."
17130 #: ../fish/guestfish-actions.pod:5020
17135 #: ../fish/guestfish-actions.pod:5022
17138 " upload (filename|-) remotefilename\n"
17141 " upload (назва_файла|-) назва_віддаленого_файла\n"
17145 #: ../fish/guestfish-actions.pod:5024 ../fish/guestfish-actions.pod:5037
17146 #: ../src/guestfs-actions.pod:7712 ../src/guestfs-actions.pod:7736
17147 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17151 #: ../fish/guestfish-actions.pod:5029
17152 msgid "See also L</download>."
17153 msgstr "Див. також L</download>."
17156 #: ../fish/guestfish-actions.pod:5033
17157 msgid "upload-offset"
17158 msgstr "upload-offset"
17161 #: ../fish/guestfish-actions.pod:5035
17164 " upload-offset (filename|-) remotefilename offset\n"
17167 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
17171 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7739
17173 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
17174 "The intention is to overwrite parts of existing files or devices, although "
17175 "if a non-existant file is specified then it is created with a \"hole\" "
17176 "before C<offset>. The size of the data written is implicit in the size of "
17177 "the source C<filename>."
17181 #: ../fish/guestfish-actions.pod:5047
17183 "Note that there is no limit on the amount of data that can be uploaded with "
17184 "this call, unlike with L</pwrite>, and this call always writes the full "
17185 "amount unless an error occurs."
17189 #: ../fish/guestfish-actions.pod:5052
17190 msgid "See also L</upload>, L</pwrite>."
17191 msgstr "Див. також L</upload>, L</pwrite>."
17194 #: ../fish/guestfish-actions.pod:5056
17199 #: ../fish/guestfish-actions.pod:5058
17202 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17207 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7772
17208 msgid "This command sets the timestamps of a file with nanosecond precision."
17212 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7775
17214 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17219 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7778
17221 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17222 "nanoseconds from the epoch."
17226 #: ../fish/guestfish-actions.pod:5069 ../src/guestfs-actions.pod:7781
17228 "If the C<*nsecs> field contains the special value C<-1> then the "
17229 "corresponding timestamp is set to the current time. (The C<*secs> field is "
17230 "ignored in this case)."
17234 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7785
17236 "If the C<*nsecs> field contains the special value C<-2> then the "
17237 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
17242 #: ../fish/guestfish-actions.pod:5077
17247 #: ../fish/guestfish-actions.pod:5079
17257 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7798
17259 "Return the libguestfs version number that the program is linked against."
17263 #: ../fish/guestfish-actions.pod:5084 ../src/guestfs-actions.pod:7801
17265 "Note that because of dynamic linking this is not necessarily the version of "
17266 "libguestfs that you compiled against. You can compile the program, and then"
17267 " at runtime dynamically link against a completely different C<libguestfs.so>"
17272 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7806
17274 "This call was added in version C<1.0.58>. In previous versions of "
17275 "libguestfs there was no way to get the version number. From C code you can "
17276 "use dynamic linker functions to find out if this symbol exists (if it "
17277 "doesn't, then it's an earlier version)."
17281 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7812
17283 "The call returns a structure with four elements. The first three (C<major>,"
17284 " C<minor> and C<release>) are numbers and correspond to the usual version "
17285 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
17286 "but may be used for distro-specific information."
17290 #: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:7818
17292 "To construct the original version string: C<$major.$minor.$release$extra>"
17296 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7821
17297 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17298 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17301 #: ../fish/guestfish-actions.pod:5106
17303 "I<Note:> Don't use this call to test for availability of features. In "
17304 "enterprise distributions we backport features from later versions into "
17305 "earlier versions, making this an unreliable way to test for features. Use "
17306 "L</available> instead."
17310 #: ../fish/guestfish-actions.pod:5112
17315 #: ../fish/guestfish-actions.pod:5114
17318 " vfs-label device\n"
17321 " vfs-label пристрій\n"
17325 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7841
17326 msgid "This returns the filesystem label of the filesystem on C<device>."
17330 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7844
17331 msgid "If the filesystem is unlabeled, this returns the empty string."
17335 #: ../fish/guestfish-actions.pod:5121
17336 msgid "To find a filesystem from the label, use L</findfs-label>."
17340 #: ../fish/guestfish-actions.pod:5123
17345 #: ../fish/guestfish-actions.pod:5125
17348 " vfs-type device\n"
17351 " vfs-type пристрій\n"
17355 #: ../fish/guestfish-actions.pod:5127 ../src/guestfs-actions.pod:7859
17357 "This command gets the filesystem type corresponding to the filesystem on "
17362 #: ../fish/guestfish-actions.pod:5130 ../src/guestfs-actions.pod:7862
17364 "For most filesystems, the result is the name of the Linux VFS module which "
17365 "would be used to mount this filesystem if you mounted it without specifying "
17366 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
17370 #: ../fish/guestfish-actions.pod:5135
17375 #: ../fish/guestfish-actions.pod:5137
17378 " vfs-uuid device\n"
17381 " vfs-uuid пристрій\n"
17385 #: ../fish/guestfish-actions.pod:5139 ../src/guestfs-actions.pod:7878
17386 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17390 #: ../fish/guestfish-actions.pod:5142 ../src/guestfs-actions.pod:7881
17391 msgid "If the filesystem does not have a UUID, this returns the empty string."
17395 #: ../fish/guestfish-actions.pod:5144
17396 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17400 #: ../fish/guestfish-actions.pod:5146
17401 msgid "vg-activate"
17402 msgstr "vg-activate"
17405 #: ../fish/guestfish-actions.pod:5148
17408 " vg-activate true|false 'volgroups ...'\n"
17413 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7897
17415 "This command activates or (if C<activate> is false) deactivates all logical "
17416 "volumes in the listed volume groups C<volgroups>."
17420 #: ../fish/guestfish-actions.pod:5153 ../src/guestfs-actions.pod:7900
17421 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17425 #: ../fish/guestfish-actions.pod:5155 ../src/guestfs-actions.pod:7902
17427 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17428 "activated or deactivated."
17432 #: ../fish/guestfish-actions.pod:5158
17433 msgid "vg-activate-all"
17434 msgstr "vg-activate-all"
17437 #: ../fish/guestfish-actions.pod:5160
17440 " vg-activate-all true|false\n"
17443 " vg-activate-all true|false\n"
17447 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7915
17449 "This command activates or (if C<activate> is false) deactivates all logical "
17450 "volumes in all volume groups."
17454 #: ../fish/guestfish-actions.pod:5165 ../src/guestfs-actions.pod:7918
17455 msgid "This command is the same as running C<vgchange -a y|n>"
17459 #: ../fish/guestfish-actions.pod:5167
17464 #: ../fish/guestfish-actions.pod:5169
17467 " vgcreate volgroup 'physvols ...'\n"
17472 #: ../fish/guestfish-actions.pod:5171 ../src/guestfs-actions.pod:7931
17474 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17475 "of physical volumes C<physvols>."
17479 #: ../fish/guestfish-actions.pod:5174
17484 #: ../fish/guestfish-actions.pod:5176
17487 " vglvuuids vgname\n"
17492 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7944
17494 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17495 "volumes created in this volume group."
17499 #: ../fish/guestfish-actions.pod:5181
17501 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17502 "logical volumes and volume groups."
17506 #: ../fish/guestfish-actions.pod:5184
17507 msgid "See also L</vgpvuuids>."
17508 msgstr "Див. також L</vgpvuuids>."
17511 #: ../fish/guestfish-actions.pod:5186
17516 #: ../fish/guestfish-actions.pod:5188
17519 " vgpvuuids vgname\n"
17524 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7964
17526 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17527 "volumes that this volume group resides on."
17531 #: ../fish/guestfish-actions.pod:5193
17533 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17534 "physical volumes and volume groups."
17538 #: ../fish/guestfish-actions.pod:5196
17539 msgid "See also L</vglvuuids>."
17540 msgstr "Див. також L</vglvuuids>."
17543 #: ../fish/guestfish-actions.pod:5198
17548 #: ../fish/guestfish-actions.pod:5200
17551 " vgremove vgname\n"
17556 #: ../fish/guestfish-actions.pod:5202 ../src/guestfs-actions.pod:7984
17557 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17561 #: ../fish/guestfish-actions.pod:5204 ../src/guestfs-actions.pod:7986
17563 "This also forcibly removes all logical volumes in the volume group (if any)."
17567 #: ../fish/guestfish-actions.pod:5207
17572 #: ../fish/guestfish-actions.pod:5209
17575 " vgrename volgroup newvolgroup\n"
17580 #: ../fish/guestfish-actions.pod:5211 ../src/guestfs-actions.pod:8000
17581 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17585 #: ../fish/guestfish-actions.pod:5213
17590 #: ../fish/guestfish-actions.pod:5215
17600 #: ../fish/guestfish-actions.pod:5217 ../src/guestfs-actions.pod:8011
17602 "List all the volumes groups detected. This is the equivalent of the "
17603 "L<vgs(8)> command."
17607 #: ../fish/guestfish-actions.pod:5220 ../src/guestfs-actions.pod:8014
17609 "This returns a list of just the volume group names that were detected (eg. "
17614 #: ../fish/guestfish-actions.pod:5223
17615 msgid "See also L</vgs-full>."
17616 msgstr "Див. також L</vgs-full>."
17619 #: ../fish/guestfish-actions.pod:5225
17624 #: ../fish/guestfish-actions.pod:5227
17634 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:8030
17636 "List all the volumes groups detected. This is the equivalent of the "
17637 "L<vgs(8)> command. The \"full\" version includes all fields."
17641 #: ../fish/guestfish-actions.pod:5232
17646 #: ../fish/guestfish-actions.pod:5234
17656 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8044
17658 "This rescans all block devices and rebuilds the list of LVM physical "
17659 "volumes, volume groups and logical volumes."
17663 #: ../fish/guestfish-actions.pod:5239
17668 #: ../fish/guestfish-actions.pod:5241
17676 #: ../fish/guestfish-actions.pod:5243 ../src/guestfs-actions.pod:8057
17677 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17681 #: ../fish/guestfish-actions.pod:5245
17686 #: ../fish/guestfish-actions.pod:5247
17696 #: ../fish/guestfish-actions.pod:5249 ../src/guestfs-actions.pod:8097
17698 "This command counts the characters in a file, using the C<wc -c> external "
17703 #: ../fish/guestfish-actions.pod:5252
17708 #: ../fish/guestfish-actions.pod:5254
17718 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8110
17720 "This command counts the lines in a file, using the C<wc -l> external "
17725 #: ../fish/guestfish-actions.pod:5259
17730 #: ../fish/guestfish-actions.pod:5261
17740 #: ../fish/guestfish-actions.pod:5263 ../src/guestfs-actions.pod:8123
17742 "This command counts the words in a file, using the C<wc -w> external "
17747 #: ../fish/guestfish-actions.pod:5266
17752 #: ../fish/guestfish-actions.pod:5268
17755 " write path content\n"
17758 " write шлях дані\n"
17762 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8138
17764 "This call creates a file called C<path>. The content of the file is the "
17765 "string C<content> (which can contain any 8 bit data)."
17769 #: ../fish/guestfish-actions.pod:5273
17770 msgid "See also L</write-append>."
17771 msgstr "Див. також L</write-append>."
17774 #: ../fish/guestfish-actions.pod:5278
17775 msgid "write-append"
17779 #: ../fish/guestfish-actions.pod:5280
17782 " write-append path content\n"
17787 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8158
17789 "This call appends C<content> to the end of file C<path>. If C<path> does "
17790 "not exist, then a new file is created."
17794 #: ../fish/guestfish-actions.pod:5285
17795 msgid "See also L</write>."
17796 msgstr "Див. також L</write>."
17799 #: ../fish/guestfish-actions.pod:5290
17801 msgstr "write-file"
17804 #: ../fish/guestfish-actions.pod:5292
17807 " write-file path content size\n"
17812 #: ../fish/guestfish-actions.pod:5294 ../src/guestfs-actions.pod:8185
17814 "This call creates a file called C<path>. The contents of the file is the "
17815 "string C<content> (which can contain any 8 bit data), with length C<size>."
17819 #: ../fish/guestfish-actions.pod:5298 ../src/guestfs-actions.pod:8189
17821 "As a special case, if C<size> is C<0> then the length is calculated using "
17822 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17826 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8193
17828 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17829 "I<not> work, even if the length is specified."
17833 #: ../fish/guestfish-actions.pod:5308
17835 "I<This function is deprecated.> In new code, use the L</write> call instead."
17839 #: ../fish/guestfish-actions.pod:5315
17844 #: ../fish/guestfish-actions.pod:5317
17847 " zegrep regex path\n"
17850 " zegrep формальний_вираз шлях\n"
17854 #: ../fish/guestfish-actions.pod:5319 ../src/guestfs-actions.pod:8210
17856 "This calls the external C<zegrep> program and returns the matching lines."
17860 #: ../fish/guestfish-actions.pod:5325
17865 #: ../fish/guestfish-actions.pod:5327
17868 " zegrepi regex path\n"
17873 #: ../fish/guestfish-actions.pod:5329 ../src/guestfs-actions.pod:8229
17875 "This calls the external C<zegrep -i> program and returns the matching lines."
17879 #: ../fish/guestfish-actions.pod:5335
17884 #: ../fish/guestfish-actions.pod:5337
17894 #: ../fish/guestfish-actions.pod:5339 ../src/guestfs-actions.pod:8247
17895 msgid "This command writes zeroes over the first few blocks of C<device>."
17899 #: ../fish/guestfish-actions.pod:5341 ../src/guestfs-actions.pod:8249
17901 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17902 "securely wipe the device). It should be sufficient to remove any partition "
17903 "tables, filesystem superblocks and so on."
17907 #: ../fish/guestfish-actions.pod:5345 ../fish/guestfish-actions.pod:5360
17908 #: ../src/guestfs-actions.pod:8253 ../src/guestfs-actions.pod:8279
17910 "If blocks are already zero, then this command avoids writing zeroes. This "
17911 "prevents the underlying device from becoming non-sparse or growing "
17916 #: ../fish/guestfish-actions.pod:5349
17917 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17921 #: ../fish/guestfish-actions.pod:5352
17922 msgid "zero-device"
17923 msgstr "zero-device"
17926 #: ../fish/guestfish-actions.pod:5354
17929 " zero-device device\n"
17932 " zero-device пристрій\n"
17936 #: ../fish/guestfish-actions.pod:5356
17938 "This command writes zeroes over the entire C<device>. Compare with L</zero>"
17939 " which just zeroes the first few blocks of a device."
17943 #: ../fish/guestfish-actions.pod:5367
17948 #: ../fish/guestfish-actions.pod:5369
17951 " zerofree device\n"
17954 " zerofree пристрій\n"
17958 #: ../fish/guestfish-actions.pod:5371 ../src/guestfs-actions.pod:8301
17960 "This runs the I<zerofree> program on C<device>. This program claims to zero"
17961 " unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17962 "possible to compress the filesystem more effectively."
17966 #: ../fish/guestfish-actions.pod:5376 ../src/guestfs-actions.pod:8306
17967 msgid "You should B<not> run this program if the filesystem is mounted."
17971 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8309
17973 "It is possible that using this program can damage the filesystem or data on "
17978 #: ../fish/guestfish-actions.pod:5382
17983 #: ../fish/guestfish-actions.pod:5384
17986 " zfgrep pattern path\n"
17989 " zfgrep шаблон шлях\n"
17993 #: ../fish/guestfish-actions.pod:5386 ../src/guestfs-actions.pod:8323
17995 "This calls the external C<zfgrep> program and returns the matching lines."
17999 #: ../fish/guestfish-actions.pod:5392
18004 #: ../fish/guestfish-actions.pod:5394
18007 " zfgrepi pattern path\n"
18010 " zfgrepi шаблон шлях\n"
18014 #: ../fish/guestfish-actions.pod:5396 ../src/guestfs-actions.pod:8342
18016 "This calls the external C<zfgrep -i> program and returns the matching lines."
18020 #: ../fish/guestfish-actions.pod:5402
18025 #: ../fish/guestfish-actions.pod:5404
18028 " zfile meth path\n"
18031 " zfile метод шлях\n"
18035 #: ../fish/guestfish-actions.pod:5406 ../src/guestfs-actions.pod:8368
18037 "This command runs C<file> after first decompressing C<path> using C<method>."
18041 #: ../fish/guestfish-actions.pod:5409 ../src/guestfs-actions.pod:8371
18042 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18046 #: ../fish/guestfish-actions.pod:5411
18048 "Since 1.0.63, use L</file> instead which can now process compressed files."
18052 #: ../fish/guestfish-actions.pod:5414
18054 "I<This function is deprecated.> In new code, use the L</file> call instead."
18058 #: ../fish/guestfish-actions.pod:5421
18063 #: ../fish/guestfish-actions.pod:5423
18066 " zgrep regex path\n"
18069 " zgrep формальний_вираз шлях\n"
18073 #: ../fish/guestfish-actions.pod:5425 ../src/guestfs-actions.pod:8388
18075 "This calls the external C<zgrep> program and returns the matching lines."
18079 #: ../fish/guestfish-actions.pod:5431
18084 #: ../fish/guestfish-actions.pod:5433
18087 " zgrepi regex path\n"
18090 " zgrepi формальний_вираз шлях\n"
18094 #: ../fish/guestfish-actions.pod:5435 ../src/guestfs-actions.pod:8407
18096 "This calls the external C<zgrep -i> program and returns the matching lines."
18100 #: ../fish/guestfish-commands.pod:1
18105 #: ../fish/guestfish-commands.pod:3
18110 #: ../fish/guestfish-commands.pod:5
18113 " alloc filename size\n"
18118 #: ../fish/guestfish-commands.pod:7
18120 "This creates an empty (zeroed) file of the given size, and then adds so it "
18121 "can be further examined."
18125 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18126 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18130 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18131 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18135 #: ../fish/guestfish-commands.pod:14
18137 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
18138 "image, see L</PREPARED DISK IMAGES>."
18142 #: ../fish/guestfish-commands.pod:17
18147 #: ../fish/guestfish-commands.pod:19
18150 " copy-in local [local ...] /remotedir\n"
18155 #: ../fish/guestfish-commands.pod:21
18157 "C<copy-in> copies local files or directories recursively into the disk "
18158 "image, placing them in the directory called C</remotedir> (which must "
18159 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and"
18160 " other commands as necessary."
18164 #: ../fish/guestfish-commands.pod:26
18166 "Multiple local files and directories can be specified, but the last "
18167 "parameter must always be a remote directory. Wildcards cannot be used."
18171 #: ../fish/guestfish-commands.pod:30
18176 #: ../fish/guestfish-commands.pod:32
18179 " copy-out remote [remote ...] localdir\n"
18184 #: ../fish/guestfish-commands.pod:34
18186 "C<copy-out> copies remote files or directories recursively out of the disk "
18187 "image, placing them on the host disk in a local directory called C<localdir>"
18188 " (which must exist). This guestfish meta-command turns into a sequence of "
18189 "L</download>, L</tar-out> and other commands as necessary."
18193 #: ../fish/guestfish-commands.pod:40
18195 "Multiple remote files and directories can be specified, but the last "
18196 "parameter must always be a local directory. To download to the current "
18197 "directory, use C<.> as in:"
18201 #: ../fish/guestfish-commands.pod:44
18204 " copy-out /home .\n"
18207 " copy-out /home .\n"
18211 #: ../fish/guestfish-commands.pod:46
18213 "Wildcards cannot be used in the ordinary command, but you can use them with "
18214 "the help of L</glob> like this:"
18218 #: ../fish/guestfish-commands.pod:49
18221 " glob copy-out /home/* .\n"
18224 " glob copy-out /home/* .\n"
18228 #: ../fish/guestfish-commands.pod:51
18233 #: ../fish/guestfish-commands.pod:53
18236 " display filename\n"
18241 #: ../fish/guestfish-commands.pod:55
18243 "Use C<display> (a graphical display program) to display an image file. It "
18244 "downloads the file, and runs C<display> on it."
18248 #: ../fish/guestfish-commands.pod:58
18250 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18251 "environment variable. For example to use the GNOME display program:"
18255 #: ../fish/guestfish-commands.pod:61
18258 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18263 #: ../fish/guestfish-commands.pod:63
18264 msgid "See also L<display(1)>."
18265 msgstr "Див. також L<display(1)>."
18268 #: ../fish/guestfish-commands.pod:65
18273 #: ../fish/guestfish-commands.pod:67
18276 " echo [params ...]\n"
18279 " echo [параметри...]\n"
18283 #: ../fish/guestfish-commands.pod:69
18284 msgid "This echos the parameters to the terminal."
18288 #: ../fish/guestfish-commands.pod:71
18293 #: ../fish/guestfish-commands.pod:73
18298 #: ../fish/guestfish-commands.pod:75
18303 #: ../fish/guestfish-commands.pod:77
18309 " edit назва_файла\n"
18313 #: ../fish/guestfish-commands.pod:79
18315 "This is used to edit a file. It downloads the file, edits it locally using "
18316 "your editor, then uploads the result."
18320 #: ../fish/guestfish-commands.pod:82
18322 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
18323 "or C<emacs> you will get those corresponding editors."
18327 #: ../fish/guestfish-commands.pod:86
18332 #: ../fish/guestfish-commands.pod:88
18335 " glob command args...\n"
18338 " glob команда параметри...\n"
18342 #: ../fish/guestfish-commands.pod:90
18344 "Expand wildcards in any paths in the args list, and run C<command> "
18345 "repeatedly on each matching path."
18349 #: ../fish/guestfish-commands.pod:93
18350 msgid "See L</WILDCARDS AND GLOBBING>."
18351 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18354 #: ../fish/guestfish-commands.pod:95
18359 #: ../fish/guestfish-commands.pod:97
18362 " hexedit <filename|device>\n"
18363 " hexedit <filename|device> <max>\n"
18364 " hexedit <filename|device> <start> <max>\n"
18369 #: ../fish/guestfish-commands.pod:101
18371 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18376 #: ../fish/guestfish-commands.pod:104
18378 "This command works by downloading potentially the whole file or device, "
18379 "editing it locally, then uploading it. If the file or device is large, you "
18380 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18381 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
18382 "usual modifiers allowed such as C<1M> (1 megabyte)."
18386 #: ../fish/guestfish-commands.pod:111
18387 msgid "For example to edit the first few sectors of a disk you might do:"
18391 #: ../fish/guestfish-commands.pod:114
18394 " hexedit /dev/sda 1M\n"
18397 " hexedit /dev/sda 1M\n"
18401 #: ../fish/guestfish-commands.pod:116
18403 "which would allow you to edit anywhere within the first megabyte of the "
18408 #: ../fish/guestfish-commands.pod:119
18409 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18413 #: ../fish/guestfish-commands.pod:121
18416 " hexedit /dev/sda1 0x400 0x400\n"
18419 " hexedit /dev/sda1 0x400 0x400\n"
18423 #: ../fish/guestfish-commands.pod:123
18424 msgid "(assuming the superblock is in the standard location)."
18428 #: ../fish/guestfish-commands.pod:125
18430 "This command requires the external L<hexedit(1)> program. You can specify "
18431 "another program to use by setting the C<HEXEDITOR> environment variable."
18435 #: ../fish/guestfish-commands.pod:129
18436 msgid "See also L</hexdump>."
18437 msgstr "Див. також L</hexdump>."
18440 #: ../fish/guestfish-commands.pod:131
18445 #: ../fish/guestfish-commands.pod:133
18453 #: ../fish/guestfish-commands.pod:135
18455 "Change the local directory, ie. the current directory of guestfish itself."
18459 #: ../fish/guestfish-commands.pod:138
18460 msgid "Note that C<!cd> won't do what you might expect."
18464 #: ../fish/guestfish-commands.pod:140
18469 #: ../fish/guestfish-commands.pod:142
18474 #: ../fish/guestfish-commands.pod:144
18484 #: ../fish/guestfish-commands.pod:146
18485 msgid "Opens the manual page for guestfish."
18489 #: ../fish/guestfish-commands.pod:148
18494 #: ../fish/guestfish-commands.pod:150
18499 #: ../fish/guestfish-commands.pod:152
18507 #: ../fish/guestfish-commands.pod:154
18515 #: ../fish/guestfish-commands.pod:156
18516 msgid "This is used to view a file."
18520 #: ../fish/guestfish-commands.pod:158
18522 "The default viewer is C<$PAGER>. However if you use the alternate command "
18523 "C<less> you will get the C<less> command specifically."
18527 #: ../fish/guestfish-commands.pod:161
18532 #: ../fish/guestfish-commands.pod:163
18540 #: ../fish/guestfish-commands.pod:165
18542 "Close and reopen the libguestfs handle. It is not necessary to use this "
18543 "normally, because the handle is closed properly when guestfish exits. "
18544 "However this is occasionally useful for testing."
18548 #: ../fish/guestfish-commands.pod:169
18553 #: ../fish/guestfish-commands.pod:171
18556 " setenv VAR value\n"
18561 #: ../fish/guestfish-commands.pod:173
18562 msgid "Set the environment variable C<VAR> to the string C<value>."
18566 #: ../fish/guestfish-commands.pod:175
18568 "To print the value of an environment variable use a shell command such as:"
18572 #: ../fish/guestfish-commands.pod:178
18580 #: ../fish/guestfish-commands.pod:180
18585 #: ../fish/guestfish-commands.pod:182
18588 " sparse filename size\n"
18593 #: ../fish/guestfish-commands.pod:184
18595 "This creates an empty sparse file of the given size, and then adds so it can"
18596 " be further examined."
18600 #: ../fish/guestfish-commands.pod:187
18602 "In all respects it works the same as the L</alloc> command, except that the "
18603 "image file is allocated sparsely, which means that disk blocks are not "
18604 "assigned to the file until they are needed. Sparse disk files only use "
18605 "space when written to, but they are slower and there is a danger you could "
18606 "run out of real disk space during a write operation."
18610 #: ../fish/guestfish-commands.pod:197
18615 #: ../fish/guestfish-commands.pod:199
18625 #: ../fish/guestfish-commands.pod:201
18627 "This command returns a list of the optional groups known to the daemon, and "
18628 "indicates which ones are supported by this build of the libguestfs "
18633 #: ../fish/guestfish-commands.pod:205
18634 msgid "See also L<guestfs(3)/AVAILABILITY>."
18635 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
18638 #: ../fish/guestfish-commands.pod:207
18643 #: ../fish/guestfish-commands.pod:209
18646 " time command args...\n"
18651 #: ../fish/guestfish-commands.pod:211
18653 "Run the command as usual, but print the elapsed time afterwards. This can "
18654 "be useful for benchmarking operations."
18658 #: ../fish/guestfish-commands.pod:214
18663 #: ../fish/guestfish-commands.pod:216
18671 #: ../fish/guestfish-commands.pod:218
18672 msgid "Remove C<VAR> from the environment."
18676 #: ../fish/guestfish.pod:5
18677 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18681 #: ../fish/guestfish.pod:9
18684 " guestfish [--options] [commands]\n"
18689 #: ../fish/guestfish.pod:11
18697 #: ../fish/guestfish.pod:13
18700 " guestfish [--ro|--rw] -a disk.img\n"
18705 #: ../fish/guestfish.pod:15
18708 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18713 #: ../fish/guestfish.pod:17
18716 " guestfish -d libvirt-domain\n"
18721 #: ../fish/guestfish.pod:19
18724 " guestfish [--ro|--rw] -a disk.img -i\n"
18729 #: ../fish/guestfish.pod:21
18732 " guestfish -d libvirt-domain -i\n"
18737 #: ../fish/guestfish.pod:25
18739 "Using guestfish in read/write mode on live virtual machines can be "
18740 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only)"
18741 " option to use guestfish safely if the disk image or virtual machine might "
18746 #: ../fish/guestfish.pod:32
18748 "Guestfish is a shell and command-line tool for examining and modifying "
18749 "virtual machine filesystems. It uses libguestfs and exposes all of the "
18750 "functionality of the guestfs API, see L<guestfs(3)>."
18754 #: ../fish/guestfish.pod:36
18756 "Guestfish gives you structured access to the libguestfs API, from shell "
18757 "scripts or the command line or interactively. If you want to rescue a "
18758 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18763 #: ../fish/guestfish.pod:43
18764 msgid "As an interactive shell"
18768 #: ../fish/guestfish.pod:45
18776 #: ../fish/guestfish.pod:47
18779 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18780 " editing virtual machine filesystems.\n"
18785 #: ../fish/guestfish.pod:50
18788 " Type: 'help' for a list of commands\n"
18789 " 'man' to read the manual\n"
18790 " 'quit' to quit the shell\n"
18795 #: ../fish/guestfish.pod:54
18798 " ><fs> add-ro disk.img\n"
18800 " ><fs> list-filesystems\n"
18801 " /dev/sda1: ext4\n"
18802 " /dev/vg_guest/lv_root: ext4\n"
18803 " /dev/vg_guest/lv_swap: swap\n"
18804 " ><fs> mount /dev/vg_guest/lv_root /\n"
18805 " ><fs> cat /etc/fstab\n"
18807 " # Created by anaconda\n"
18814 #: ../fish/guestfish.pod:67
18815 msgid "From shell scripts"
18819 #: ../fish/guestfish.pod:69
18820 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18824 #: ../fish/guestfish.pod:71
18827 " guestfish <<_EOF_\n"
18830 " mount /dev/vg_guest/lv_root /\n"
18831 " write /etc/motd \"Welcome, new users\"\n"
18837 #: ../fish/guestfish.pod:78
18838 msgid "List the LVM logical volumes in a disk image:"
18842 #: ../fish/guestfish.pod:80
18845 " guestfish -a disk.img --ro <<_EOF_\n"
18853 #: ../fish/guestfish.pod:85
18854 msgid "List all the filesystems in a disk image:"
18858 #: ../fish/guestfish.pod:87
18861 " guestfish -a disk.img --ro <<_EOF_\n"
18863 " list-filesystems\n"
18869 #: ../fish/guestfish.pod:92
18870 msgid "On one command line"
18874 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18875 msgid "Update C</etc/resolv.conf> in a guest:"
18879 #: ../fish/guestfish.pod:96
18883 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18884 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18889 #: ../fish/guestfish.pod:100
18890 msgid "Edit C</boot/grub/grub.conf> interactively:"
18894 #: ../fish/guestfish.pod:102
18897 " guestfish --rw --add disk.img \\\n"
18898 " --mount /dev/vg_guest/lv_root \\\n"
18899 " --mount /dev/sda1:/boot \\\n"
18900 " edit /boot/grub/grub.conf\n"
18905 #: ../fish/guestfish.pod:107
18906 msgid "Mount disks automatically"
18910 #: ../fish/guestfish.pod:109
18912 "Use the I<-i> option to automatically mount the disks from a virtual "
18917 #: ../fish/guestfish.pod:112
18920 " guestfish --ro -a disk.img -i cat /etc/group\n"
18925 #: ../fish/guestfish.pod:114
18928 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18933 #: ../fish/guestfish.pod:116
18934 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18938 #: ../fish/guestfish.pod:118
18941 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18946 #: ../fish/guestfish.pod:120
18947 msgid "As a script interpreter"
18951 #: ../fish/guestfish.pod:122
18952 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18956 #: ../fish/guestfish.pod:124
18959 " #!/usr/bin/guestfish -f\n"
18960 " sparse test1.img 100M\n"
18962 " part-disk /dev/sda mbr\n"
18963 " mkfs ext2 /dev/sda1\n"
18968 #: ../fish/guestfish.pod:130
18969 msgid "Start with a prepared disk"
18973 #: ../fish/guestfish.pod:132
18975 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18976 "single ext2-formatted partition:"
18980 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18983 " guestfish -N fs\n"
18988 #: ../fish/guestfish.pod:137
18989 msgid "To list what is available do:"
18993 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18996 " guestfish -N help | less\n"
19001 #: ../fish/guestfish.pod:141
19002 msgid "Remote control"
19003 msgstr "Дистанційне керування"
19006 #: ../fish/guestfish.pod:143
19009 " eval \"`guestfish --listen`\"\n"
19010 " guestfish --remote add-ro disk.img\n"
19011 " guestfish --remote run\n"
19012 " guestfish --remote lvs\n"
19015 " eval \"`guestfish --listen`\"\n"
19016 " guestfish --remote add-ro disk.img\n"
19017 " guestfish --remote run\n"
19018 " guestfish --remote lvs\n"
19022 #: ../fish/guestfish.pod:154
19023 msgid "Displays general help on options."
19027 #: ../fish/guestfish.pod:158
19028 msgid "B<--cmd-help>"
19029 msgstr "B<--cmd-help>"
19032 #: ../fish/guestfish.pod:160
19033 msgid "Lists all available guestfish commands."
19037 #: ../fish/guestfish.pod:162
19039 msgstr "B<-h команда>"
19042 #: ../fish/guestfish.pod:164
19043 msgid "B<--cmd-help cmd>"
19044 msgstr "B<--cmd-help команда>"
19047 #: ../fish/guestfish.pod:166
19048 msgid "Displays detailed help on a single command C<cmd>."
19052 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19053 msgid "B<-a image>"
19054 msgstr "B<-a образ>"
19057 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19058 msgid "B<--add image>"
19059 msgstr "B<--add образ>"
19062 #: ../fish/guestfish.pod:172
19063 msgid "Add a block device or virtual machine image to the shell."
19067 #: ../fish/guestfish.pod:177
19069 "Using this flag is mostly equivalent to using the C<add> command, with "
19070 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19071 "the I<--format=...> flag was given."
19075 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19077 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19078 "URI to use. The default is to use the default libvirt connection."
19082 #: ../fish/guestfish.pod:189
19087 #: ../fish/guestfish.pod:191
19089 "If using the I<--listen> option and a csh-like shell, use this option. See "
19090 "section L</REMOTE CONTROL AND CSH> below."
19094 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19095 msgid "B<-d libvirt-domain>"
19096 msgstr "B<-d домен-libvirt>"
19099 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19100 msgid "B<--domain libvirt-domain>"
19101 msgstr "B<--domain домен-libvirt>"
19104 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19106 "Add disks from the named libvirt domain. If the I<--ro> option is also "
19107 "used, then any libvirt domain can be used. However in write mode, only "
19108 "libvirt domains which are shut down can be named here."
19112 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19113 msgid "Domain UUIDs can be used instead of names."
19117 #: ../fish/guestfish.pod:204
19119 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19120 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19121 "if the I<--format:...> flag was given."
19125 #: ../fish/guestfish.pod:208
19130 #: ../fish/guestfish.pod:210
19131 msgid "B<--no-dest-paths>"
19132 msgstr "B<--no-dest-paths>"
19135 #: ../fish/guestfish.pod:212
19137 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
19138 "to hit the tab key to complete paths on the guest filesystem, but this "
19139 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19140 "allow this feature to be disabled."
19144 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19146 "When prompting for keys and passphrases, guestfish normally turns echoing "
19147 "off so you cannot see what you are typing. If you are not worried about "
19148 "Tempest attacks and there is no one else in the room you can specify this "
19149 "flag to see what you are typing."
19153 #: ../fish/guestfish.pod:224
19155 msgstr "B<-f файл>"
19158 #: ../fish/guestfish.pod:226
19159 msgid "B<--file file>"
19160 msgstr "B<--file файл>"
19163 #: ../fish/guestfish.pod:228
19164 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
19168 #: ../fish/guestfish.pod:231
19171 " #!/usr/bin/guestfish -f\n"
19174 " #!/usr/bin/guestfish -f\n"
19178 #: ../fish/guestfish.pod:244
19181 " guestfish --format=raw -a disk.img\n"
19184 " guestfish --format=raw -a disk.img\n"
19188 #: ../fish/guestfish.pod:248
19191 " guestfish --format=raw -a disk.img --format -a another.img\n"
19194 " guestfish --format=raw -a disk.img --format -a another.img\n"
19198 #: ../fish/guestfish.pod:253
19200 "If you have untrusted raw-format guest disk images, you should use this "
19201 "option to specify the disk format. This avoids a possible security problem "
19202 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
19206 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19207 msgid "B<--inspector>"
19208 msgstr "B<--inspector>"
19211 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19213 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19214 "system and mount filesystems as they would be mounted on the real virtual "
19219 #: ../fish/guestfish.pod:266
19220 msgid "Typical usage is either:"
19224 #: ../fish/guestfish.pod:268
19227 " guestfish -d myguest -i\n"
19230 " guestfish -d myguest -i\n"
19234 #: ../fish/guestfish.pod:270
19235 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19239 #: ../fish/guestfish.pod:272
19242 " guestfish --ro -d myguest -i\n"
19245 " guestfish --ro -d myguest -i\n"
19249 #: ../fish/guestfish.pod:274
19250 msgid "(for active domains, readonly), or specify the block device directly:"
19254 #: ../fish/guestfish.pod:276
19257 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19260 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19264 #: ../fish/guestfish.pod:278
19266 "Note that the command line syntax changed slightly over older versions of "
19267 "guestfish. You can still use the old syntax:"
19271 #: ../fish/guestfish.pod:281
19274 " guestfish [--ro] -i disk.img\n"
19277 " guestfish [--ro] -i disk.img\n"
19281 #: ../fish/guestfish.pod:283
19284 " guestfish [--ro] -i libvirt-domain\n"
19289 #: ../fish/guestfish.pod:285
19291 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19292 "then using other commands to mount the filesystems that were found."
19296 #: ../fish/guestfish.pod:294
19297 msgid "B<--listen>"
19298 msgstr "B<--listen>"
19301 #: ../fish/guestfish.pod:296
19303 "Fork into the background and listen for remote commands. See section "
19304 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19308 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19313 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19315 "Connect to a live virtual machine. (Experimental, see "
19316 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
19320 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19321 msgid "B<-m dev[:mountpoint[:options]]>"
19322 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
19325 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19326 msgid "B<--mount dev[:mountpoint[:options]]>"
19327 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
19330 #: ../fish/guestfish.pod:308
19331 msgid "Mount the named partition or logical volume on the given mountpoint."
19335 #: ../fish/guestfish.pod:310
19336 msgid "If the mountpoint is omitted, it defaults to C</>."
19340 #: ../fish/guestfish.pod:312
19341 msgid "You have to mount something on C</> before most commands will work."
19345 #: ../fish/guestfish.pod:314
19347 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19352 #: ../fish/guestfish.pod:317
19354 "If you don't know what filesystems a disk image contains, you can either run"
19355 " guestfish without this option, then list the partitions, filesystems and "
19356 "LVs available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19357 "commands), or you can use the L<virt-filesystems(1)> program."
19361 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19363 "The third (and rarely used) part of the mount parameter is the list of mount"
19364 " options used to mount the underlying filesystem. If this is not given, "
19365 "then the mount options are either the empty string or C<ro> (the latter if "
19366 "the I<--ro> flag is used). By specifying the mount options, you override "
19367 "this default choice. Probably the only time you would use this is to enable"
19368 " ACLs and/or extended attributes if the filesystem can support them:"
19372 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19375 " -m /dev/sda1:/:acl,user_xattr\n"
19380 #: ../fish/guestfish.pod:333
19381 msgid "Using this flag is equivalent to using the C<mount-options> command."
19385 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19386 #: ../resize/virt-resize.pod:435
19391 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19392 msgid "B<--no-sync>"
19393 msgstr "B<--no-sync>"
19396 #: ../fish/guestfish.pod:339
19398 "Disable autosync. This is enabled by default. See the discussion of "
19399 "autosync in the L<guestfs(3)> manpage."
19403 #: ../fish/guestfish.pod:342
19408 #: ../fish/guestfish.pod:344
19409 msgid "B<--new type>"
19410 msgstr "B<--new тип>"
19413 #: ../fish/guestfish.pod:346
19415 msgstr "B<-N help>"
19418 #: ../fish/guestfish.pod:348
19420 "Prepare a fresh disk image formatted as \"type\". This is an alternative to"
19421 " the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19422 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
19427 #: ../fish/guestfish.pod:353
19428 msgid "B<--progress-bars>"
19429 msgstr "B<--progress-bars>"
19432 #: ../fish/guestfish.pod:355
19433 msgid "Enable progress bars, even when guestfish is used non-interactively."
19437 #: ../fish/guestfish.pod:357
19439 "Progress bars are enabled by default when guestfish is used as an "
19440 "interactive shell."
19444 #: ../fish/guestfish.pod:360
19445 msgid "B<--no-progress-bars>"
19446 msgstr "B<--no-progress-bars>"
19449 #: ../fish/guestfish.pod:362
19450 msgid "Disable progress bars."
19454 #: ../fish/guestfish.pod:364
19455 msgid "B<--remote[=pid]>"
19456 msgstr "B<--remote[=pid]>"
19459 #: ../fish/guestfish.pod:366
19461 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
19462 "CONTROL GUESTFISH OVER A SOCKET> below."
19466 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19467 #: ../rescue/virt-rescue.pod:161
19472 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19473 #: ../rescue/virt-rescue.pod:163
19478 #: ../fish/guestfish.pod:373
19480 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19481 "mounts are done read-only."
19485 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19487 "The option must always be used if the disk image or virtual machine might be"
19488 " running, and is generally recommended in cases where you don't need write "
19489 "access to the disk."
19493 #: ../fish/guestfish.pod:380
19495 "Note that prepared disk images created with I<-N> are not affected by this "
19496 "option. Also commands like C<add> are not affected - you have to specify "
19497 "the C<readonly:true> option explicitly if you need it."
19501 #: ../fish/guestfish.pod:384
19502 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19506 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19507 #: ../rescue/virt-rescue.pod:173
19508 msgid "B<--selinux>"
19509 msgstr "B<--selinux>"
19512 #: ../fish/guestfish.pod:388
19513 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
19517 #: ../fish/guestfish.pod:394
19519 "Enable very verbose messages. This is particularly useful if you find a "
19524 #: ../fish/guestfish.pod:401
19525 msgid "Display the guestfish / libguestfs version number and exit."
19529 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19530 #: ../rescue/virt-rescue.pod:194
19535 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19536 #: ../rescue/virt-rescue.pod:196
19541 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19543 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19544 "mounts are done read-write."
19548 #: ../fish/guestfish.pod:410
19549 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19553 #: ../fish/guestfish.pod:414
19554 msgid "Echo each command before executing it."
19558 #: ../fish/guestfish.pod:418
19559 msgid "COMMANDS ON COMMAND LINE"
19563 #: ../fish/guestfish.pod:420
19565 "Any additional (non-option) arguments are treated as commands to execute."
19569 #: ../fish/guestfish.pod:423
19571 "Commands to execute should be separated by a colon (C<:>), where the colon "
19572 "is a separate parameter. Thus:"
19576 #: ../fish/guestfish.pod:426
19579 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19584 #: ../fish/guestfish.pod:428
19586 "If there are no additional arguments, then we enter a shell, either an "
19587 "interactive shell with a prompt (if the input is a terminal) or a non-"
19588 "interactive shell."
19592 #: ../fish/guestfish.pod:432
19594 "In either command line mode or non-interactive shell, the first command that"
19595 " gives an error causes the whole shell to exit. In interactive mode (with a"
19596 " prompt) if a command fails, you can continue to enter commands."
19600 #: ../fish/guestfish.pod:437
19601 msgid "USING launch (OR run)"
19605 #: ../fish/guestfish.pod:439
19607 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19608 "then launch it, then mount any disks you need, and finally issue "
19609 "actions/commands. So the general order of the day is:"
19613 #: ../fish/guestfish.pod:447
19614 msgid "add or -a/--add"
19618 #: ../fish/guestfish.pod:451
19619 msgid "launch (aka run)"
19623 #: ../fish/guestfish.pod:455
19624 msgid "mount or -m/--mount"
19628 #: ../fish/guestfish.pod:459
19629 msgid "any other commands"
19633 #: ../fish/guestfish.pod:463
19635 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
19636 "guest before mounting or performing any other commands."
19640 #: ../fish/guestfish.pod:466
19642 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19643 "I<--new> options were given then C<run> is done automatically, simply "
19644 "because guestfish can't perform the action you asked for without doing this."
19648 #: ../fish/guestfish.pod:471
19649 msgid "OPENING DISKS FOR READ AND WRITE"
19653 #: ../fish/guestfish.pod:473
19655 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19656 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19657 "I<-i> and I<-m> open disk images read-only or for writing."
19661 #: ../fish/guestfish.pod:478
19663 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to"
19664 " opening disk images supplied on the command line for write. To open a disk"
19665 " image read-only you have to do I<-a image --ro>."
19669 #: ../fish/guestfish.pod:482
19671 "This matters: If you accidentally open a live VM disk image writable then "
19672 "you will cause irreversible disk corruption."
19676 #: ../fish/guestfish.pod:485
19678 "In a future libguestfs we intend to change the default the other way. Disk "
19679 "images will be opened read-only. You will have to either specify "
19680 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19681 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19682 "access for disk images specified by those other command line options."
19686 #: ../fish/guestfish.pod:492
19688 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19689 "which does nothing (it is already the default). However it is highly "
19690 "recommended that you use this option to indicate that you need write access,"
19691 " and prepare your scripts for the day when this option will be required for "
19696 #: ../fish/guestfish.pod:498
19698 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any"
19699 " other libguestfs program apart from guestfish and guestmount."
19703 #: ../fish/guestfish.pod:501
19708 #: ../fish/guestfish.pod:503
19710 "You can quote ordinary parameters using either single or double quotes. For"
19715 #: ../fish/guestfish.pod:506
19718 " add \"file with a space.img\"\n"
19723 #: ../fish/guestfish.pod:508
19726 " rm '/file name'\n"
19731 #: ../fish/guestfish.pod:510
19739 #: ../fish/guestfish.pod:512
19741 "A few commands require a list of strings to be passed. For these, use a "
19742 "whitespace-separated list, enclosed in quotes. Strings containing "
19743 "whitespace to be passed through must be enclosed in single quotes. A "
19744 "literal single quote must be escaped with a backslash."
19748 #: ../fish/guestfish.pod:517
19751 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19752 " command \"/bin/echo 'foo bar'\"\n"
19753 " command \"/bin/echo \\'foo\\'\"\n"
19758 #: ../fish/guestfish.pod:521
19759 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19763 #: ../fish/guestfish.pod:523
19765 "In double-quoted arguments (only) use backslash to insert special "
19770 #: ../fish/guestfish.pod:528
19775 #: ../fish/guestfish.pod:530
19776 msgid "Alert (bell) character."
19777 msgstr "Символ гудка (дзвінка)."
19780 #: ../fish/guestfish.pod:532
19785 #: ../fish/guestfish.pod:534
19786 msgid "Backspace character."
19790 #: ../fish/guestfish.pod:536
19795 #: ../fish/guestfish.pod:538
19796 msgid "Form feed character."
19800 #: ../fish/guestfish.pod:540
19805 #: ../fish/guestfish.pod:542
19806 msgid "Newline character."
19810 #: ../fish/guestfish.pod:544
19815 #: ../fish/guestfish.pod:546
19816 msgid "Carriage return character."
19817 msgstr "Символ повернення каретки."
19820 #: ../fish/guestfish.pod:548
19825 #: ../fish/guestfish.pod:550
19826 msgid "Horizontal tab character."
19827 msgstr "Символ горизонтальної табуляції"
19830 #: ../fish/guestfish.pod:552
19835 #: ../fish/guestfish.pod:554
19836 msgid "Vertical tab character."
19837 msgstr "Символ вертикальної табуляції."
19840 #: ../fish/guestfish.pod:556
19845 #: ../fish/guestfish.pod:558
19846 msgid "A literal double quote character."
19850 #: ../fish/guestfish.pod:560
19855 #: ../fish/guestfish.pod:562
19857 "A character with octal value I<ooo>. There must be precisely 3 octal digits"
19862 #: ../fish/guestfish.pod:565
19867 #: ../fish/guestfish.pod:567
19869 "A character with hex value I<hh>. There must be precisely 2 hex digits."
19873 #: ../fish/guestfish.pod:570
19875 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19880 #: ../fish/guestfish.pod:573
19885 #: ../fish/guestfish.pod:575
19886 msgid "A literal backslash character."
19890 #: ../fish/guestfish.pod:579
19891 msgid "OPTIONAL ARGUMENTS"
19895 #: ../fish/guestfish.pod:581
19897 "Some commands take optional arguments. These arguments appear in this "
19898 "documentation as C<[argname:..]>. You can use them as in these examples:"
19902 #: ../fish/guestfish.pod:585
19905 " add-drive-opts filename\n"
19910 #: ../fish/guestfish.pod:587
19913 " add-drive-opts filename readonly:true\n"
19918 #: ../fish/guestfish.pod:589
19921 " add-drive-opts filename format:qcow2 readonly:false\n"
19926 #: ../fish/guestfish.pod:591
19928 "Each optional argument can appear at most once. All optional arguments must"
19929 " appear after the required ones."
19933 #: ../fish/guestfish.pod:594
19938 #: ../fish/guestfish.pod:596
19940 "This section applies to all commands which can take integers as parameters."
19944 #: ../fish/guestfish.pod:599
19945 msgid "SIZE SUFFIX"
19949 #: ../fish/guestfish.pod:601
19951 "When the command takes a parameter measured in bytes, you can use one of the"
19952 " following suffixes to specify kilobytes, megabytes and larger sizes:"
19956 #: ../fish/guestfish.pod:607
19957 msgid "B<k> or B<K> or B<KiB>"
19958 msgstr "B<k>, B<K> або B<KiB>"
19961 #: ../fish/guestfish.pod:609
19962 msgid "The size in kilobytes (multiplied by 1024)."
19963 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
19966 #: ../fish/guestfish.pod:611
19971 #: ../fish/guestfish.pod:613
19972 msgid "The size in SI 1000 byte units."
19973 msgstr "Розмір у одиницях СІ: 1000 байтів."
19976 #: ../fish/guestfish.pod:615
19977 msgid "B<M> or B<MiB>"
19978 msgstr "B<M> або B<MiB>"
19981 #: ../fish/guestfish.pod:617
19982 msgid "The size in megabytes (multiplied by 1048576)."
19983 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
19986 #: ../fish/guestfish.pod:619
19991 #: ../fish/guestfish.pod:621
19992 msgid "The size in SI 1000000 byte units."
19993 msgstr "Розмір у одиницях СІ: 1000000 байтів."
19996 #: ../fish/guestfish.pod:623
19997 msgid "B<G> or B<GiB>"
19998 msgstr "B<G> або B<GiB>"
20001 #: ../fish/guestfish.pod:625
20002 msgid "The size in gigabytes (multiplied by 2**30)."
20003 msgstr "Розмір у гігабайтах (з множником 2**30)."
20006 #: ../fish/guestfish.pod:627
20011 #: ../fish/guestfish.pod:629
20012 msgid "The size in SI 10**9 byte units."
20013 msgstr "Розмір у одиницях СІ: 10**9 байтів."
20016 #: ../fish/guestfish.pod:631
20017 msgid "B<T> or B<TiB>"
20018 msgstr "B<T> або B<TiB>"
20021 #: ../fish/guestfish.pod:633
20022 msgid "The size in terabytes (multiplied by 2**40)."
20023 msgstr "Розмір у терабайтах (з множником 2**40)."
20026 #: ../fish/guestfish.pod:635
20031 #: ../fish/guestfish.pod:637
20032 msgid "The size in SI 10**12 byte units."
20033 msgstr "Розмір у одиницях СІ: 10**12 байтів."
20036 #: ../fish/guestfish.pod:639
20037 msgid "B<P> or B<PiB>"
20038 msgstr "B<P> або B<PiB>"
20041 #: ../fish/guestfish.pod:641
20042 msgid "The size in petabytes (multiplied by 2**50)."
20043 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
20046 #: ../fish/guestfish.pod:643
20051 #: ../fish/guestfish.pod:645
20052 msgid "The size in SI 10**15 byte units."
20053 msgstr "Розмір у одиницях СІ: 10**15 байтів."
20056 #: ../fish/guestfish.pod:647
20057 msgid "B<E> or B<EiB>"
20058 msgstr "B<E> або B<EiB>"
20061 #: ../fish/guestfish.pod:649
20062 msgid "The size in exabytes (multiplied by 2**60)."
20063 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
20066 #: ../fish/guestfish.pod:651
20071 #: ../fish/guestfish.pod:653
20072 msgid "The size in SI 10**18 byte units."
20073 msgstr "Розмір у одиницях СІ: 10**18 байтів."
20076 #: ../fish/guestfish.pod:655
20077 msgid "B<Z> or B<ZiB>"
20078 msgstr "B<Z> або B<ZiB>"
20081 #: ../fish/guestfish.pod:657
20082 msgid "The size in zettabytes (multiplied by 2**70)."
20083 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
20086 #: ../fish/guestfish.pod:659
20091 #: ../fish/guestfish.pod:661
20092 msgid "The size in SI 10**21 byte units."
20093 msgstr "Розмір у одиницях СІ: 10**21 байтів."
20096 #: ../fish/guestfish.pod:663
20097 msgid "B<Y> or B<YiB>"
20098 msgstr "B<Y> або B<YiB>"
20101 #: ../fish/guestfish.pod:665
20102 msgid "The size in yottabytes (multiplied by 2**80)."
20103 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
20106 #: ../fish/guestfish.pod:667
20111 #: ../fish/guestfish.pod:669
20112 msgid "The size in SI 10**24 byte units."
20113 msgstr "Розмір у одиницях СІ: 10**24 байтів."
20116 #: ../fish/guestfish.pod:675
20119 " truncate-size /file 1G\n"
20124 #: ../fish/guestfish.pod:677
20125 msgid "would truncate the file to 1 gigabyte."
20129 #: ../fish/guestfish.pod:679
20131 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20132 "the parameter to L</memsize> is specified in megabytes already). Adding a "
20133 "suffix will probably not do what you expect."
20137 #: ../fish/guestfish.pod:683
20138 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20142 #: ../fish/guestfish.pod:685
20144 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20145 "octal number or C<0x> to prefix a hexadecimal number. For example:"
20149 #: ../fish/guestfish.pod:688
20152 " 1234 decimal number 1234\n"
20153 " 02322 octal number, equivalent to decimal 1234\n"
20154 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
20159 #: ../fish/guestfish.pod:692
20161 "When using the C<chmod> command, you almost always want to specify an octal "
20162 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20163 "L<chmod(1)> program):"
20167 #: ../fish/guestfish.pod:696
20170 " chmod 0777 /public # OK\n"
20171 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
20176 #: ../fish/guestfish.pod:699
20178 "Commands that return numbers usually print them in decimal, but some "
20179 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20180 "octal, preceeded by C<0>)."
20184 #: ../fish/guestfish.pod:703
20185 msgid "WILDCARDS AND GLOBBING"
20189 #: ../fish/guestfish.pod:705
20191 "Neither guestfish nor the underlying guestfs API performs wildcard expansion"
20192 " (globbing) by default. So for example the following will not do what you "
20197 #: ../fish/guestfish.pod:709
20205 #: ../fish/guestfish.pod:711
20207 "Assuming you don't have a directory called literally C</home/*> then the "
20208 "above command will return an error."
20212 #: ../fish/guestfish.pod:714
20213 msgid "To perform wildcard expansion, use the C<glob> command."
20217 #: ../fish/guestfish.pod:716
20220 " glob rm-rf /home/*\n"
20225 #: ../fish/guestfish.pod:718
20227 "runs C<rm-rf> on each path that matches (ie. potentially running the command"
20228 " many times), equivalent to:"
20232 #: ../fish/guestfish.pod:721
20235 " rm-rf /home/jim\n"
20236 " rm-rf /home/joe\n"
20237 " rm-rf /home/mary\n"
20242 #: ../fish/guestfish.pod:725
20243 msgid "C<glob> only works on simple guest paths and not on device names."
20247 #: ../fish/guestfish.pod:727
20249 "If you have several parameters, each containing a wildcard, then glob will "
20250 "perform a Cartesian product."
20254 #: ../fish/guestfish.pod:730
20259 #: ../fish/guestfish.pod:732
20261 "Any line which starts with a I<#> character is treated as a comment and "
20262 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
20263 "a command. For example:"
20267 #: ../fish/guestfish.pod:736
20270 " # this is a comment\n"
20271 " # this is a comment\n"
20272 " foo # NOT a comment\n"
20277 #: ../fish/guestfish.pod:740
20278 msgid "Blank lines are also ignored."
20282 #: ../fish/guestfish.pod:742
20283 msgid "RUNNING COMMANDS LOCALLY"
20287 #: ../fish/guestfish.pod:744
20289 "Any line which starts with a I<!> character is treated as a command sent to "
20290 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
20294 #: ../fish/guestfish.pod:748
20298 " tgz-out /remote local/remote-data.tar.gz\n"
20303 #: ../fish/guestfish.pod:751
20305 "will create a directory C<local> on the host, and then export the contents "
20306 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
20307 "(See C<tgz-out>)."
20311 #: ../fish/guestfish.pod:755
20313 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
20314 "effect, due to the way that subprocesses work in Unix."
20318 #: ../fish/guestfish.pod:758
20319 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20323 #: ../fish/guestfish.pod:760
20325 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20326 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20327 "and executed as guestfish commands."
20331 #: ../fish/guestfish.pod:764
20333 "Thus you can use shell script to construct arbitrary guestfish commands "
20334 "which are then parsed by guestfish."
20338 #: ../fish/guestfish.pod:767
20340 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20341 "through C</foo.100>) using guestfish commands alone. However this is simple"
20342 " if we use a shell script to create the guestfish commands for us:"
20346 #: ../fish/guestfish.pod:772
20349 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20354 #: ../fish/guestfish.pod:774
20355 msgid "or with names like C</foo.001>:"
20359 #: ../fish/guestfish.pod:776
20362 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20367 #: ../fish/guestfish.pod:778
20369 "When using guestfish interactively it can be helpful to just run the shell "
20370 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20371 "ordinary I<!> local command), see what guestfish commands it would run, and "
20372 "when you are happy with those prepend the C<E<lt>> character to run the "
20373 "guestfish commands for real."
20377 #: ../fish/guestfish.pod:784
20382 #: ../fish/guestfish.pod:786
20384 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20385 "command (a guestfish command) to the second command (any host command). For"
20390 #: ../fish/guestfish.pod:790
20393 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20398 #: ../fish/guestfish.pod:792
20400 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20401 "program). The above command would list all accounts in the guest filesystem"
20402 " which have UID 0, ie. root accounts including backdoors. Other examples:"
20406 #: ../fish/guestfish.pod:797
20409 " hexdump /bin/ls | head\n"
20410 " list-devices | tail -1\n"
20411 " tgz-out / - | tar ztf -\n"
20416 #: ../fish/guestfish.pod:801
20418 "The space before the pipe symbol is required, any space after the pipe "
20419 "symbol is optional. Everything after the pipe symbol is just passed "
20420 "straight to the host shell, so it can contain redirections, globs and "
20421 "anything else that makes sense on the host side."
20425 #: ../fish/guestfish.pod:806
20427 "To use a literal argument which begins with a pipe symbol, you have to quote"
20432 #: ../fish/guestfish.pod:809
20440 #: ../fish/guestfish.pod:811
20441 msgid "HOME DIRECTORIES"
20445 #: ../fish/guestfish.pod:813
20447 "If a parameter starts with the character C<~> then the tilde may be expanded"
20448 " as a home directory path (either C<~> for the current user's home "
20449 "directory, or C<~user> for another user)."
20453 #: ../fish/guestfish.pod:817
20455 "Note that home directory expansion happens for users known I<on the host>, "
20456 "not in the guest filesystem."
20460 #: ../fish/guestfish.pod:820
20462 "To use a literal argument which begins with a tilde, you have to quote it, "
20467 #: ../fish/guestfish.pod:823
20475 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20476 msgid "ENCRYPTED DISKS"
20477 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20480 #: ../fish/guestfish.pod:827
20482 "Libguestfs has some support for Linux guests encrypted according to the "
20483 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20484 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
20485 "LUKS is supported."
20489 #: ../fish/guestfish.pod:832
20490 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20494 #: ../fish/guestfish.pod:834
20497 " ><fs> vfs-type /dev/sda2\n"
20503 #: ../fish/guestfish.pod:837
20505 "Then open those devices using L</luks-open>. This creates a device-mapper "
20506 "device called C</dev/mapper/luksdev>."
20510 #: ../fish/guestfish.pod:840
20513 " ><fs> luks-open /dev/sda2 luksdev\n"
20514 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20519 #: ../fish/guestfish.pod:843
20521 "Finally you have to tell LVM to scan for volume groups on the newly created "
20526 #: ../fish/guestfish.pod:846
20530 " vg-activate-all true\n"
20535 #: ../fish/guestfish.pod:849
20536 msgid "The logical volume(s) can now be mounted in the usual way."
20540 #: ../fish/guestfish.pod:851
20542 "Before closing a LUKS device you must unmount any logical volumes on it and "
20543 "deactivate the volume groups by calling C<vg-activate false VG> on each one."
20544 " Then you can close the mapper device:"
20548 #: ../fish/guestfish.pod:855
20551 " vg-activate false /dev/VG\n"
20552 " luks-close /dev/mapper/luksdev\n"
20557 #: ../fish/guestfish.pod:860
20559 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20560 "letters and paths (with some limitations). The following commands are "
20565 #: ../fish/guestfish.pod:864
20568 " file /WINDOWS/system32/config/system.LOG\n"
20573 #: ../fish/guestfish.pod:866
20576 " file win:\\windows\\system32\\config\\system.log\n"
20581 #: ../fish/guestfish.pod:868
20584 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20589 #: ../fish/guestfish.pod:870
20591 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20592 "where the drive is mounted, prepending that to the path, changing all "
20593 "backslash characters to forward slash, then resolving the result using L"
20594 "</case-sensitive-path>. For example if the E: drive was mounted on C</e> "
20595 "then the parameter might be rewritten like this:"
20599 #: ../fish/guestfish.pod:876
20602 " win:e:\\foo\\bar => /e/FOO/bar\n"
20607 #: ../fish/guestfish.pod:878
20608 msgid "This only works in argument positions that expect a path."
20612 #: ../fish/guestfish.pod:880
20613 msgid "UPLOADING AND DOWNLOADING FILES"
20617 #: ../fish/guestfish.pod:882
20619 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20620 "others which upload from or download to a local file, you can use the "
20621 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
20625 #: ../fish/guestfish.pod:886
20633 #: ../fish/guestfish.pod:888
20635 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20639 #: ../fish/guestfish.pod:891
20642 " tar-out /etc - | tar tf -\n"
20647 #: ../fish/guestfish.pod:893
20649 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20650 "command (see L</PIPES>)."
20654 #: ../fish/guestfish.pod:896
20656 "When using C<-> to read from stdin, the input is read up to the end of "
20657 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
20658 "some arbitrary end marker:"
20662 #: ../fish/guestfish.pod:900
20665 " upload -<<END /foo\n"
20674 #: ../fish/guestfish.pod:906
20676 "Any string of characters can be used instead of C<END>. The end marker must"
20677 " appear on a line of its own, without any preceeding or following characters"
20678 " (not even spaces)."
20682 #: ../fish/guestfish.pod:910
20684 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20685 "upload local files (so-called \"FileIn\" parameters in the generator)."
20689 #: ../fish/guestfish.pod:913
20690 msgid "EXIT ON ERROR BEHAVIOUR"
20694 #: ../fish/guestfish.pod:915
20696 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20697 "taking commands from a human over a tty), and will exit on the first error "
20698 "in non-interactive mode (scripts, commands given on the command line)."
20702 #: ../fish/guestfish.pod:920
20704 "If you prefix a command with a I<-> character, then that command will not "
20705 "cause guestfish to exit, even if that (one) command returns an error."
20709 #: ../fish/guestfish.pod:924
20710 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20714 #: ../fish/guestfish.pod:926
20716 "Guestfish can be remote-controlled over a socket. This is useful "
20717 "particularly in shell scripts where you want to make several different "
20718 "changes to a filesystem, but you don't want the overhead of starting up a "
20719 "guestfish process each time."
20723 #: ../fish/guestfish.pod:931
20724 msgid "Start a guestfish server process using:"
20728 #: ../fish/guestfish.pod:933
20731 " eval \"`guestfish --listen`\"\n"
20736 #: ../fish/guestfish.pod:935
20737 msgid "and then send it commands by doing:"
20741 #: ../fish/guestfish.pod:937
20744 " guestfish --remote cmd [...]\n"
20749 #: ../fish/guestfish.pod:939
20750 msgid "To cause the server to exit, send it the exit command:"
20754 #: ../fish/guestfish.pod:943
20756 "Note that the server will normally exit if there is an error in a command. "
20757 "You can change this in the usual way. See section L</EXIT ON ERROR "
20762 #: ../fish/guestfish.pod:947
20763 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20767 #: ../fish/guestfish.pod:949
20769 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which"
20770 " is how the I<--remote> option knows where to send the commands. You can "
20771 "have several guestfish listener processes running using:"
20775 #: ../fish/guestfish.pod:953
20778 " eval \"`guestfish --listen`\"\n"
20779 " pid1=$GUESTFISH_PID\n"
20780 " eval \"`guestfish --listen`\"\n"
20781 " pid2=$GUESTFISH_PID\n"
20783 " guestfish --remote=$pid1 cmd\n"
20784 " guestfish --remote=$pid2 cmd\n"
20789 #: ../fish/guestfish.pod:961
20790 msgid "REMOTE CONTROL AND CSH"
20794 #: ../fish/guestfish.pod:963
20796 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20801 #: ../fish/guestfish.pod:966
20804 " eval \"`guestfish --listen --csh`\"\n"
20809 #: ../fish/guestfish.pod:968
20810 msgid "REMOTE CONTROL DETAILS"
20814 #: ../fish/guestfish.pod:970
20816 "Remote control happens over a Unix domain socket called "
20817 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
20818 "of the process, and C<$PID> is the process ID of the server."
20822 #: ../fish/guestfish.pod:974
20823 msgid "Guestfish client and server versions must match exactly."
20827 #: ../fish/guestfish.pod:976
20828 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20832 #: ../fish/guestfish.pod:978
20834 "From Bash, you can use the following code which creates a guestfish "
20835 "instance, correctly quotes the command line, handles failure to start, and "
20836 "cleans up guestfish when the script exits:"
20840 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20848 #: ../fish/guestfish.pod:986
20851 " guestfish[0]=\"guestfish\"\n"
20852 " guestfish[1]=\"--listen\"\n"
20853 " guestfish[2]=\"--ro\"\n"
20854 " guestfish[3]=\"-a\"\n"
20855 " guestfish[4]=\"disk.img\"\n"
20860 #: ../fish/guestfish.pod:992
20863 " GUESTFISH_PID=\n"
20864 " eval $(\"${guestfish[@]}\")\n"
20865 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20866 " echo \"error: guestfish didn't start up, see error messages above\"\n"
20873 #: ../fish/guestfish.pod:999
20876 " cleanup_guestfish ()\n"
20878 " guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20880 " trap cleanup_guestfish EXIT ERR\n"
20885 #: ../fish/guestfish.pod:1005
20888 " guestfish --remote -- run\n"
20893 #: ../fish/guestfish.pod:1007
20901 #: ../fish/guestfish.pod:1009
20902 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20906 #: ../fish/guestfish.pod:1011
20908 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20909 "context hangs, ie. don't do (note the backquotes):"
20913 #: ../fish/guestfish.pod:1014
20916 " a=`guestfish --remote run`\n"
20921 #: ../fish/guestfish.pod:1016
20923 "Since the C<run> command produces no output on stdout, this is not useful "
20924 "anyway. For further information see "
20925 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
20929 #: ../fish/guestfish.pod:1020
20930 msgid "PREPARED DISK IMAGES"
20934 #: ../fish/guestfish.pod:1022
20936 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20937 "preformatted disk images that guestfish can make for you to save typing. "
20938 "This is particularly useful for testing purposes. This option is used "
20939 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20940 "can be mixed with I<-a>)."
20944 #: ../fish/guestfish.pod:1028
20946 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20947 "the second and so on. Existing files in the current directory are "
20952 #: ../fish/guestfish.pod:1032
20954 "The type briefly describes how the disk should be sized, partitioned, how "
20955 "filesystem(s) should be created, and how content should be added. "
20956 "Optionally the type can be followed by extra parameters, separated by C<:> "
20957 "(colon) characters. For example, I<-N fs> creates a default 100MB, "
20958 "sparsely-allocated disk, containing a single partition, with the partition "
20959 "formatted as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem"
20960 " on a 1GB disk instead."
20964 #: ../fish/guestfish.pod:1040
20965 msgid "To list the available types and any extra parameters they take, run:"
20969 #: ../fish/guestfish.pod:1044
20971 "Note that the prepared filesystem is not mounted. You would usually have to"
20972 " use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20976 #: ../fish/guestfish.pod:1048
20978 "If any I<-N> or I<--new> options are given, the guest is automatically "
20983 #: ../fish/guestfish.pod:1053
20984 msgid "Create a 100MB disk with an ext4-formatted partition:"
20988 #: ../fish/guestfish.pod:1055
20991 " guestfish -N fs:ext4\n"
20996 #: ../fish/guestfish.pod:1057
20997 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21001 #: ../fish/guestfish.pod:1059
21004 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21009 #: ../fish/guestfish.pod:1061
21010 msgid "Create a blank 200MB disk:"
21014 #: ../fish/guestfish.pod:1063
21017 " guestfish -N disk:200M\n"
21022 #: ../fish/guestfish.pod:1065
21023 msgid "PROGRESS BARS"
21027 #: ../fish/guestfish.pod:1067
21029 "Some (not all) long-running commands send progress notification messages as "
21030 "they are running. Guestfish turns these messages into progress bars."
21034 #: ../fish/guestfish.pod:1071
21036 "When a command that supports progress bars takes longer than two seconds to "
21037 "run, and if progress bars are enabled, then you will see one appearing below"
21042 #: ../fish/guestfish.pod:1075
21045 " ><fs> copy-size /large-file /another-file 2048M\n"
21046 " / 10% [#####-----------------------------------------] 00:30\n"
21051 #: ../fish/guestfish.pod:1078
21053 "The spinner on the left hand side moves round once for every progress "
21054 "notification received from the backend. This is a (reasonably) golden "
21055 "assurance that the command is \"doing something\" even if the progress bar "
21056 "is not moving, because the command is able to send the progress "
21057 "notifications. When the bar reaches 100% and the command finishes, the "
21058 "spinner disappears."
21062 #: ../fish/guestfish.pod:1085
21064 "Progress bars are enabled by default when guestfish is used interactively. "
21065 "You can enable them even for non-interactive modes using I<--progress-bars>,"
21066 " and you can disable them completely using I<--no-progress-bars>."
21070 #: ../fish/guestfish.pod:1090
21071 msgid "GUESTFISH COMMANDS"
21075 #: ../fish/guestfish.pod:1092
21077 "The commands in this section are guestfish convenience commands, in other "
21078 "words, they are not part of the L<guestfs(3)> API."
21082 #: ../fish/guestfish.pod:1095
21087 #: ../fish/guestfish.pod:1097
21099 #: ../fish/guestfish.pod:1100
21100 msgid "Without any parameter, this provides general help."
21101 msgstr "Без параметра показує загальну довідкову інформацію."
21104 #: ../fish/guestfish.pod:1102
21105 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21109 #: ../fish/guestfish.pod:1104
21110 msgid "quit | exit"
21114 #: ../fish/guestfish.pod:1106
21115 msgid "This exits guestfish. You can also use C<^D> key."
21119 #: ../fish/guestfish.pod:1108
21120 msgid "@FISH_COMMANDS@"
21124 #: ../fish/guestfish.pod:1110
21129 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21134 #: ../fish/guestfish.pod:1116
21136 "guestfish returns 0 if the commands completed without error, or 1 if there "
21141 #: ../fish/guestfish.pod:1123
21146 #: ../fish/guestfish.pod:1125
21148 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
21153 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
21154 msgid "FEBOOTSTRAP_KERNEL"
21158 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
21159 msgid "FEBOOTSTRAP_MODULES"
21163 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
21165 "These two environment variables allow the kernel that libguestfs uses in the"
21166 " appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21167 "most recent host kernel is chosen. For more information about kernel "
21168 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
21169 "available in febootstrap E<ge> 3.8."
21173 #: ../fish/guestfish.pod:1138
21174 msgid "GUESTFISH_DISPLAY_IMAGE"
21178 #: ../fish/guestfish.pod:1140
21180 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
21181 "If not set, it uses L<display(1)>."
21185 #: ../fish/guestfish.pod:1143
21186 msgid "GUESTFISH_PID"
21190 #: ../fish/guestfish.pod:1145
21192 "Used with the I<--remote> option to specify the remote guestfish process to "
21193 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21197 #: ../fish/guestfish.pod:1149
21202 #: ../fish/guestfish.pod:1151
21204 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
21205 "not specified, the external L<hexedit(1)> program is used."
21209 #: ../fish/guestfish.pod:1155
21214 #: ../fish/guestfish.pod:1157
21216 "If compiled with GNU readline support, various files in the home directory "
21217 "can be used. See L</FILES>."
21221 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
21222 msgid "LIBGUESTFS_APPEND"
21226 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
21227 msgid "Pass additional options to the guest kernel."
21231 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
21232 msgid "LIBGUESTFS_DEBUG"
21233 msgstr "LIBGUESTFS_DEBUG"
21236 #: ../fish/guestfish.pod:1166
21238 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
21239 "effect as using the B<-v> option."
21243 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
21244 msgid "LIBGUESTFS_MEMSIZE"
21245 msgstr "LIBGUESTFS_MEMSIZE"
21248 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
21250 "Set the memory allocated to the qemu process, in megabytes. For example:"
21254 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
21257 " LIBGUESTFS_MEMSIZE=700\n"
21260 " LIBGUESTFS_MEMSIZE=700\n"
21264 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
21265 msgid "LIBGUESTFS_PATH"
21269 #: ../fish/guestfish.pod:1178
21271 "Set the path that guestfish uses to search for kernel and initrd.img. See "
21272 "the discussion of paths in L<guestfs(3)>."
21276 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
21277 msgid "LIBGUESTFS_QEMU"
21281 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
21283 "Set the default qemu binary that libguestfs uses. If not set, then the qemu"
21284 " which was found at compile time by the configure script is used."
21288 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
21289 msgid "LIBGUESTFS_TRACE"
21293 #: ../fish/guestfish.pod:1189
21294 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21298 #: ../fish/guestfish.pod:1191
21300 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21303 #: ../fish/guestfish.pod:1193
21305 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
21310 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21311 #: ../src/guestfs.pod:3257
21316 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
21318 "Location of temporary directory, defaults to C</tmp> except for the cached "
21319 "supermin appliance which defaults to C</var/tmp>."
21323 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
21325 "If libguestfs was compiled to use the supermin appliance then the real "
21326 "appliance is cached in this directory, shared between all handles belonging "
21327 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
21328 "use in case C</var/tmp> is not large enough."
21332 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21333 #: ../rescue/virt-rescue.pod:273
21338 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21339 #: ../rescue/virt-rescue.pod:277
21340 msgid "$HOME/.libguestfs-tools.rc"
21344 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21345 #: ../rescue/virt-rescue.pod:279
21346 msgid "/etc/libguestfs-tools.conf"
21350 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21351 #: ../rescue/virt-rescue.pod:281
21353 "This configuration file controls the default read-only or read-write mode "
21354 "(I<--ro> or I<--rw>)."
21358 #: ../fish/guestfish.pod:1220
21359 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21360 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
21363 #: ../fish/guestfish.pod:1222
21364 msgid "$HOME/.guestfish"
21368 #: ../fish/guestfish.pod:1224
21370 "If compiled with GNU readline support, then the command history is saved in "
21375 #: ../fish/guestfish.pod:1227
21376 msgid "$HOME/.inputrc"
21380 #: ../fish/guestfish.pod:1229
21381 msgid "/etc/inputrc"
21385 #: ../fish/guestfish.pod:1231
21387 "If compiled with GNU readline support, then these files can be used to "
21388 "configure readline. For further information, please see "
21389 "L<readline(3)/INITIALIZATION FILE>."
21393 #: ../fish/guestfish.pod:1235
21394 msgid "To write rules which only apply to guestfish, use:"
21398 #: ../fish/guestfish.pod:1237
21408 #: ../fish/guestfish.pod:1241
21410 "Variables that you can set in inputrc that change the behaviour of guestfish"
21411 " in useful ways include:"
21415 #: ../fish/guestfish.pod:1246
21416 msgid "completion-ignore-case (default: on)"
21420 #: ../fish/guestfish.pod:1248
21422 "By default, guestfish will ignore case when tab-completing paths on the "
21427 #: ../fish/guestfish.pod:1251
21430 " set completion-ignore-case off\n"
21435 #: ../fish/guestfish.pod:1253
21436 msgid "to make guestfish case sensitive."
21440 #: ../fish/guestfish.pod:1257
21445 #: ../fish/guestfish.pod:1259
21446 msgid "test2.img (etc)"
21450 #: ../fish/guestfish.pod:1261
21452 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21453 "will be created in the file C<test1.img> in the current directory. The "
21454 "second use of I<-N> will use C<test2.img> and so on. Any existing file with"
21455 " the same name will be overwritten."
21459 #: ../fish/guestfish.pod:1270
21461 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21462 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-"
21463 "edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
21464 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-"
21465 "fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-"
21466 "sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-"
21467 "win-reg(1)>, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-"
21472 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354
21473 #: ../test-tool/libguestfs-test-tool.pod:112
21474 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
21478 #: ../fish/virt-copy-in.pod:5
21480 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21484 #: ../fish/virt-copy-in.pod:9
21487 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21492 #: ../fish/virt-copy-in.pod:11
21495 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21500 #: ../fish/virt-copy-in.pod:15
21502 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially"
21503 " causing disk corruption. The virtual machine must be shut down before you "
21504 "use this command."
21508 #: ../fish/virt-copy-in.pod:21
21510 "C<virt-copy-in> copies files and directories from the local disk into a "
21511 "virtual machine disk image or named libvirt domain."
21515 #: ../fish/virt-copy-in.pod:24
21517 "You can give one of more filenames and directories on the command line. "
21518 "Directories are copied in recursively. The final parameter must be the "
21519 "destination directory in the disk image which must be an absolute path "
21520 "starting with a C</> character."
21524 #: ../fish/virt-copy-in.pod:33
21527 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21532 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21533 msgid "Upload a home directory to a guest:"
21537 #: ../fish/virt-copy-in.pod:37
21540 " virt-copy-in -d MyGuest skel /home\n"
21545 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21546 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21547 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21551 #: ../fish/virt-copy-in.pod:41
21553 "This command is just a simple shell script wrapper around the "
21554 "L<guestfish(1)> C<copy-in> command. For anything more complex than a "
21555 "trivial copy, you are probably better off using guestfish directly."
21559 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21560 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21562 "Since the shell script just passes options straight to guestfish, read "
21563 "L<guestfish(1)> to see the full list of options."
21567 #: ../fish/virt-copy-in.pod:52
21569 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L"
21570 "<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21574 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21575 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21576 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21580 #: ../fish/virt-copy-out.pod:5
21582 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21587 #: ../fish/virt-copy-out.pod:9
21590 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21595 #: ../fish/virt-copy-out.pod:11
21598 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21603 #: ../fish/virt-copy-out.pod:15
21605 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21606 "image or named libvirt domain."
21610 #: ../fish/virt-copy-out.pod:18
21612 "You can give one of more filenames and directories on the command line. "
21613 "Directories are copied out recursively."
21617 #: ../fish/virt-copy-out.pod:23
21618 msgid "Download the home directories from a virtual machine:"
21622 #: ../fish/virt-copy-out.pod:25
21626 " virt-copy-out -d MyGuest /home homes\n"
21631 #: ../fish/virt-copy-out.pod:30
21633 "This command is just a simple shell script wrapper around the "
21634 "L<guestfish(1)> C<copy-out> command. For anything more complex than a "
21635 "trivial copy, you are probably better off using guestfish directly."
21639 #: ../fish/virt-copy-out.pod:41
21641 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L"
21642 "<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21646 #: ../fish/virt-tar-in.pod:5
21647 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21651 #: ../fish/virt-tar-in.pod:9
21654 " virt-tar-in -a disk.img data.tar /destination\n"
21659 #: ../fish/virt-tar-in.pod:11
21662 " virt-tar-in -d domain data.tar /destination\n"
21667 #: ../fish/virt-tar-in.pod:13
21670 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21675 #: ../fish/virt-tar-in.pod:17
21677 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21678 "causing disk corruption. The virtual machine must be shut down before you "
21679 "use this command."
21683 #: ../fish/virt-tar-in.pod:23
21685 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21686 "image or named libvirt domain."
21690 #: ../fish/virt-tar-in.pod:26
21692 "The first parameter is the tar file. Use C<-> to read the tar file from "
21693 "standard input. The second parameter is the absolute target directory to "
21698 #: ../fish/virt-tar-in.pod:34
21701 " virt-tar-in -d MyGuest homes.tar /home\n"
21706 #: ../fish/virt-tar-in.pod:38
21708 "This command is just a simple shell script wrapper around the "
21709 "L<guestfish(1)> C<tar-in> command. For anything more complex than a trivial"
21710 " copy, you are probably better off using guestfish directly."
21714 #: ../fish/virt-tar-in.pod:49
21716 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L"
21717 "<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
21718 "L<http://libguestfs.org/>."
21722 #: ../fish/virt-tar-out.pod:5
21724 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21728 #: ../fish/virt-tar-out.pod:9
21731 " virt-tar-out -a disk.img /dir files.tar\n"
21736 #: ../fish/virt-tar-out.pod:11
21739 " virt-tar-out -d domain /dir files.tar\n"
21744 #: ../fish/virt-tar-out.pod:13
21747 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21752 #: ../fish/virt-tar-out.pod:17
21754 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21758 #: ../fish/virt-tar-out.pod:20
21760 "The first parameter is the absolute path of the virtual machine directory. "
21761 "The second parameter is the tar file to write. Use C<-> to write to "
21766 #: ../fish/virt-tar-out.pod:26
21767 msgid "Download the home directories from a guest:"
21771 #: ../fish/virt-tar-out.pod:28
21774 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21779 #: ../fish/virt-tar-out.pod:32
21781 "This command is just a simple shell script wrapper around the "
21782 "L<guestfish(1)> C<tar-out> command. For anything more complex than a "
21783 "trivial copy, you are probably better off using guestfish directly."
21787 #: ../fish/virt-tar-out.pod:43
21789 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L"
21790 "<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21794 #: ../fuse/guestmount.pod:5
21796 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21800 #: ../fuse/guestmount.pod:9
21803 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21808 #: ../fuse/guestmount.pod:11
21811 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21816 #: ../fuse/guestmount.pod:13
21819 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21824 #: ../fuse/guestmount.pod:17
21826 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21827 "machines. If you do this, you risk disk corruption in the VM."
21831 #: ../fuse/guestmount.pod:22
21833 "The guestmount program can be used to mount virtual machine filesystems and "
21834 "other disk images on the host. It uses libguestfs for access to the guest "
21835 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21836 "a mountable device."
21840 #: ../fuse/guestmount.pod:27
21842 "Along with other options, you have to give at least one device (I<-a> "
21843 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m>"
21844 " option) or use the I<-i> inspection option or the I<--live> option. How "
21845 "this works is better explained in the L<guestfish(1)> manual page, or by "
21846 "looking at the examples below."
21850 #: ../fuse/guestmount.pod:33
21852 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
21853 "by you, and the filesystem will not be visible to any other users unless you"
21854 " make certain global configuration changes to C</etc/fuse.conf>. To unmount"
21855 " the filesystem, use the C<fusermount -u> command."
21859 #: ../fuse/guestmount.pod:41
21861 "For a typical Windows guest which has its main filesystem on the first "
21866 #: ../fuse/guestmount.pod:44
21869 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21874 #: ../fuse/guestmount.pod:46
21876 "For a typical Linux guest which has a /boot filesystem on the first "
21877 "partition, and the root filesystem on a logical volume:"
21881 #: ../fuse/guestmount.pod:49
21884 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21889 #: ../fuse/guestmount.pod:51
21890 msgid "To get libguestfs to detect guest mountpoints for you:"
21894 #: ../fuse/guestmount.pod:53
21897 " guestmount -a guest.img -i --ro /mnt\n"
21902 #: ../fuse/guestmount.pod:55
21903 msgid "For a libvirt guest called \"Guest\" you could do:"
21907 #: ../fuse/guestmount.pod:57
21910 " guestmount -d Guest -i --ro /mnt\n"
21915 #: ../fuse/guestmount.pod:59
21917 "If you don't know what filesystems are contained in a guest or disk image, "
21918 "use L<virt-filesystems(1)> first:"
21922 #: ../fuse/guestmount.pod:62
21925 " virt-filesystems MyGuest\n"
21930 #: ../fuse/guestmount.pod:64
21932 "If you want to trace the libguestfs calls but without excessive debugging "
21933 "information, we recommend:"
21937 #: ../fuse/guestmount.pod:67
21940 " guestmount [...] --trace /mnt\n"
21945 #: ../fuse/guestmount.pod:69
21946 msgid "If you want to debug the program, we recommend:"
21950 #: ../fuse/guestmount.pod:71
21953 " guestmount [...] --trace --verbose /mnt\n"
21958 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21959 #: ../resize/virt-resize.pod:621
21964 #: ../fuse/guestmount.pod:75
21965 msgid "Other users cannot see the filesystem by default"
21969 #: ../fuse/guestmount.pod:77
21971 "If you mount a filesystem as one user (eg. root), then other users will not "
21972 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
21973 "option when mounting:"
21977 #: ../fuse/guestmount.pod:81
21980 " sudo guestmount [...] -o allow_other /mnt\n"
21985 #: ../fuse/guestmount.pod:83
21986 msgid "Enabling FUSE"
21990 #: ../fuse/guestmount.pod:85
21992 "On some distros, you may need to add yourself to a special group (eg. "
21993 "C<fuse>) before you can use any FUSE filesystem. This is necessary on "
21994 "Debian and derivatives."
21998 #: ../fuse/guestmount.pod:89
22000 "On other distros, no special group is required. It is not necessary on "
22001 "Fedora or Red Hat Enterprise Linux."
22005 #: ../fuse/guestmount.pod:100
22006 msgid "Add a block device or virtual machine image."
22010 #: ../fuse/guestmount.pod:123
22011 msgid "B<--dir-cache-timeout N>"
22012 msgstr "B<--dir-cache-timeout N>"
22015 #: ../fuse/guestmount.pod:125
22017 "Set the readdir cache timeout to I<N> seconds, the default being 60 seconds."
22018 " The readdir cache [actually, there are several semi-independent caches] is"
22019 " populated after a readdir(2) call with the stat and extended attributes of "
22020 "the files in the directory, in anticipation that they will be requested soon"
22025 #: ../fuse/guestmount.pod:131
22027 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22028 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22029 "requests, only cache existing ones."
22033 #: ../fuse/guestmount.pod:151
22035 "If you have untrusted raw-format guest disk images, you should use this "
22036 "option to specify the disk format. This avoids a possible security problem "
22037 "with malicious guests (CVE-2010-3851). See also "
22038 "L<guestfs(3)/guestfs_add_drive_opts>."
22042 #: ../fuse/guestmount.pod:156
22043 msgid "B<--fuse-help>"
22044 msgstr "B<--fuse-help>"
22047 #: ../fuse/guestmount.pod:158
22048 msgid "Display help on special FUSE options (see I<-o> below)."
22052 #: ../fuse/guestmount.pod:162
22053 msgid "Display brief help and exit."
22057 #: ../fuse/guestmount.pod:186
22059 "Mount the named partition or logical volume on the given mountpoint B<in the"
22060 " guest> (this has nothing to do with mountpoints in the host)."
22064 #: ../fuse/guestmount.pod:189
22066 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
22067 "something on C</>."
22071 #: ../fuse/guestmount.pod:206
22073 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22074 "unmounted. If you specify this option, then we don't attempt to sync the "
22075 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
22079 #: ../fuse/guestmount.pod:211
22080 msgid "B<-o option>"
22081 msgstr "B<-o параметр>"
22084 #: ../fuse/guestmount.pod:213
22085 msgid "B<--option option>"
22086 msgstr "B<--option параметр>"
22089 #: ../fuse/guestmount.pod:215
22090 msgid "Pass extra options to FUSE."
22094 #: ../fuse/guestmount.pod:217
22096 "To get a list of all the extra options supported by FUSE, use the command "
22097 "below. Note that only the FUSE I<-o> options can be passed, and only some "
22098 "of them are a good idea."
22102 #: ../fuse/guestmount.pod:221
22105 " guestmount --fuse-help\n"
22110 #: ../fuse/guestmount.pod:223
22111 msgid "Some potentially useful FUSE options:"
22115 #: ../fuse/guestmount.pod:227
22116 msgid "B<-o allow_other>"
22120 #: ../fuse/guestmount.pod:229
22121 msgid "Allow other users to see the filesystem."
22125 #: ../fuse/guestmount.pod:231
22126 msgid "B<-o attr_timeout=N>"
22127 msgstr "B<-o attr_timeout=N>"
22130 #: ../fuse/guestmount.pod:233
22131 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22135 #: ../fuse/guestmount.pod:235
22136 msgid "B<-o kernel_cache>"
22140 #: ../fuse/guestmount.pod:237
22142 "Allow the kernel to cache files (reduces the number of reads that have to go"
22143 " through the L<guestfs(3)> API). This is generally a good idea if you can "
22144 "afford the extra memory usage."
22148 #: ../fuse/guestmount.pod:241
22149 msgid "B<-o uid=N> B<-o gid=N>"
22150 msgstr "B<-o uid=N> B<-o gid=N>"
22153 #: ../fuse/guestmount.pod:243
22155 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22156 "the chosen values."
22160 #: ../fuse/guestmount.pod:252
22162 "Add devices and mount everything read-only. Also disallow writes and make "
22163 "the disk appear read-only to FUSE."
22167 #: ../fuse/guestmount.pod:255
22169 "This is highly recommended if you are not going to edit the guest disk. If "
22170 "the guest is running and this option is I<not> supplied, then there is a "
22171 "strong risk of disk corruption in the guest. We try to prevent this from "
22172 "happening, but it is not always possible."
22176 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
22177 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22178 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22181 #: ../fuse/guestmount.pod:264
22182 msgid "Enable SELinux support for the guest."
22186 #: ../fuse/guestmount.pod:270
22187 msgid "Enable verbose messages from underlying libguestfs."
22191 #: ../fuse/guestmount.pod:276
22192 msgid "Display the program version and exit."
22196 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22197 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
22198 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22199 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22202 #: ../fuse/guestmount.pod:289
22204 msgstr "B<--trace>"
22207 #: ../fuse/guestmount.pod:291
22208 msgid "Trace libguestfs calls and entry into each FUSE function."
22212 #: ../fuse/guestmount.pod:293
22213 msgid "This also stops the daemon from forking into the background."
22217 #: ../fuse/guestmount.pod:319
22219 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L"
22220 "<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
22221 "L<http://fuse.sf.net/>."
22223 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L"
22224 "<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
22225 "L<http://fuse.sf.net/>."
22228 #: ../fuse/guestmount.pod:334
22229 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
22233 #: ../inspector/virt-inspector.pod:5
22235 "virt-inspector - Display operating system version and other information "
22236 "about a virtual machine"
22240 #: ../inspector/virt-inspector.pod:9
22243 " virt-inspector [--options] -d domname\n"
22248 #: ../inspector/virt-inspector.pod:11
22251 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22256 #: ../inspector/virt-inspector.pod:15
22259 " virt-inspector domname\n"
22264 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
22267 " virt-inspector disk.img [disk.img ...]\n"
22272 #: ../inspector/virt-inspector.pod:21
22274 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22275 "determine the version of the operating system and other information about "
22276 "the virtual machine."
22280 #: ../inspector/virt-inspector.pod:25
22281 msgid "Virt-inspector produces XML output for feeding into other programs."
22285 #: ../inspector/virt-inspector.pod:27
22287 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22288 "the libvirt domain (see: C<virsh list --all>)."
22292 #: ../inspector/virt-inspector.pod:30
22294 "You can also run virt-inspector directly on disk images from a single "
22295 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain"
22296 " has several block devices, in which case you should list several I<-a> "
22297 "options one after another, with the first corresponding to the guest's "
22298 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
22302 #: ../inspector/virt-inspector.pod:37
22304 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22305 "keys and similar."
22309 #: ../inspector/virt-inspector.pod:40
22311 "Virt-inspector can only inspect and report upon I<one domain at a time>. To"
22312 " inspect several virtual machines, you have to run virt-inspector several "
22313 "times (for example, from a shell script for-loop)."
22317 #: ../inspector/virt-inspector.pod:45
22319 "Because virt-inspector needs direct access to guest images, it won't "
22320 "normally work over remote libvirt connections."
22324 #: ../inspector/virt-inspector.pod:48
22326 "All of the information available from virt-inspector is also available "
22327 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
22328 "The same information can also be fetched using guestfish or via libguestfs "
22329 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22330 "WITH OTHER PROGRAMMING LANGUAGES>)."
22334 #: ../inspector/virt-inspector.pod:81
22336 "Libvirt is only used if you specify a C<domname> on the command line. If "
22337 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22342 #: ../inspector/virt-inspector.pod:94
22344 "When prompting for keys and passphrases, virt-inspector normally turns "
22345 "echoing off so you cannot see what you are typing. If you are not worried "
22346 "about Tempest attacks and there is no one else in the room you can specify "
22347 "this flag to see what you are typing."
22351 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22352 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22353 #: ../tools/virt-win-reg.pl:144
22355 "Specify the format of disk images given on the command line. If this is "
22356 "omitted then the format is autodetected from the content of the disk image."
22360 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22361 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22362 #: ../tools/virt-win-reg.pl:148
22364 "If disk images are requested from libvirt, then this program asks libvirt "
22365 "for this information. In this case, the value of the format parameter is "
22370 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
22371 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
22372 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22373 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22375 "If working with untrusted raw-format guest disk images, you should ensure "
22376 "the format is always specified."
22380 #: ../inspector/virt-inspector.pod:139
22381 msgid "Previous versions of virt-inspector allowed you to write either:"
22385 #: ../inspector/virt-inspector.pod:145
22388 " virt-inspector guestname\n"
22393 #: ../inspector/virt-inspector.pod:153
22398 #: ../inspector/virt-inspector.pod:155
22400 "The virt-inspector XML is described precisely in a RELAX NG schema file C"
22401 "<virt-inspector.rng> which is supplied with libguestfs. This section is "
22402 "just an overview."
22406 #: ../inspector/virt-inspector.pod:159
22408 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22409 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
22410 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22411 "which is vanishingly rare in real world VMs."
22415 #: ../inspector/virt-inspector.pod:164
22416 msgid "E<lt>operatingsystemE<gt>"
22420 #: ../inspector/virt-inspector.pod:166
22422 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22423 "describe the operating system, its architecture, the descriptive \"product "
22424 "name\" string, the type of OS and so on, as in this example:"
22428 #: ../inspector/virt-inspector.pod:170
22431 " <operatingsystems>\n"
22432 " <operatingsystem>\n"
22433 " <root>/dev/sda2</root>\n"
22434 " <name>windows</name>\n"
22435 " <arch>i386</arch>\n"
22436 " <distro>windows</distro>\n"
22437 " <product_name>Windows 7 Enterprise</product_name>\n"
22438 " <product_variant>Client</product_variant>\n"
22439 " <major_version>6</major_version>\n"
22440 " <minor_version>1</minor_version>\n"
22441 " <windows_systemroot>/Windows</windows_systemroot>\n"
22442 " <format>installed</format>\n"
22447 #: ../inspector/virt-inspector.pod:183
22449 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22450 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora>"
22451 " but many other distros are recognized) and E<lt>archE<gt> is the guest "
22452 "architecture. The other fields are fairly self-explanatory, but because "
22453 "these fields are taken directly from the libguestfs inspection API you can "
22454 "find precise information from L<guestfs(3)/INSPECTION>."
22458 #: ../inspector/virt-inspector.pod:191
22460 "The E<lt>rootE<gt> element is the root filesystem device, but from the point"
22461 " of view of libguestfs (block devices may have completely different names "
22462 "inside the VM itself)."
22466 #: ../inspector/virt-inspector.pod:195
22467 msgid "E<lt>mountpointsE<gt>"
22471 #: ../inspector/virt-inspector.pod:197
22473 "Un*x-like guests typically have multiple filesystems which are mounted at "
22474 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22475 "element which looks like this:"
22479 #: ../inspector/virt-inspector.pod:201
22482 " <operatingsystems>\n"
22483 " <operatingsystem>\n"
22486 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22487 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22488 " </mountpoints>\n"
22493 #: ../inspector/virt-inspector.pod:209
22495 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22496 "and may have completely different names inside the guest. Only mountable "
22497 "filesystems appear in this list, not things like swap devices."
22501 #: ../inspector/virt-inspector.pod:214
22502 msgid "E<lt>filesystemsE<gt>"
22506 #: ../inspector/virt-inspector.pod:216
22508 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22509 "filesystems belonging to the guest, including swap and empty partitions. "
22510 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22511 "this OS or shared with this OS and other OSes)."
22515 #: ../inspector/virt-inspector.pod:222
22516 msgid "You might see something like this:"
22520 #: ../inspector/virt-inspector.pod:224
22523 " <operatingsystems>\n"
22524 " <operatingsystem>\n"
22527 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22528 " <type>ext4</type>\n"
22529 " <label>Fedora-13-x86_64</label>\n"
22530 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22536 #: ../inspector/virt-inspector.pod:234
22538 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22539 "the label, and the UUID."
22543 #: ../inspector/virt-inspector.pod:237
22544 msgid "E<lt>applicationsE<gt>"
22548 #: ../inspector/virt-inspector.pod:239
22550 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22551 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22556 #: ../inspector/virt-inspector.pod:243
22558 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
22559 "Typical values would be C<rpm> and C<deb>."
22563 #: ../inspector/virt-inspector.pod:246
22565 "E<lt>package_managementE<gt>, if present, describes the package manager. "
22566 "Typical values include C<yum>, C<up2date> and C<apt>"
22570 #: ../inspector/virt-inspector.pod:249
22571 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22575 #: ../inspector/virt-inspector.pod:252
22578 " <operatingsystems>\n"
22579 " <operatingsystem>\n"
22581 " <applications>\n"
22583 " <name>coreutils</name>\n"
22584 " <version>8.5</version>\n"
22585 " <release>1</release>\n"
22586 " </application>\n"
22591 #: ../inspector/virt-inspector.pod:262
22593 "The version and release fields may not be available for some types guests. "
22594 "Other fields are possible, see "
22595 "L<guestfs(3)/guestfs_inspect_list_applications>."
22599 #: ../inspector/virt-inspector.pod:266
22600 msgid "E<lt>drive_mappingsE<gt>"
22604 #: ../inspector/virt-inspector.pod:268
22606 "For operating systems like Windows which use drive letters, virt-inspector "
22607 "is able to find out how drive letters map to filesystems."
22611 #: ../inspector/virt-inspector.pod:272
22614 " <operatingsystems>\n"
22615 " <operatingsystem>\n"
22617 " <drive_mappings>\n"
22618 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22619 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22620 " </drive_mappings>\n"
22625 #: ../inspector/virt-inspector.pod:280
22627 "In the example above, drive C maps to the filesystem on the second partition"
22628 " on the first disk, and drive E maps to the filesystem on the first "
22629 "partition on the second disk."
22633 #: ../inspector/virt-inspector.pod:284
22635 "Note that this only covers permanent local filesystem mappings, not things "
22636 "like network shares. Furthermore NTFS volume mount points may not be listed"
22641 #: ../inspector/virt-inspector.pod:288
22642 msgid "E<lt>iconE<gt>"
22646 #: ../inspector/virt-inspector.pod:290
22648 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
22649 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
22650 "very large and high quality."
22654 #: ../inspector/virt-inspector.pod:294
22657 " <operatingsystems>\n"
22658 " <operatingsystem>\n"
22661 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22662 " [... many lines of base64 data ...]\n"
22668 #: ../inspector/virt-inspector.pod:302
22670 "To display the icon, you have to extract it and convert the base64 data back"
22671 " to a binary file. Use an XPath query or simply an editor to extract the "
22672 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22677 #: ../inspector/virt-inspector.pod:307
22680 " base64 -i -d < icon.data > icon.png\n"
22685 #: ../inspector/virt-inspector.pod:309
22686 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22690 #: ../inspector/virt-inspector.pod:311
22692 "Virt-inspector can detect some operating system installers on install disks,"
22693 " live CDs, bootable USB keys and more."
22697 #: ../inspector/virt-inspector.pod:314
22699 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22700 "fields may be present to indicate a live CD, network installer, or one part "
22701 "of a multipart CD. For example:"
22705 #: ../inspector/virt-inspector.pod:318
22708 " <operatingsystems>\n"
22709 " <operatingsystem>\n"
22710 " <root>/dev/sda</root>\n"
22711 " <name>linux</name>\n"
22712 " <arch>i386</arch>\n"
22713 " <distro>ubuntu</distro>\n"
22714 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
22715 " <major_version>10</major_version>\n"
22716 " <minor_version>10</minor_version>\n"
22717 " <format>installer</format>\n"
22723 #: ../inspector/virt-inspector.pod:330
22724 msgid "USING XPATH"
22728 #: ../inspector/virt-inspector.pod:332
22730 "You can use the XPath query language to select parts of the XML. We "
22731 "recommend using C<xmlstarlet> to perform XPath queries from the command "
22736 #: ../inspector/virt-inspector.pod:338
22739 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22741 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22742 " <type>ext4</type>\n"
22748 #: ../inspector/virt-inspector.pod:344
22751 " $ virt-inspector -d Guest | \\\n"
22752 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22758 #: ../inspector/virt-inspector.pod:348
22761 " $ virt-inspector -d Guest | \\\n"
22762 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22763 " [displays the guest icon, if there is one]\n"
22768 #: ../inspector/virt-inspector.pod:359
22769 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22773 #: ../inspector/virt-inspector.pod:361
22775 "Early versions of libguestfs shipped with a different virt-inspector program"
22776 " written in Perl (the current version is written in C). The XML output of "
22777 "the Perl virt-inspector was different and it could also output in other "
22778 "formats like text."
22782 #: ../inspector/virt-inspector.pod:366
22784 "The old virt-inspector is no longer supported or shipped with libguestfs."
22788 #: ../inspector/virt-inspector.pod:369
22790 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22791 "versions of virt-inspector with different names:"
22795 #: ../inspector/virt-inspector.pod:372
22798 " virt-inspector Old Perl version.\n"
22799 " virt-inspector2 New C version.\n"
22804 #: ../inspector/virt-inspector.pod:382
22806 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
22807 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22811 #: ../inspector/virt-inspector.pod:399
22812 msgid "Matthew Booth L<mbooth@redhat.com>"
22816 #: ../java/examples/guestfs-java.pod:5
22817 msgid "guestfs-java - How to use libguestfs from Java"
22821 #: ../java/examples/guestfs-java.pod:9
22824 " import com.redhat.et.libguestfs.*;\n"
22829 #: ../java/examples/guestfs-java.pod:11
22832 " GuestFS g = new GuestFS ();\n"
22833 " g.add_drive_opts (\"disk.img\", null);\n"
22839 #: ../java/examples/guestfs-java.pod:17
22841 "This manual page documents how to call libguestfs from the Java programming "
22842 "language. This page just documents the differences from the C API and gives"
22843 " some examples. If you are not familiar with using libguestfs, you also "
22844 "need to read L<guestfs(3)>."
22848 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22849 msgid "CLOSING THE HANDLE"
22853 #: ../java/examples/guestfs-java.pod:24
22855 "The handle is closed when it is reaped by the garbage collector. Because "
22856 "libguestfs handles include a lot of state, it is also possible to close (and"
22857 " hence free) them explicitly by calling the C<close> method."
22861 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22862 #: ../python/examples/guestfs-python.pod:21
22863 #: ../ruby/examples/guestfs-ruby.pod:22
22868 #: ../java/examples/guestfs-java.pod:31
22870 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22871 "exception. This has a single parameter which is the error message (a "
22876 #: ../java/examples/guestfs-java.pod:35
22877 msgid "Calling any method on a closed handle raises the same exception."
22881 #: ../java/examples/guestfs-java.pod:47
22883 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-"
22884 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22885 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22889 #: ../ocaml/examples/guestfs-ocaml.pod:5
22890 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22894 #: ../ocaml/examples/guestfs-ocaml.pod:9
22895 msgid "Module style:"
22899 #: ../ocaml/examples/guestfs-ocaml.pod:11
22902 " let g = Guestfs.create () in\n"
22903 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22904 " Guestfs.launch g;\n"
22909 #: ../ocaml/examples/guestfs-ocaml.pod:15
22910 msgid "Object-oriented style:"
22914 #: ../ocaml/examples/guestfs-ocaml.pod:17
22917 " let g = new Guestfs.guestfs () in\n"
22918 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22924 #: ../ocaml/examples/guestfs-ocaml.pod:21
22927 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22929 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22934 #: ../ocaml/examples/guestfs-ocaml.pod:27
22936 "This manual page documents how to call libguestfs from the OCaml programming"
22937 " language. This page just documents the differences from the C API and "
22938 "gives some examples. If you are not familiar with using libguestfs, you "
22939 "also need to read L<guestfs(3)>."
22943 #: ../ocaml/examples/guestfs-ocaml.pod:32
22944 msgid "PROGRAMMING STYLES"
22948 #: ../ocaml/examples/guestfs-ocaml.pod:34
22950 "There are two different programming styles supported by the OCaml bindings."
22951 " You can use a module style, with each C function mapped to an OCaml "
22956 #: ../ocaml/examples/guestfs-ocaml.pod:38
22959 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22964 #: ../ocaml/examples/guestfs-ocaml.pod:40
22969 #: ../ocaml/examples/guestfs-ocaml.pod:42
22972 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22977 #: ../ocaml/examples/guestfs-ocaml.pod:44
22979 "Alternately you can use an object-oriented style, calling methods on the "
22980 "class C<Guestfs.guestfs>:"
22984 #: ../ocaml/examples/guestfs-ocaml.pod:47
22987 " method set_verbose : bool -> unit\n"
22992 #: ../ocaml/examples/guestfs-ocaml.pod:49
22994 "The object-oriented style is usually briefer, and the minor performance "
22995 "penalty isn't noticable in the general overhead of performing libguestfs "
23000 #: ../ocaml/examples/guestfs-ocaml.pod:55
23002 "The handle is closed when it is reaped by the garbage collector. Because "
23003 "libguestfs handles include a lot of state, it is also possible to close (and"
23004 " hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23009 #: ../ocaml/examples/guestfs-ocaml.pod:62
23011 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23012 "exception. This has a single parameter which is the error message (a "
23017 #: ../ocaml/examples/guestfs-ocaml.pod:66
23019 "Calling any function/method on a closed handle raises "
23020 "C<Guestfs.Handle_closed>. The single parameter is the name of the function "
23025 #: ../ocaml/examples/guestfs-ocaml.pod:80
23027 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-"
23028 "java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L"
23029 "<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23033 #: ../perl/examples/guestfs-perl.pod:5
23034 msgid "guestfs-perl - How to use libguestfs from Perl"
23038 #: ../perl/examples/guestfs-perl.pod:9
23041 " use Sys::Guestfs;\n"
23046 #: ../perl/examples/guestfs-perl.pod:11
23049 " my $h = Sys::Guestfs->new ();\n"
23050 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23051 " $h->launch ();\n"
23052 " $h->mount_options ('', '/dev/sda1', '/');\n"
23053 " $h->touch ('/hello');\n"
23059 #: ../perl/examples/guestfs-perl.pod:20
23061 "This manual page documents how to call libguestfs from the Perl programming "
23062 "language. This page just documents the differences from the C API and gives"
23063 " some examples. If you are not familiar with using libguestfs, you also "
23064 "need to read L<guestfs(3)>. To read the full Perl API, see "
23065 "L<Sys::Guestfs(3)>."
23069 #: ../perl/examples/guestfs-perl.pod:26
23074 #: ../perl/examples/guestfs-perl.pod:28
23076 "Errors from libguestfs functions turn into calls to C<croak> (see "
23081 #: ../perl/examples/guestfs-perl.pod:41
23083 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-"
23084 "erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L"
23085 "<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23089 #: ../python/examples/guestfs-python.pod:5
23090 msgid "guestfs-python - How to use libguestfs from Python"
23094 #: ../python/examples/guestfs-python.pod:9
23097 " import guestfs\n"
23098 " g = guestfs.GuestFS ()\n"
23099 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23105 #: ../python/examples/guestfs-python.pod:16
23107 "This manual page documents how to call libguestfs from the Python "
23108 "programming language. This page just documents the differences from the C "
23109 "API and gives some examples. If you are not familiar with using libguestfs,"
23110 " you also need to read L<guestfs(3)>."
23114 #: ../python/examples/guestfs-python.pod:23
23116 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23117 "single string argument which is the error message."
23121 #: ../python/examples/guestfs-python.pod:26
23122 msgid "MORE DOCUMENTATION"
23126 #: ../python/examples/guestfs-python.pod:28
23131 #: ../python/examples/guestfs-python.pod:30
23135 " >>> import guestfs\n"
23136 " >>> help (guestfs)\n"
23141 #: ../python/examples/guestfs-python.pod:44
23143 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-"
23144 "java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L"
23145 "<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23149 #: ../rescue/virt-rescue.pod:5
23150 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23154 #: ../rescue/virt-rescue.pod:9
23157 " virt-rescue [--options] -d domname\n"
23162 #: ../rescue/virt-rescue.pod:11
23165 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23170 #: ../rescue/virt-rescue.pod:15
23173 " virt-rescue [--options] domname\n"
23178 #: ../rescue/virt-rescue.pod:17
23181 " virt-rescue [--options] disk.img [disk.img ...]\n"
23186 #: ../rescue/virt-rescue.pod:21
23188 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
23189 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
23190 "you from doing this, but doesn't catch all cases."
23194 #: ../rescue/virt-rescue.pod:25
23196 "However if you use the I<--ro> (read only) option, then you can attach a "
23197 "shell to a live virtual machine. The results might be strange or "
23198 "inconsistent at times but you won't get disk corruption."
23202 #: ../rescue/virt-rescue.pod:31
23204 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23205 "need for a CD. virt-rescue gives you a rescue shell and some simple "
23206 "recovery tools which you can use to examine or rescue a virtual machine or "
23211 #: ../rescue/virt-rescue.pod:36
23213 "You can run virt-rescue on any virtual machine known to libvirt, or directly"
23214 " on disk image(s):"
23218 #: ../rescue/virt-rescue.pod:39
23221 " virt-rescue -d GuestName\n"
23226 #: ../rescue/virt-rescue.pod:41
23229 " virt-rescue --ro -a /path/to/disk.img\n"
23234 #: ../rescue/virt-rescue.pod:43
23237 " virt-rescue -a /dev/sdc\n"
23242 #: ../rescue/virt-rescue.pod:45
23243 msgid "For live VMs you I<must> use the --ro option."
23247 #: ../rescue/virt-rescue.pod:47
23249 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23250 "in an interactive bash shell where you can use many ordinary Linux commands."
23251 " What you see in C</> (C</bin>, C</lib> etc) is the rescue appliance. You "
23252 "must mount the virtual machine's filesystems by hand. There is an empty "
23253 "directory called C</sysroot> where you can mount filesystems."
23257 #: ../rescue/virt-rescue.pod:54
23259 "In the example below, we list logical volumes, then choose one to mount "
23260 "under C</sysroot>:"
23264 #: ../rescue/virt-rescue.pod:57
23268 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
23269 " lv_root vg_f11x64 -wi-a- 8.83G\n"
23270 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
23271 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
23272 " ><rescue> ls /sysroot\n"
23277 #: ../rescue/virt-rescue.pod:64
23279 "If you don't know what filesystems are available on the virtual machine then"
23280 " you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
23284 #: ../rescue/virt-rescue.pod:70
23286 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23287 "virtual machine. For example you can use it on a blank file if you want to "
23288 "partition that file (although we would recommend using L<guestfish(1)> "
23289 "instead as it is more suitable for this purpose). You can even use virt-"
23290 "rescue on things like SD cards."
23294 #: ../rescue/virt-rescue.pod:76
23296 "Virt-rescue does not require root. You only need to run it as root if you "
23297 "need root to open the disk image."
23301 #: ../rescue/virt-rescue.pod:79
23303 "This tool is just designed for quick interactive hacking on a virtual "
23304 "machine. For more structured access to a virtual machine disk image, you "
23305 "should use L<guestfs(3)>. To get a structured shell that you can use to "
23306 "make scripted changes to guests, use L<guestfish(1)>."
23310 #: ../rescue/virt-rescue.pod:103
23311 msgid "B<--append kernelopts>"
23312 msgstr "B<--append параметри_ядра>"
23315 #: ../rescue/virt-rescue.pod:105
23316 msgid "Pass additional options to the rescue kernel."
23320 #: ../rescue/virt-rescue.pod:135
23323 " virt-rescue --format=raw -a disk.img\n"
23328 #: ../rescue/virt-rescue.pod:139
23331 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23336 #: ../rescue/virt-rescue.pod:148
23341 #: ../rescue/virt-rescue.pod:150
23342 msgid "B<--memsize MB>"
23343 msgstr "B<--memsize МБ>"
23346 #: ../rescue/virt-rescue.pod:152
23348 "Change the amount of memory allocated to the rescue system. The default is "
23349 "set by libguestfs and is small but adequate for running system tools. The "
23350 "occasional program might need more memory. The parameter is specified in "
23355 #: ../rescue/virt-rescue.pod:157
23356 msgid "B<--network>"
23357 msgstr "B<--network>"
23360 #: ../rescue/virt-rescue.pod:159
23361 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
23365 #: ../rescue/virt-rescue.pod:165
23366 msgid "Open the image read-only."
23370 #: ../rescue/virt-rescue.pod:175
23372 "Enable SELinux in the rescue appliance. You should read "
23373 "L<guestfs(3)/SELINUX> before using this option."
23377 #: ../rescue/virt-rescue.pod:178
23382 #: ../rescue/virt-rescue.pod:180
23383 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23387 #: ../rescue/virt-rescue.pod:198
23389 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23390 "are done read-write."
23394 #: ../rescue/virt-rescue.pod:211
23395 msgid "Previous versions of virt-rescue allowed you to write either:"
23399 #: ../rescue/virt-rescue.pod:213
23402 " virt-rescue disk.img [disk.img ...]\n"
23407 #: ../rescue/virt-rescue.pod:217
23410 " virt-rescue guestname\n"
23415 #: ../rescue/virt-rescue.pod:225
23420 #: ../rescue/virt-rescue.pod:227
23422 "Adding the I<--network> option enables QEMU user networking in the rescue "
23423 "appliance. There are some differences between user networking and ordinary "
23428 #: ../rescue/virt-rescue.pod:233
23429 msgid "ping does not work"
23433 #: ../rescue/virt-rescue.pod:235
23435 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23436 "send the ping packets, and because virt-rescue must be able to run as non-"
23437 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
23438 "The ping command will appear to resolve addresses but will not be able to "
23439 "send or receive any packets. This does not mean that the network is not "
23444 #: ../rescue/virt-rescue.pod:242
23445 msgid "cannot receive connections"
23449 #: ../rescue/virt-rescue.pod:244
23450 msgid "QEMU user networking cannot receive incoming connections."
23454 #: ../rescue/virt-rescue.pod:246
23455 msgid "making TCP connections"
23459 #: ../rescue/virt-rescue.pod:248
23461 "The virt-rescue appliance needs to be small and so does not include many "
23462 "network tools. In particular there is no L<telnet(1)> command. You can "
23463 "make TCP connections from the shell using the magical "
23464 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23468 #: ../rescue/virt-rescue.pod:253
23471 " exec 3<>/dev/tcp/redhat.com/80\n"
23472 " echo \"GET /\" >&3\n"
23478 #: ../rescue/virt-rescue.pod:257
23479 msgid "See L<bash(1)> for more details."
23483 #: ../rescue/virt-rescue.pod:263
23485 "Several environment variables affect virt-rescue. See "
23486 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
23490 #: ../rescue/virt-rescue.pod:290
23492 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23493 "L<http://libguestfs.org/>."
23497 #: ../resize/virt-resize.pod:5
23498 msgid "virt-resize - Resize a virtual machine disk"
23502 #: ../resize/virt-resize.pod:9
23505 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23506 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23507 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23512 #: ../resize/virt-resize.pod:15
23514 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23515 "larger or smaller overall, and resizing or deleting any partitions contained"
23520 #: ../resize/virt-resize.pod:19
23522 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
23523 "not> be used on live virtual machines - for consistent results, shut the "
23524 "virtual machine down before resizing it."
23528 #: ../resize/virt-resize.pod:23
23530 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23531 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23535 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
23536 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
23537 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23542 #: ../resize/virt-resize.pod:33
23544 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23545 "fill the extra 5GB of space."
23549 #: ../resize/virt-resize.pod:36
23552 " virt-filesystems --long -h --all -a olddisk\n"
23557 #: ../resize/virt-resize.pod:38
23560 " truncate -r olddisk newdisk\n"
23561 " truncate -s +5G newdisk\n"
23566 #: ../resize/virt-resize.pod:41
23569 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23570 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23575 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
23576 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
23577 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23582 #: ../resize/virt-resize.pod:46
23584 "As above, but make the /boot partition 200MB bigger, while giving the "
23585 "remaining space to /dev/sda2:"
23589 #: ../resize/virt-resize.pod:49
23592 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23593 " olddisk newdisk\n"
23598 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
23599 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
23600 #: ../src/guestfs.pod:1451
23605 #: ../resize/virt-resize.pod:54
23607 "As in the first example, but expand a logical volume as the final step. "
23608 "This is what you would typically use for Linux guests that use LVM:"
23612 #: ../resize/virt-resize.pod:58
23615 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23616 " olddisk newdisk\n"
23621 #: ../resize/virt-resize.pod:61
23626 #: ../resize/virt-resize.pod:63
23628 "As in the first example, but the output format will be qcow2 instead of a "
23633 #: ../resize/virt-resize.pod:66
23636 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23637 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23642 #: ../resize/virt-resize.pod:71
23643 msgid "DETAILED USAGE"
23644 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
23647 #: ../resize/virt-resize.pod:73
23648 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23649 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
23652 #: ../resize/virt-resize.pod:77
23653 msgid "1. Shut down the virtual machine"
23657 #: ../resize/virt-resize.pod:79
23658 msgid "2. Locate input disk image"
23662 #: ../resize/virt-resize.pod:81
23664 "Locate the input disk image (ie. the file or device on the host containing "
23665 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
23666 "dumpxml> like this to find the disk image name:"
23670 #: ../resize/virt-resize.pod:85
23673 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23674 " Found 1 nodes:\n"
23676 " <source dev=\"/dev/vg/lv_guest\" />\n"
23681 #: ../resize/virt-resize.pod:90
23682 msgid "3. Look at current sizing"
23686 #: ../resize/virt-resize.pod:92
23688 "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23692 #: ../resize/virt-resize.pod:95
23695 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23696 " Name Type Size Parent\n"
23697 " /dev/sda1 partition 101M /dev/sda\n"
23698 " /dev/sda2 partition 7.9G /dev/sda\n"
23699 " /dev/sda device 8.0G -\n"
23704 #: ../resize/virt-resize.pod:101
23706 "(This example is a virtual machine with an 8 GB disk which we would like to "
23707 "expand up to 10 GB)."
23711 #: ../resize/virt-resize.pod:104
23712 msgid "4. Create output disk"
23716 #: ../resize/virt-resize.pod:106
23718 "Virt-resize cannot do in-place disk modifications. You have to have space "
23719 "to store the resized output disk."
23723 #: ../resize/virt-resize.pod:109
23725 "To store the resized disk image in a file, create a file of a suitable size:"
23729 #: ../resize/virt-resize.pod:112
23732 " # rm -f outdisk\n"
23733 " # truncate -s 10G outdisk\n"
23738 #: ../resize/virt-resize.pod:115
23739 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23743 #: ../resize/virt-resize.pod:117
23746 " # lvcreate -L 10G -n lv_name vg_name\n"
23751 #: ../resize/virt-resize.pod:119
23752 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23756 #: ../resize/virt-resize.pod:121
23759 " # virsh pool-list\n"
23760 " # virsh vol-create-as poolname newvol 10G\n"
23765 #: ../resize/virt-resize.pod:124
23767 msgstr "5. Зміна розміру"
23770 #: ../resize/virt-resize.pod:126
23772 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23773 "file) and the output disk. The output disk is the one created in the "
23778 #: ../resize/virt-resize.pod:130
23781 " # virt-resize indisk outdisk\n"
23786 #: ../resize/virt-resize.pod:132
23788 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23789 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
23790 "larger, then an extra, empty partition is created at the end of the disk "
23791 "covering the extra space. If C<outdisk> is smaller, then it will give an "
23796 #: ../resize/virt-resize.pod:138
23798 "More realistically you'd want to expand existing partitions in the disk "
23799 "image by passing extra options (for the full list see the L</OPTIONS> "
23804 #: ../resize/virt-resize.pod:142
23806 "L</--expand> is the most useful option. It expands the named partition "
23807 "within the disk to fill any extra space:"
23811 #: ../resize/virt-resize.pod:145
23814 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23819 #: ../resize/virt-resize.pod:147
23821 "(In this case, an extra partition is I<not> created at the end of the disk, "
23822 "because there will be no unused space)."
23826 #: ../resize/virt-resize.pod:150
23828 "L</--resize> is the other commonly used option. The following would "
23829 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23830 "rest of the available space:"
23834 #: ../resize/virt-resize.pod:154
23837 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23838 " indisk outdisk\n"
23843 #: ../resize/virt-resize.pod:157
23845 "If the expanded partition in the image contains a filesystem or LVM PV, then"
23846 " if virt-resize knows how, it will resize the contents, the equivalent of "
23847 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23848 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
23849 "filesystems, so you would have to online resize them after booting the "
23854 #: ../resize/virt-resize.pod:164
23855 msgid "Other options are covered below."
23859 #: ../resize/virt-resize.pod:166
23861 msgstr "6. Перевірка"
23864 #: ../resize/virt-resize.pod:168
23865 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23869 #: ../resize/virt-resize.pod:170
23870 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23874 #: ../resize/virt-resize.pod:172
23877 " # virsh edit guestname\n"
23882 #: ../resize/virt-resize.pod:174
23884 "Change E<lt>source ...E<gt>, see "
23885 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
23889 #: ../resize/virt-resize.pod:177
23890 msgid "Then start up the domain with the new, resized disk:"
23894 #: ../resize/virt-resize.pod:179
23897 " # virsh start guestname\n"
23902 #: ../resize/virt-resize.pod:181
23904 "and check that it still works. See also the L</NOTES> section below for "
23905 "additional information."
23909 #: ../resize/virt-resize.pod:184
23910 msgid "7. Resize LVs etc inside the guest"
23914 #: ../resize/virt-resize.pod:186
23915 msgid "(This can also be done offline using L<guestfish(1)>)"
23919 #: ../resize/virt-resize.pod:188
23921 "Once the guest has booted you should see the new space available, at least "
23922 "for filesystems that virt-resize knows how to resize, and for PVs. The user"
23923 " may need to resize LVs inside PVs, and also resize filesystem types that "
23924 "virt-resize does not know how to expand."
23928 #: ../resize/virt-resize.pod:195
23929 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23933 #: ../resize/virt-resize.pod:197
23935 "Shrinking is somewhat more complex than expanding, and only an overview is "
23940 #: ../resize/virt-resize.pod:200
23942 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23943 "filesystems). The user has to shrink content before passing the disk image "
23944 "to virt-resize, and virt-resize will check that the content has been shrunk "
23949 #: ../resize/virt-resize.pod:205
23950 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23954 #: ../resize/virt-resize.pod:207
23956 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23957 "steps 3 and 4 above to allocate a new disk image."
23961 #: ../resize/virt-resize.pod:210
23963 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23967 #: ../resize/virt-resize.pod:213
23968 msgid "IGNORING OR DELETING PARTITIONS"
23972 #: ../resize/virt-resize.pod:215
23974 "virt-resize also gives a convenient way to ignore or delete partitions when "
23975 "copying from the input disk to the output disk. Ignoring a partition speeds"
23976 " up the copy where you don't care about the existing contents of a "
23977 "partition. Deleting a partition removes it completely, but note that it "
23978 "also renumbers any partitions after the one which is deleted, which can "
23979 "leave some guests unbootable."
23983 #: ../resize/virt-resize.pod:222
23984 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23988 #: ../resize/virt-resize.pod:224
23990 "If the input disk is in qcow2 format, then you may prefer that the output is"
23991 " in qcow2 format as well. Alternately, virt-resize can convert the format "
23992 "on the fly. The output format is simply determined by the format of the "
23993 "empty output container that you provide. Thus to create qcow2 output, use:"
23997 #: ../resize/virt-resize.pod:230
24000 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24005 #: ../resize/virt-resize.pod:232
24006 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24010 #: ../resize/virt-resize.pod:234
24011 msgid "Similarly, to get non-sparse raw output use:"
24015 #: ../resize/virt-resize.pod:236
24018 " fallocate -l size outdisk\n"
24023 #: ../resize/virt-resize.pod:238
24025 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
24026 "if=/dev/zero of=outdisk bs=1M count=..>)"
24030 #: ../resize/virt-resize.pod:241
24031 msgid "LOGICAL PARTITIONS"
24035 #: ../resize/virt-resize.pod:243
24037 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24038 "tables) cannot be resized."
24042 #: ../resize/virt-resize.pod:246
24044 "To understand what is going on, firstly one of the four partitions "
24045 "C</dev/sda1-4> will have MBR partition type C<05> or C<0f>. This is called "
24046 "the B<extended partition>. Use L<virt-filesystems(1)> to see the MBR "
24051 #: ../resize/virt-resize.pod:251
24052 msgid "Logical partitions live inside the extended partition."
24056 #: ../resize/virt-resize.pod:253
24058 "The extended partition can be expanded, but not shrunk (unless you force it,"
24059 " which is not advisable). When the extended partition is copied across, all"
24060 " the logical partitions contained inside are copied over implicitly. Virt-"
24061 "resize does not look inside the extended partition, so it copies the logical"
24062 " partitions blindly."
24066 #: ../resize/virt-resize.pod:259
24068 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command"
24069 " line. Doing so will give an error."
24073 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24074 msgid "Display help."
24078 #: ../resize/virt-resize.pod:270
24079 msgid "B<--align-first auto>"
24083 #: ../resize/virt-resize.pod:272
24084 msgid "B<--align-first never>"
24088 #: ../resize/virt-resize.pod:274
24089 msgid "B<--align-first always>"
24093 #: ../resize/virt-resize.pod:276
24095 "Align the first partition for improved performance (see also the "
24096 "I<--alignment> option)."
24100 #: ../resize/virt-resize.pod:279
24102 "The default is I<--align-first auto> which only aligns the first partition "
24103 "if it is safe to do so. That is, only when we know how to fix the "
24104 "bootloader automatically, and at the moment that can only be done for "
24109 #: ../resize/virt-resize.pod:284
24111 "I<--align-first never> means we never move the first partition. This is the"
24112 " safest option. Try this if the guest does not boot after resizing."
24116 #: ../resize/virt-resize.pod:288
24118 "I<--align-first always> means we always align the first partition (if it "
24119 "needs to be aligned). For some guests this will break the bootloader, "
24120 "making the guest unbootable."
24124 #: ../resize/virt-resize.pod:292
24125 msgid "B<--alignment N>"
24129 #: ../resize/virt-resize.pod:294
24131 "Set the alignment of partitions to C<N> sectors. The default in virt-resize"
24132 " E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24136 #: ../resize/virt-resize.pod:298
24138 "Assuming 512 byte sector size inside the guest, here are some suitable "
24143 #: ../resize/virt-resize.pod:303
24144 msgid "I<--alignment 1> (512 bytes)"
24148 #: ../resize/virt-resize.pod:305
24150 "The partitions would be packed together as closely as possible, but would be"
24151 " completely unaligned. In some cases this can cause very poor performance."
24152 " See L<virt-alignment-scan(1)> for further details."
24156 #: ../resize/virt-resize.pod:309
24157 msgid "I<--alignment 8> (4K)"
24161 #: ../resize/virt-resize.pod:311
24163 "This would be the minimum acceptable alignment for reasonable performance on"
24168 #: ../resize/virt-resize.pod:314
24169 msgid "I<--alignment 128> (64K)"
24173 #: ../resize/virt-resize.pod:316
24175 "This alignment provides good performance when the host is using high end "
24180 #: ../resize/virt-resize.pod:319
24181 msgid "I<--alignment 2048> (1M)"
24185 #: ../resize/virt-resize.pod:321
24187 "This is the standard alignment used by all newly installed guests since "
24192 #: ../resize/virt-resize.pod:326
24197 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24198 #: ../tools/virt-win-reg.pl:120
24200 msgstr "B<--debug>"
24203 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24204 msgid "Enable debugging messages."
24208 #: ../resize/virt-resize.pod:332
24209 msgid "B<--delete part>"
24210 msgstr "B<--delete розділ>"
24213 #: ../resize/virt-resize.pod:334
24215 "Delete the named partition. It would be more accurate to describe this as "
24216 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24217 "the original disk image is left intact."
24221 #: ../resize/virt-resize.pod:338
24223 "Note that when you delete a partition, then anything contained in the "
24224 "partition is also deleted. Furthermore, this causes any partitions that "
24225 "come after to be I<renumbered>, which can easily make your guest unbootable."
24229 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
24230 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
24231 msgid "You can give this option multiple times."
24235 #: ../resize/virt-resize.pod:345
24236 msgid "B<--expand part>"
24237 msgstr "B<--expand розділ>"
24240 #: ../resize/virt-resize.pod:347
24242 "Expand the named partition so it uses up all extra space (space left over "
24243 "after any other resize changes that you request have been done)."
24247 #: ../resize/virt-resize.pod:350
24249 "If virt-resize knows how, it will expand the direct content of the "
24250 "partition. For example, if the partition is an LVM PV, it will expand the "
24251 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
24252 "content it doesn't know about alone."
24256 #: ../resize/virt-resize.pod:355
24257 msgid "Currently virt-resize can resize:"
24261 #: ../resize/virt-resize.pod:361
24262 msgid "ext2, ext3 and ext4 filesystems."
24266 #: ../resize/virt-resize.pod:365
24267 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24271 #: ../resize/virt-resize.pod:367
24273 "The filesystem must have been shut down consistently last time it was used."
24274 " Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a"
24275 " consistency check, so at the first boot after resizing Windows will check "
24280 #: ../resize/virt-resize.pod:374
24282 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
24283 "inside the PV, but see the I<--LV-expand> option. The user could also "
24284 "resize LVs as desired after boot."
24288 #: ../resize/virt-resize.pod:380
24289 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24293 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24294 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24298 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
24299 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24300 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24301 msgid "B<--format> raw"
24302 msgstr "B<--format> raw"
24305 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
24307 "Specify the format of the input disk image. If this flag is not given then "
24308 "it is auto-detected from the image itself."
24312 #: ../resize/virt-resize.pod:394
24314 "Note that this option I<does not> affect the output format. See L</QCOW2 "
24315 "AND NON-SPARSE RAW FORMATS>."
24319 #: ../resize/virt-resize.pod:397
24320 msgid "B<--ignore part>"
24321 msgstr "B<--ignore розділ>"
24324 #: ../resize/virt-resize.pod:399
24326 "Ignore the named partition. Effectively this means the partition is "
24327 "allocated on the destination disk, but the content is not copied across from"
24328 " the source disk. The content of the partition will be blank (all zero "
24333 #: ../resize/virt-resize.pod:406
24334 msgid "B<--LV-expand logvol>"
24335 msgstr "B<--LV-expand логічний_том>"
24338 #: ../resize/virt-resize.pod:408
24340 "This takes the logical volume and, as a final step, expands it to fill all "
24341 "the space available in its volume group. A typical usage, assuming a Linux "
24342 "guest with a single PV C</dev/sda2> and a root device called "
24343 "C</dev/vg_guest/lv_root> would be:"
24347 #: ../resize/virt-resize.pod:413
24350 " virt-resize indisk outdisk \\\n"
24351 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24356 #: ../resize/virt-resize.pod:416
24358 "This would first expand the partition (and PV), and then expand the root "
24359 "device to fill the extra space in the PV."
24363 #: ../resize/virt-resize.pod:419
24365 "The contents of the LV are also resized if virt-resize knows how to do that."
24366 " You can stop virt-resize from trying to expand the content by using the "
24367 "option I<--no-expand-content>."
24371 #: ../resize/virt-resize.pod:423
24372 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24376 #: ../resize/virt-resize.pod:425
24378 "You can give this option multiple times, I<but> it doesn't make sense to do "
24379 "this unless the logical volumes you specify are all in different volume "
24384 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
24385 msgid "B<--machine-readable>"
24389 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
24391 "This option is used to make the output more machine friendly when being "
24392 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
24396 #: ../resize/virt-resize.pod:437
24397 msgid "B<--dryrun>"
24398 msgstr "B<--dryrun>"
24401 #: ../resize/virt-resize.pod:439
24402 msgid "Print a summary of what would be done, but don't do anything."
24406 #: ../resize/virt-resize.pod:441
24407 msgid "B<--no-copy-boot-loader>"
24408 msgstr "B<--no-copy-boot-loader>"
24411 #: ../resize/virt-resize.pod:443
24413 "By default, virt-resize copies over some sectors at the start of the disk "
24414 "(up to the beginning of the first partition). Commonly these sectors "
24415 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24416 "in order for the guest to boot correctly."
24420 #: ../resize/virt-resize.pod:448
24422 "If you specify this flag, then this initial copy is not done. You may need "
24423 "to reinstall the boot loader in this case."
24427 #: ../resize/virt-resize.pod:451
24428 msgid "B<--no-extra-partition>"
24429 msgstr "B<--no-extra-partition>"
24432 #: ../resize/virt-resize.pod:453
24434 "By default, virt-resize creates an extra partition if there is any extra, "
24435 "unused space after all resizing has happened. Use this option to prevent "
24436 "the extra partition from being created. If you do this then the extra space"
24437 " will be inaccessible until you run fdisk, parted, or some other "
24438 "partitioning tool in the guest."
24442 #: ../resize/virt-resize.pod:459
24444 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24449 #: ../resize/virt-resize.pod:462
24450 msgid "B<--no-expand-content>"
24451 msgstr "B<--no-expand-content>"
24454 #: ../resize/virt-resize.pod:464
24456 "By default, virt-resize will try to expand the direct contents of "
24457 "partitions, if it knows how (see I<--expand> option above)."
24461 #: ../resize/virt-resize.pod:467
24463 "If you give the I<--no-expand-content> option then virt-resize will not "
24468 #: ../resize/virt-resize.pod:470
24469 msgid "B<--ntfsresize-force>"
24470 msgstr "B<--ntfsresize-force>"
24473 #: ../resize/virt-resize.pod:472
24475 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24476 "the NTFS disk is marked as needing a consistency check. You have to use "
24477 "this option if you want to resize a Windows guest multiple times without "
24478 "booting into Windows between each resize."
24482 #: ../resize/virt-resize.pod:478
24483 msgid "B<--output-format> raw"
24484 msgstr "B<--output-format> raw"
24487 #: ../resize/virt-resize.pod:480
24489 "Specify the format of the output disk image. If this flag is not given then"
24490 " it is auto-detected from the image itself."
24494 #: ../resize/virt-resize.pod:486
24496 "Note that this option I<does not create> the output format. This option "
24497 "just tells libguestfs what it is so it doesn't try to guess it. You still "
24498 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
24499 "SPARSE RAW FORMATS>."
24503 #: ../resize/virt-resize.pod:495
24504 msgid "Don't print the summary."
24508 #: ../resize/virt-resize.pod:497
24509 msgid "B<--resize part=size>"
24510 msgstr "B<--resize розділ=розмір>"
24513 #: ../resize/virt-resize.pod:499
24515 "Resize the named partition (expanding or shrinking it) so that it has the "
24520 #: ../resize/virt-resize.pod:502
24522 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24523 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current"
24524 " size; or as a relative number or percentage. For example:"
24528 #: ../resize/virt-resize.pod:508
24531 " --resize /dev/sda2=10G\n"
24536 #: ../resize/virt-resize.pod:510
24539 " --resize /dev/sda4=90%\n"
24544 #: ../resize/virt-resize.pod:512
24547 " --resize /dev/sda2=+1G\n"
24552 #: ../resize/virt-resize.pod:514
24555 " --resize /dev/sda2=-200M\n"
24560 #: ../resize/virt-resize.pod:516
24563 " --resize /dev/sda1=+128K\n"
24568 #: ../resize/virt-resize.pod:518
24571 " --resize /dev/sda1=+10%\n"
24576 #: ../resize/virt-resize.pod:520
24579 " --resize /dev/sda1=-10%\n"
24584 #: ../resize/virt-resize.pod:522
24586 "You can increase the size of any partition. Virt-resize will expand the "
24587 "direct content of the partition if it knows how (see I<--expand> below)."
24591 #: ../resize/virt-resize.pod:526
24593 "You can only I<decrease> the size of partitions that contain filesystems or "
24594 "PVs which have already been shrunk. Virt-resize will check this has been "
24595 "done before proceeding, or else will print an error (see also I<--resize-"
24600 #: ../resize/virt-resize.pod:533
24601 msgid "B<--resize-force part=size>"
24602 msgstr "B<--resize-force розділ=розмір>"
24605 #: ../resize/virt-resize.pod:535
24607 "This is the same as I<--resize> except that it will let you decrease the "
24608 "size of any partition. Generally this means you will lose any data which "
24609 "was at the end of the partition you shrink, but you may not care about that "
24610 "(eg. if shrinking an unused partition, or if you can easily recreate it such"
24611 " as a swap partition)."
24615 #: ../resize/virt-resize.pod:541
24616 msgid "See also the I<--ignore> option."
24620 #: ../resize/virt-resize.pod:543
24621 msgid "B<--shrink part>"
24622 msgstr "B<--shrink розділ>"
24625 #: ../resize/virt-resize.pod:545
24627 "Shrink the named partition until the overall disk image fits in the "
24628 "destination. The named partition B<must> contain a filesystem or PV which "
24629 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24630 "online tools). Virt-resize will check this and give an error if it has not "
24635 #: ../resize/virt-resize.pod:551
24637 "The amount by which the overall disk must be shrunk (after carrying out all "
24638 "other operations requested by the user) is called the \"deficit\". For "
24639 "example, a straight copy (assume no other operations) from a 5GB disk image"
24640 " to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
24641 "would give an error unless the user specified a partition to shrink and that"
24642 " partition had more than a gigabyte of free space."
24646 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
24647 msgid "MACHINE READABLE OUTPUT"
24651 #: ../resize/virt-resize.pod:571
24653 "The I<--machine-readable> option can be used to make the output more machine"
24654 " friendly, which is useful when calling virt-resize from other programs, "
24659 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
24660 msgid "There are two ways to use this option."
24664 #: ../resize/virt-resize.pod:577
24666 "Firstly use the option on its own to query the capabilities of the virt-"
24667 "resize binary. Typical output looks like this:"
24671 #: ../resize/virt-resize.pod:580
24674 " $ virt-resize --machine-readable\n"
24676 " ntfsresize-force\n"
24684 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
24686 "A list of features is printed, one per line, and the program exits with "
24691 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
24693 "Secondly use the option in conjunction with other options to make the "
24694 "regular program output more machine friendly."
24698 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
24699 msgid "At the moment this means:"
24703 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
24705 "Progress bar messages can be parsed from stdout by looking for this regular "
24710 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
24713 " ^[0-9]+/[0-9]+$\n"
24718 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
24720 "The calling program should treat messages sent to stdout (except for "
24721 "progress bar messages) as status messages. They can be logged and/or "
24722 "displayed to the user."
24726 #: ../resize/virt-resize.pod:612
24728 "The calling program should treat messages sent to stderr as error messages."
24729 " In addition, virt-resize exits with a non-zero status code if there was a "
24734 #: ../resize/virt-resize.pod:618
24736 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24737 "readable> option and will return an error."
24741 #: ../resize/virt-resize.pod:623
24742 msgid "\"Partition 1 does not end on cylinder boundary.\""
24746 #: ../resize/virt-resize.pod:625
24748 "Virt-resize aligns partitions to multiples of 128 sectors (see the "
24749 "I<--alignment> parameter). Usually this means the partitions will not be "
24750 "aligned to the ancient CHS geometry. However CHS geometry is meaningless "
24751 "for disks manufactured since the early 1990s, and doubly so for virtual hard"
24752 " drives. Alignment of partitions to cylinders is not required by any modern"
24753 " operating system."
24757 #: ../resize/virt-resize.pod:632
24758 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24762 #: ../resize/virt-resize.pod:634
24764 "In Windows Vista and later versions, Microsoft switched to using a separate "
24765 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
24766 "and C</dev/sda2> is the main (C:) drive. Resizing the first (boot) "
24767 "partition causes the bootloader to fail with C<0xC0000225> error. Resizing "
24768 "the second partition (ie. C: drive) should work."
24772 #: ../resize/virt-resize.pod:641
24774 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24775 "NTFS partitions have been expanded. This is just a safety check and (unless"
24776 " it find errors) is nothing to worry about."
24780 #: ../resize/virt-resize.pod:645
24781 msgid "GUEST BOOT STUCK AT \"GRUB\""
24785 #: ../resize/virt-resize.pod:647
24787 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24788 "printing C<GRUB> on the console, try reinstalling grub."
24792 #: ../resize/virt-resize.pod:650
24795 " guestfish -i -a newdisk\n"
24796 " ><fs> cat /boot/grub/device.map\n"
24797 " # check the contents of this file are sensible or\n"
24798 " # edit the file if necessary\n"
24799 " ><fs> grub-install / /dev/vda\n"
24805 #: ../resize/virt-resize.pod:657
24807 "For more flexible guest reconfiguration, including if you need to specify "
24808 "other parameters to grub-install, use L<virt-rescue(1)>."
24812 #: ../resize/virt-resize.pod:660
24813 msgid "ALTERNATIVE TOOLS"
24817 #: ../resize/virt-resize.pod:662
24819 "There are several proprietary tools for resizing partitions. We won't "
24820 "mention any here."
24824 #: ../resize/virt-resize.pod:665
24826 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24827 "operations on disk images. They can resize and move partitions, but I don't"
24828 " think they can do anything with the contents, and they certainly don't "
24833 #: ../resize/virt-resize.pod:670
24835 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24836 "but at a much lower level. You will probably end up hand-calculating sector"
24837 " offsets, which is something that virt-resize was designed to avoid. If you"
24838 " want to see the guestfish-equivalent commands that virt-resize runs, use "
24839 "the I<--debug> flag."
24843 #: ../resize/virt-resize.pod:690
24845 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
24846 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
24847 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
24848 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-"
24849 "sparsify(1)>, L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24853 #: ../ruby/examples/guestfs-ruby.pod:5
24854 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24858 #: ../ruby/examples/guestfs-ruby.pod:9
24861 " require 'guestfs'\n"
24862 " g = Guestfs::Guestfs.new()\n"
24863 " g.add_drive_opts(\"disk.img\",\n"
24864 " :readonly => 1, :format => \"raw\")\n"
24870 #: ../ruby/examples/guestfs-ruby.pod:17
24872 "This manual page documents how to call libguestfs from the Ruby programming "
24873 "language. This page just documents the differences from the C API and gives"
24874 " some examples. If you are not familiar with using libguestfs, you also "
24875 "need to read L<guestfs(3)>."
24879 #: ../ruby/examples/guestfs-ruby.pod:24
24881 "Errors from libguestfs functions are mapped into the C<Error> exception. "
24882 "This has a single parameter which is the error message (a string)."
24886 #: ../ruby/examples/guestfs-ruby.pod:38
24888 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-"
24889 "java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L"
24890 "<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24894 #: ../sparsify/virt-sparsify.pod:5
24895 msgid "virt-sparsify - Make a virtual machine disk sparse"
24899 #: ../sparsify/virt-sparsify.pod:9
24902 " virt-sparsify [--options] indisk outdisk\n"
24907 #: ../sparsify/virt-sparsify.pod:13
24909 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24910 "image) sparse a.k.a. thin-provisioned. This means that free space within "
24911 "the disk image can be converted back to free space on the host."
24915 #: ../sparsify/virt-sparsify.pod:18
24917 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24918 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24922 #: ../sparsify/virt-sparsify.pod:21
24924 "Virt-sparsify can also convert between some disk formats, for example "
24925 "converting a raw disk image to a thin-provisioned qcow2 image."
24929 #: ../sparsify/virt-sparsify.pod:24
24931 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24932 "machines. If a virtual machine has more than one attached disk, you must "
24933 "sparsify each one separately."
24937 #: ../sparsify/virt-sparsify.pod:28
24938 msgid "IMPORTANT LIMITATIONS"
24942 #: ../sparsify/virt-sparsify.pod:34
24944 "Virt-sparsify does not do in-place modifications. It copies from a source "
24945 "image to a destination image, leaving the source unchanged. I<Check that "
24946 "the sparsification was successful before deleting the source image>."
24950 #: ../sparsify/virt-sparsify.pod:41
24951 msgid "The virtual machine I<must be shut down> before using this tool."
24955 #: ../sparsify/virt-sparsify.pod:45
24957 "Virt-sparsify may require up to 2x the virtual size of the source disk image"
24958 " (1 temporary copy + 1 destination image). This is in the worst case and "
24959 "usually much less space is required."
24963 #: ../sparsify/virt-sparsify.pod:51
24965 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
24969 #: ../sparsify/virt-sparsify.pod:56
24970 msgid "Virt-sparsify cannot handle encrypted disks."
24974 #: ../sparsify/virt-sparsify.pod:60
24976 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
24977 "this space is often used for critical items like bootloaders so it's not "
24982 #: ../sparsify/virt-sparsify.pod:66
24984 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
24985 "to do this unless we can be sure there is no hibernation data, so at the "
24986 "moment swap partitions are ignored."
24990 #: ../sparsify/virt-sparsify.pod:72
24992 "You may also want to read the manual pages for the associated tools L<virt-"
24993 "filesystems(1)> and L<virt-df(1)> before starting."
24997 #: ../sparsify/virt-sparsify.pod:77
24998 msgid "Typical usage is:"
25002 #: ../sparsify/virt-sparsify.pod:79
25005 " virt-sparsify indisk outdisk\n"
25010 #: ../sparsify/virt-sparsify.pod:81
25012 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
25013 "is created, or overwritten if it already exists. The format of the input "
25014 "disk is detected (eg. qcow2) and the same format is used for the output "
25019 #: ../sparsify/virt-sparsify.pod:86
25020 msgid "To convert between formats, use the I<--convert> option:"
25024 #: ../sparsify/virt-sparsify.pod:88
25027 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25032 #: ../sparsify/virt-sparsify.pod:90
25034 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25035 "can find within the source disk image. You can get it to ignore (don't zero"
25036 " free space on) certain filesystems by doing:"
25040 #: ../sparsify/virt-sparsify.pod:94
25043 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25048 #: ../sparsify/virt-sparsify.pod:96
25050 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25054 #: ../sparsify/virt-sparsify.pod:107
25055 msgid "B<--convert> raw"
25059 #: ../sparsify/virt-sparsify.pod:109
25060 msgid "B<--convert> qcow2"
25064 #: ../sparsify/virt-sparsify.pod:111
25065 msgid "B<--convert> [other formats]"
25069 #: ../sparsify/virt-sparsify.pod:113
25071 "Use C<output-format> as the format for the destination image. If this is "
25072 "not specified, then the input format is used."
25076 #: ../sparsify/virt-sparsify.pod:116
25077 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
25081 #: ../sparsify/virt-sparsify.pod:118
25083 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25084 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
25088 #: ../sparsify/virt-sparsify.pod:122
25090 "Specifying the I<--convert> option is usually a good idea, because then "
25091 "virt-sparsify doesn't need to try to guess the input format."
25095 #: ../sparsify/virt-sparsify.pod:127
25096 msgid "B<--format> qcow2"
25100 #: ../sparsify/virt-sparsify.pod:135
25101 msgid "B<--ignore> filesystem"
25105 #: ../sparsify/virt-sparsify.pod:137
25106 msgid "B<--ignore> volgroup"
25110 #: ../sparsify/virt-sparsify.pod:139
25112 "Ignore the named filesystem. Free space on the filesystem will not be "
25113 "zeroed, but existing blocks of zeroes will still be sparsified."
25117 #: ../sparsify/virt-sparsify.pod:142
25119 "In the second form, this ignores the named volume group. Use the volume "
25120 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25124 #: ../sparsify/virt-sparsify.pod:157
25125 msgid "This disables progress bars and other unnecessary output."
25129 #: ../sparsify/virt-sparsify.pod:179
25131 "The I<--machine-readable> option can be used to make the output more machine"
25132 " friendly, which is useful when calling virt-sparsify from other programs, "
25137 #: ../sparsify/virt-sparsify.pod:185
25139 "Firstly use the option on its own to query the capabilities of the virt-"
25140 "sparsify binary. Typical output looks like this:"
25144 #: ../sparsify/virt-sparsify.pod:188
25147 " $ virt-sparsify --machine-readable\n"
25155 #: ../sparsify/virt-sparsify.pod:218
25157 "The calling program should treat messages sent to stderr as error messages."
25158 " In addition, virt-sparsify exits with a non-zero status code if there was "
25163 #: ../sparsify/virt-sparsify.pod:224
25165 "All versions of virt-sparsify have supported the I<--machine-readable> "
25170 #: ../sparsify/virt-sparsify.pod:238
25172 "Location of the temporary directory used for the potentially large temporary"
25177 #: ../sparsify/virt-sparsify.pod:241
25179 "You should ensure there is enough free space in the worst case for a full "
25180 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25181 "to another directory that has enough space."
25185 #: ../sparsify/virt-sparsify.pod:245
25186 msgid "This defaults to C</tmp>."
25190 #: ../sparsify/virt-sparsify.pod:249
25192 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25196 #: ../sparsify/virt-sparsify.pod:253
25198 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>,"
25199 " L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-"
25200 "img(1)>, L<http://libguestfs.org/>."
25204 #: ../src/guestfs-actions.pod:1
25205 msgid "guestfs_add_cdrom"
25209 #: ../src/guestfs-actions.pod:3
25213 " guestfs_add_cdrom (guestfs_h *g,\n"
25214 " const char *filename);\n"
25219 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
25220 #: ../src/guestfs-actions.pod:323
25222 "I<This function is deprecated.> In new code, use the "
25223 "L</guestfs_add_drive_opts> call instead."
25227 #: ../src/guestfs-actions.pod:24
25229 "This call checks for the existence of C<filename>. This stops you from "
25230 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25231 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call"
25236 #: ../src/guestfs-actions.pod:31
25238 "If you just want to add an ISO file (often you use this as an efficient way "
25239 "to transfer large files into the guest), then you should probably use "
25240 "C<guestfs_add_drive_ro> instead."
25244 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
25245 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
25246 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
25247 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
25248 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
25249 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
25250 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
25251 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
25252 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
25253 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
25254 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
25255 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
25256 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
25257 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
25258 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
25259 #: ../src/guestfs-actions.pod:1423 ../src/guestfs-actions.pod:1474
25260 #: ../src/guestfs-actions.pod:1530 ../src/guestfs-actions.pod:1582
25261 #: ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:1615
25262 #: ../src/guestfs-actions.pod:1643 ../src/guestfs-actions.pod:1713
25263 #: ../src/guestfs-actions.pod:1744 ../src/guestfs-actions.pod:1769
25264 #: ../src/guestfs-actions.pod:1811 ../src/guestfs-actions.pod:1924
25265 #: ../src/guestfs-actions.pod:1951 ../src/guestfs-actions.pod:2166
25266 #: ../src/guestfs-actions.pod:2188 ../src/guestfs-actions.pod:2275
25267 #: ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:2927
25268 #: ../src/guestfs-actions.pod:2988 ../src/guestfs-actions.pod:3023
25269 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4095
25270 #: ../src/guestfs-actions.pod:4120 ../src/guestfs-actions.pod:4309
25271 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4336
25272 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4365
25273 #: ../src/guestfs-actions.pod:4401 ../src/guestfs-actions.pod:4473
25274 #: ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4510
25275 #: ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4556
25276 #: ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4610
25277 #: ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4664
25278 #: ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4712
25279 #: ../src/guestfs-actions.pod:4728 ../src/guestfs-actions.pod:4741
25280 #: ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4773
25281 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4886
25282 #: ../src/guestfs-actions.pod:4899 ../src/guestfs-actions.pod:4950
25283 #: ../src/guestfs-actions.pod:4968 ../src/guestfs-actions.pod:4986
25284 #: ../src/guestfs-actions.pod:5002 ../src/guestfs-actions.pod:5016
25285 #: ../src/guestfs-actions.pod:5030 ../src/guestfs-actions.pod:5047
25286 #: ../src/guestfs-actions.pod:5062 ../src/guestfs-actions.pod:5089
25287 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5225
25288 #: ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5275
25289 #: ../src/guestfs-actions.pod:5294 ../src/guestfs-actions.pod:5306
25290 #: ../src/guestfs-actions.pod:5323 ../src/guestfs-actions.pod:5336
25291 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5366
25292 #: ../src/guestfs-actions.pod:5398 ../src/guestfs-actions.pod:5424
25293 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5483
25294 #: ../src/guestfs-actions.pod:5497 ../src/guestfs-actions.pod:5514
25295 #: ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5616
25296 #: ../src/guestfs-actions.pod:5663 ../src/guestfs-actions.pod:5706
25297 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:5751
25298 #: ../src/guestfs-actions.pod:5769 ../src/guestfs-actions.pod:5909
25299 #: ../src/guestfs-actions.pod:5966 ../src/guestfs-actions.pod:5988
25300 #: ../src/guestfs-actions.pod:6006 ../src/guestfs-actions.pod:6056
25301 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6139
25302 #: ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6166
25303 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6474
25304 #: ../src/guestfs-actions.pod:6493 ../src/guestfs-actions.pod:6507
25305 #: ../src/guestfs-actions.pod:6519 ../src/guestfs-actions.pod:6533
25306 #: ../src/guestfs-actions.pod:6545 ../src/guestfs-actions.pod:6559
25307 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6596
25308 #: ../src/guestfs-actions.pod:6615 ../src/guestfs-actions.pod:6634
25309 #: ../src/guestfs-actions.pod:6664 ../src/guestfs-actions.pod:6682
25310 #: ../src/guestfs-actions.pod:6705 ../src/guestfs-actions.pod:6723
25311 #: ../src/guestfs-actions.pod:6742 ../src/guestfs-actions.pod:6763
25312 #: ../src/guestfs-actions.pod:6782 ../src/guestfs-actions.pod:6799
25313 #: ../src/guestfs-actions.pod:6818 ../src/guestfs-actions.pod:6846
25314 #: ../src/guestfs-actions.pod:6870 ../src/guestfs-actions.pod:6889
25315 #: ../src/guestfs-actions.pod:6905 ../src/guestfs-actions.pod:6929
25316 #: ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6963
25317 #: ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:7026
25318 #: ../src/guestfs-actions.pod:7056 ../src/guestfs-actions.pod:7089
25319 #: ../src/guestfs-actions.pod:7204 ../src/guestfs-actions.pod:7325
25320 #: ../src/guestfs-actions.pod:7337 ../src/guestfs-actions.pod:7350
25321 #: ../src/guestfs-actions.pod:7363 ../src/guestfs-actions.pod:7385
25322 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7411
25323 #: ../src/guestfs-actions.pod:7424 ../src/guestfs-actions.pod:7439
25324 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7515
25325 #: ../src/guestfs-actions.pod:7531 ../src/guestfs-actions.pod:7547
25326 #: ../src/guestfs-actions.pod:7564 ../src/guestfs-actions.pod:7577
25327 #: ../src/guestfs-actions.pod:7597 ../src/guestfs-actions.pod:7633
25328 #: ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7688
25329 #: ../src/guestfs-actions.pod:7701 ../src/guestfs-actions.pod:7719
25330 #: ../src/guestfs-actions.pod:7753 ../src/guestfs-actions.pod:7789
25331 #: ../src/guestfs-actions.pod:7905 ../src/guestfs-actions.pod:7920
25332 #: ../src/guestfs-actions.pod:7934 ../src/guestfs-actions.pod:7989
25333 #: ../src/guestfs-actions.pod:8002 ../src/guestfs-actions.pod:8047
25334 #: ../src/guestfs-actions.pod:8087 ../src/guestfs-actions.pod:8143
25335 #: ../src/guestfs-actions.pod:8163 ../src/guestfs-actions.pod:8196
25336 #: ../src/guestfs-actions.pod:8260 ../src/guestfs-actions.pod:8283
25337 #: ../src/guestfs-actions.pod:8312
25338 msgid "This function returns 0 on success or -1 on error."
25342 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
25343 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2389
25344 #: ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2612
25345 #: ../src/guestfs-actions.pod:4082 ../src/guestfs-actions.pod:4102
25346 #: ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:6684
25347 #: ../src/guestfs-actions.pod:6801 ../src/guestfs-actions.pod:6950
25348 #: ../src/guestfs-actions.pod:7441 ../src/guestfs-actions.pod:7566
25349 #: ../src/guestfs-actions.pod:8089
25350 msgid "(Added in 0.3)"
25351 msgstr "(Додано у 0.3)"
25354 #: ../src/guestfs-actions.pod:41
25355 msgid "guestfs_add_domain"
25359 #: ../src/guestfs-actions.pod:43
25363 " guestfs_add_domain (guestfs_h *g,\n"
25364 " const char *dom,\n"
25370 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
25371 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
25372 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
25373 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1462
25374 #: ../src/guestfs-actions.pod:1513 ../src/guestfs-actions.pod:3280
25375 #: ../src/guestfs-actions.pod:5101 ../src/guestfs-actions.pod:5410
25376 #: ../src/guestfs-actions.pod:5627
25378 "You may supply a list of optional arguments to this call. Use zero or more "
25379 "of the following pairs of parameters, and terminate the list with C<-1> on "
25380 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
25384 #: ../src/guestfs-actions.pod:53
25387 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25388 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25389 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25390 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25391 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25392 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25397 #: ../src/guestfs-actions.pod:60
25399 "This function adds the disk(s) attached to the named libvirt domain C<dom>."
25400 " It works by connecting to libvirt, requesting the domain and domain XML "
25401 "from libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on"
25406 #: ../src/guestfs-actions.pod:141
25408 "The other optional parameters are passed directly through to "
25409 "C<guestfs_add_drive_opts>."
25413 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
25414 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
25415 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
25416 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1789
25417 #: ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:2348
25418 #: ../src/guestfs-actions.pod:2459 ../src/guestfs-actions.pod:2510
25419 #: ../src/guestfs-actions.pod:2562 ../src/guestfs-actions.pod:2576
25420 #: ../src/guestfs-actions.pod:2599 ../src/guestfs-actions.pod:2914
25421 #: ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3416
25422 #: ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:5806
25423 #: ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6236
25424 #: ../src/guestfs-actions.pod:6262 ../src/guestfs-actions.pod:7674
25425 #: ../src/guestfs-actions.pod:8100 ../src/guestfs-actions.pod:8113
25426 #: ../src/guestfs-actions.pod:8126
25427 msgid "On error this function returns -1."
25431 #: ../src/guestfs-actions.pod:146
25432 msgid "(Added in 1.7.4)"
25433 msgstr "(Додано у 1.7.4)"
25436 #: ../src/guestfs-actions.pod:148
25437 msgid "guestfs_add_domain_va"
25441 #: ../src/guestfs-actions.pod:150
25445 " guestfs_add_domain_va (guestfs_h *g,\n"
25446 " const char *dom,\n"
25447 " va_list args);\n"
25452 #: ../src/guestfs-actions.pod:155
25453 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25457 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
25458 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
25459 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
25460 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
25461 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
25462 #: ../src/guestfs-actions.pod:1389 ../src/guestfs-actions.pod:1401
25463 #: ../src/guestfs-actions.pod:1440 ../src/guestfs-actions.pod:1452
25464 #: ../src/guestfs-actions.pod:1491 ../src/guestfs-actions.pod:1503
25465 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1559
25466 #: ../src/guestfs-actions.pod:3364 ../src/guestfs-actions.pod:3376
25467 #: ../src/guestfs-actions.pod:5166 ../src/guestfs-actions.pod:5178
25468 #: ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5450
25469 #: ../src/guestfs-actions.pod:5676 ../src/guestfs-actions.pod:5687
25470 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25471 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25474 #: ../src/guestfs-actions.pod:159
25475 msgid "guestfs_add_domain_argv"
25476 msgstr "guestfs_add_domain_argv"
25479 #: ../src/guestfs-actions.pod:161
25483 " guestfs_add_domain_argv (guestfs_h *g,\n"
25484 " const char *dom,\n"
25485 " const struct guestfs_add_domain_argv *optargs);\n"
25490 #: ../src/guestfs-actions.pod:166
25491 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25495 #: ../src/guestfs-actions.pod:170
25496 msgid "guestfs_add_drive"
25500 #: ../src/guestfs-actions.pod:172
25504 " guestfs_add_drive (guestfs_h *g,\n"
25505 " const char *filename);\n"
25510 #: ../src/guestfs-actions.pod:176
25512 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no"
25513 " optional parameters, so the disk is added writable, with the format being "
25514 "detected automatically."
25518 #: ../src/guestfs-actions.pod:180
25520 "Automatic detection of the format opens you up to a potential security hole "
25521 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
25522 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
25523 "you should think about replacing calls to this function with calls to "
25524 "C<guestfs_add_drive_opts>, and specifying the format."
25528 #: ../src/guestfs-actions.pod:191
25529 msgid "guestfs_add_drive_opts"
25533 #: ../src/guestfs-actions.pod:193
25537 " guestfs_add_drive_opts (guestfs_h *g,\n"
25538 " const char *filename,\n"
25544 #: ../src/guestfs-actions.pod:203
25547 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25548 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25549 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25550 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25555 #: ../src/guestfs-actions.pod:233
25557 "This forces the image format. If you omit this (or use C<guestfs_add_drive>"
25558 " or C<guestfs_add_drive_ro>) then the format is automatically detected. "
25559 "Possible formats include C<raw> and C<qcow2>."
25563 #: ../src/guestfs-actions.pod:244
25565 "This rarely-used option lets you emulate the behaviour of the deprecated "
25566 "C<guestfs_add_drive_with_if> call (q.v.)"
25570 #: ../src/guestfs-actions.pod:256
25571 msgid "(Added in 1.5.23)"
25572 msgstr "(Додано у 1.5.23)"
25575 #: ../src/guestfs-actions.pod:258
25576 msgid "guestfs_add_drive_opts_va"
25580 #: ../src/guestfs-actions.pod:260
25584 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25585 " const char *filename,\n"
25586 " va_list args);\n"
25591 #: ../src/guestfs-actions.pod:265
25592 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25596 #: ../src/guestfs-actions.pod:269
25597 msgid "guestfs_add_drive_opts_argv"
25601 #: ../src/guestfs-actions.pod:271
25605 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25606 " const char *filename,\n"
25607 " const struct guestfs_add_drive_opts_argv *optargs);\n"
25612 #: ../src/guestfs-actions.pod:276
25613 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25617 #: ../src/guestfs-actions.pod:280
25618 msgid "guestfs_add_drive_ro"
25622 #: ../src/guestfs-actions.pod:282
25626 " guestfs_add_drive_ro (guestfs_h *g,\n"
25627 " const char *filename);\n"
25632 #: ../src/guestfs-actions.pod:286
25634 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25635 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25636 "disk is added read-only, with the format being detected automatically."
25640 #: ../src/guestfs-actions.pod:293
25641 msgid "(Added in 1.0.38)"
25642 msgstr "(Додано у 1.0.38)"
25645 #: ../src/guestfs-actions.pod:295
25646 msgid "guestfs_add_drive_ro_with_if"
25650 #: ../src/guestfs-actions.pod:297
25654 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25655 " const char *filename,\n"
25656 " const char *iface);\n"
25661 #: ../src/guestfs-actions.pod:309
25663 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the"
25664 " QEMU interface emulation to use at run time."
25668 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
25669 #: ../src/guestfs-actions.pod:2873
25670 msgid "(Added in 1.0.84)"
25671 msgstr "(Додано у 1.0.84)"
25674 #: ../src/guestfs-actions.pod:316
25675 msgid "guestfs_add_drive_with_if"
25679 #: ../src/guestfs-actions.pod:318
25683 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25684 " const char *filename,\n"
25685 " const char *iface);\n"
25690 #: ../src/guestfs-actions.pod:330
25692 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25693 "QEMU interface emulation to use at run time."
25697 #: ../src/guestfs-actions.pod:337
25698 msgid "guestfs_aug_clear"
25702 #: ../src/guestfs-actions.pod:339
25706 " guestfs_aug_clear (guestfs_h *g,\n"
25707 " const char *augpath);\n"
25712 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2601
25713 msgid "(Added in 1.3.4)"
25714 msgstr "(Додано у 1.3.4)"
25717 #: ../src/guestfs-actions.pod:350
25718 msgid "guestfs_aug_close"
25722 #: ../src/guestfs-actions.pod:352
25726 " guestfs_aug_close (guestfs_h *g);\n"
25731 #: ../src/guestfs-actions.pod:355
25733 "Close the current Augeas handle and free up any resources used by it. After"
25734 " calling this, you have to call C<guestfs_aug_init> again before you can use"
25735 " any other Augeas functions."
25739 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
25740 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
25741 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
25742 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
25743 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
25744 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
25745 #: ../src/guestfs-actions.pod:6313
25746 msgid "(Added in 0.7)"
25747 msgstr "(Додано у 0.7)"
25750 #: ../src/guestfs-actions.pod:364
25751 msgid "guestfs_aug_defnode"
25755 #: ../src/guestfs-actions.pod:366
25758 " struct guestfs_int_bool *\n"
25759 " guestfs_aug_defnode (guestfs_h *g,\n"
25760 " const char *name,\n"
25761 " const char *expr,\n"
25762 " const char *val);\n"
25767 #: ../src/guestfs-actions.pod:375
25769 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25770 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
25771 "containing that single node."
25775 #: ../src/guestfs-actions.pod:383
25777 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25778 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
25782 #: ../src/guestfs-actions.pod:389
25783 msgid "guestfs_aug_defvar"
25787 #: ../src/guestfs-actions.pod:391
25791 " guestfs_aug_defvar (guestfs_h *g,\n"
25792 " const char *name,\n"
25793 " const char *expr);\n"
25798 #: ../src/guestfs-actions.pod:407
25799 msgid "guestfs_aug_get"
25800 msgstr "guestfs_aug_get"
25803 #: ../src/guestfs-actions.pod:409
25807 " guestfs_aug_get (guestfs_h *g,\n"
25808 " const char *augpath);\n"
25812 " guestfs_aug_get (guestfs_h *g,\n"
25813 " const char *augpath);\n"
25817 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
25818 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
25819 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
25820 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1675
25821 #: ../src/guestfs-actions.pod:1694 ../src/guestfs-actions.pod:1828
25822 #: ../src/guestfs-actions.pod:2016 ../src/guestfs-actions.pod:2128
25823 #: ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:2308
25824 #: ../src/guestfs-actions.pod:2375 ../src/guestfs-actions.pod:2418
25825 #: ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2624
25826 #: ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:3042
25827 #: ../src/guestfs-actions.pod:3144 ../src/guestfs-actions.pod:3248
25828 #: ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:3482
25829 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3531
25830 #: ../src/guestfs-actions.pod:3565 ../src/guestfs-actions.pod:3628
25831 #: ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:3668
25832 #: ../src/guestfs-actions.pod:4295 ../src/guestfs-actions.pod:4648
25833 #: ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:4928
25834 #: ../src/guestfs-actions.pod:5824 ../src/guestfs-actions.pod:6025
25835 #: ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6389
25836 #: ../src/guestfs-actions.pod:6438 ../src/guestfs-actions.pod:7110
25837 #: ../src/guestfs-actions.pod:7126 ../src/guestfs-actions.pod:7150
25838 #: ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7848
25839 #: ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7885
25840 #: ../src/guestfs-actions.pod:8059 ../src/guestfs-actions.pod:8376
25842 "This function returns a string, or NULL on error. I<The caller must free "
25843 "the returned string after use>."
25847 #: ../src/guestfs-actions.pod:421
25848 msgid "guestfs_aug_init"
25849 msgstr "guestfs_aug_init"
25852 #: ../src/guestfs-actions.pod:423
25856 " guestfs_aug_init (guestfs_h *g,\n"
25857 " const char *root,\n"
25862 " guestfs_aug_init (guestfs_h *g,\n"
25863 " const char *root,\n"
25868 #: ../src/guestfs-actions.pod:432
25869 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25873 #: ../src/guestfs-actions.pod:457
25875 "This option is only useful when debugging Augeas lenses. Use of this option"
25876 " may require additional memory for the libguestfs appliance. You may need "
25877 "to set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25878 "C<guestfs_set_memsize>."
25882 #: ../src/guestfs-actions.pod:472
25883 msgid "Do not load the tree in C<guestfs_aug_init>."
25887 #: ../src/guestfs-actions.pod:476
25888 msgid "To close the handle, you can call C<guestfs_aug_close>."
25892 #: ../src/guestfs-actions.pod:484
25893 msgid "guestfs_aug_insert"
25894 msgstr "guestfs_aug_insert"
25897 #: ../src/guestfs-actions.pod:486
25901 " guestfs_aug_insert (guestfs_h *g,\n"
25902 " const char *augpath,\n"
25903 " const char *label,\n"
25908 " guestfs_aug_insert (guestfs_h *g,\n"
25909 " const char *augpath,\n"
25910 " const char *label,\n"
25915 #: ../src/guestfs-actions.pod:504
25916 msgid "guestfs_aug_load"
25917 msgstr "guestfs_aug_load"
25920 #: ../src/guestfs-actions.pod:506
25924 " guestfs_aug_load (guestfs_h *g);\n"
25928 " guestfs_aug_load (guestfs_h *g);\n"
25932 #: ../src/guestfs-actions.pod:518
25933 msgid "guestfs_aug_ls"
25934 msgstr "guestfs_aug_ls"
25937 #: ../src/guestfs-actions.pod:520
25941 " guestfs_aug_ls (guestfs_h *g,\n"
25942 " const char *augpath);\n"
25946 " guestfs_aug_ls (guestfs_h *g,\n"
25947 " const char *augpath);\n"
25951 #: ../src/guestfs-actions.pod:524
25953 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25954 "sorting the resulting nodes into alphabetical order."
25958 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
25959 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
25960 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:1862
25961 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:1984
25962 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2696
25963 #: ../src/guestfs-actions.pod:2712 ../src/guestfs-actions.pod:2731
25964 #: ../src/guestfs-actions.pod:2796 ../src/guestfs-actions.pod:2820
25965 #: ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:2940
25966 #: ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3584
25967 #: ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:4178
25968 #: ../src/guestfs-actions.pod:4195 ../src/guestfs-actions.pod:4215
25969 #: ../src/guestfs-actions.pod:4277 ../src/guestfs-actions.pod:4382
25970 #: ../src/guestfs-actions.pod:4790 ../src/guestfs-actions.pod:5547
25971 #: ../src/guestfs-actions.pod:6183 ../src/guestfs-actions.pod:6309
25972 #: ../src/guestfs-actions.pod:6423 ../src/guestfs-actions.pod:7190
25973 #: ../src/guestfs-actions.pod:7251 ../src/guestfs-actions.pod:7306
25974 #: ../src/guestfs-actions.pod:7452 ../src/guestfs-actions.pod:7476
25975 #: ../src/guestfs-actions.pod:7952 ../src/guestfs-actions.pod:7972
25976 #: ../src/guestfs-actions.pod:8019 ../src/guestfs-actions.pod:8213
25977 #: ../src/guestfs-actions.pod:8232 ../src/guestfs-actions.pod:8326
25978 #: ../src/guestfs-actions.pod:8345 ../src/guestfs-actions.pod:8391
25979 #: ../src/guestfs-actions.pod:8410
25981 "This function returns a NULL-terminated array of strings (like "
25982 "L<environ(3)>), or NULL if there was an error. I<The caller must free the "
25983 "strings and the array after use>."
25987 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
25988 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1900
25989 #: ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:3973
25990 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4681
25991 #: ../src/guestfs-actions.pod:4868 ../src/guestfs-actions.pod:4901
25992 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5551
25993 #: ../src/guestfs-actions.pod:6124 ../src/guestfs-actions.pod:6521
25994 #: ../src/guestfs-actions.pod:6535 ../src/guestfs-actions.pod:6547
25995 #: ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7690
25996 #: ../src/guestfs-actions.pod:7703 ../src/guestfs-actions.pod:7936
25997 #: ../src/guestfs-actions.pod:8201
25998 msgid "(Added in 0.8)"
25999 msgstr "(Додано у 0.8)"
26002 #: ../src/guestfs-actions.pod:533
26003 msgid "guestfs_aug_match"
26004 msgstr "guestfs_aug_match"
26007 #: ../src/guestfs-actions.pod:535
26011 " guestfs_aug_match (guestfs_h *g,\n"
26012 " const char *augpath);\n"
26016 " guestfs_aug_match (guestfs_h *g,\n"
26017 " const char *augpath);\n"
26021 #: ../src/guestfs-actions.pod:549
26022 msgid "guestfs_aug_mv"
26023 msgstr "guestfs_aug_mv"
26026 #: ../src/guestfs-actions.pod:551
26030 " guestfs_aug_mv (guestfs_h *g,\n"
26031 " const char *src,\n"
26032 " const char *dest);\n"
26036 " guestfs_aug_mv (guestfs_h *g,\n"
26037 " const char *src,\n"
26038 " const char *dest);\n"
26042 #: ../src/guestfs-actions.pod:563
26043 msgid "guestfs_aug_rm"
26044 msgstr "guestfs_aug_rm"
26047 #: ../src/guestfs-actions.pod:565
26051 " guestfs_aug_rm (guestfs_h *g,\n"
26052 " const char *augpath);\n"
26056 " guestfs_aug_rm (guestfs_h *g,\n"
26057 " const char *augpath);\n"
26061 #: ../src/guestfs-actions.pod:577
26062 msgid "guestfs_aug_save"
26063 msgstr "guestfs_aug_save"
26066 #: ../src/guestfs-actions.pod:579
26070 " guestfs_aug_save (guestfs_h *g);\n"
26074 " guestfs_aug_save (guestfs_h *g);\n"
26078 #: ../src/guestfs-actions.pod:584
26080 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26085 #: ../src/guestfs-actions.pod:591
26086 msgid "guestfs_aug_set"
26087 msgstr "guestfs_aug_set"
26090 #: ../src/guestfs-actions.pod:593
26094 " guestfs_aug_set (guestfs_h *g,\n"
26095 " const char *augpath,\n"
26096 " const char *val);\n"
26100 " guestfs_aug_set (guestfs_h *g,\n"
26101 " const char *augpath,\n"
26102 " const char *val);\n"
26106 #: ../src/guestfs-actions.pod:600
26108 "In the Augeas API, it is possible to clear a node by setting the value to "
26109 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
26110 "this call. Instead you must use the C<guestfs_aug_clear> call."
26114 #: ../src/guestfs-actions.pod:609
26115 msgid "guestfs_available"
26116 msgstr "guestfs_available"
26119 #: ../src/guestfs-actions.pod:611
26123 " guestfs_available (guestfs_h *g,\n"
26124 " char *const *groups);\n"
26128 " guestfs_available (guestfs_h *g,\n"
26129 " char *const *groups);\n"
26133 #: ../src/guestfs-actions.pod:619
26135 "The libguestfs groups, and the functions that those groups correspond to, "
26136 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
26137 "runtime by calling C<guestfs_available_all_groups>."
26141 #: ../src/guestfs-actions.pod:643
26142 msgid "You must call C<guestfs_launch> before calling this function."
26146 #: ../src/guestfs-actions.pod:665
26148 "This call was added in version C<1.0.80>. In previous versions of "
26149 "libguestfs all you could do would be to speculatively execute a command to "
26150 "find out if the daemon implemented it. See also C<guestfs_version>."
26154 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1645
26155 msgid "(Added in 1.0.80)"
26156 msgstr "(Додано у 1.0.80)"
26159 #: ../src/guestfs-actions.pod:676
26160 msgid "guestfs_available_all_groups"
26161 msgstr "guestfs_available_all_groups"
26164 #: ../src/guestfs-actions.pod:678
26168 " guestfs_available_all_groups (guestfs_h *g);\n"
26172 " guestfs_available_all_groups (guestfs_h *g);\n"
26176 #: ../src/guestfs-actions.pod:681
26178 "This command returns a list of all optional groups that this daemon knows "
26179 "about. Note this returns both supported and unsupported groups. To find "
26180 "out which ones the daemon can actually support you have to call "
26181 "C<guestfs_available> on each member of the returned list."
26185 #: ../src/guestfs-actions.pod:687
26186 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26190 #: ../src/guestfs-actions.pod:693
26191 msgid "(Added in 1.3.15)"
26192 msgstr "(Додано у 1.3.15)"
26195 #: ../src/guestfs-actions.pod:695
26196 msgid "guestfs_base64_in"
26197 msgstr "guestfs_base64_in"
26200 #: ../src/guestfs-actions.pod:697
26204 " guestfs_base64_in (guestfs_h *g,\n"
26205 " const char *base64file,\n"
26206 " const char *filename);\n"
26210 " guestfs_base64_in (guestfs_h *g,\n"
26211 " const char *base64file,\n"
26212 " const char *filename);\n"
26216 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26217 msgid "(Added in 1.3.5)"
26218 msgstr "(Додано у 1.3.5)"
26221 #: ../src/guestfs-actions.pod:709
26222 msgid "guestfs_base64_out"
26223 msgstr "guestfs_base64_out"
26226 #: ../src/guestfs-actions.pod:711
26230 " guestfs_base64_out (guestfs_h *g,\n"
26231 " const char *filename,\n"
26232 " const char *base64file);\n"
26236 " guestfs_base64_out (guestfs_h *g,\n"
26237 " const char *filename,\n"
26238 " const char *base64file);\n"
26242 #: ../src/guestfs-actions.pod:723
26243 msgid "guestfs_blockdev_flushbufs"
26244 msgstr "guestfs_blockdev_flushbufs"
26247 #: ../src/guestfs-actions.pod:725
26251 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26252 " const char *device);\n"
26256 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26257 " const char *device);\n"
26261 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
26262 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
26263 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
26264 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
26265 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
26266 msgid "(Added in 0.9.3)"
26267 msgstr "(Додано у 0.9.3)"
26270 #: ../src/guestfs-actions.pod:738
26271 msgid "guestfs_blockdev_getbsz"
26272 msgstr "guestfs_blockdev_getbsz"
26275 #: ../src/guestfs-actions.pod:740
26279 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26280 " const char *device);\n"
26284 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26285 " const char *device);\n"
26289 #: ../src/guestfs-actions.pod:755
26290 msgid "guestfs_blockdev_getro"
26291 msgstr "guestfs_blockdev_getro"
26294 #: ../src/guestfs-actions.pod:757
26298 " guestfs_blockdev_getro (guestfs_h *g,\n"
26299 " const char *device);\n"
26303 " guestfs_blockdev_getro (guestfs_h *g,\n"
26304 " const char *device);\n"
26308 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1883
26309 #: ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:2387
26310 #: ../src/guestfs-actions.pod:2398 ../src/guestfs-actions.pod:2470
26311 #: ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2536
26312 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2587
26313 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:3685
26314 #: ../src/guestfs-actions.pod:3701 ../src/guestfs-actions.pod:3719
26315 #: ../src/guestfs-actions.pod:3881 ../src/guestfs-actions.pod:3895
26316 #: ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3924
26317 #: ../src/guestfs-actions.pod:3940 ../src/guestfs-actions.pod:3955
26318 #: ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:3985
26319 #: ../src/guestfs-actions.pod:3998 ../src/guestfs-actions.pod:4012
26320 #: ../src/guestfs-actions.pod:4027 ../src/guestfs-actions.pod:4042
26321 #: ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4069
26322 #: ../src/guestfs-actions.pod:5788
26323 msgid "This function returns a C truth value on success or -1 on error."
26327 #: ../src/guestfs-actions.pod:770
26328 msgid "guestfs_blockdev_getsize64"
26329 msgstr "guestfs_blockdev_getsize64"
26332 #: ../src/guestfs-actions.pod:772
26336 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26337 " const char *device);\n"
26341 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26342 " const char *device);\n"
26346 #: ../src/guestfs-actions.pod:778
26347 msgid "See also C<guestfs_blockdev_getsz>."
26351 #: ../src/guestfs-actions.pod:786
26352 msgid "guestfs_blockdev_getss"
26353 msgstr "guestfs_blockdev_getss"
26356 #: ../src/guestfs-actions.pod:788
26360 " guestfs_blockdev_getss (guestfs_h *g,\n"
26361 " const char *device);\n"
26365 " guestfs_blockdev_getss (guestfs_h *g,\n"
26366 " const char *device);\n"
26370 #: ../src/guestfs-actions.pod:795
26372 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26377 #: ../src/guestfs-actions.pod:804
26378 msgid "guestfs_blockdev_getsz"
26379 msgstr "guestfs_blockdev_getsz"
26382 #: ../src/guestfs-actions.pod:806
26386 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26387 " const char *device);\n"
26391 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26392 " const char *device);\n"
26396 #: ../src/guestfs-actions.pod:813
26398 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26399 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26403 #: ../src/guestfs-actions.pod:823
26404 msgid "guestfs_blockdev_rereadpt"
26405 msgstr "guestfs_blockdev_rereadpt"
26408 #: ../src/guestfs-actions.pod:825
26412 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26413 " const char *device);\n"
26417 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26418 " const char *device);\n"
26422 #: ../src/guestfs-actions.pod:837
26423 msgid "guestfs_blockdev_setbsz"
26424 msgstr "guestfs_blockdev_setbsz"
26427 #: ../src/guestfs-actions.pod:839
26431 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26432 " const char *device,\n"
26433 " int blocksize);\n"
26437 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26438 " const char *device,\n"
26439 " int blocksize);\n"
26443 #: ../src/guestfs-actions.pod:855
26444 msgid "guestfs_blockdev_setro"
26445 msgstr "guestfs_blockdev_setro"
26448 #: ../src/guestfs-actions.pod:857
26452 " guestfs_blockdev_setro (guestfs_h *g,\n"
26453 " const char *device);\n"
26457 " guestfs_blockdev_setro (guestfs_h *g,\n"
26458 " const char *device);\n"
26462 #: ../src/guestfs-actions.pod:869
26463 msgid "guestfs_blockdev_setrw"
26464 msgstr "guestfs_blockdev_setrw"
26467 #: ../src/guestfs-actions.pod:871
26471 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26472 " const char *device);\n"
26476 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26477 " const char *device);\n"
26481 #: ../src/guestfs-actions.pod:883
26482 msgid "guestfs_btrfs_filesystem_resize"
26483 msgstr "guestfs_btrfs_filesystem_resize"
26486 #: ../src/guestfs-actions.pod:885
26490 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26491 " const char *mountpoint,\n"
26496 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26497 " const char *mountpoint,\n"
26502 #: ../src/guestfs-actions.pod:895
26505 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26508 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26512 #: ../src/guestfs-actions.pod:918
26513 msgid "(Added in 1.11.17)"
26514 msgstr "(Додано у 1.11.17)"
26517 #: ../src/guestfs-actions.pod:920
26518 msgid "guestfs_btrfs_filesystem_resize_va"
26519 msgstr "guestfs_btrfs_filesystem_resize_va"
26522 #: ../src/guestfs-actions.pod:922
26526 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26527 " const char *mountpoint,\n"
26528 " va_list args);\n"
26532 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26533 " const char *mountpoint,\n"
26534 " va_list args);\n"
26538 #: ../src/guestfs-actions.pod:927
26539 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26543 #: ../src/guestfs-actions.pod:931
26544 msgid "guestfs_btrfs_filesystem_resize_argv"
26545 msgstr "guestfs_btrfs_filesystem_resize_argv"
26548 #: ../src/guestfs-actions.pod:933
26552 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26553 " const char *mountpoint,\n"
26554 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26558 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26559 " const char *mountpoint,\n"
26560 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26564 #: ../src/guestfs-actions.pod:938
26565 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26569 #: ../src/guestfs-actions.pod:942
26570 msgid "guestfs_case_sensitive_path"
26574 #: ../src/guestfs-actions.pod:944
26578 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26579 " const char *path);\n"
26584 #: ../src/guestfs-actions.pod:970
26586 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return "
26587 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26588 "how the directories were originally created under Windows)."
26592 #: ../src/guestfs-actions.pod:978
26593 msgid "See also C<guestfs_realpath>."
26597 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7870
26598 msgid "(Added in 1.0.75)"
26599 msgstr "(Додано у 1.0.75)"
26602 #: ../src/guestfs-actions.pod:985
26603 msgid "guestfs_cat"
26607 #: ../src/guestfs-actions.pod:987
26611 " guestfs_cat (guestfs_h *g,\n"
26612 " const char *path);\n"
26617 #: ../src/guestfs-actions.pod:993
26619 "Note that this function cannot correctly handle binary files (specifically, "
26620 "files containing C<\\0> character which is treated as end of string). For "
26621 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26622 "functions which have a more complex interface."
26626 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4199
26627 #: ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4298
26628 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4794
26629 #: ../src/guestfs-actions.pod:4808 ../src/guestfs-actions.pod:6187
26630 #: ../src/guestfs-actions.pod:6201 ../src/guestfs-actions.pod:8023
26631 #: ../src/guestfs-actions.pod:8037
26632 msgid "(Added in 0.4)"
26633 msgstr "(Додано у 0.4)"
26636 #: ../src/guestfs-actions.pod:1006
26637 msgid "guestfs_checksum"
26641 #: ../src/guestfs-actions.pod:1008
26645 " guestfs_checksum (guestfs_h *g,\n"
26646 " const char *csumtype,\n"
26647 " const char *path);\n"
26652 #: ../src/guestfs-actions.pod:1054
26653 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26657 #: ../src/guestfs-actions.pod:1056
26658 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26662 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1720
26663 #: ../src/guestfs-actions.pod:2578 ../src/guestfs-actions.pod:3897
26664 #: ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:3987
26665 #: ../src/guestfs-actions.pod:4014 ../src/guestfs-actions.pod:7726
26666 msgid "(Added in 1.0.2)"
26667 msgstr "(Додано у 1.0.2)"
26670 #: ../src/guestfs-actions.pod:1063
26671 msgid "guestfs_checksum_device"
26675 #: ../src/guestfs-actions.pod:1065
26679 " guestfs_checksum_device (guestfs_h *g,\n"
26680 " const char *csumtype,\n"
26681 " const char *device);\n"
26686 #: ../src/guestfs-actions.pod:1070
26688 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26689 "device named C<device>. For the types of checksums supported see the "
26690 "C<guestfs_checksum> command."
26694 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5618
26695 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5790
26696 #: ../src/guestfs-actions.pod:5808 ../src/guestfs-actions.pod:5990
26697 #: ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:7649
26698 #: ../src/guestfs-actions.pod:8049
26699 msgid "(Added in 1.3.2)"
26700 msgstr "(Додано у 1.3.2)"
26703 #: ../src/guestfs-actions.pod:1079
26704 msgid "guestfs_checksums_out"
26708 #: ../src/guestfs-actions.pod:1081
26712 " guestfs_checksums_out (guestfs_h *g,\n"
26713 " const char *csumtype,\n"
26714 " const char *directory,\n"
26715 " const char *sumsfile);\n"
26720 #: ../src/guestfs-actions.pod:1101
26721 msgid "(Added in 1.3.7)"
26722 msgstr "(Додано у 1.3.7)"
26725 #: ../src/guestfs-actions.pod:1103
26726 msgid "guestfs_chmod"
26730 #: ../src/guestfs-actions.pod:1105
26734 " guestfs_chmod (guestfs_h *g,\n"
26736 " const char *path);\n"
26741 #: ../src/guestfs-actions.pod:1123
26742 msgid "guestfs_chown"
26746 #: ../src/guestfs-actions.pod:1125
26750 " guestfs_chown (guestfs_h *g,\n"
26753 " const char *path);\n"
26758 #: ../src/guestfs-actions.pod:1141
26759 msgid "guestfs_command"
26763 #: ../src/guestfs-actions.pod:1143
26767 " guestfs_command (guestfs_h *g,\n"
26768 " char *const *arguments);\n"
26773 #: ../src/guestfs-actions.pod:1152
26775 "The single parameter is an argv-style list of arguments. The first element "
26776 "is the name of the program to run. Subsequent elements are parameters. The"
26777 " list must be non-empty (ie. must contain a program name). Note that the "
26778 "command runs directly, and is I<not> invoked via the shell (see "
26783 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
26784 #: ../src/guestfs-actions.pod:2019
26785 msgid "(Added in 0.9.1)"
26786 msgstr "(Додано у 0.9.1)"
26789 #: ../src/guestfs-actions.pod:1185
26790 msgid "guestfs_command_lines"
26794 #: ../src/guestfs-actions.pod:1187
26798 " guestfs_command_lines (guestfs_h *g,\n"
26799 " char *const *arguments);\n"
26804 #: ../src/guestfs-actions.pod:1191
26806 "This is the same as C<guestfs_command>, but splits the result into a list of"
26811 #: ../src/guestfs-actions.pod:1194
26812 msgid "See also: C<guestfs_sh_lines>"
26816 #: ../src/guestfs-actions.pod:1205
26817 msgid "guestfs_compress_device_out"
26821 #: ../src/guestfs-actions.pod:1207
26825 " guestfs_compress_device_out (guestfs_h *g,\n"
26826 " const char *ctype,\n"
26827 " const char *device,\n"
26828 " const char *zdevice,\n"
26834 #: ../src/guestfs-actions.pod:1219
26837 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26842 #: ../src/guestfs-actions.pod:1224
26844 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26845 "C<guestfs_compress_out>."
26849 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
26850 #: ../src/guestfs-actions.pod:2564 ../src/guestfs-actions.pod:6907
26851 msgid "(Added in 1.13.15)"
26855 #: ../src/guestfs-actions.pod:1231
26856 msgid "guestfs_compress_device_out_va"
26860 #: ../src/guestfs-actions.pod:1233
26864 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26865 " const char *ctype,\n"
26866 " const char *device,\n"
26867 " const char *zdevice,\n"
26868 " va_list args);\n"
26873 #: ../src/guestfs-actions.pod:1240
26874 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26878 #: ../src/guestfs-actions.pod:1244
26879 msgid "guestfs_compress_device_out_argv"
26883 #: ../src/guestfs-actions.pod:1246
26887 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26888 " const char *ctype,\n"
26889 " const char *device,\n"
26890 " const char *zdevice,\n"
26891 " const struct guestfs_compress_device_out_argv *optargs);\n"
26896 #: ../src/guestfs-actions.pod:1253
26897 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26901 #: ../src/guestfs-actions.pod:1257
26902 msgid "guestfs_compress_out"
26906 #: ../src/guestfs-actions.pod:1259
26910 " guestfs_compress_out (guestfs_h *g,\n"
26911 " const char *ctype,\n"
26912 " const char *file,\n"
26913 " const char *zfile,\n"
26919 #: ../src/guestfs-actions.pod:1271
26922 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26927 #: ../src/guestfs-actions.pod:1290
26928 msgid "guestfs_compress_out_va"
26932 #: ../src/guestfs-actions.pod:1292
26936 " guestfs_compress_out_va (guestfs_h *g,\n"
26937 " const char *ctype,\n"
26938 " const char *file,\n"
26939 " const char *zfile,\n"
26940 " va_list args);\n"
26945 #: ../src/guestfs-actions.pod:1299
26946 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26950 #: ../src/guestfs-actions.pod:1303
26951 msgid "guestfs_compress_out_argv"
26955 #: ../src/guestfs-actions.pod:1305
26959 " guestfs_compress_out_argv (guestfs_h *g,\n"
26960 " const char *ctype,\n"
26961 " const char *file,\n"
26962 " const char *zfile,\n"
26963 " const struct guestfs_compress_out_argv *optargs);\n"
26968 #: ../src/guestfs-actions.pod:1312
26969 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26973 #: ../src/guestfs-actions.pod:1316
26974 msgid "guestfs_config"
26978 #: ../src/guestfs-actions.pod:1318
26982 " guestfs_config (guestfs_h *g,\n"
26983 " const char *qemuparam,\n"
26984 " const char *qemuvalue);\n"
26989 #: ../src/guestfs-actions.pod:1336
26990 msgid "guestfs_copy_device_to_device"
26994 #: ../src/guestfs-actions.pod:1338
26998 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26999 " const char *src,\n"
27000 " const char *dest,\n"
27006 #: ../src/guestfs-actions.pod:1349
27009 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27010 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27011 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27016 #: ../src/guestfs-actions.pod:1353
27018 "The four calls C<guestfs_copy_device_to_device>, "
27019 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27020 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27021 "destination (device|file)."
27025 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1425
27026 #: ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:1532
27027 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1715
27028 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:1791
27029 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2190
27030 #: ../src/guestfs-actions.pod:4097 ../src/guestfs-actions.pod:7721
27031 #: ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:8262
27032 #: ../src/guestfs-actions.pod:8285
27034 "This long-running command can generate progress notification messages so "
27035 "that the caller can display a progress bar or indicator. To receive these "
27036 "messages, the caller must register a progress event callback. See "
27037 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
27041 #: ../src/guestfs-actions.pod:1379
27042 msgid "guestfs_copy_device_to_device_va"
27046 #: ../src/guestfs-actions.pod:1381
27050 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27051 " const char *src,\n"
27052 " const char *dest,\n"
27053 " va_list args);\n"
27058 #: ../src/guestfs-actions.pod:1387
27059 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27063 #: ../src/guestfs-actions.pod:1391
27064 msgid "guestfs_copy_device_to_device_argv"
27068 #: ../src/guestfs-actions.pod:1393
27072 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27073 " const char *src,\n"
27074 " const char *dest,\n"
27075 " const struct guestfs_copy_device_to_device_argv *optargs);\n"
27080 #: ../src/guestfs-actions.pod:1399
27081 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27085 #: ../src/guestfs-actions.pod:1403
27086 msgid "guestfs_copy_device_to_file"
27090 #: ../src/guestfs-actions.pod:1405
27094 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27095 " const char *src,\n"
27096 " const char *dest,\n"
27102 #: ../src/guestfs-actions.pod:1416
27105 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27106 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27107 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27112 #: ../src/guestfs-actions.pod:1420 ../src/guestfs-actions.pod:1471
27113 #: ../src/guestfs-actions.pod:1522
27115 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27119 #: ../src/guestfs-actions.pod:1430
27120 msgid "guestfs_copy_device_to_file_va"
27124 #: ../src/guestfs-actions.pod:1432
27128 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27129 " const char *src,\n"
27130 " const char *dest,\n"
27131 " va_list args);\n"
27136 #: ../src/guestfs-actions.pod:1438
27137 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27141 #: ../src/guestfs-actions.pod:1442
27142 msgid "guestfs_copy_device_to_file_argv"
27146 #: ../src/guestfs-actions.pod:1444
27150 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27151 " const char *src,\n"
27152 " const char *dest,\n"
27153 " const struct guestfs_copy_device_to_file_argv *optargs);\n"
27158 #: ../src/guestfs-actions.pod:1450
27159 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27163 #: ../src/guestfs-actions.pod:1454
27164 msgid "guestfs_copy_file_to_device"
27168 #: ../src/guestfs-actions.pod:1456
27172 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27173 " const char *src,\n"
27174 " const char *dest,\n"
27180 #: ../src/guestfs-actions.pod:1467
27183 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27184 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27185 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27190 #: ../src/guestfs-actions.pod:1481
27191 msgid "guestfs_copy_file_to_device_va"
27195 #: ../src/guestfs-actions.pod:1483
27199 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27200 " const char *src,\n"
27201 " const char *dest,\n"
27202 " va_list args);\n"
27207 #: ../src/guestfs-actions.pod:1489
27208 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27212 #: ../src/guestfs-actions.pod:1493
27213 msgid "guestfs_copy_file_to_device_argv"
27217 #: ../src/guestfs-actions.pod:1495
27221 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27222 " const char *src,\n"
27223 " const char *dest,\n"
27224 " const struct guestfs_copy_file_to_device_argv *optargs);\n"
27229 #: ../src/guestfs-actions.pod:1501
27230 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27234 #: ../src/guestfs-actions.pod:1505
27235 msgid "guestfs_copy_file_to_file"
27239 #: ../src/guestfs-actions.pod:1507
27243 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27244 " const char *src,\n"
27245 " const char *dest,\n"
27251 #: ../src/guestfs-actions.pod:1518
27254 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27255 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27256 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27261 #: ../src/guestfs-actions.pod:1525
27263 "This is B<not> the function you want for copying files. This is for copying"
27264 " blocks within existing files. See C<guestfs_cp>, C<guestfs_cp_a> and "
27265 "C<guestfs_mv> for general file copying and moving functions."
27269 #: ../src/guestfs-actions.pod:1537
27270 msgid "guestfs_copy_file_to_file_va"
27274 #: ../src/guestfs-actions.pod:1539
27278 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27279 " const char *src,\n"
27280 " const char *dest,\n"
27281 " va_list args);\n"
27286 #: ../src/guestfs-actions.pod:1545
27287 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27291 #: ../src/guestfs-actions.pod:1549
27292 msgid "guestfs_copy_file_to_file_argv"
27296 #: ../src/guestfs-actions.pod:1551
27300 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27301 " const char *src,\n"
27302 " const char *dest,\n"
27303 " const struct guestfs_copy_file_to_file_argv *optargs);\n"
27308 #: ../src/guestfs-actions.pod:1557
27309 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27313 #: ../src/guestfs-actions.pod:1561
27314 msgid "guestfs_copy_size"
27318 #: ../src/guestfs-actions.pod:1563
27322 " guestfs_copy_size (guestfs_h *g,\n"
27323 " const char *src,\n"
27324 " const char *dest,\n"
27325 " int64_t size);\n"
27330 #: ../src/guestfs-actions.pod:1569 ../src/guestfs-actions.pod:1626
27332 "I<This function is deprecated.> In new code, use the "
27333 "L</guestfs_copy_device_to_device> call instead."
27337 #: ../src/guestfs-actions.pod:1589 ../src/guestfs-actions.pod:4821
27338 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:7956
27339 #: ../src/guestfs-actions.pod:7976 ../src/guestfs-actions.pod:8062
27340 msgid "(Added in 1.0.87)"
27341 msgstr "(Додано у 1.0.87)"
27344 #: ../src/guestfs-actions.pod:1591
27349 #: ../src/guestfs-actions.pod:1593
27353 " guestfs_cp (guestfs_h *g,\n"
27354 " const char *src,\n"
27355 " const char *dest);\n"
27360 #: ../src/guestfs-actions.pod:1603 ../src/guestfs-actions.pod:1617
27361 #: ../src/guestfs-actions.pod:1697 ../src/guestfs-actions.pod:1771
27362 #: ../src/guestfs-actions.pod:1885 ../src/guestfs-actions.pod:5565
27363 #: ../src/guestfs-actions.pod:6058
27364 msgid "(Added in 1.0.18)"
27365 msgstr "(Додано у 1.0.18)"
27368 #: ../src/guestfs-actions.pod:1605
27369 msgid "guestfs_cp_a"
27373 #: ../src/guestfs-actions.pod:1607
27377 " guestfs_cp_a (guestfs_h *g,\n"
27378 " const char *src,\n"
27379 " const char *dest);\n"
27384 #: ../src/guestfs-actions.pod:1619
27389 #: ../src/guestfs-actions.pod:1621
27393 " guestfs_dd (guestfs_h *g,\n"
27394 " const char *src,\n"
27395 " const char *dest);\n"
27400 #: ../src/guestfs-actions.pod:1638
27402 "If the destination is a device, it must be as large or larger than the "
27403 "source file or device, otherwise the copy will fail. This command cannot do"
27404 " partial copies (see C<guestfs_copy_device_to_device>)."
27408 #: ../src/guestfs-actions.pod:1647
27413 #: ../src/guestfs-actions.pod:1649
27417 " guestfs_df (guestfs_h *g);\n"
27422 #: ../src/guestfs-actions.pod:1654 ../src/guestfs-actions.pod:1671
27424 "This command is mostly useful for interactive sessions. It is I<not> "
27425 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
27430 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1678
27431 #: ../src/guestfs-actions.pod:1796 ../src/guestfs-actions.pod:2803
27432 #: ../src/guestfs-actions.pod:2827 ../src/guestfs-actions.pod:2895
27433 #: ../src/guestfs-actions.pod:4931 ../src/guestfs-actions.pod:5465
27434 #: ../src/guestfs-actions.pod:7459 ../src/guestfs-actions.pod:7483
27435 #: ../src/guestfs-actions.pod:8102 ../src/guestfs-actions.pod:8115
27436 #: ../src/guestfs-actions.pod:8128
27437 msgid "(Added in 1.0.54)"
27438 msgstr "(Додано у 1.0.54)"
27441 #: ../src/guestfs-actions.pod:1663
27442 msgid "guestfs_df_h"
27446 #: ../src/guestfs-actions.pod:1665
27450 " guestfs_df_h (guestfs_h *g);\n"
27455 #: ../src/guestfs-actions.pod:1680
27456 msgid "guestfs_dmesg"
27460 #: ../src/guestfs-actions.pod:1682
27464 " guestfs_dmesg (guestfs_h *g);\n"
27469 #: ../src/guestfs-actions.pod:1689
27471 "Another way to get the same information is to enable verbose messages with "
27472 "C<guestfs_set_verbose> or by setting the environment variable "
27473 "C<LIBGUESTFS_DEBUG=1> before running the program."
27477 #: ../src/guestfs-actions.pod:1699
27478 msgid "guestfs_download"
27482 #: ../src/guestfs-actions.pod:1701
27486 " guestfs_download (guestfs_h *g,\n"
27487 " const char *remotefilename,\n"
27488 " const char *filename);\n"
27493 #: ../src/guestfs-actions.pod:1711
27494 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27498 #: ../src/guestfs-actions.pod:1722
27499 msgid "guestfs_download_offset"
27503 #: ../src/guestfs-actions.pod:1724
27507 " guestfs_download_offset (guestfs_h *g,\n"
27508 " const char *remotefilename,\n"
27509 " const char *filename,\n"
27510 " int64_t offset,\n"
27511 " int64_t size);\n"
27516 #: ../src/guestfs-actions.pod:1737
27518 "Note that there is no limit on the amount of data that can be downloaded "
27519 "with this call, unlike with C<guestfs_pread>, and this call always reads the"
27520 " full amount unless an error occurs."
27524 #: ../src/guestfs-actions.pod:1742
27525 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27529 #: ../src/guestfs-actions.pod:1751 ../src/guestfs-actions.pod:7760
27530 msgid "(Added in 1.5.17)"
27531 msgstr "(Додано у 1.5.17)"
27534 #: ../src/guestfs-actions.pod:1753
27535 msgid "guestfs_drop_caches"
27539 #: ../src/guestfs-actions.pod:1755
27543 " guestfs_drop_caches (guestfs_h *g,\n"
27544 " int whattodrop);\n"
27549 #: ../src/guestfs-actions.pod:1773
27554 #: ../src/guestfs-actions.pod:1775
27558 " guestfs_du (guestfs_h *g,\n"
27559 " const char *path);\n"
27564 #: ../src/guestfs-actions.pod:1798
27565 msgid "guestfs_e2fsck_f"
27569 #: ../src/guestfs-actions.pod:1800
27573 " guestfs_e2fsck_f (guestfs_h *g,\n"
27574 " const char *device);\n"
27579 #: ../src/guestfs-actions.pod:1808
27581 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
27582 "Normally you should use C<guestfs_fsck>."
27586 #: ../src/guestfs-actions.pod:1813
27587 msgid "(Added in 1.0.29)"
27588 msgstr "(Додано у 1.0.29)"
27591 #: ../src/guestfs-actions.pod:1815
27592 msgid "guestfs_echo_daemon"
27593 msgstr "guestfs_echo_daemon"
27596 #: ../src/guestfs-actions.pod:1817
27600 " guestfs_echo_daemon (guestfs_h *g,\n"
27601 " char *const *words);\n"
27605 " guestfs_echo_daemon (guestfs_h *g,\n"
27606 " char *const *words);\n"
27610 #: ../src/guestfs-actions.pod:1826
27611 msgid "See also C<guestfs_ping_daemon>."
27615 #: ../src/guestfs-actions.pod:1831 ../src/guestfs-actions.pod:2589
27616 #: ../src/guestfs-actions.pod:6931
27617 msgid "(Added in 1.0.69)"
27618 msgstr "(Додано у 1.0.69)"
27621 #: ../src/guestfs-actions.pod:1833
27622 msgid "guestfs_egrep"
27623 msgstr "guestfs_egrep"
27626 #: ../src/guestfs-actions.pod:1835
27630 " guestfs_egrep (guestfs_h *g,\n"
27631 " const char *regex,\n"
27632 " const char *path);\n"
27636 " guestfs_egrep (guestfs_h *g,\n"
27637 " const char *regex,\n"
27638 " const char *path);\n"
27642 #: ../src/guestfs-actions.pod:1850 ../src/guestfs-actions.pod:1869
27643 #: ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1972
27644 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2719
27645 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:2916
27646 #: ../src/guestfs-actions.pod:2929 ../src/guestfs-actions.pod:2944
27647 #: ../src/guestfs-actions.pod:2990 ../src/guestfs-actions.pod:3012
27648 #: ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:4311
27649 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4338
27650 #: ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:5353
27651 #: ../src/guestfs-actions.pod:6392 ../src/guestfs-actions.pod:6441
27652 #: ../src/guestfs-actions.pod:7327 ../src/guestfs-actions.pod:7339
27653 #: ../src/guestfs-actions.pod:7352 ../src/guestfs-actions.pod:7365
27654 #: ../src/guestfs-actions.pod:7387 ../src/guestfs-actions.pod:7400
27655 #: ../src/guestfs-actions.pod:7413 ../src/guestfs-actions.pod:7426
27656 #: ../src/guestfs-actions.pod:8220 ../src/guestfs-actions.pod:8239
27657 #: ../src/guestfs-actions.pod:8333 ../src/guestfs-actions.pod:8352
27658 #: ../src/guestfs-actions.pod:8398 ../src/guestfs-actions.pod:8417
27659 msgid "(Added in 1.0.66)"
27660 msgstr "(Додано у 1.0.66)"
27663 #: ../src/guestfs-actions.pod:1852
27664 msgid "guestfs_egrepi"
27665 msgstr "guestfs_egrepi"
27668 #: ../src/guestfs-actions.pod:1854
27672 " guestfs_egrepi (guestfs_h *g,\n"
27673 " const char *regex,\n"
27674 " const char *path);\n"
27679 #: ../src/guestfs-actions.pod:1871
27680 msgid "guestfs_equal"
27684 #: ../src/guestfs-actions.pod:1873
27688 " guestfs_equal (guestfs_h *g,\n"
27689 " const char *file1,\n"
27690 " const char *file2);\n"
27695 #: ../src/guestfs-actions.pod:1887
27696 msgid "guestfs_exists"
27700 #: ../src/guestfs-actions.pod:1889
27704 " guestfs_exists (guestfs_h *g,\n"
27705 " const char *path);\n"
27710 #: ../src/guestfs-actions.pod:1896
27711 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27715 #: ../src/guestfs-actions.pod:1902
27716 msgid "guestfs_fallocate"
27720 #: ../src/guestfs-actions.pod:1904
27724 " guestfs_fallocate (guestfs_h *g,\n"
27725 " const char *path,\n"
27731 #: ../src/guestfs-actions.pod:1909
27733 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64>"
27738 #: ../src/guestfs-actions.pod:1928
27739 msgid "guestfs_fallocate64"
27743 #: ../src/guestfs-actions.pod:1930
27747 " guestfs_fallocate64 (guestfs_h *g,\n"
27748 " const char *path,\n"
27754 #: ../src/guestfs-actions.pod:1939
27756 "Note that this call allocates disk blocks for the file. To create a sparse "
27757 "file use C<guestfs_truncate_size> instead."
27761 #: ../src/guestfs-actions.pod:1942
27763 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27764 "oversight it only allowed 30 bit lengths to be specified, effectively "
27765 "limiting the maximum size of files created through that call to 1GB."
27769 #: ../src/guestfs-actions.pod:1953
27770 msgid "(Added in 1.3.17)"
27771 msgstr "(Додано у 1.3.17)"
27774 #: ../src/guestfs-actions.pod:1955
27775 msgid "guestfs_fgrep"
27779 #: ../src/guestfs-actions.pod:1957
27783 " guestfs_fgrep (guestfs_h *g,\n"
27784 " const char *pattern,\n"
27785 " const char *path);\n"
27790 #: ../src/guestfs-actions.pod:1974
27791 msgid "guestfs_fgrepi"
27795 #: ../src/guestfs-actions.pod:1976
27799 " guestfs_fgrepi (guestfs_h *g,\n"
27800 " const char *pattern,\n"
27801 " const char *path);\n"
27806 #: ../src/guestfs-actions.pod:1993
27807 msgid "guestfs_file"
27811 #: ../src/guestfs-actions.pod:1995
27815 " guestfs_file (guestfs_h *g,\n"
27816 " const char *path);\n"
27821 #: ../src/guestfs-actions.pod:2013
27823 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27824 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27828 #: ../src/guestfs-actions.pod:2021
27829 msgid "guestfs_file_architecture"
27833 #: ../src/guestfs-actions.pod:2023
27837 " guestfs_file_architecture (guestfs_h *g,\n"
27838 " const char *filename);\n"
27843 #: ../src/guestfs-actions.pod:2131 ../src/guestfs-actions.pod:2294
27844 #: ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:3045
27845 #: ../src/guestfs-actions.pod:3147 ../src/guestfs-actions.pod:3213
27846 #: ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3418
27847 #: ../src/guestfs-actions.pod:3458 ../src/guestfs-actions.pod:3534
27848 #: ../src/guestfs-actions.pod:3631 ../src/guestfs-actions.pod:3868
27849 #: ../src/guestfs-actions.pod:4000
27850 msgid "(Added in 1.5.3)"
27851 msgstr "(Додано у 1.5.3)"
27854 #: ../src/guestfs-actions.pod:2133
27855 msgid "guestfs_filesize"
27859 #: ../src/guestfs-actions.pod:2135
27863 " guestfs_filesize (guestfs_h *g,\n"
27864 " const char *file);\n"
27869 #: ../src/guestfs-actions.pod:2141
27871 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27872 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
27873 "devices, use C<guestfs_blockdev_getsize64>."
27877 #: ../src/guestfs-actions.pod:2147
27878 msgid "(Added in 1.0.82)"
27879 msgstr "(Додано у 1.0.82)"
27882 #: ../src/guestfs-actions.pod:2149
27883 msgid "guestfs_fill"
27887 #: ../src/guestfs-actions.pod:2151
27891 " guestfs_fill (guestfs_h *g,\n"
27894 " const char *path);\n"
27899 #: ../src/guestfs-actions.pod:2161
27901 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27902 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
27903 "bytes use C<guestfs_fill_pattern>."
27907 #: ../src/guestfs-actions.pod:2173
27908 msgid "(Added in 1.0.79)"
27909 msgstr "(Додано у 1.0.79)"
27912 #: ../src/guestfs-actions.pod:2175
27913 msgid "guestfs_fill_pattern"
27917 #: ../src/guestfs-actions.pod:2177
27921 " guestfs_fill_pattern (guestfs_h *g,\n"
27922 " const char *pattern,\n"
27924 " const char *path);\n"
27929 #: ../src/guestfs-actions.pod:2183
27931 "This function is like C<guestfs_fill> except that it creates a new file of "
27932 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
27933 "pattern is truncated if necessary to ensure the length of the file is "
27934 "exactly C<len> bytes."
27938 #: ../src/guestfs-actions.pod:2195
27939 msgid "(Added in 1.3.12)"
27940 msgstr "(Додано у 1.3.12)"
27943 #: ../src/guestfs-actions.pod:2197
27944 msgid "guestfs_find"
27948 #: ../src/guestfs-actions.pod:2199
27952 " guestfs_find (guestfs_h *g,\n"
27953 " const char *directory);\n"
27958 #: ../src/guestfs-actions.pod:2215
27960 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27964 #: ../src/guestfs-actions.pod:2228
27965 msgid "See also C<guestfs_find0>."
27969 #: ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:4758
27970 #: ../src/guestfs-actions.pod:6476
27971 msgid "(Added in 1.0.27)"
27972 msgstr "(Додано у 1.0.27)"
27975 #: ../src/guestfs-actions.pod:2239
27976 msgid "guestfs_find0"
27980 #: ../src/guestfs-actions.pod:2241
27984 " guestfs_find0 (guestfs_h *g,\n"
27985 " const char *directory,\n"
27986 " const char *files);\n"
27991 #: ../src/guestfs-actions.pod:2250
27993 "This command works the same way as C<guestfs_find> with the following "
27998 #: ../src/guestfs-actions.pod:2277
27999 msgid "(Added in 1.0.74)"
28000 msgstr "(Додано у 1.0.74)"
28003 #: ../src/guestfs-actions.pod:2279
28004 msgid "guestfs_findfs_label"
28008 #: ../src/guestfs-actions.pod:2281
28012 " guestfs_findfs_label (guestfs_h *g,\n"
28013 " const char *label);\n"
28018 #: ../src/guestfs-actions.pod:2289
28019 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28023 #: ../src/guestfs-actions.pod:2296
28024 msgid "guestfs_findfs_uuid"
28028 #: ../src/guestfs-actions.pod:2298
28032 " guestfs_findfs_uuid (guestfs_h *g,\n"
28033 " const char *uuid);\n"
28038 #: ../src/guestfs-actions.pod:2306
28039 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28043 #: ../src/guestfs-actions.pod:2313
28044 msgid "guestfs_fsck"
28048 #: ../src/guestfs-actions.pod:2315
28052 " guestfs_fsck (guestfs_h *g,\n"
28053 " const char *fstype,\n"
28054 " const char *device);\n"
28059 #: ../src/guestfs-actions.pod:2350 ../src/guestfs-actions.pod:8267
28060 msgid "(Added in 1.0.16)"
28061 msgstr "(Додано у 1.0.16)"
28064 #: ../src/guestfs-actions.pod:2352
28065 msgid "guestfs_get_append"
28069 #: ../src/guestfs-actions.pod:2354
28073 " guestfs_get_append (guestfs_h *g);\n"
28078 #: ../src/guestfs-actions.pod:2362
28080 "This function returns a string which may be NULL. There is no way to return"
28081 " an error from this function. The string is owned by the guest handle and "
28082 "must I<not> be freed."
28086 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:6154
28087 #: ../src/guestfs-actions.pod:6636 ../src/guestfs-actions.pod:7094
28088 #: ../src/guestfs-actions.pod:7113 ../src/guestfs-actions.pod:7129
28089 #: ../src/guestfs-actions.pod:7153 ../src/guestfs-actions.pod:7907
28090 #: ../src/guestfs-actions.pod:7922 ../src/guestfs-actions.pod:8314
28091 msgid "(Added in 1.0.26)"
28092 msgstr "(Додано у 1.0.26)"
28095 #: ../src/guestfs-actions.pod:2368
28096 msgid "guestfs_get_attach_method"
28100 #: ../src/guestfs-actions.pod:2370
28104 " guestfs_get_attach_method (guestfs_h *g);\n"
28109 #: ../src/guestfs-actions.pod:2373
28110 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
28114 #: ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:6666
28115 msgid "(Added in 1.9.8)"
28116 msgstr "(Додано у 1.9.8)"
28119 #: ../src/guestfs-actions.pod:2380
28120 msgid "guestfs_get_autosync"
28124 #: ../src/guestfs-actions.pod:2382
28128 " guestfs_get_autosync (guestfs_h *g);\n"
28133 #: ../src/guestfs-actions.pod:2391
28134 msgid "guestfs_get_direct"
28138 #: ../src/guestfs-actions.pod:2393
28142 " guestfs_get_direct (guestfs_h *g);\n"
28147 #: ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:6707
28148 msgid "(Added in 1.0.72)"
28149 msgstr "(Додано у 1.0.72)"
28152 #: ../src/guestfs-actions.pod:2402
28153 msgid "guestfs_get_e2label"
28157 #: ../src/guestfs-actions.pod:2404
28161 " guestfs_get_e2label (guestfs_h *g,\n"
28162 " const char *device);\n"
28167 #: ../src/guestfs-actions.pod:2408
28169 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28174 #: ../src/guestfs-actions.pod:2421 ../src/guestfs-actions.pod:2442
28175 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-actions.pod:6744
28176 msgid "(Added in 1.0.15)"
28177 msgstr "(Додано у 1.0.15)"
28180 #: ../src/guestfs-actions.pod:2423
28181 msgid "guestfs_get_e2uuid"
28185 #: ../src/guestfs-actions.pod:2425
28189 " guestfs_get_e2uuid (guestfs_h *g,\n"
28190 " const char *device);\n"
28195 #: ../src/guestfs-actions.pod:2429
28197 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28202 #: ../src/guestfs-actions.pod:2444
28203 msgid "guestfs_get_memsize"
28207 #: ../src/guestfs-actions.pod:2446
28211 " guestfs_get_memsize (guestfs_h *g);\n"
28216 #: ../src/guestfs-actions.pod:2452
28218 "If C<guestfs_set_memsize> was not called on this handle, and if "
28219 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default"
28220 " value for memsize."
28224 #: ../src/guestfs-actions.pod:2461 ../src/guestfs-actions.pod:5049
28225 #: ../src/guestfs-actions.pod:5258 ../src/guestfs-actions.pod:5277
28226 #: ../src/guestfs-actions.pod:5296 ../src/guestfs-actions.pod:5308
28227 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5338
28228 #: ../src/guestfs-actions.pod:6379 ../src/guestfs-actions.pod:6765
28229 #: ../src/guestfs-actions.pod:7061 ../src/guestfs-actions.pod:7676
28230 msgid "(Added in 1.0.55)"
28231 msgstr "(Додано у 1.0.55)"
28234 #: ../src/guestfs-actions.pod:2463
28235 msgid "guestfs_get_network"
28239 #: ../src/guestfs-actions.pod:2465
28243 " guestfs_get_network (guestfs_h *g);\n"
28248 #: ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:6784
28249 msgid "(Added in 1.5.4)"
28250 msgstr "(Додано у 1.5.4)"
28253 #: ../src/guestfs-actions.pod:2474
28254 msgid "guestfs_get_path"
28258 #: ../src/guestfs-actions.pod:2476
28262 " guestfs_get_path (guestfs_h *g);\n"
28267 #: ../src/guestfs-actions.pod:2484 ../src/guestfs-actions.pod:2524
28269 "This function returns a string, or NULL on error. The string is owned by "
28270 "the guest handle and must I<not> be freed."
28274 #: ../src/guestfs-actions.pod:2489
28275 msgid "guestfs_get_pgroup"
28279 #: ../src/guestfs-actions.pod:2491
28283 " guestfs_get_pgroup (guestfs_h *g);\n"
28288 #: ../src/guestfs-actions.pod:2498 ../src/guestfs-actions.pod:6820
28289 #: ../src/guestfs-actions.pod:8168
28290 msgid "(Added in 1.11.18)"
28291 msgstr "(Додано у 1.11.18)"
28294 #: ../src/guestfs-actions.pod:2500
28295 msgid "guestfs_get_pid"
28299 #: ../src/guestfs-actions.pod:2502
28303 " guestfs_get_pid (guestfs_h *g);\n"
28308 #: ../src/guestfs-actions.pod:2512
28309 msgid "(Added in 1.0.56)"
28310 msgstr "(Додано у 1.0.56)"
28313 #: ../src/guestfs-actions.pod:2514
28314 msgid "guestfs_get_qemu"
28318 #: ../src/guestfs-actions.pod:2516
28322 " guestfs_get_qemu (guestfs_h *g);\n"
28327 #: ../src/guestfs-actions.pod:2527 ../src/guestfs-actions.pod:6848
28328 msgid "(Added in 1.0.6)"
28329 msgstr "(Додано у 1.0.6)"
28332 #: ../src/guestfs-actions.pod:2529
28333 msgid "guestfs_get_recovery_proc"
28337 #: ../src/guestfs-actions.pod:2531
28341 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28346 #: ../src/guestfs-actions.pod:2538 ../src/guestfs-actions.pod:4122
28347 #: ../src/guestfs-actions.pod:4453 ../src/guestfs-actions.pod:4856
28348 #: ../src/guestfs-actions.pod:4888 ../src/guestfs-actions.pod:6084
28349 #: ../src/guestfs-actions.pod:6427 ../src/guestfs-actions.pod:6872
28350 #: ../src/guestfs-actions.pod:7579 ../src/guestfs-actions.pod:7599
28351 #: ../src/guestfs-actions.pod:7791
28352 msgid "(Added in 1.0.77)"
28353 msgstr "(Додано у 1.0.77)"
28356 #: ../src/guestfs-actions.pod:2540
28357 msgid "guestfs_get_selinux"
28361 #: ../src/guestfs-actions.pod:2542
28365 " guestfs_get_selinux (guestfs_h *g);\n"
28370 #: ../src/guestfs-actions.pod:2545
28372 "This returns the current setting of the selinux flag which is passed to the "
28373 "appliance at boot time. See C<guestfs_set_selinux>."
28377 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2627
28378 #: ../src/guestfs-actions.pod:6891 ../src/guestfs-actions.pod:6965
28379 msgid "(Added in 1.0.67)"
28380 msgstr "(Додано у 1.0.67)"
28383 #: ../src/guestfs-actions.pod:2555
28384 msgid "guestfs_get_smp"
28388 #: ../src/guestfs-actions.pod:2557
28392 " guestfs_get_smp (guestfs_h *g);\n"
28397 #: ../src/guestfs-actions.pod:2566
28398 msgid "guestfs_get_state"
28402 #: ../src/guestfs-actions.pod:2568
28406 " guestfs_get_state (guestfs_h *g);\n"
28411 #: ../src/guestfs-actions.pod:2580
28412 msgid "guestfs_get_trace"
28416 #: ../src/guestfs-actions.pod:2582
28420 " guestfs_get_trace (guestfs_h *g);\n"
28425 #: ../src/guestfs-actions.pod:2591
28426 msgid "guestfs_get_umask"
28430 #: ../src/guestfs-actions.pod:2593
28434 " guestfs_get_umask (guestfs_h *g);\n"
28439 #: ../src/guestfs-actions.pod:2596
28441 "Return the current umask. By default the umask is C<022> unless it has been"
28442 " set by calling C<guestfs_umask>."
28446 #: ../src/guestfs-actions.pod:2603
28447 msgid "guestfs_get_verbose"
28451 #: ../src/guestfs-actions.pod:2605
28455 " guestfs_get_verbose (guestfs_h *g);\n"
28460 #: ../src/guestfs-actions.pod:2614
28461 msgid "guestfs_getcon"
28465 #: ../src/guestfs-actions.pod:2616
28469 " guestfs_getcon (guestfs_h *g);\n"
28474 #: ../src/guestfs-actions.pod:2621
28476 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28480 #: ../src/guestfs-actions.pod:2629
28481 msgid "guestfs_getxattr"
28485 #: ../src/guestfs-actions.pod:2631
28489 " guestfs_getxattr (guestfs_h *g,\n"
28490 " const char *path,\n"
28491 " const char *name,\n"
28492 " size_t *size_r);\n"
28497 #: ../src/guestfs-actions.pod:2637
28499 "Get a single extended attribute from file C<path> named C<name>. This call "
28500 "follows symlinks. If you want to lookup an extended attribute for the "
28501 "symlink itself, use C<guestfs_lgetxattr>."
28505 #: ../src/guestfs-actions.pod:2641 ../src/guestfs-actions.pod:4136
28507 "Normally it is better to get all extended attributes from a file in one go "
28508 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
28509 "implementations are buggy and do not provide a way to list out attributes. "
28510 "For these filesystems (notably ntfs-3g) you have to know the names of the "
28511 "extended attributes you want in advance and call this function."
28515 #: ../src/guestfs-actions.pod:2651
28516 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28520 #: ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2866
28521 #: ../src/guestfs-actions.pod:3348 ../src/guestfs-actions.pod:4148
28522 #: ../src/guestfs-actions.pod:6077 ../src/guestfs-actions.pod:6103
28523 #: ../src/guestfs-actions.pod:6284
28525 "This function returns a buffer, or NULL on error. The size of the returned "
28526 "buffer is written to C<*size_r>. I<The caller must free the returned buffer"
28531 #: ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:4152
28532 msgid "(Added in 1.7.24)"
28533 msgstr "(Додано у 1.7.24)"
28536 #: ../src/guestfs-actions.pod:2659
28537 msgid "guestfs_getxattrs"
28541 #: ../src/guestfs-actions.pod:2661
28544 " struct guestfs_xattr_list *\n"
28545 " guestfs_getxattrs (guestfs_h *g,\n"
28546 " const char *path);\n"
28551 #: ../src/guestfs-actions.pod:2671
28552 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28556 #: ../src/guestfs-actions.pod:2673 ../src/guestfs-actions.pod:4164
28557 #: ../src/guestfs-actions.pod:4852
28559 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was"
28560 " an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
28564 #: ../src/guestfs-actions.pod:2677 ../src/guestfs-actions.pod:4168
28565 #: ../src/guestfs-actions.pod:4367 ../src/guestfs-actions.pod:4403
28566 #: ../src/guestfs-actions.pod:6457 ../src/guestfs-actions.pod:6984
28567 #: ../src/guestfs-actions.pod:8379
28568 msgid "(Added in 1.0.59)"
28569 msgstr "(Додано у 1.0.59)"
28572 #: ../src/guestfs-actions.pod:2679
28573 msgid "guestfs_glob_expand"
28577 #: ../src/guestfs-actions.pod:2681
28581 " guestfs_glob_expand (guestfs_h *g,\n"
28582 " const char *pattern);\n"
28587 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:7177
28588 #: ../src/guestfs-actions.pod:7194
28589 msgid "(Added in 1.0.50)"
28590 msgstr "(Додано у 1.0.50)"
28593 #: ../src/guestfs-actions.pod:2702
28594 msgid "guestfs_grep"
28598 #: ../src/guestfs-actions.pod:2704
28602 " guestfs_grep (guestfs_h *g,\n"
28603 " const char *regex,\n"
28604 " const char *path);\n"
28609 #: ../src/guestfs-actions.pod:2721
28610 msgid "guestfs_grepi"
28614 #: ../src/guestfs-actions.pod:2723
28618 " guestfs_grepi (guestfs_h *g,\n"
28619 " const char *regex,\n"
28620 " const char *path);\n"
28625 #: ../src/guestfs-actions.pod:2740
28626 msgid "guestfs_grub_install"
28630 #: ../src/guestfs-actions.pod:2742
28634 " guestfs_grub_install (guestfs_h *g,\n"
28635 " const char *root,\n"
28636 " const char *device);\n"
28641 #: ../src/guestfs-actions.pod:2785
28642 msgid "(Added in 1.0.17)"
28643 msgstr "(Додано у 1.0.17)"
28646 #: ../src/guestfs-actions.pod:2787
28647 msgid "guestfs_head"
28651 #: ../src/guestfs-actions.pod:2789
28655 " guestfs_head (guestfs_h *g,\n"
28656 " const char *path);\n"
28661 #: ../src/guestfs-actions.pod:2805
28662 msgid "guestfs_head_n"
28666 #: ../src/guestfs-actions.pod:2807
28670 " guestfs_head_n (guestfs_h *g,\n"
28672 " const char *path);\n"
28677 #: ../src/guestfs-actions.pod:2829
28678 msgid "guestfs_hexdump"
28682 #: ../src/guestfs-actions.pod:2831
28686 " guestfs_hexdump (guestfs_h *g,\n"
28687 " const char *path);\n"
28692 #: ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:7258
28693 #: ../src/guestfs-actions.pod:7313
28694 msgid "(Added in 1.0.22)"
28695 msgstr "(Додано у 1.0.22)"
28698 #: ../src/guestfs-actions.pod:2846
28699 msgid "guestfs_initrd_cat"
28703 #: ../src/guestfs-actions.pod:2848
28707 " guestfs_initrd_cat (guestfs_h *g,\n"
28708 " const char *initrdpath,\n"
28709 " const char *filename,\n"
28710 " size_t *size_r);\n"
28715 #: ../src/guestfs-actions.pod:2864
28716 msgid "See also C<guestfs_initrd_list>."
28720 #: ../src/guestfs-actions.pod:2875
28721 msgid "guestfs_initrd_list"
28725 #: ../src/guestfs-actions.pod:2877
28729 " guestfs_initrd_list (guestfs_h *g,\n"
28730 " const char *path);\n"
28735 #: ../src/guestfs-actions.pod:2897
28736 msgid "guestfs_inotify_add_watch"
28740 #: ../src/guestfs-actions.pod:2899
28744 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28745 " const char *path,\n"
28751 #: ../src/guestfs-actions.pod:2918
28752 msgid "guestfs_inotify_close"
28756 #: ../src/guestfs-actions.pod:2920
28760 " guestfs_inotify_close (guestfs_h *g);\n"
28765 #: ../src/guestfs-actions.pod:2931
28766 msgid "guestfs_inotify_files"
28770 #: ../src/guestfs-actions.pod:2933
28774 " guestfs_inotify_files (guestfs_h *g);\n"
28779 #: ../src/guestfs-actions.pod:2936
28781 "This function is a helpful wrapper around C<guestfs_inotify_read> which just"
28782 " returns a list of pathnames of objects that were touched. The returned "
28783 "pathnames are sorted and deduplicated."
28787 #: ../src/guestfs-actions.pod:2946
28788 msgid "guestfs_inotify_init"
28792 #: ../src/guestfs-actions.pod:2948
28796 " guestfs_inotify_init (guestfs_h *g,\n"
28797 " int maxevents);\n"
28802 #: ../src/guestfs-actions.pod:2956
28804 "C<maxevents> is the maximum number of events which will be queued up between"
28805 " calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
28806 "passed as C<0>, then the kernel (or previously set) default is used. For "
28807 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
28808 "throws away events, but records the fact that it threw them away by setting "
28809 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28810 "C<guestfs_inotify_read>)."
28814 #: ../src/guestfs-actions.pod:2966
28816 "Before any events are generated, you have to add some watches to the "
28817 "internal watch list. See: C<guestfs_inotify_add_watch>, "
28818 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28822 #: ../src/guestfs-actions.pod:2972
28824 "Queued up events should be read periodically by calling "
28825 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful"
28826 " wrapper around C<guestfs_inotify_read>). If you don't read the events out "
28827 "often enough then you risk the internal queue overflowing."
28831 #: ../src/guestfs-actions.pod:2979
28833 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
28834 "This also removes any watches automatically."
28838 #: ../src/guestfs-actions.pod:2992
28839 msgid "guestfs_inotify_read"
28843 #: ../src/guestfs-actions.pod:2994
28846 " struct guestfs_inotify_event_list *\n"
28847 " guestfs_inotify_read (guestfs_h *g);\n"
28852 #: ../src/guestfs-actions.pod:3008
28854 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28855 "there was an error. I<The caller must call "
28856 "C<guestfs_free_inotify_event_list> after use>."
28860 #: ../src/guestfs-actions.pod:3014
28861 msgid "guestfs_inotify_rm_watch"
28865 #: ../src/guestfs-actions.pod:3016
28869 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28875 #: ../src/guestfs-actions.pod:3020
28877 "Remove a previously defined inotify watch. See "
28878 "C<guestfs_inotify_add_watch>."
28882 #: ../src/guestfs-actions.pod:3027
28883 msgid "guestfs_inspect_get_arch"
28887 #: ../src/guestfs-actions.pod:3029
28891 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28892 " const char *root);\n"
28897 #: ../src/guestfs-actions.pod:3033
28899 "This returns the architecture of the inspected operating system. The "
28900 "possible return values are listed under C<guestfs_file_architecture>."
28904 #: ../src/guestfs-actions.pod:3047
28905 msgid "guestfs_inspect_get_distro"
28909 #: ../src/guestfs-actions.pod:3049
28913 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28914 " const char *root);\n"
28919 #: ../src/guestfs-actions.pod:3149
28920 msgid "guestfs_inspect_get_drive_mappings"
28924 #: ../src/guestfs-actions.pod:3151
28928 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28929 " const char *root);\n"
28934 #: ../src/guestfs-actions.pod:3180
28936 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28937 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28941 #: ../src/guestfs-actions.pod:3184 ../src/guestfs-actions.pod:3452
28942 #: ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:5527
28943 #: ../src/guestfs-actions.pod:7615
28945 "This function returns a NULL-terminated array of strings, or NULL if there "
28946 "was an error. The array of strings will always have length C<2n+1>, where "
28947 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
28948 "caller must free the strings and the array after use>."
28952 #: ../src/guestfs-actions.pod:3190 ../src/guestfs-actions.pod:3651
28953 msgid "(Added in 1.9.17)"
28954 msgstr "(Додано у 1.9.17)"
28957 #: ../src/guestfs-actions.pod:3192
28958 msgid "guestfs_inspect_get_filesystems"
28962 #: ../src/guestfs-actions.pod:3194
28966 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28967 " const char *root);\n"
28972 #: ../src/guestfs-actions.pod:3206
28974 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28975 "C<guestfs_inspect_get_mountpoints>."
28979 #: ../src/guestfs-actions.pod:3215
28980 msgid "guestfs_inspect_get_format"
28984 #: ../src/guestfs-actions.pod:3217
28988 " guestfs_inspect_get_format (guestfs_h *g,\n"
28989 " const char *root);\n"
28994 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3687
28995 #: ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:3721
28996 #: ../src/guestfs-actions.pod:6495
28997 msgid "(Added in 1.9.4)"
28998 msgstr "(Додано у 1.9.4)"
29001 #: ../src/guestfs-actions.pod:3253
29002 msgid "guestfs_inspect_get_hostname"
29006 #: ../src/guestfs-actions.pod:3255
29010 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29011 " const char *root);\n"
29016 #: ../src/guestfs-actions.pod:3270
29017 msgid "(Added in 1.7.9)"
29018 msgstr "(Додано у 1.7.9)"
29021 #: ../src/guestfs-actions.pod:3272
29022 msgid "guestfs_inspect_get_icon"
29026 #: ../src/guestfs-actions.pod:3274
29030 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29031 " const char *root,\n"
29032 " size_t *size_r,\n"
29038 #: ../src/guestfs-actions.pod:3285
29041 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29042 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29047 #: ../src/guestfs-actions.pod:3352 ../src/guestfs-actions.pod:4182
29048 #: ../src/guestfs-actions.pod:5426
29049 msgid "(Added in 1.11.12)"
29050 msgstr "(Додано у 1.11.12)"
29053 #: ../src/guestfs-actions.pod:3354
29054 msgid "guestfs_inspect_get_icon_va"
29058 #: ../src/guestfs-actions.pod:3356
29062 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29063 " const char *root,\n"
29064 " size_t *size_r,\n"
29065 " va_list args);\n"
29070 #: ../src/guestfs-actions.pod:3362
29071 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29075 #: ../src/guestfs-actions.pod:3366
29076 msgid "guestfs_inspect_get_icon_argv"
29080 #: ../src/guestfs-actions.pod:3368
29084 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29085 " const char *root,\n"
29086 " size_t *size_r,\n"
29087 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
29092 #: ../src/guestfs-actions.pod:3374
29093 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29097 #: ../src/guestfs-actions.pod:3378
29098 msgid "guestfs_inspect_get_major_version"
29102 #: ../src/guestfs-actions.pod:3380
29106 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29107 " const char *root);\n"
29112 #: ../src/guestfs-actions.pod:3402
29113 msgid "guestfs_inspect_get_minor_version"
29117 #: ../src/guestfs-actions.pod:3404
29121 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29122 " const char *root);\n"
29127 #: ../src/guestfs-actions.pod:3413
29129 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29130 "C<guestfs_inspect_get_major_version>."
29134 #: ../src/guestfs-actions.pod:3420
29135 msgid "guestfs_inspect_get_mountpoints"
29139 #: ../src/guestfs-actions.pod:3422
29143 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29144 " const char *root);\n"
29149 #: ../src/guestfs-actions.pod:3443
29151 "For operating systems like Windows which still use drive letters, this call "
29152 "will only return an entry for the first drive \"mounted on\" C</>. For "
29153 "information about the mapping of drive letters to partitions, see "
29154 "C<guestfs_inspect_get_drive_mappings>."
29158 #: ../src/guestfs-actions.pod:3449
29160 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29161 "C<guestfs_inspect_get_filesystems>."
29165 #: ../src/guestfs-actions.pod:3460
29166 msgid "guestfs_inspect_get_package_format"
29170 #: ../src/guestfs-actions.pod:3462
29174 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29175 " const char *root);\n"
29180 #: ../src/guestfs-actions.pod:3466
29182 "This function and C<guestfs_inspect_get_package_management> return the "
29183 "package format and package management tool used by the inspected operating "
29184 "system. For example for Fedora these functions would return C<rpm> (package"
29185 " format) and C<yum> (package management)."
29189 #: ../src/guestfs-actions.pod:3485 ../src/guestfs-actions.pod:3513
29190 msgid "(Added in 1.7.5)"
29191 msgstr "(Додано у 1.7.5)"
29194 #: ../src/guestfs-actions.pod:3487
29195 msgid "guestfs_inspect_get_package_management"
29199 #: ../src/guestfs-actions.pod:3489
29203 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29204 " const char *root);\n"
29209 #: ../src/guestfs-actions.pod:3493
29211 "C<guestfs_inspect_get_package_format> and this function return the package "
29212 "format and package management tool used by the inspected operating system. "
29213 "For example for Fedora these functions would return C<rpm> (package format) "
29214 "and C<yum> (package management)."
29218 #: ../src/guestfs-actions.pod:3515
29219 msgid "guestfs_inspect_get_product_name"
29223 #: ../src/guestfs-actions.pod:3517
29227 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29228 " const char *root);\n"
29233 #: ../src/guestfs-actions.pod:3536
29234 msgid "guestfs_inspect_get_product_variant"
29238 #: ../src/guestfs-actions.pod:3538
29242 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29243 " const char *root);\n"
29248 #: ../src/guestfs-actions.pod:3561
29250 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29251 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29255 #: ../src/guestfs-actions.pod:3568
29256 msgid "(Added in 1.9.13)"
29257 msgstr "(Додано у 1.9.13)"
29260 #: ../src/guestfs-actions.pod:3570
29261 msgid "guestfs_inspect_get_roots"
29265 #: ../src/guestfs-actions.pod:3572
29269 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29274 #: ../src/guestfs-actions.pod:3575
29276 "This function is a convenient way to get the list of root devices, as "
29277 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29278 "the whole inspection process."
29282 #: ../src/guestfs-actions.pod:3579
29284 "This returns an empty list if either no root devices were found or the "
29285 "caller has not called C<guestfs_inspect_os>."
29289 #: ../src/guestfs-actions.pod:3588
29290 msgid "(Added in 1.7.3)"
29291 msgstr "(Додано у 1.7.3)"
29294 #: ../src/guestfs-actions.pod:3590
29295 msgid "guestfs_inspect_get_type"
29299 #: ../src/guestfs-actions.pod:3592
29303 " guestfs_inspect_get_type (guestfs_h *g,\n"
29304 " const char *root);\n"
29309 #: ../src/guestfs-actions.pod:3633
29310 msgid "guestfs_inspect_get_windows_current_control_set"
29314 #: ../src/guestfs-actions.pod:3635
29318 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29319 " const char *root);\n"
29324 #: ../src/guestfs-actions.pod:3653
29325 msgid "guestfs_inspect_get_windows_systemroot"
29329 #: ../src/guestfs-actions.pod:3655
29333 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29334 " const char *root);\n"
29339 #: ../src/guestfs-actions.pod:3671
29340 msgid "(Added in 1.5.25)"
29341 msgstr "(Додано у 1.5.25)"
29344 #: ../src/guestfs-actions.pod:3673
29345 msgid "guestfs_inspect_is_live"
29349 #: ../src/guestfs-actions.pod:3675
29353 " guestfs_inspect_is_live (guestfs_h *g,\n"
29354 " const char *root);\n"
29359 #: ../src/guestfs-actions.pod:3679
29361 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29362 "disk), then this returns true if a live image was detected on the disk."
29366 #: ../src/guestfs-actions.pod:3689
29367 msgid "guestfs_inspect_is_multipart"
29371 #: ../src/guestfs-actions.pod:3691
29375 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29376 " const char *root);\n"
29381 #: ../src/guestfs-actions.pod:3695
29383 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29384 "disk), then this returns true if the disk is part of a set."
29388 #: ../src/guestfs-actions.pod:3705
29389 msgid "guestfs_inspect_is_netinst"
29393 #: ../src/guestfs-actions.pod:3707
29397 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29398 " const char *root);\n"
29403 #: ../src/guestfs-actions.pod:3711
29405 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29406 "disk), then this returns true if the disk is a network installer, ie. not a "
29407 "self-contained install CD but one which is likely to require network access "
29408 "to complete the install."
29412 #: ../src/guestfs-actions.pod:3723
29413 msgid "guestfs_inspect_list_applications"
29417 #: ../src/guestfs-actions.pod:3725
29420 " struct guestfs_application_list *\n"
29421 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29422 " const char *root);\n"
29427 #: ../src/guestfs-actions.pod:3731
29429 "I<Note:> This call works differently from other parts of the inspection API."
29430 " You have to call C<guestfs_inspect_os>, then "
29431 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29432 "this. Listing applications is a significantly more difficult operation "
29433 "which requires access to the full filesystem. Also note that unlike the "
29434 "other C<guestfs_inspect_get_*> calls which are just returning data cached in"
29435 " the libguestfs handle, this call actually reads parts of the mounted "
29436 "filesystems during the call."
29440 #: ../src/guestfs-actions.pod:3821
29442 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29443 "there was an error. I<The caller must call C<guestfs_free_application_list>"
29448 #: ../src/guestfs-actions.pod:3825
29449 msgid "(Added in 1.7.8)"
29450 msgstr "(Додано у 1.7.8)"
29453 #: ../src/guestfs-actions.pod:3827
29454 msgid "guestfs_inspect_os"
29458 #: ../src/guestfs-actions.pod:3829
29462 " guestfs_inspect_os (guestfs_h *g);\n"
29467 #: ../src/guestfs-actions.pod:3845
29469 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29470 "functions in order to query further information about each operating system,"
29471 " such as the name and version."
29475 #: ../src/guestfs-actions.pod:3850
29477 "This function uses other libguestfs features such as C<guestfs_mount_ro> and"
29478 " C<guestfs_umount_all> in order to mount and unmount filesystems and look at"
29479 " the contents. This should be called with no disks currently mounted. The "
29480 "function may also use Augeas, so any existing Augeas handle will be closed."
29484 #: ../src/guestfs-actions.pod:3862 ../src/guestfs-actions.pod:4193
29485 #: ../src/guestfs-actions.pod:4275
29486 msgid "See also C<guestfs_list_filesystems>."
29490 #: ../src/guestfs-actions.pod:3870
29491 msgid "guestfs_is_blockdev"
29495 #: ../src/guestfs-actions.pod:3872
29499 " guestfs_is_blockdev (guestfs_h *g,\n"
29500 " const char *path);\n"
29505 #: ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3908
29506 #: ../src/guestfs-actions.pod:3938 ../src/guestfs-actions.pod:3953
29507 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4025
29508 #: ../src/guestfs-actions.pod:4040
29509 msgid "See also C<guestfs_stat>."
29513 #: ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3912
29514 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:4029
29515 #: ../src/guestfs-actions.pod:4044
29516 msgid "(Added in 1.5.10)"
29517 msgstr "(Додано у 1.5.10)"
29520 #: ../src/guestfs-actions.pod:3885
29521 msgid "guestfs_is_busy"
29525 #: ../src/guestfs-actions.pod:3887
29529 " guestfs_is_busy (guestfs_h *g);\n"
29534 #: ../src/guestfs-actions.pod:3899
29535 msgid "guestfs_is_chardev"
29539 #: ../src/guestfs-actions.pod:3901
29543 " guestfs_is_chardev (guestfs_h *g,\n"
29544 " const char *path);\n"
29549 #: ../src/guestfs-actions.pod:3914
29550 msgid "guestfs_is_config"
29554 #: ../src/guestfs-actions.pod:3916
29558 " guestfs_is_config (guestfs_h *g);\n"
29563 #: ../src/guestfs-actions.pod:3928
29564 msgid "guestfs_is_dir"
29568 #: ../src/guestfs-actions.pod:3930
29572 " guestfs_is_dir (guestfs_h *g,\n"
29573 " const char *path);\n"
29578 #: ../src/guestfs-actions.pod:3944
29579 msgid "guestfs_is_fifo"
29583 #: ../src/guestfs-actions.pod:3946
29587 " guestfs_is_fifo (guestfs_h *g,\n"
29588 " const char *path);\n"
29593 #: ../src/guestfs-actions.pod:3959
29594 msgid "guestfs_is_file"
29598 #: ../src/guestfs-actions.pod:3961
29602 " guestfs_is_file (guestfs_h *g,\n"
29603 " const char *path);\n"
29608 #: ../src/guestfs-actions.pod:3975
29609 msgid "guestfs_is_launching"
29613 #: ../src/guestfs-actions.pod:3977
29617 " guestfs_is_launching (guestfs_h *g);\n"
29622 #: ../src/guestfs-actions.pod:3989
29623 msgid "guestfs_is_lv"
29627 #: ../src/guestfs-actions.pod:3991
29631 " guestfs_is_lv (guestfs_h *g,\n"
29632 " const char *device);\n"
29637 #: ../src/guestfs-actions.pod:4002
29638 msgid "guestfs_is_ready"
29642 #: ../src/guestfs-actions.pod:4004
29646 " guestfs_is_ready (guestfs_h *g);\n"
29651 #: ../src/guestfs-actions.pod:4016
29652 msgid "guestfs_is_socket"
29656 #: ../src/guestfs-actions.pod:4018
29660 " guestfs_is_socket (guestfs_h *g,\n"
29661 " const char *path);\n"
29666 #: ../src/guestfs-actions.pod:4031
29667 msgid "guestfs_is_symlink"
29671 #: ../src/guestfs-actions.pod:4033
29675 " guestfs_is_symlink (guestfs_h *g,\n"
29676 " const char *path);\n"
29681 #: ../src/guestfs-actions.pod:4046
29682 msgid "guestfs_is_zero"
29686 #: ../src/guestfs-actions.pod:4048
29690 " guestfs_is_zero (guestfs_h *g,\n"
29691 " const char *path);\n"
29696 #: ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4071
29697 msgid "(Added in 1.11.8)"
29698 msgstr "(Додано у 1.11.8)"
29701 #: ../src/guestfs-actions.pod:4059
29702 msgid "guestfs_is_zero_device"
29706 #: ../src/guestfs-actions.pod:4061
29710 " guestfs_is_zero_device (guestfs_h *g,\n"
29711 " const char *device);\n"
29716 #: ../src/guestfs-actions.pod:4073
29717 msgid "guestfs_kill_subprocess"
29721 #: ../src/guestfs-actions.pod:4075
29725 " guestfs_kill_subprocess (guestfs_h *g);\n"
29730 #: ../src/guestfs-actions.pod:4084
29731 msgid "guestfs_launch"
29735 #: ../src/guestfs-actions.pod:4086
29739 " guestfs_launch (guestfs_h *g);\n"
29744 #: ../src/guestfs-actions.pod:4104
29745 msgid "guestfs_lchown"
29749 #: ../src/guestfs-actions.pod:4106
29753 " guestfs_lchown (guestfs_h *g,\n"
29756 " const char *path);\n"
29761 #: ../src/guestfs-actions.pod:4112
29763 "Change the file owner to C<owner> and group to C<group>. This is like "
29764 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29765 "changed, not the target."
29769 #: ../src/guestfs-actions.pod:4124
29770 msgid "guestfs_lgetxattr"
29774 #: ../src/guestfs-actions.pod:4126
29778 " guestfs_lgetxattr (guestfs_h *g,\n"
29779 " const char *path,\n"
29780 " const char *name,\n"
29781 " size_t *size_r);\n"
29786 #: ../src/guestfs-actions.pod:4146
29787 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29791 #: ../src/guestfs-actions.pod:4154
29792 msgid "guestfs_lgetxattrs"
29796 #: ../src/guestfs-actions.pod:4156
29799 " struct guestfs_xattr_list *\n"
29800 " guestfs_lgetxattrs (guestfs_h *g,\n"
29801 " const char *path);\n"
29806 #: ../src/guestfs-actions.pod:4160
29808 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link,"
29809 " then it returns the extended attributes of the link itself."
29813 #: ../src/guestfs-actions.pod:4170
29814 msgid "guestfs_list_9p"
29818 #: ../src/guestfs-actions.pod:4172
29822 " guestfs_list_9p (guestfs_h *g);\n"
29827 #: ../src/guestfs-actions.pod:4184
29828 msgid "guestfs_list_devices"
29832 #: ../src/guestfs-actions.pod:4186
29836 " guestfs_list_devices (guestfs_h *g);\n"
29841 #: ../src/guestfs-actions.pod:4201
29842 msgid "guestfs_list_dm_devices"
29846 #: ../src/guestfs-actions.pod:4203
29850 " guestfs_list_dm_devices (guestfs_h *g);\n"
29855 #: ../src/guestfs-actions.pod:4208
29857 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29858 "previous call to C<guestfs_luks_open>."
29862 #: ../src/guestfs-actions.pod:4211
29864 "Device mapper devices which correspond to logical volumes are I<not> "
29865 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
29870 #: ../src/guestfs-actions.pod:4219 ../src/guestfs-actions.pod:5665
29871 msgid "(Added in 1.11.15)"
29872 msgstr "(Додано у 1.11.15)"
29875 #: ../src/guestfs-actions.pod:4221
29876 msgid "guestfs_list_filesystems"
29880 #: ../src/guestfs-actions.pod:4223
29884 " guestfs_list_filesystems (guestfs_h *g);\n"
29889 #: ../src/guestfs-actions.pod:4243
29891 "This command runs other libguestfs commands, which might include "
29892 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29893 "soon after launch and only when nothing is mounted."
29897 #: ../src/guestfs-actions.pod:4247
29899 "Not all of the filesystems returned will be mountable. In particular, swap "
29900 "partitions are returned in the list. Also this command does not check that "
29901 "each filesystem found is valid and mountable, and some filesystems might be "
29902 "mountable but require special options. Filesystems may not all belong to a "
29903 "single logical operating system (use C<guestfs_inspect_os> to look for "
29908 #: ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:6028
29909 msgid "(Added in 1.5.15)"
29910 msgstr "(Додано у 1.5.15)"
29913 #: ../src/guestfs-actions.pod:4263
29914 msgid "guestfs_list_partitions"
29915 msgstr "guestfs_list_partitions"
29918 #: ../src/guestfs-actions.pod:4265
29922 " guestfs_list_partitions (guestfs_h *g);\n"
29926 " guestfs_list_partitions (guestfs_h *g);\n"
29930 #: ../src/guestfs-actions.pod:4272
29932 "This does not return logical volumes. For that you will need to call "
29937 #: ../src/guestfs-actions.pod:4283
29939 msgstr "guestfs_ll"
29942 #: ../src/guestfs-actions.pod:4285
29946 " guestfs_ll (guestfs_h *g,\n"
29947 " const char *directory);\n"
29951 " guestfs_ll (guestfs_h *g,\n"
29952 " const char *directory);\n"
29956 #: ../src/guestfs-actions.pod:4300
29958 msgstr "guestfs_ln"
29961 #: ../src/guestfs-actions.pod:4302
29965 " guestfs_ln (guestfs_h *g,\n"
29966 " const char *target,\n"
29967 " const char *linkname);\n"
29971 " guestfs_ln (guestfs_h *g,\n"
29972 " const char *target,\n"
29973 " const char *linkname);\n"
29977 #: ../src/guestfs-actions.pod:4313
29978 msgid "guestfs_ln_f"
29979 msgstr "guestfs_ln_f"
29982 #: ../src/guestfs-actions.pod:4315
29986 " guestfs_ln_f (guestfs_h *g,\n"
29987 " const char *target,\n"
29988 " const char *linkname);\n"
29992 " guestfs_ln_f (guestfs_h *g,\n"
29993 " const char *target,\n"
29994 " const char *linkname);\n"
29998 #: ../src/guestfs-actions.pod:4327
29999 msgid "guestfs_ln_s"
30000 msgstr "guestfs_ln_s"
30003 #: ../src/guestfs-actions.pod:4329
30007 " guestfs_ln_s (guestfs_h *g,\n"
30008 " const char *target,\n"
30009 " const char *linkname);\n"
30013 " guestfs_ln_s (guestfs_h *g,\n"
30014 " const char *target,\n"
30015 " const char *linkname);\n"
30019 #: ../src/guestfs-actions.pod:4340
30020 msgid "guestfs_ln_sf"
30021 msgstr "guestfs_ln_sf"
30024 #: ../src/guestfs-actions.pod:4342
30028 " guestfs_ln_sf (guestfs_h *g,\n"
30029 " const char *target,\n"
30030 " const char *linkname);\n"
30034 " guestfs_ln_sf (guestfs_h *g,\n"
30035 " const char *target,\n"
30036 " const char *linkname);\n"
30040 #: ../src/guestfs-actions.pod:4354
30041 msgid "guestfs_lremovexattr"
30042 msgstr "guestfs_lremovexattr"
30045 #: ../src/guestfs-actions.pod:4356
30049 " guestfs_lremovexattr (guestfs_h *g,\n"
30050 " const char *xattr,\n"
30051 " const char *path);\n"
30055 " guestfs_lremovexattr (guestfs_h *g,\n"
30056 " const char *xattr,\n"
30057 " const char *path);\n"
30061 #: ../src/guestfs-actions.pod:4361
30063 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30064 "link, then it removes an extended attribute of the link itself."
30068 #: ../src/guestfs-actions.pod:4369
30070 msgstr "guestfs_ls"
30073 #: ../src/guestfs-actions.pod:4371
30077 " guestfs_ls (guestfs_h *g,\n"
30078 " const char *directory);\n"
30082 " guestfs_ls (guestfs_h *g,\n"
30083 " const char *directory);\n"
30087 #: ../src/guestfs-actions.pod:4379
30089 "This command is mostly useful for interactive sessions. Programs should "
30090 "probably use C<guestfs_readdir> instead."
30094 #: ../src/guestfs-actions.pod:4388
30095 msgid "guestfs_lsetxattr"
30096 msgstr "guestfs_lsetxattr"
30099 #: ../src/guestfs-actions.pod:4390
30103 " guestfs_lsetxattr (guestfs_h *g,\n"
30104 " const char *xattr,\n"
30105 " const char *val,\n"
30107 " const char *path);\n"
30111 " guestfs_lsetxattr (guestfs_h *g,\n"
30112 " const char *xattr,\n"
30113 " const char *val,\n"
30115 " const char *path);\n"
30119 #: ../src/guestfs-actions.pod:4397
30121 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30122 "then it sets an extended attribute of the link itself."
30126 #: ../src/guestfs-actions.pod:4405
30127 msgid "guestfs_lstat"
30128 msgstr "guestfs_lstat"
30131 #: ../src/guestfs-actions.pod:4407
30134 " struct guestfs_stat *\n"
30135 " guestfs_lstat (guestfs_h *g,\n"
30136 " const char *path);\n"
30139 " struct guestfs_stat *\n"
30140 " guestfs_lstat (guestfs_h *g,\n"
30141 " const char *path);\n"
30145 #: ../src/guestfs-actions.pod:4413
30147 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30148 "link, then the link is stat-ed, not the file it refers to."
30152 #: ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:7218
30154 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30155 "error. I<The caller must call C<guestfs_free_stat> after use>."
30159 #: ../src/guestfs-actions.pod:4423 ../src/guestfs-actions.pod:7222
30160 #: ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7621
30161 msgid "(Added in 0.9.2)"
30162 msgstr "(Додано у 0.9.2)"
30165 #: ../src/guestfs-actions.pod:4425
30166 msgid "guestfs_lstatlist"
30167 msgstr "guestfs_lstatlist"
30170 #: ../src/guestfs-actions.pod:4427
30173 " struct guestfs_stat_list *\n"
30174 " guestfs_lstatlist (guestfs_h *g,\n"
30175 " const char *path,\n"
30176 " char *const *names);\n"
30179 " struct guestfs_stat_list *\n"
30180 " guestfs_lstatlist (guestfs_h *g,\n"
30181 " const char *path,\n"
30182 " char *const *names);\n"
30186 #: ../src/guestfs-actions.pod:4432
30188 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30189 "files, where all files are in the directory C<path>. C<names> is the list "
30190 "of files from this directory."
30194 #: ../src/guestfs-actions.pod:4441
30196 "This call is intended for programs that want to efficiently list a directory"
30197 " contents without making many round-trips. See also C<guestfs_lxattrlist> "
30198 "for a similarly efficient call for getting extended attributes. Very long "
30199 "directory listings might cause the protocol message size to be exceeded, "
30200 "causing this call to fail. The caller must split up such requests into "
30201 "smaller groups of names."
30205 #: ../src/guestfs-actions.pod:4449
30207 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30208 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
30212 #: ../src/guestfs-actions.pod:4455
30213 msgid "guestfs_luks_add_key"
30214 msgstr "guestfs_luks_add_key"
30217 #: ../src/guestfs-actions.pod:4457
30221 " guestfs_luks_add_key (guestfs_h *g,\n"
30222 " const char *device,\n"
30223 " const char *key,\n"
30224 " const char *newkey,\n"
30229 " guestfs_luks_add_key (guestfs_h *g,\n"
30230 " const char *device,\n"
30231 " const char *key,\n"
30232 " const char *newkey,\n"
30237 #: ../src/guestfs-actions.pod:4469
30239 "Note that if C<keyslot> already contains a key, then this command will fail."
30240 " You have to use C<guestfs_luks_kill_slot> first to remove that key."
30244 #: ../src/guestfs-actions.pod:4475 ../src/guestfs-actions.pod:4515
30245 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558
30246 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
30248 "This function takes a key or passphrase parameter which could contain "
30249 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
30254 #: ../src/guestfs-actions.pod:4479 ../src/guestfs-actions.pod:4519
30255 #: ../src/guestfs-actions.pod:4542 ../src/guestfs-actions.pod:4562
30256 msgid "(Added in 1.5.2)"
30257 msgstr "(Додано у 1.5.2)"
30260 #: ../src/guestfs-actions.pod:4481
30261 msgid "guestfs_luks_close"
30262 msgstr "guestfs_luks_close"
30265 #: ../src/guestfs-actions.pod:4483
30269 " guestfs_luks_close (guestfs_h *g,\n"
30270 " const char *device);\n"
30274 " guestfs_luks_close (guestfs_h *g,\n"
30275 " const char *device);\n"
30279 #: ../src/guestfs-actions.pod:4487
30281 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30282 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the"
30283 " LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the"
30284 " underlying block device."
30288 #: ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4597
30289 #: ../src/guestfs-actions.pod:4616 ../src/guestfs-actions.pod:4666
30290 #: ../src/guestfs-actions.pod:4714
30291 msgid "(Added in 1.5.1)"
30292 msgstr "(Додано у 1.5.1)"
30295 #: ../src/guestfs-actions.pod:4497
30296 msgid "guestfs_luks_format"
30297 msgstr "guestfs_luks_format"
30300 #: ../src/guestfs-actions.pod:4499
30304 " guestfs_luks_format (guestfs_h *g,\n"
30305 " const char *device,\n"
30306 " const char *key,\n"
30311 " guestfs_luks_format (guestfs_h *g,\n"
30312 " const char *device,\n"
30313 " const char *key,\n"
30318 #: ../src/guestfs-actions.pod:4521
30319 msgid "guestfs_luks_format_cipher"
30320 msgstr "guestfs_luks_format_cipher"
30323 #: ../src/guestfs-actions.pod:4523
30327 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30328 " const char *device,\n"
30329 " const char *key,\n"
30331 " const char *cipher);\n"
30335 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30336 " const char *device,\n"
30337 " const char *key,\n"
30339 " const char *cipher);\n"
30343 #: ../src/guestfs-actions.pod:4530
30345 "This command is the same as C<guestfs_luks_format> but it also allows you to"
30346 " set the C<cipher> used."
30350 #: ../src/guestfs-actions.pod:4544
30351 msgid "guestfs_luks_kill_slot"
30352 msgstr "guestfs_luks_kill_slot"
30355 #: ../src/guestfs-actions.pod:4546
30359 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30360 " const char *device,\n"
30361 " const char *key,\n"
30366 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30367 " const char *device,\n"
30368 " const char *key,\n"
30373 #: ../src/guestfs-actions.pod:4564
30374 msgid "guestfs_luks_open"
30375 msgstr "guestfs_luks_open"
30378 #: ../src/guestfs-actions.pod:4566
30382 " guestfs_luks_open (guestfs_h *g,\n"
30383 " const char *device,\n"
30384 " const char *key,\n"
30385 " const char *mapname);\n"
30389 " guestfs_luks_open (guestfs_h *g,\n"
30390 " const char *device,\n"
30391 " const char *key,\n"
30392 " const char *mapname);\n"
30396 #: ../src/guestfs-actions.pod:4584
30398 "If this block device contains LVM volume groups, then calling "
30399 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30404 #: ../src/guestfs-actions.pod:4588
30405 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30409 #: ../src/guestfs-actions.pod:4599
30410 msgid "guestfs_luks_open_ro"
30411 msgstr "guestfs_luks_open_ro"
30414 #: ../src/guestfs-actions.pod:4601
30418 " guestfs_luks_open_ro (guestfs_h *g,\n"
30419 " const char *device,\n"
30420 " const char *key,\n"
30421 " const char *mapname);\n"
30425 " guestfs_luks_open_ro (guestfs_h *g,\n"
30426 " const char *device,\n"
30427 " const char *key,\n"
30428 " const char *mapname);\n"
30432 #: ../src/guestfs-actions.pod:4607
30434 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30439 #: ../src/guestfs-actions.pod:4618
30440 msgid "guestfs_lvcreate"
30441 msgstr "guestfs_lvcreate"
30444 #: ../src/guestfs-actions.pod:4620
30448 " guestfs_lvcreate (guestfs_h *g,\n"
30449 " const char *logvol,\n"
30450 " const char *volgroup,\n"
30455 " guestfs_lvcreate (guestfs_h *g,\n"
30456 " const char *logvol,\n"
30457 " const char *volgroup,\n"
30462 #: ../src/guestfs-actions.pod:4633
30463 msgid "guestfs_lvm_canonical_lv_name"
30464 msgstr "guestfs_lvm_canonical_lv_name"
30467 #: ../src/guestfs-actions.pod:4635
30471 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30472 " const char *lvname);\n"
30476 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30477 " const char *lvname);\n"
30481 #: ../src/guestfs-actions.pod:4646
30482 msgid "See also C<guestfs_is_lv>."
30486 #: ../src/guestfs-actions.pod:4651
30487 msgid "(Added in 1.5.24)"
30488 msgstr "(Додано у 1.5.24)"
30491 #: ../src/guestfs-actions.pod:4653
30492 msgid "guestfs_lvm_clear_filter"
30493 msgstr "guestfs_lvm_clear_filter"
30496 #: ../src/guestfs-actions.pod:4655
30500 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30504 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30508 #: ../src/guestfs-actions.pod:4658
30510 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
30511 "see every block device."
30515 #: ../src/guestfs-actions.pod:4668
30516 msgid "guestfs_lvm_remove_all"
30517 msgstr "guestfs_lvm_remove_all"
30520 #: ../src/guestfs-actions.pod:4670
30524 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30528 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30532 #: ../src/guestfs-actions.pod:4683
30533 msgid "guestfs_lvm_set_filter"
30534 msgstr "guestfs_lvm_set_filter"
30537 #: ../src/guestfs-actions.pod:4685
30541 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30542 " char *const *devices);\n"
30546 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30547 " char *const *devices);\n"
30551 #: ../src/guestfs-actions.pod:4716
30552 msgid "guestfs_lvremove"
30553 msgstr "guestfs_lvremove"
30556 #: ../src/guestfs-actions.pod:4718
30560 " guestfs_lvremove (guestfs_h *g,\n"
30561 " const char *device);\n"
30565 " guestfs_lvremove (guestfs_h *g,\n"
30566 " const char *device);\n"
30570 #: ../src/guestfs-actions.pod:4730 ../src/guestfs-actions.pod:6141
30571 #: ../src/guestfs-actions.pod:7991
30572 msgid "(Added in 1.0.13)"
30573 msgstr "(Додано у 1.0.13)"
30576 #: ../src/guestfs-actions.pod:4732
30577 msgid "guestfs_lvrename"
30578 msgstr "guestfs_lvrename"
30581 #: ../src/guestfs-actions.pod:4734
30585 " guestfs_lvrename (guestfs_h *g,\n"
30586 " const char *logvol,\n"
30587 " const char *newlogvol);\n"
30591 " guestfs_lvrename (guestfs_h *g,\n"
30592 " const char *logvol,\n"
30593 " const char *newlogvol);\n"
30597 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:8004
30598 msgid "(Added in 1.0.83)"
30599 msgstr "(Додано у 1.0.83)"
30602 #: ../src/guestfs-actions.pod:4745
30603 msgid "guestfs_lvresize"
30604 msgstr "guestfs_lvresize"
30607 #: ../src/guestfs-actions.pod:4747
30611 " guestfs_lvresize (guestfs_h *g,\n"
30612 " const char *device,\n"
30617 " guestfs_lvresize (guestfs_h *g,\n"
30618 " const char *device,\n"
30623 #: ../src/guestfs-actions.pod:4760
30624 msgid "guestfs_lvresize_free"
30625 msgstr "guestfs_lvresize_free"
30628 #: ../src/guestfs-actions.pod:4762
30632 " guestfs_lvresize_free (guestfs_h *g,\n"
30633 " const char *lv,\n"
30638 " guestfs_lvresize_free (guestfs_h *g,\n"
30639 " const char *lv,\n"
30644 #: ../src/guestfs-actions.pod:4775
30645 msgid "(Added in 1.3.3)"
30646 msgstr "(Додано у 1.3.3)"
30649 #: ../src/guestfs-actions.pod:4777
30650 msgid "guestfs_lvs"
30651 msgstr "guestfs_lvs"
30654 #: ../src/guestfs-actions.pod:4779
30658 " guestfs_lvs (guestfs_h *g);\n"
30662 " guestfs_lvs (guestfs_h *g);\n"
30666 #: ../src/guestfs-actions.pod:4788
30667 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30671 #: ../src/guestfs-actions.pod:4796
30672 msgid "guestfs_lvs_full"
30673 msgstr "guestfs_lvs_full"
30676 #: ../src/guestfs-actions.pod:4798
30679 " struct guestfs_lvm_lv_list *\n"
30680 " guestfs_lvs_full (guestfs_h *g);\n"
30683 " struct guestfs_lvm_lv_list *\n"
30684 " guestfs_lvs_full (guestfs_h *g);\n"
30688 #: ../src/guestfs-actions.pod:4804
30690 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30691 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after "
30696 #: ../src/guestfs-actions.pod:4810
30697 msgid "guestfs_lvuuid"
30698 msgstr "guestfs_lvuuid"
30701 #: ../src/guestfs-actions.pod:4812
30705 " guestfs_lvuuid (guestfs_h *g,\n"
30706 " const char *device);\n"
30710 " guestfs_lvuuid (guestfs_h *g,\n"
30711 " const char *device);\n"
30715 #: ../src/guestfs-actions.pod:4823
30716 msgid "guestfs_lxattrlist"
30717 msgstr "guestfs_lxattrlist"
30720 #: ../src/guestfs-actions.pod:4825
30723 " struct guestfs_xattr_list *\n"
30724 " guestfs_lxattrlist (guestfs_h *g,\n"
30725 " const char *path,\n"
30726 " char *const *names);\n"
30729 " struct guestfs_xattr_list *\n"
30730 " guestfs_lxattrlist (guestfs_h *g,\n"
30731 " const char *path,\n"
30732 " char *const *names);\n"
30736 #: ../src/guestfs-actions.pod:4844
30738 "This call is intended for programs that want to efficiently list a directory"
30739 " contents without making many round-trips. See also C<guestfs_lstatlist> "
30740 "for a similarly efficient call for getting standard stats. Very long "
30741 "directory listings might cause the protocol message size to be exceeded, "
30742 "causing this call to fail. The caller must split up such requests into "
30743 "smaller groups of names."
30747 #: ../src/guestfs-actions.pod:4858
30748 msgid "guestfs_mkdir"
30749 msgstr "guestfs_mkdir"
30752 #: ../src/guestfs-actions.pod:4860
30756 " guestfs_mkdir (guestfs_h *g,\n"
30757 " const char *path);\n"
30761 " guestfs_mkdir (guestfs_h *g,\n"
30762 " const char *path);\n"
30766 #: ../src/guestfs-actions.pod:4870
30767 msgid "guestfs_mkdir_mode"
30768 msgstr "guestfs_mkdir_mode"
30771 #: ../src/guestfs-actions.pod:4872
30775 " guestfs_mkdir_mode (guestfs_h *g,\n"
30776 " const char *path,\n"
30781 " guestfs_mkdir_mode (guestfs_h *g,\n"
30782 " const char *path,\n"
30787 #: ../src/guestfs-actions.pod:4884
30788 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30792 #: ../src/guestfs-actions.pod:4890
30793 msgid "guestfs_mkdir_p"
30794 msgstr "guestfs_mkdir_p"
30797 #: ../src/guestfs-actions.pod:4892
30801 " guestfs_mkdir_p (guestfs_h *g,\n"
30802 " const char *path);\n"
30806 " guestfs_mkdir_p (guestfs_h *g,\n"
30807 " const char *path);\n"
30811 #: ../src/guestfs-actions.pod:4903
30812 msgid "guestfs_mkdtemp"
30813 msgstr "guestfs_mkdtemp"
30816 #: ../src/guestfs-actions.pod:4905
30820 " guestfs_mkdtemp (guestfs_h *g,\n"
30821 " const char *template);\n"
30825 " guestfs_mkdtemp (guestfs_h *g,\n"
30826 " const char *template);\n"
30830 #: ../src/guestfs-actions.pod:4933
30831 msgid "guestfs_mke2fs_J"
30832 msgstr "guestfs_mke2fs_J"
30835 #: ../src/guestfs-actions.pod:4935
30839 " guestfs_mke2fs_J (guestfs_h *g,\n"
30840 " const char *fstype,\n"
30841 " int blocksize,\n"
30842 " const char *device,\n"
30843 " const char *journal);\n"
30847 " guestfs_mke2fs_J (guestfs_h *g,\n"
30848 " const char *fstype,\n"
30849 " int blocksize,\n"
30850 " const char *device,\n"
30851 " const char *journal);\n"
30855 #: ../src/guestfs-actions.pod:4948
30856 msgid "See also C<guestfs_mke2journal>."
30860 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4970
30861 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5004
30862 #: ../src/guestfs-actions.pod:5018 ../src/guestfs-actions.pod:5032
30863 #: ../src/guestfs-actions.pod:5091 ../src/guestfs-actions.pod:5368
30864 msgid "(Added in 1.0.68)"
30865 msgstr "(Додано у 1.0.68)"
30868 #: ../src/guestfs-actions.pod:4954
30869 msgid "guestfs_mke2fs_JL"
30870 msgstr "guestfs_mke2fs_JL"
30873 #: ../src/guestfs-actions.pod:4956
30877 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30878 " const char *fstype,\n"
30879 " int blocksize,\n"
30880 " const char *device,\n"
30881 " const char *label);\n"
30885 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30886 " const char *fstype,\n"
30887 " int blocksize,\n"
30888 " const char *device,\n"
30889 " const char *label);\n"
30893 #: ../src/guestfs-actions.pod:4966
30894 msgid "See also C<guestfs_mke2journal_L>."
30898 #: ../src/guestfs-actions.pod:4972
30899 msgid "guestfs_mke2fs_JU"
30900 msgstr "guestfs_mke2fs_JU"
30903 #: ../src/guestfs-actions.pod:4974
30907 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30908 " const char *fstype,\n"
30909 " int blocksize,\n"
30910 " const char *device,\n"
30911 " const char *uuid);\n"
30915 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30916 " const char *fstype,\n"
30917 " int blocksize,\n"
30918 " const char *device,\n"
30919 " const char *uuid);\n"
30923 #: ../src/guestfs-actions.pod:4984
30924 msgid "See also C<guestfs_mke2journal_U>."
30928 #: ../src/guestfs-actions.pod:4990
30929 msgid "guestfs_mke2journal"
30930 msgstr "guestfs_mke2journal"
30933 #: ../src/guestfs-actions.pod:4992
30937 " guestfs_mke2journal (guestfs_h *g,\n"
30938 " int blocksize,\n"
30939 " const char *device);\n"
30943 " guestfs_mke2journal (guestfs_h *g,\n"
30944 " int blocksize,\n"
30945 " const char *device);\n"
30949 #: ../src/guestfs-actions.pod:5006
30950 msgid "guestfs_mke2journal_L"
30951 msgstr "guestfs_mke2journal_L"
30954 #: ../src/guestfs-actions.pod:5008
30958 " guestfs_mke2journal_L (guestfs_h *g,\n"
30959 " int blocksize,\n"
30960 " const char *label,\n"
30961 " const char *device);\n"
30965 " guestfs_mke2journal_L (guestfs_h *g,\n"
30966 " int blocksize,\n"
30967 " const char *label,\n"
30968 " const char *device);\n"
30972 #: ../src/guestfs-actions.pod:5020
30973 msgid "guestfs_mke2journal_U"
30974 msgstr "guestfs_mke2journal_U"
30977 #: ../src/guestfs-actions.pod:5022
30981 " guestfs_mke2journal_U (guestfs_h *g,\n"
30982 " int blocksize,\n"
30983 " const char *uuid,\n"
30984 " const char *device);\n"
30988 " guestfs_mke2journal_U (guestfs_h *g,\n"
30989 " int blocksize,\n"
30990 " const char *uuid,\n"
30991 " const char *device);\n"
30995 #: ../src/guestfs-actions.pod:5034
30996 msgid "guestfs_mkfifo"
30997 msgstr "guestfs_mkfifo"
31000 #: ../src/guestfs-actions.pod:5036
31004 " guestfs_mkfifo (guestfs_h *g,\n"
31006 " const char *path);\n"
31010 " guestfs_mkfifo (guestfs_h *g,\n"
31012 " const char *path);\n"
31016 #: ../src/guestfs-actions.pod:5041
31018 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
31019 "is just a convenient wrapper around C<guestfs_mknod>."
31023 #: ../src/guestfs-actions.pod:5051
31024 msgid "guestfs_mkfs"
31025 msgstr "guestfs_mkfs"
31028 #: ../src/guestfs-actions.pod:5053
31032 " guestfs_mkfs (guestfs_h *g,\n"
31033 " const char *fstype,\n"
31034 " const char *device);\n"
31038 " guestfs_mkfs (guestfs_h *g,\n"
31039 " const char *fstype,\n"
31040 " const char *device);\n"
31044 #: ../src/guestfs-actions.pod:5066
31045 msgid "guestfs_mkfs_b"
31046 msgstr "guestfs_mkfs_b"
31049 #: ../src/guestfs-actions.pod:5068
31053 " guestfs_mkfs_b (guestfs_h *g,\n"
31054 " const char *fstype,\n"
31055 " int blocksize,\n"
31056 " const char *device);\n"
31060 " guestfs_mkfs_b (guestfs_h *g,\n"
31061 " const char *fstype,\n"
31062 " int blocksize,\n"
31063 " const char *device);\n"
31067 #: ../src/guestfs-actions.pod:5074
31069 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31074 #: ../src/guestfs-actions.pod:5081
31076 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31077 "block size of the resulting filesystem. Supported block sizes depend on the"
31078 " filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31082 #: ../src/guestfs-actions.pod:5093
31083 msgid "guestfs_mkfs_opts"
31084 msgstr "guestfs_mkfs_opts"
31087 #: ../src/guestfs-actions.pod:5095
31091 " guestfs_mkfs_opts (guestfs_h *g,\n"
31092 " const char *fstype,\n"
31093 " const char *device,\n"
31098 " guestfs_mkfs_opts (guestfs_h *g,\n"
31099 " const char *fstype,\n"
31100 " const char *device,\n"
31105 #: ../src/guestfs-actions.pod:5106
31108 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31109 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31110 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31111 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31116 #: ../src/guestfs-actions.pod:5154
31117 msgid "(Added in 1.7.19)"
31118 msgstr "(Додано у 1.7.19)"
31121 #: ../src/guestfs-actions.pod:5156
31122 msgid "guestfs_mkfs_opts_va"
31123 msgstr "guestfs_mkfs_opts_va"
31126 #: ../src/guestfs-actions.pod:5158
31130 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31131 " const char *fstype,\n"
31132 " const char *device,\n"
31133 " va_list args);\n"
31137 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31138 " const char *fstype,\n"
31139 " const char *device,\n"
31140 " va_list args);\n"
31144 #: ../src/guestfs-actions.pod:5164
31145 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31149 #: ../src/guestfs-actions.pod:5168
31150 msgid "guestfs_mkfs_opts_argv"
31151 msgstr "guestfs_mkfs_opts_argv"
31154 #: ../src/guestfs-actions.pod:5170
31158 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31159 " const char *fstype,\n"
31160 " const char *device,\n"
31161 " const struct guestfs_mkfs_opts_argv *optargs);\n"
31165 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31166 " const char *fstype,\n"
31167 " const char *device,\n"
31168 " const struct guestfs_mkfs_opts_argv *optargs);\n"
31172 #: ../src/guestfs-actions.pod:5176
31173 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31177 #: ../src/guestfs-actions.pod:5180
31178 msgid "guestfs_mkmountpoint"
31179 msgstr "guestfs_mkmountpoint"
31182 #: ../src/guestfs-actions.pod:5182
31186 " guestfs_mkmountpoint (guestfs_h *g,\n"
31187 " const char *exemptpath);\n"
31191 " guestfs_mkmountpoint (guestfs_h *g,\n"
31192 " const char *exemptpath);\n"
31196 #: ../src/guestfs-actions.pod:5186
31198 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31199 "that can be used to create extra mountpoints before mounting the first "
31204 #: ../src/guestfs-actions.pod:5210
31206 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
31207 "may get unexpected errors if you try to mix these calls. It is safest to "
31208 "manually unmount filesystems and remove mountpoints after use."
31212 #: ../src/guestfs-actions.pod:5214
31214 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31215 "first, so for this to work for manual mountpoints, you must ensure that the "
31216 "innermost mountpoints have the longest pathnames, as in the example code "
31221 #: ../src/guestfs-actions.pod:5221
31223 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31224 "can cause C<guestfs_umount_all> to be called when the handle is closed which"
31225 " can also trigger these issues."
31229 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5533
31230 #: ../src/guestfs-actions.pod:6561
31231 msgid "(Added in 1.0.62)"
31232 msgstr "(Додано у 1.0.62)"
31235 #: ../src/guestfs-actions.pod:5229
31236 msgid "guestfs_mknod"
31240 #: ../src/guestfs-actions.pod:5231
31244 " guestfs_mknod (guestfs_h *g,\n"
31248 " const char *path);\n"
31253 #: ../src/guestfs-actions.pod:5246
31255 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31256 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31257 "regular file). These constants are available in the standard Linux header "
31258 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31259 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in"
31260 " the appropriate constant for you."
31264 #: ../src/guestfs-actions.pod:5260
31265 msgid "guestfs_mknod_b"
31269 #: ../src/guestfs-actions.pod:5262
31273 " guestfs_mknod_b (guestfs_h *g,\n"
31277 " const char *path);\n"
31282 #: ../src/guestfs-actions.pod:5269
31284 "This call creates a block device node called C<path> with mode C<mode> and "
31285 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
31286 "wrapper around C<guestfs_mknod>."
31290 #: ../src/guestfs-actions.pod:5279
31291 msgid "guestfs_mknod_c"
31295 #: ../src/guestfs-actions.pod:5281
31299 " guestfs_mknod_c (guestfs_h *g,\n"
31303 " const char *path);\n"
31308 #: ../src/guestfs-actions.pod:5288
31310 "This call creates a char device node called C<path> with mode C<mode> and "
31311 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
31312 "wrapper around C<guestfs_mknod>."
31316 #: ../src/guestfs-actions.pod:5298
31317 msgid "guestfs_mkswap"
31321 #: ../src/guestfs-actions.pod:5300
31325 " guestfs_mkswap (guestfs_h *g,\n"
31326 " const char *device);\n"
31331 #: ../src/guestfs-actions.pod:5310
31332 msgid "guestfs_mkswap_L"
31336 #: ../src/guestfs-actions.pod:5312
31340 " guestfs_mkswap_L (guestfs_h *g,\n"
31341 " const char *label,\n"
31342 " const char *device);\n"
31347 #: ../src/guestfs-actions.pod:5327
31348 msgid "guestfs_mkswap_U"
31352 #: ../src/guestfs-actions.pod:5329
31356 " guestfs_mkswap_U (guestfs_h *g,\n"
31357 " const char *uuid,\n"
31358 " const char *device);\n"
31363 #: ../src/guestfs-actions.pod:5340
31364 msgid "guestfs_mkswap_file"
31368 #: ../src/guestfs-actions.pod:5342
31372 " guestfs_mkswap_file (guestfs_h *g,\n"
31373 " const char *path);\n"
31378 #: ../src/guestfs-actions.pod:5348
31380 "This command just writes a swap file signature to an existing file. To "
31381 "create the file itself, use something like C<guestfs_fallocate>."
31385 #: ../src/guestfs-actions.pod:5355
31386 msgid "guestfs_modprobe"
31390 #: ../src/guestfs-actions.pod:5357
31394 " guestfs_modprobe (guestfs_h *g,\n"
31395 " const char *modulename);\n"
31400 #: ../src/guestfs-actions.pod:5370
31401 msgid "guestfs_mount"
31405 #: ../src/guestfs-actions.pod:5372
31409 " guestfs_mount (guestfs_h *g,\n"
31410 " const char *device,\n"
31411 " const char *mountpoint);\n"
31416 #: ../src/guestfs-actions.pod:5391
31418 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31419 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
31420 "problems for users. If your program might need to work with older versions "
31421 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31422 "for the first parameter if you don't want any options)."
31426 #: ../src/guestfs-actions.pod:5402
31427 msgid "guestfs_mount_9p"
31431 #: ../src/guestfs-actions.pod:5404
31435 " guestfs_mount_9p (guestfs_h *g,\n"
31436 " const char *mounttag,\n"
31437 " const char *mountpoint,\n"
31443 #: ../src/guestfs-actions.pod:5415
31446 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31451 #: ../src/guestfs-actions.pod:5428
31452 msgid "guestfs_mount_9p_va"
31456 #: ../src/guestfs-actions.pod:5430
31460 " guestfs_mount_9p_va (guestfs_h *g,\n"
31461 " const char *mounttag,\n"
31462 " const char *mountpoint,\n"
31463 " va_list args);\n"
31468 #: ../src/guestfs-actions.pod:5436
31469 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31473 #: ../src/guestfs-actions.pod:5440
31474 msgid "guestfs_mount_9p_argv"
31478 #: ../src/guestfs-actions.pod:5442
31482 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31483 " const char *mounttag,\n"
31484 " const char *mountpoint,\n"
31485 " const struct guestfs_mount_9p_argv *optargs);\n"
31490 #: ../src/guestfs-actions.pod:5448
31491 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31495 #: ../src/guestfs-actions.pod:5452
31496 msgid "guestfs_mount_loop"
31500 #: ../src/guestfs-actions.pod:5454
31504 " guestfs_mount_loop (guestfs_h *g,\n"
31505 " const char *file,\n"
31506 " const char *mountpoint);\n"
31511 #: ../src/guestfs-actions.pod:5467
31512 msgid "guestfs_mount_options"
31516 #: ../src/guestfs-actions.pod:5469
31520 " guestfs_mount_options (guestfs_h *g,\n"
31521 " const char *options,\n"
31522 " const char *device,\n"
31523 " const char *mountpoint);\n"
31528 #: ../src/guestfs-actions.pod:5475
31530 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31531 "the mount options as for the L<mount(8)> I<-o> flag."
31535 #: ../src/guestfs-actions.pod:5485 ../src/guestfs-actions.pod:5499
31536 #: ../src/guestfs-actions.pod:5516
31537 msgid "(Added in 1.0.10)"
31538 msgstr "(Додано у 1.0.10)"
31541 #: ../src/guestfs-actions.pod:5487
31542 msgid "guestfs_mount_ro"
31546 #: ../src/guestfs-actions.pod:5489
31550 " guestfs_mount_ro (guestfs_h *g,\n"
31551 " const char *device,\n"
31552 " const char *mountpoint);\n"
31557 #: ../src/guestfs-actions.pod:5494
31559 "This is the same as the C<guestfs_mount> command, but it mounts the "
31560 "filesystem with the read-only (I<-o ro>) flag."
31564 #: ../src/guestfs-actions.pod:5501
31565 msgid "guestfs_mount_vfs"
31569 #: ../src/guestfs-actions.pod:5503
31573 " guestfs_mount_vfs (guestfs_h *g,\n"
31574 " const char *options,\n"
31575 " const char *vfstype,\n"
31576 " const char *device,\n"
31577 " const char *mountpoint);\n"
31582 #: ../src/guestfs-actions.pod:5510
31584 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31585 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
31590 #: ../src/guestfs-actions.pod:5518
31591 msgid "guestfs_mountpoints"
31595 #: ../src/guestfs-actions.pod:5520
31599 " guestfs_mountpoints (guestfs_h *g);\n"
31604 #: ../src/guestfs-actions.pod:5523
31606 "This call is similar to C<guestfs_mounts>. That call returns a list of "
31607 "devices. This one returns a hash table (map) of device name to directory "
31608 "where the device is mounted."
31612 #: ../src/guestfs-actions.pod:5535
31613 msgid "guestfs_mounts"
31617 #: ../src/guestfs-actions.pod:5537
31621 " guestfs_mounts (guestfs_h *g);\n"
31626 #: ../src/guestfs-actions.pod:5545
31627 msgid "See also: C<guestfs_mountpoints>"
31631 #: ../src/guestfs-actions.pod:5553
31636 #: ../src/guestfs-actions.pod:5555
31640 " guestfs_mv (guestfs_h *g,\n"
31641 " const char *src,\n"
31642 " const char *dest);\n"
31647 #: ../src/guestfs-actions.pod:5567
31648 msgid "guestfs_ntfs_3g_probe"
31652 #: ../src/guestfs-actions.pod:5569
31656 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31658 " const char *device);\n"
31663 #: ../src/guestfs-actions.pod:5588
31664 msgid "(Added in 1.0.43)"
31665 msgstr "(Додано у 1.0.43)"
31668 #: ../src/guestfs-actions.pod:5590
31669 msgid "guestfs_ntfsresize"
31673 #: ../src/guestfs-actions.pod:5592
31677 " guestfs_ntfsresize (guestfs_h *g,\n"
31678 " const char *device);\n"
31683 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5696
31685 "I<This function is deprecated.> In new code, use the "
31686 "L</guestfs_ntfsresize_opts> call instead."
31690 #: ../src/guestfs-actions.pod:5620
31691 msgid "guestfs_ntfsresize_opts"
31695 #: ../src/guestfs-actions.pod:5622
31699 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31700 " const char *device,\n"
31706 #: ../src/guestfs-actions.pod:5632
31709 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31710 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31715 #: ../src/guestfs-actions.pod:5652
31717 "After the resize operation, the filesystem is always marked as requiring a "
31718 "consistency check (for safety). You have to boot into Windows to perform "
31719 "this check and clear this condition. If you I<don't> set the C<force> "
31720 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31721 "times on a single filesystem without booting into Windows between each "
31726 #: ../src/guestfs-actions.pod:5667
31727 msgid "guestfs_ntfsresize_opts_va"
31731 #: ../src/guestfs-actions.pod:5669
31735 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31736 " const char *device,\n"
31737 " va_list args);\n"
31742 #: ../src/guestfs-actions.pod:5674
31743 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31747 #: ../src/guestfs-actions.pod:5678
31748 msgid "guestfs_ntfsresize_opts_argv"
31752 #: ../src/guestfs-actions.pod:5680
31756 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31757 " const char *device,\n"
31758 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31763 #: ../src/guestfs-actions.pod:5685
31764 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31768 #: ../src/guestfs-actions.pod:5689
31769 msgid "guestfs_ntfsresize_size"
31773 #: ../src/guestfs-actions.pod:5691
31777 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31778 " const char *device,\n"
31779 " int64_t size);\n"
31784 #: ../src/guestfs-actions.pod:5703
31786 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31787 "to specify the new size (in bytes) explicitly."
31791 #: ../src/guestfs-actions.pod:5708 ../src/guestfs-actions.pod:6168
31792 #: ../src/guestfs-actions.pod:6241 ../src/guestfs-actions.pod:6509
31793 #: ../src/guestfs-actions.pod:8148
31794 msgid "(Added in 1.3.14)"
31795 msgstr "(Додано у 1.3.14)"
31798 #: ../src/guestfs-actions.pod:5710
31799 msgid "guestfs_part_add"
31803 #: ../src/guestfs-actions.pod:5712
31807 " guestfs_part_add (guestfs_h *g,\n"
31808 " const char *device,\n"
31809 " const char *prlogex,\n"
31810 " int64_t startsect,\n"
31811 " int64_t endsect);\n"
31816 #: ../src/guestfs-actions.pod:5719
31818 "This command adds a partition to C<device>. If there is no partition table "
31819 "on the device, call C<guestfs_part_init> first."
31823 #: ../src/guestfs-actions.pod:5731
31825 "Creating a partition which covers the whole disk is not so easy. Use "
31826 "C<guestfs_part_disk> to do that."
31830 #: ../src/guestfs-actions.pod:5736 ../src/guestfs-actions.pod:5774
31831 #: ../src/guestfs-actions.pod:5827 ../src/guestfs-actions.pod:5911
31832 #: ../src/guestfs-actions.pod:5949 ../src/guestfs-actions.pod:5968
31833 #: ../src/guestfs-actions.pod:6008
31834 msgid "(Added in 1.0.78)"
31835 msgstr "(Додано у 1.0.78)"
31838 #: ../src/guestfs-actions.pod:5738
31839 msgid "guestfs_part_del"
31843 #: ../src/guestfs-actions.pod:5740
31847 " guestfs_part_del (guestfs_h *g,\n"
31848 " const char *device,\n"
31854 #: ../src/guestfs-actions.pod:5755
31855 msgid "guestfs_part_disk"
31859 #: ../src/guestfs-actions.pod:5757
31863 " guestfs_part_disk (guestfs_h *g,\n"
31864 " const char *device,\n"
31865 " const char *parttype);\n"
31870 #: ../src/guestfs-actions.pod:5762
31872 "This command is simply a combination of C<guestfs_part_init> followed by "
31873 "C<guestfs_part_add> to create a single primary partition covering the whole "
31878 #: ../src/guestfs-actions.pod:5766
31880 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other"
31881 " possible values are described in C<guestfs_part_init>."
31885 #: ../src/guestfs-actions.pod:5776
31886 msgid "guestfs_part_get_bootable"
31890 #: ../src/guestfs-actions.pod:5778
31894 " guestfs_part_get_bootable (guestfs_h *g,\n"
31895 " const char *device,\n"
31901 #: ../src/guestfs-actions.pod:5786
31902 msgid "See also C<guestfs_part_set_bootable>."
31906 #: ../src/guestfs-actions.pod:5792
31907 msgid "guestfs_part_get_mbr_id"
31911 #: ../src/guestfs-actions.pod:5794
31915 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31916 " const char *device,\n"
31922 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5984
31924 "Note that only MBR (old DOS-style) partitions have type bytes. You will get"
31925 " undefined results for other partition table types (see "
31926 "C<guestfs_part_get_parttype>)."
31930 #: ../src/guestfs-actions.pod:5810
31931 msgid "guestfs_part_get_parttype"
31935 #: ../src/guestfs-actions.pod:5812
31939 " guestfs_part_get_parttype (guestfs_h *g,\n"
31940 " const char *device);\n"
31945 #: ../src/guestfs-actions.pod:5819
31947 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31948 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
31949 "possible, although unusual. See C<guestfs_part_init> for a full list."
31953 #: ../src/guestfs-actions.pod:5829
31954 msgid "guestfs_part_init"
31958 #: ../src/guestfs-actions.pod:5831
31962 " guestfs_part_init (guestfs_h *g,\n"
31963 " const char *device,\n"
31964 " const char *parttype);\n"
31969 #: ../src/guestfs-actions.pod:5840
31971 "Initially there are no partitions. Following this, you should call "
31972 "C<guestfs_part_add> for each partition required."
31976 #: ../src/guestfs-actions.pod:5913
31977 msgid "guestfs_part_list"
31978 msgstr "guestfs_part_list"
31981 #: ../src/guestfs-actions.pod:5915
31984 " struct guestfs_partition_list *\n"
31985 " guestfs_part_list (guestfs_h *g,\n"
31986 " const char *device);\n"
31989 " struct guestfs_partition_list *\n"
31990 " guestfs_part_list (guestfs_h *g,\n"
31991 " const char *device);\n"
31995 #: ../src/guestfs-actions.pod:5932
31997 "Start of the partition I<in bytes>. To get sectors you have to divide by "
31998 "the device's sector size, see C<guestfs_blockdev_getss>."
32002 #: ../src/guestfs-actions.pod:5945
32004 "This function returns a C<struct guestfs_partition_list *>, or NULL if there"
32005 " was an error. I<The caller must call C<guestfs_free_partition_list> after "
32010 #: ../src/guestfs-actions.pod:5951
32011 msgid "guestfs_part_set_bootable"
32015 #: ../src/guestfs-actions.pod:5953
32019 " guestfs_part_set_bootable (guestfs_h *g,\n"
32020 " const char *device,\n"
32022 " int bootable);\n"
32027 #: ../src/guestfs-actions.pod:5970
32028 msgid "guestfs_part_set_mbr_id"
32032 #: ../src/guestfs-actions.pod:5972
32036 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32037 " const char *device,\n"
32044 #: ../src/guestfs-actions.pod:5992
32045 msgid "guestfs_part_set_name"
32049 #: ../src/guestfs-actions.pod:5994
32053 " guestfs_part_set_name (guestfs_h *g,\n"
32054 " const char *device,\n"
32056 " const char *name);\n"
32061 #: ../src/guestfs-actions.pod:6010
32062 msgid "guestfs_part_to_dev"
32066 #: ../src/guestfs-actions.pod:6012
32070 " guestfs_part_to_dev (guestfs_h *g,\n"
32071 " const char *partition);\n"
32076 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6039
32078 "The named partition must exist, for example as a string returned from "
32079 "C<guestfs_list_partitions>."
32083 #: ../src/guestfs-actions.pod:6023
32084 msgid "See also C<guestfs_part_to_partnum>."
32088 #: ../src/guestfs-actions.pod:6030
32089 msgid "guestfs_part_to_partnum"
32093 #: ../src/guestfs-actions.pod:6032
32097 " guestfs_part_to_partnum (guestfs_h *g,\n"
32098 " const char *partition);\n"
32103 #: ../src/guestfs-actions.pod:6042
32104 msgid "See also C<guestfs_part_to_dev>."
32108 #: ../src/guestfs-actions.pod:6046
32109 msgid "guestfs_ping_daemon"
32113 #: ../src/guestfs-actions.pod:6048
32117 " guestfs_ping_daemon (guestfs_h *g);\n"
32122 #: ../src/guestfs-actions.pod:6060
32123 msgid "guestfs_pread"
32127 #: ../src/guestfs-actions.pod:6062
32131 " guestfs_pread (guestfs_h *g,\n"
32132 " const char *path,\n"
32134 " int64_t offset,\n"
32135 " size_t *size_r);\n"
32140 #: ../src/guestfs-actions.pod:6075
32141 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32145 #: ../src/guestfs-actions.pod:6086
32146 msgid "guestfs_pread_device"
32150 #: ../src/guestfs-actions.pod:6088
32154 " guestfs_pread_device (guestfs_h *g,\n"
32155 " const char *device,\n"
32157 " int64_t offset,\n"
32158 " size_t *size_r);\n"
32163 #: ../src/guestfs-actions.pod:6101
32164 msgid "See also C<guestfs_pread>."
32168 #: ../src/guestfs-actions.pod:6110
32169 msgid "(Added in 1.5.21)"
32170 msgstr "(Додано у 1.5.21)"
32173 #: ../src/guestfs-actions.pod:6112
32174 msgid "guestfs_pvcreate"
32178 #: ../src/guestfs-actions.pod:6114
32182 " guestfs_pvcreate (guestfs_h *g,\n"
32183 " const char *device);\n"
32188 #: ../src/guestfs-actions.pod:6126
32189 msgid "guestfs_pvremove"
32193 #: ../src/guestfs-actions.pod:6128
32197 " guestfs_pvremove (guestfs_h *g,\n"
32198 " const char *device);\n"
32203 #: ../src/guestfs-actions.pod:6143
32204 msgid "guestfs_pvresize"
32208 #: ../src/guestfs-actions.pod:6145
32212 " guestfs_pvresize (guestfs_h *g,\n"
32213 " const char *device);\n"
32218 #: ../src/guestfs-actions.pod:6156
32219 msgid "guestfs_pvresize_size"
32223 #: ../src/guestfs-actions.pod:6158
32227 " guestfs_pvresize_size (guestfs_h *g,\n"
32228 " const char *device,\n"
32229 " int64_t size);\n"
32234 #: ../src/guestfs-actions.pod:6163
32236 "This command is the same as C<guestfs_pvresize> except that it allows you to"
32237 " specify the new size (in bytes) explicitly."
32241 #: ../src/guestfs-actions.pod:6170
32242 msgid "guestfs_pvs"
32246 #: ../src/guestfs-actions.pod:6172
32250 " guestfs_pvs (guestfs_h *g);\n"
32255 #: ../src/guestfs-actions.pod:6181
32256 msgid "See also C<guestfs_pvs_full>."
32260 #: ../src/guestfs-actions.pod:6189
32261 msgid "guestfs_pvs_full"
32265 #: ../src/guestfs-actions.pod:6191
32268 " struct guestfs_lvm_pv_list *\n"
32269 " guestfs_pvs_full (guestfs_h *g);\n"
32274 #: ../src/guestfs-actions.pod:6197
32276 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32277 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after "
32282 #: ../src/guestfs-actions.pod:6203
32283 msgid "guestfs_pvuuid"
32287 #: ../src/guestfs-actions.pod:6205
32291 " guestfs_pvuuid (guestfs_h *g,\n"
32292 " const char *device);\n"
32297 #: ../src/guestfs-actions.pod:6216
32298 msgid "guestfs_pwrite"
32302 #: ../src/guestfs-actions.pod:6218
32306 " guestfs_pwrite (guestfs_h *g,\n"
32307 " const char *path,\n"
32308 " const char *content,\n"
32309 " size_t content_size,\n"
32310 " int64_t offset);\n"
32315 #: ../src/guestfs-actions.pod:6234
32316 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32320 #: ../src/guestfs-actions.pod:6243
32321 msgid "guestfs_pwrite_device"
32325 #: ../src/guestfs-actions.pod:6245
32329 " guestfs_pwrite_device (guestfs_h *g,\n"
32330 " const char *device,\n"
32331 " const char *content,\n"
32332 " size_t content_size,\n"
32333 " int64_t offset);\n"
32338 #: ../src/guestfs-actions.pod:6260
32339 msgid "See also C<guestfs_pwrite>."
32343 #: ../src/guestfs-actions.pod:6267
32344 msgid "(Added in 1.5.20)"
32345 msgstr "(Додано у 1.5.20)"
32348 #: ../src/guestfs-actions.pod:6269
32349 msgid "guestfs_read_file"
32353 #: ../src/guestfs-actions.pod:6271
32357 " guestfs_read_file (guestfs_h *g,\n"
32358 " const char *path,\n"
32359 " size_t *size_r);\n"
32364 #: ../src/guestfs-actions.pod:6279
32366 "Unlike C<guestfs_cat>, this function can correctly handle files that contain"
32367 " embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
32368 "function is limited in the total size of file that can be handled."
32372 #: ../src/guestfs-actions.pod:6291
32373 msgid "(Added in 1.0.63)"
32374 msgstr "(Додано у 1.0.63)"
32377 #: ../src/guestfs-actions.pod:6293
32378 msgid "guestfs_read_lines"
32382 #: ../src/guestfs-actions.pod:6295
32386 " guestfs_read_lines (guestfs_h *g,\n"
32387 " const char *path);\n"
32392 #: ../src/guestfs-actions.pod:6304
32394 "Note that this function cannot correctly handle binary files (specifically, "
32395 "files containing C<\\0> character which is treated as end of line). For "
32396 "those you need to use the C<guestfs_read_file> function which has a more "
32397 "complex interface."
32401 #: ../src/guestfs-actions.pod:6315
32402 msgid "guestfs_readdir"
32406 #: ../src/guestfs-actions.pod:6317
32409 " struct guestfs_dirent_list *\n"
32410 " guestfs_readdir (guestfs_h *g,\n"
32411 " const char *dir);\n"
32416 #: ../src/guestfs-actions.pod:6371
32418 "This function is primarily intended for use by programs. To get a simple "
32419 "list of names, use C<guestfs_ls>. To get a printable directory for human "
32420 "consumption, use C<guestfs_ll>."
32424 #: ../src/guestfs-actions.pod:6375
32426 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32427 "was an error. I<The caller must call C<guestfs_free_dirent_list> after "
32432 #: ../src/guestfs-actions.pod:6381
32433 msgid "guestfs_readlink"
32437 #: ../src/guestfs-actions.pod:6383
32441 " guestfs_readlink (guestfs_h *g,\n"
32442 " const char *path);\n"
32447 #: ../src/guestfs-actions.pod:6394
32448 msgid "guestfs_readlinklist"
32452 #: ../src/guestfs-actions.pod:6396
32456 " guestfs_readlinklist (guestfs_h *g,\n"
32457 " const char *path,\n"
32458 " char *const *names);\n"
32463 #: ../src/guestfs-actions.pod:6429
32464 msgid "guestfs_realpath"
32468 #: ../src/guestfs-actions.pod:6431
32472 " guestfs_realpath (guestfs_h *g,\n"
32473 " const char *path);\n"
32478 #: ../src/guestfs-actions.pod:6443
32479 msgid "guestfs_removexattr"
32483 #: ../src/guestfs-actions.pod:6445
32487 " guestfs_removexattr (guestfs_h *g,\n"
32488 " const char *xattr,\n"
32489 " const char *path);\n"
32494 #: ../src/guestfs-actions.pod:6453
32495 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32499 #: ../src/guestfs-actions.pod:6459
32500 msgid "guestfs_resize2fs"
32504 #: ../src/guestfs-actions.pod:6461
32508 " guestfs_resize2fs (guestfs_h *g,\n"
32509 " const char *device);\n"
32514 #: ../src/guestfs-actions.pod:6468
32516 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32517 "C<device> before calling this command. For unknown reasons C<resize2fs> "
32518 "sometimes gives an error about this and sometimes not. In any case, it is "
32519 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32523 #: ../src/guestfs-actions.pod:6478
32524 msgid "guestfs_resize2fs_M"
32528 #: ../src/guestfs-actions.pod:6480
32532 " guestfs_resize2fs_M (guestfs_h *g,\n"
32533 " const char *device);\n"
32538 #: ../src/guestfs-actions.pod:6484
32540 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32541 "resized to its minimum size. This works like the I<-M> option to the "
32542 "C<resize2fs> command."
32546 #: ../src/guestfs-actions.pod:6488
32548 "To get the resulting size of the filesystem you should call "
32549 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
32550 "These two numbers, multiplied together, give the resulting size of the "
32551 "minimal filesystem in bytes."
32555 #: ../src/guestfs-actions.pod:6497
32556 msgid "guestfs_resize2fs_size"
32560 #: ../src/guestfs-actions.pod:6499
32564 " guestfs_resize2fs_size (guestfs_h *g,\n"
32565 " const char *device,\n"
32566 " int64_t size);\n"
32571 #: ../src/guestfs-actions.pod:6504
32573 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32574 "to specify the new size (in bytes) explicitly."
32578 #: ../src/guestfs-actions.pod:6511
32583 #: ../src/guestfs-actions.pod:6513
32587 " guestfs_rm (guestfs_h *g,\n"
32588 " const char *path);\n"
32593 #: ../src/guestfs-actions.pod:6523
32594 msgid "guestfs_rm_rf"
32598 #: ../src/guestfs-actions.pod:6525
32602 " guestfs_rm_rf (guestfs_h *g,\n"
32603 " const char *path);\n"
32608 #: ../src/guestfs-actions.pod:6537
32609 msgid "guestfs_rmdir"
32613 #: ../src/guestfs-actions.pod:6539
32617 " guestfs_rmdir (guestfs_h *g,\n"
32618 " const char *path);\n"
32623 #: ../src/guestfs-actions.pod:6549
32624 msgid "guestfs_rmmountpoint"
32628 #: ../src/guestfs-actions.pod:6551
32632 " guestfs_rmmountpoint (guestfs_h *g,\n"
32633 " const char *exemptpath);\n"
32638 #: ../src/guestfs-actions.pod:6555
32640 "This calls removes a mountpoint that was previously created with "
32641 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
32645 #: ../src/guestfs-actions.pod:6563
32646 msgid "guestfs_scrub_device"
32650 #: ../src/guestfs-actions.pod:6565
32654 " guestfs_scrub_device (guestfs_h *g,\n"
32655 " const char *device);\n"
32660 #: ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6598
32661 #: ../src/guestfs-actions.pod:6617
32662 msgid "(Added in 1.0.52)"
32663 msgstr "(Додано у 1.0.52)"
32666 #: ../src/guestfs-actions.pod:6582
32667 msgid "guestfs_scrub_file"
32671 #: ../src/guestfs-actions.pod:6584
32675 " guestfs_scrub_file (guestfs_h *g,\n"
32676 " const char *file);\n"
32681 #: ../src/guestfs-actions.pod:6600
32682 msgid "guestfs_scrub_freespace"
32686 #: ../src/guestfs-actions.pod:6602
32690 " guestfs_scrub_freespace (guestfs_h *g,\n"
32691 " const char *dir);\n"
32696 #: ../src/guestfs-actions.pod:6606
32698 "This command creates the directory C<dir> and then fills it with files until"
32699 " the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32700 "and deletes them. The intention is to scrub any free space on the partition"
32701 " containing C<dir>."
32705 #: ../src/guestfs-actions.pod:6619
32706 msgid "guestfs_set_append"
32710 #: ../src/guestfs-actions.pod:6621
32714 " guestfs_set_append (guestfs_h *g,\n"
32715 " const char *append);\n"
32720 #: ../src/guestfs-actions.pod:6638
32721 msgid "guestfs_set_attach_method"
32725 #: ../src/guestfs-actions.pod:6640
32729 " guestfs_set_attach_method (guestfs_h *g,\n"
32730 " const char *attachmethod);\n"
32735 #: ../src/guestfs-actions.pod:6668
32736 msgid "guestfs_set_autosync"
32740 #: ../src/guestfs-actions.pod:6670
32744 " guestfs_set_autosync (guestfs_h *g,\n"
32745 " int autosync);\n"
32750 #: ../src/guestfs-actions.pod:6686
32751 msgid "guestfs_set_direct"
32755 #: ../src/guestfs-actions.pod:6688
32759 " guestfs_set_direct (guestfs_h *g,\n"
32765 #: ../src/guestfs-actions.pod:6696
32767 "One consequence of this is that log messages aren't caught by the library "
32768 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32773 #: ../src/guestfs-actions.pod:6709
32774 msgid "guestfs_set_e2label"
32778 #: ../src/guestfs-actions.pod:6711
32782 " guestfs_set_e2label (guestfs_h *g,\n"
32783 " const char *device,\n"
32784 " const char *label);\n"
32789 #: ../src/guestfs-actions.pod:6720
32791 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32792 "the existing label on a filesystem."
32796 #: ../src/guestfs-actions.pod:6727
32797 msgid "guestfs_set_e2uuid"
32801 #: ../src/guestfs-actions.pod:6729
32805 " guestfs_set_e2uuid (guestfs_h *g,\n"
32806 " const char *device,\n"
32807 " const char *uuid);\n"
32812 #: ../src/guestfs-actions.pod:6739
32814 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32815 "the existing UUID of a filesystem."
32819 #: ../src/guestfs-actions.pod:6746
32820 msgid "guestfs_set_memsize"
32824 #: ../src/guestfs-actions.pod:6748
32828 " guestfs_set_memsize (guestfs_h *g,\n"
32834 #: ../src/guestfs-actions.pod:6752
32836 "This sets the memory size in megabytes allocated to the qemu subprocess. "
32837 "This only has any effect if called before C<guestfs_launch>."
32841 #: ../src/guestfs-actions.pod:6767
32842 msgid "guestfs_set_network"
32846 #: ../src/guestfs-actions.pod:6769
32850 " guestfs_set_network (guestfs_h *g,\n"
32856 #: ../src/guestfs-actions.pod:6779
32858 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32863 #: ../src/guestfs-actions.pod:6786
32864 msgid "guestfs_set_path"
32868 #: ../src/guestfs-actions.pod:6788
32872 " guestfs_set_path (guestfs_h *g,\n"
32873 " const char *searchpath);\n"
32878 #: ../src/guestfs-actions.pod:6803
32879 msgid "guestfs_set_pgroup"
32883 #: ../src/guestfs-actions.pod:6805
32887 " guestfs_set_pgroup (guestfs_h *g,\n"
32893 #: ../src/guestfs-actions.pod:6822
32894 msgid "guestfs_set_qemu"
32898 #: ../src/guestfs-actions.pod:6824
32902 " guestfs_set_qemu (guestfs_h *g,\n"
32903 " const char *qemu);\n"
32908 #: ../src/guestfs-actions.pod:6850
32909 msgid "guestfs_set_recovery_proc"
32913 #: ../src/guestfs-actions.pod:6852
32917 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32918 " int recoveryproc);\n"
32923 #: ../src/guestfs-actions.pod:6856
32925 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32926 "not create a recovery process. The purpose of the recovery process is to "
32927 "stop runaway qemu processes in the case where the main program aborts "
32932 #: ../src/guestfs-actions.pod:6861
32934 "This only has any effect if called before C<guestfs_launch>, and the default"
32939 #: ../src/guestfs-actions.pod:6874
32940 msgid "guestfs_set_selinux"
32944 #: ../src/guestfs-actions.pod:6876
32948 " guestfs_set_selinux (guestfs_h *g,\n"
32954 #: ../src/guestfs-actions.pod:6893
32955 msgid "guestfs_set_smp"
32959 #: ../src/guestfs-actions.pod:6895
32963 " guestfs_set_smp (guestfs_h *g,\n"
32969 #: ../src/guestfs-actions.pod:6903
32970 msgid "This function must be called before C<guestfs_launch>."
32974 #: ../src/guestfs-actions.pod:6909
32975 msgid "guestfs_set_trace"
32979 #: ../src/guestfs-actions.pod:6911
32983 " guestfs_set_trace (guestfs_h *g,\n"
32989 #: ../src/guestfs-actions.pod:6925
32991 "Trace messages are normally sent to C<stderr>, unless you register a "
32992 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32996 #: ../src/guestfs-actions.pod:6933
32997 msgid "guestfs_set_verbose"
33001 #: ../src/guestfs-actions.pod:6935
33005 " guestfs_set_verbose (guestfs_h *g,\n"
33011 #: ../src/guestfs-actions.pod:6944
33013 "Verbose messages are normally sent to C<stderr>, unless you register a "
33014 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33018 #: ../src/guestfs-actions.pod:6952
33019 msgid "guestfs_setcon"
33023 #: ../src/guestfs-actions.pod:6954
33027 " guestfs_setcon (guestfs_h *g,\n"
33028 " const char *context);\n"
33033 #: ../src/guestfs-actions.pod:6967
33034 msgid "guestfs_setxattr"
33038 #: ../src/guestfs-actions.pod:6969
33042 " guestfs_setxattr (guestfs_h *g,\n"
33043 " const char *xattr,\n"
33044 " const char *val,\n"
33046 " const char *path);\n"
33051 #: ../src/guestfs-actions.pod:6980
33052 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33056 #: ../src/guestfs-actions.pod:6986
33057 msgid "guestfs_sfdisk"
33061 #: ../src/guestfs-actions.pod:6988
33065 " guestfs_sfdisk (guestfs_h *g,\n"
33066 " const char *device,\n"
33070 " char *const *lines);\n"
33075 #: ../src/guestfs-actions.pod:6996 ../src/guestfs-actions.pod:7040
33076 #: ../src/guestfs-actions.pod:7074
33078 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33083 #: ../src/guestfs-actions.pod:7023
33085 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33089 #: ../src/guestfs-actions.pod:7033
33090 msgid "guestfs_sfdiskM"
33094 #: ../src/guestfs-actions.pod:7035
33098 " guestfs_sfdiskM (guestfs_h *g,\n"
33099 " const char *device,\n"
33100 " char *const *lines);\n"
33105 #: ../src/guestfs-actions.pod:7047
33107 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33108 "partition sizes are specified in megabytes only (rounded to the nearest "
33109 "cylinder) and you don't need to specify the cyls, heads and sectors "
33110 "parameters which were rarely if ever used anyway."
33114 #: ../src/guestfs-actions.pod:7053
33116 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33117 "C<guestfs_part_disk>"
33121 #: ../src/guestfs-actions.pod:7063
33122 msgid "guestfs_sfdisk_N"
33126 #: ../src/guestfs-actions.pod:7065
33130 " guestfs_sfdisk_N (guestfs_h *g,\n"
33131 " const char *device,\n"
33136 " const char *line);\n"
33141 #: ../src/guestfs-actions.pod:7084
33143 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
33144 "for the cyls/heads/sectors parameters."
33148 #: ../src/guestfs-actions.pod:7087
33149 msgid "See also: C<guestfs_part_add>"
33153 #: ../src/guestfs-actions.pod:7096
33154 msgid "guestfs_sfdisk_disk_geometry"
33158 #: ../src/guestfs-actions.pod:7098
33162 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33163 " const char *device);\n"
33168 #: ../src/guestfs-actions.pod:7102
33170 "This displays the disk geometry of C<device> read from the partition table."
33171 " Especially in the case where the underlying block device has been resized,"
33172 " this can be different from the kernel's idea of the geometry (see "
33173 "C<guestfs_sfdisk_kernel_geometry>)."
33177 #: ../src/guestfs-actions.pod:7115
33178 msgid "guestfs_sfdisk_kernel_geometry"
33182 #: ../src/guestfs-actions.pod:7117
33186 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33187 " const char *device);\n"
33192 #: ../src/guestfs-actions.pod:7131
33193 msgid "guestfs_sfdisk_l"
33197 #: ../src/guestfs-actions.pod:7133
33201 " guestfs_sfdisk_l (guestfs_h *g,\n"
33202 " const char *device);\n"
33207 #: ../src/guestfs-actions.pod:7137
33209 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33214 #: ../src/guestfs-actions.pod:7148
33215 msgid "See also: C<guestfs_part_list>"
33219 #: ../src/guestfs-actions.pod:7155
33224 #: ../src/guestfs-actions.pod:7157
33228 " guestfs_sh (guestfs_h *g,\n"
33229 " const char *command);\n"
33234 #: ../src/guestfs-actions.pod:7164
33235 msgid "This is like C<guestfs_command>, but passes the command to:"
33239 #: ../src/guestfs-actions.pod:7172
33240 msgid "All the provisos about C<guestfs_command> apply to this call."
33244 #: ../src/guestfs-actions.pod:7179
33245 msgid "guestfs_sh_lines"
33249 #: ../src/guestfs-actions.pod:7181
33253 " guestfs_sh_lines (guestfs_h *g,\n"
33254 " const char *command);\n"
33259 #: ../src/guestfs-actions.pod:7185
33261 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33266 #: ../src/guestfs-actions.pod:7188
33267 msgid "See also: C<guestfs_command_lines>"
33271 #: ../src/guestfs-actions.pod:7196
33272 msgid "guestfs_sleep"
33276 #: ../src/guestfs-actions.pod:7198
33280 " guestfs_sleep (guestfs_h *g,\n"
33286 #: ../src/guestfs-actions.pod:7206
33287 msgid "(Added in 1.0.41)"
33288 msgstr "(Додано у 1.0.41)"
33291 #: ../src/guestfs-actions.pod:7208 ../src/guestfs-structs.pod:109
33292 msgid "guestfs_stat"
33296 #: ../src/guestfs-actions.pod:7210
33299 " struct guestfs_stat *\n"
33300 " guestfs_stat (guestfs_h *g,\n"
33301 " const char *path);\n"
33306 #: ../src/guestfs-actions.pod:7224 ../src/guestfs-structs.pod:135
33307 msgid "guestfs_statvfs"
33311 #: ../src/guestfs-actions.pod:7226
33314 " struct guestfs_statvfs *\n"
33315 " guestfs_statvfs (guestfs_h *g,\n"
33316 " const char *path);\n"
33321 #: ../src/guestfs-actions.pod:7236
33323 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an"
33324 " error. I<The caller must call C<guestfs_free_statvfs> after use>."
33328 #: ../src/guestfs-actions.pod:7242
33329 msgid "guestfs_strings"
33333 #: ../src/guestfs-actions.pod:7244
33337 " guestfs_strings (guestfs_h *g,\n"
33338 " const char *path);\n"
33343 #: ../src/guestfs-actions.pod:7260
33344 msgid "guestfs_strings_e"
33348 #: ../src/guestfs-actions.pod:7262
33352 " guestfs_strings_e (guestfs_h *g,\n"
33353 " const char *encoding,\n"
33354 " const char *path);\n"
33359 #: ../src/guestfs-actions.pod:7267
33361 "This is like the C<guestfs_strings> command, but allows you to specify the "
33362 "encoding of strings that are looked for in the source file C<path>."
33366 #: ../src/guestfs-actions.pod:7277
33368 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33369 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33373 #: ../src/guestfs-actions.pod:7315
33374 msgid "guestfs_swapoff_device"
33378 #: ../src/guestfs-actions.pod:7317
33382 " guestfs_swapoff_device (guestfs_h *g,\n"
33383 " const char *device);\n"
33388 #: ../src/guestfs-actions.pod:7321
33390 "This command disables the libguestfs appliance swap device or partition "
33391 "named C<device>. See C<guestfs_swapon_device>."
33395 #: ../src/guestfs-actions.pod:7329
33396 msgid "guestfs_swapoff_file"
33400 #: ../src/guestfs-actions.pod:7331
33404 " guestfs_swapoff_file (guestfs_h *g,\n"
33405 " const char *file);\n"
33410 #: ../src/guestfs-actions.pod:7341
33411 msgid "guestfs_swapoff_label"
33415 #: ../src/guestfs-actions.pod:7343
33419 " guestfs_swapoff_label (guestfs_h *g,\n"
33420 " const char *label);\n"
33425 #: ../src/guestfs-actions.pod:7354
33426 msgid "guestfs_swapoff_uuid"
33430 #: ../src/guestfs-actions.pod:7356
33434 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33435 " const char *uuid);\n"
33440 #: ../src/guestfs-actions.pod:7367
33441 msgid "guestfs_swapon_device"
33445 #: ../src/guestfs-actions.pod:7369
33449 " guestfs_swapon_device (guestfs_h *g,\n"
33450 " const char *device);\n"
33455 #: ../src/guestfs-actions.pod:7373
33457 "This command enables the libguestfs appliance to use the swap device or "
33458 "partition named C<device>. The increased memory is made available for all "
33459 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33463 #: ../src/guestfs-actions.pod:7389
33464 msgid "guestfs_swapon_file"
33468 #: ../src/guestfs-actions.pod:7391
33472 " guestfs_swapon_file (guestfs_h *g,\n"
33473 " const char *file);\n"
33478 #: ../src/guestfs-actions.pod:7395
33480 "This command enables swap to a file. See C<guestfs_swapon_device> for other"
33485 #: ../src/guestfs-actions.pod:7402
33486 msgid "guestfs_swapon_label"
33490 #: ../src/guestfs-actions.pod:7404
33494 " guestfs_swapon_label (guestfs_h *g,\n"
33495 " const char *label);\n"
33500 #: ../src/guestfs-actions.pod:7408
33502 "This command enables swap to a labeled swap partition. See "
33503 "C<guestfs_swapon_device> for other notes."
33507 #: ../src/guestfs-actions.pod:7415
33508 msgid "guestfs_swapon_uuid"
33512 #: ../src/guestfs-actions.pod:7417
33516 " guestfs_swapon_uuid (guestfs_h *g,\n"
33517 " const char *uuid);\n"
33522 #: ../src/guestfs-actions.pod:7421
33524 "This command enables swap to a swap partition with the given UUID. See "
33525 "C<guestfs_swapon_device> for other notes."
33529 #: ../src/guestfs-actions.pod:7428
33530 msgid "guestfs_sync"
33534 #: ../src/guestfs-actions.pod:7430
33538 " guestfs_sync (guestfs_h *g);\n"
33543 #: ../src/guestfs-actions.pod:7443
33544 msgid "guestfs_tail"
33548 #: ../src/guestfs-actions.pod:7445
33552 " guestfs_tail (guestfs_h *g,\n"
33553 " const char *path);\n"
33558 #: ../src/guestfs-actions.pod:7461
33559 msgid "guestfs_tail_n"
33563 #: ../src/guestfs-actions.pod:7463
33567 " guestfs_tail_n (guestfs_h *g,\n"
33569 " const char *path);\n"
33574 #: ../src/guestfs-actions.pod:7485
33575 msgid "guestfs_tar_in"
33579 #: ../src/guestfs-actions.pod:7487
33583 " guestfs_tar_in (guestfs_h *g,\n"
33584 " const char *tarfile,\n"
33585 " const char *directory);\n"
33590 #: ../src/guestfs-actions.pod:7495
33592 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33596 #: ../src/guestfs-actions.pod:7500 ../src/guestfs-actions.pod:7517
33597 #: ../src/guestfs-actions.pod:7533 ../src/guestfs-actions.pod:7549
33598 msgid "(Added in 1.0.3)"
33599 msgstr "(Додано у 1.0.3)"
33602 #: ../src/guestfs-actions.pod:7502
33603 msgid "guestfs_tar_out"
33607 #: ../src/guestfs-actions.pod:7504
33611 " guestfs_tar_out (guestfs_h *g,\n"
33612 " const char *directory,\n"
33613 " const char *tarfile);\n"
33618 #: ../src/guestfs-actions.pod:7512
33620 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33621 "C<guestfs_txz_out>."
33625 #: ../src/guestfs-actions.pod:7519
33626 msgid "guestfs_tgz_in"
33630 #: ../src/guestfs-actions.pod:7521
33634 " guestfs_tgz_in (guestfs_h *g,\n"
33635 " const char *tarball,\n"
33636 " const char *directory);\n"
33641 #: ../src/guestfs-actions.pod:7529
33642 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33646 #: ../src/guestfs-actions.pod:7535
33647 msgid "guestfs_tgz_out"
33651 #: ../src/guestfs-actions.pod:7537
33655 " guestfs_tgz_out (guestfs_h *g,\n"
33656 " const char *directory,\n"
33657 " const char *tarball);\n"
33662 #: ../src/guestfs-actions.pod:7545
33663 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33667 #: ../src/guestfs-actions.pod:7551
33668 msgid "guestfs_touch"
33672 #: ../src/guestfs-actions.pod:7553
33676 " guestfs_touch (guestfs_h *g,\n"
33677 " const char *path);\n"
33682 #: ../src/guestfs-actions.pod:7568
33683 msgid "guestfs_truncate"
33687 #: ../src/guestfs-actions.pod:7570
33691 " guestfs_truncate (guestfs_h *g,\n"
33692 " const char *path);\n"
33697 #: ../src/guestfs-actions.pod:7581
33698 msgid "guestfs_truncate_size"
33702 #: ../src/guestfs-actions.pod:7583
33706 " guestfs_truncate_size (guestfs_h *g,\n"
33707 " const char *path,\n"
33708 " int64_t size);\n"
33713 #: ../src/guestfs-actions.pod:7591
33715 "If the current file size is less than C<size> then the file is extended to "
33716 "the required size with zero bytes. This creates a sparse file (ie. disk "
33717 "blocks are not allocated for the file until you write to it). To create a "
33718 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33722 #: ../src/guestfs-actions.pod:7601
33723 msgid "guestfs_tune2fs_l"
33727 #: ../src/guestfs-actions.pod:7603
33731 " guestfs_tune2fs_l (guestfs_h *g,\n"
33732 " const char *device);\n"
33737 #: ../src/guestfs-actions.pod:7623
33738 msgid "guestfs_txz_in"
33742 #: ../src/guestfs-actions.pod:7625
33746 " guestfs_txz_in (guestfs_h *g,\n"
33747 " const char *tarball,\n"
33748 " const char *directory);\n"
33753 #: ../src/guestfs-actions.pod:7637
33754 msgid "guestfs_txz_out"
33758 #: ../src/guestfs-actions.pod:7639
33762 " guestfs_txz_out (guestfs_h *g,\n"
33763 " const char *directory,\n"
33764 " const char *tarball);\n"
33769 #: ../src/guestfs-actions.pod:7651
33770 msgid "guestfs_umask"
33774 #: ../src/guestfs-actions.pod:7653
33778 " guestfs_umask (guestfs_h *g,\n"
33784 #: ../src/guestfs-actions.pod:7669
33786 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33787 "C<guestfs_mkdir>."
33791 #: ../src/guestfs-actions.pod:7678
33792 msgid "guestfs_umount"
33796 #: ../src/guestfs-actions.pod:7680
33800 " guestfs_umount (guestfs_h *g,\n"
33801 " const char *pathordevice);\n"
33806 #: ../src/guestfs-actions.pod:7692
33807 msgid "guestfs_umount_all"
33811 #: ../src/guestfs-actions.pod:7694
33815 " guestfs_umount_all (guestfs_h *g);\n"
33820 #: ../src/guestfs-actions.pod:7705
33821 msgid "guestfs_upload"
33825 #: ../src/guestfs-actions.pod:7707
33829 " guestfs_upload (guestfs_h *g,\n"
33830 " const char *filename,\n"
33831 " const char *remotefilename);\n"
33836 #: ../src/guestfs-actions.pod:7717
33837 msgid "See also C<guestfs_download>."
33841 #: ../src/guestfs-actions.pod:7728
33842 msgid "guestfs_upload_offset"
33846 #: ../src/guestfs-actions.pod:7730
33850 " guestfs_upload_offset (guestfs_h *g,\n"
33851 " const char *filename,\n"
33852 " const char *remotefilename,\n"
33853 " int64_t offset);\n"
33858 #: ../src/guestfs-actions.pod:7746
33860 "Note that there is no limit on the amount of data that can be uploaded with "
33861 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33862 "full amount unless an error occurs."
33866 #: ../src/guestfs-actions.pod:7751
33867 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33871 #: ../src/guestfs-actions.pod:7762
33872 msgid "guestfs_utimens"
33876 #: ../src/guestfs-actions.pod:7764
33880 " guestfs_utimens (guestfs_h *g,\n"
33881 " const char *path,\n"
33882 " int64_t atsecs,\n"
33883 " int64_t atnsecs,\n"
33884 " int64_t mtsecs,\n"
33885 " int64_t mtnsecs);\n"
33890 #: ../src/guestfs-actions.pod:7793 ../src/guestfs-structs.pod:175
33891 msgid "guestfs_version"
33895 #: ../src/guestfs-actions.pod:7795
33898 " struct guestfs_version *\n"
33899 " guestfs_version (guestfs_h *g);\n"
33904 #: ../src/guestfs-actions.pod:7823
33906 "I<Note:> Don't use this call to test for availability of features. In "
33907 "enterprise distributions we backport features from later versions into "
33908 "earlier versions, making this an unreliable way to test for features. Use "
33909 "C<guestfs_available> instead."
33913 #: ../src/guestfs-actions.pod:7829
33915 "This function returns a C<struct guestfs_version *>, or NULL if there was an"
33916 " error. I<The caller must call C<guestfs_free_version> after use>."
33920 #: ../src/guestfs-actions.pod:7833
33921 msgid "(Added in 1.0.58)"
33922 msgstr "(Додано у 1.0.58)"
33925 #: ../src/guestfs-actions.pod:7835
33926 msgid "guestfs_vfs_label"
33930 #: ../src/guestfs-actions.pod:7837
33934 " guestfs_vfs_label (guestfs_h *g,\n"
33935 " const char *device);\n"
33940 #: ../src/guestfs-actions.pod:7846
33941 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33945 #: ../src/guestfs-actions.pod:7851 ../src/guestfs-actions.pod:7888
33946 msgid "(Added in 1.3.18)"
33947 msgstr "(Додано у 1.3.18)"
33950 #: ../src/guestfs-actions.pod:7853
33951 msgid "guestfs_vfs_type"
33955 #: ../src/guestfs-actions.pod:7855
33959 " guestfs_vfs_type (guestfs_h *g,\n"
33960 " const char *device);\n"
33965 #: ../src/guestfs-actions.pod:7872
33966 msgid "guestfs_vfs_uuid"
33970 #: ../src/guestfs-actions.pod:7874
33974 " guestfs_vfs_uuid (guestfs_h *g,\n"
33975 " const char *device);\n"
33980 #: ../src/guestfs-actions.pod:7883
33981 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33985 #: ../src/guestfs-actions.pod:7890
33986 msgid "guestfs_vg_activate"
33990 #: ../src/guestfs-actions.pod:7892
33994 " guestfs_vg_activate (guestfs_h *g,\n"
33996 " char *const *volgroups);\n"
34001 #: ../src/guestfs-actions.pod:7909
34002 msgid "guestfs_vg_activate_all"
34006 #: ../src/guestfs-actions.pod:7911
34010 " guestfs_vg_activate_all (guestfs_h *g,\n"
34011 " int activate);\n"
34016 #: ../src/guestfs-actions.pod:7924
34017 msgid "guestfs_vgcreate"
34021 #: ../src/guestfs-actions.pod:7926
34025 " guestfs_vgcreate (guestfs_h *g,\n"
34026 " const char *volgroup,\n"
34027 " char *const *physvols);\n"
34032 #: ../src/guestfs-actions.pod:7938
34033 msgid "guestfs_vglvuuids"
34037 #: ../src/guestfs-actions.pod:7940
34041 " guestfs_vglvuuids (guestfs_h *g,\n"
34042 " const char *vgname);\n"
34047 #: ../src/guestfs-actions.pod:7947
34049 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34050 "associate logical volumes and volume groups."
34054 #: ../src/guestfs-actions.pod:7950
34055 msgid "See also C<guestfs_vgpvuuids>."
34059 #: ../src/guestfs-actions.pod:7958
34060 msgid "guestfs_vgpvuuids"
34064 #: ../src/guestfs-actions.pod:7960
34068 " guestfs_vgpvuuids (guestfs_h *g,\n"
34069 " const char *vgname);\n"
34074 #: ../src/guestfs-actions.pod:7967
34076 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34077 "associate physical volumes and volume groups."
34081 #: ../src/guestfs-actions.pod:7970
34082 msgid "See also C<guestfs_vglvuuids>."
34086 #: ../src/guestfs-actions.pod:7978
34087 msgid "guestfs_vgremove"
34091 #: ../src/guestfs-actions.pod:7980
34095 " guestfs_vgremove (guestfs_h *g,\n"
34096 " const char *vgname);\n"
34101 #: ../src/guestfs-actions.pod:7993
34102 msgid "guestfs_vgrename"
34106 #: ../src/guestfs-actions.pod:7995
34110 " guestfs_vgrename (guestfs_h *g,\n"
34111 " const char *volgroup,\n"
34112 " const char *newvolgroup);\n"
34117 #: ../src/guestfs-actions.pod:8006
34118 msgid "guestfs_vgs"
34122 #: ../src/guestfs-actions.pod:8008
34126 " guestfs_vgs (guestfs_h *g);\n"
34131 #: ../src/guestfs-actions.pod:8017
34132 msgid "See also C<guestfs_vgs_full>."
34136 #: ../src/guestfs-actions.pod:8025
34137 msgid "guestfs_vgs_full"
34141 #: ../src/guestfs-actions.pod:8027
34144 " struct guestfs_lvm_vg_list *\n"
34145 " guestfs_vgs_full (guestfs_h *g);\n"
34150 #: ../src/guestfs-actions.pod:8033
34152 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34153 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after "
34158 #: ../src/guestfs-actions.pod:8039
34159 msgid "guestfs_vgscan"
34163 #: ../src/guestfs-actions.pod:8041
34167 " guestfs_vgscan (guestfs_h *g);\n"
34172 #: ../src/guestfs-actions.pod:8051
34173 msgid "guestfs_vguuid"
34177 #: ../src/guestfs-actions.pod:8053
34181 " guestfs_vguuid (guestfs_h *g,\n"
34182 " const char *vgname);\n"
34187 #: ../src/guestfs-actions.pod:8064
34188 msgid "guestfs_wait_ready"
34192 #: ../src/guestfs-actions.pod:8066
34196 " guestfs_wait_ready (guestfs_h *g);\n"
34201 #: ../src/guestfs-actions.pod:8069
34203 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call"
34208 #: ../src/guestfs-actions.pod:8076
34209 msgid "This function is a no op."
34213 #: ../src/guestfs-actions.pod:8078
34215 "In versions of the API E<lt> 1.0.71 you had to call this function just after"
34216 " calling C<guestfs_launch> to wait for the launch to complete. However this"
34217 " is no longer necessary because C<guestfs_launch> now does the waiting."
34221 #: ../src/guestfs-actions.pod:8083
34223 "If you see any calls to this function in code then you can just remove them,"
34224 " unless you want to retain compatibility with older versions of the API."
34228 #: ../src/guestfs-actions.pod:8091
34229 msgid "guestfs_wc_c"
34233 #: ../src/guestfs-actions.pod:8093
34237 " guestfs_wc_c (guestfs_h *g,\n"
34238 " const char *path);\n"
34243 #: ../src/guestfs-actions.pod:8104
34244 msgid "guestfs_wc_l"
34248 #: ../src/guestfs-actions.pod:8106
34252 " guestfs_wc_l (guestfs_h *g,\n"
34253 " const char *path);\n"
34258 #: ../src/guestfs-actions.pod:8117
34259 msgid "guestfs_wc_w"
34263 #: ../src/guestfs-actions.pod:8119
34267 " guestfs_wc_w (guestfs_h *g,\n"
34268 " const char *path);\n"
34273 #: ../src/guestfs-actions.pod:8130
34274 msgid "guestfs_write"
34278 #: ../src/guestfs-actions.pod:8132
34282 " guestfs_write (guestfs_h *g,\n"
34283 " const char *path,\n"
34284 " const char *content,\n"
34285 " size_t content_size);\n"
34290 #: ../src/guestfs-actions.pod:8141
34291 msgid "See also C<guestfs_write_append>."
34295 #: ../src/guestfs-actions.pod:8150
34296 msgid "guestfs_write_append"
34300 #: ../src/guestfs-actions.pod:8152
34304 " guestfs_write_append (guestfs_h *g,\n"
34305 " const char *path,\n"
34306 " const char *content,\n"
34307 " size_t content_size);\n"
34312 #: ../src/guestfs-actions.pod:8161
34313 msgid "See also C<guestfs_write>."
34317 #: ../src/guestfs-actions.pod:8170
34318 msgid "guestfs_write_file"
34319 msgstr "guestfs_write_file"
34322 #: ../src/guestfs-actions.pod:8172
34326 " guestfs_write_file (guestfs_h *g,\n"
34327 " const char *path,\n"
34328 " const char *content,\n"
34333 " guestfs_write_file (guestfs_h *g,\n"
34334 " const char *path,\n"
34335 " const char *content,\n"
34340 #: ../src/guestfs-actions.pod:8178
34342 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34347 #: ../src/guestfs-actions.pod:8203
34348 msgid "guestfs_zegrep"
34349 msgstr "guestfs_zegrep"
34352 #: ../src/guestfs-actions.pod:8205
34356 " guestfs_zegrep (guestfs_h *g,\n"
34357 " const char *regex,\n"
34358 " const char *path);\n"
34362 " guestfs_zegrep (guestfs_h *g,\n"
34363 " const char *regex,\n"
34364 " const char *path);\n"
34368 #: ../src/guestfs-actions.pod:8222
34369 msgid "guestfs_zegrepi"
34370 msgstr "guestfs_zegrepi"
34373 #: ../src/guestfs-actions.pod:8224
34377 " guestfs_zegrepi (guestfs_h *g,\n"
34378 " const char *regex,\n"
34379 " const char *path);\n"
34383 " guestfs_zegrepi (guestfs_h *g,\n"
34384 " const char *regex,\n"
34385 " const char *path);\n"
34389 #: ../src/guestfs-actions.pod:8241
34390 msgid "guestfs_zero"
34391 msgstr "guestfs_zero"
34394 #: ../src/guestfs-actions.pod:8243
34398 " guestfs_zero (guestfs_h *g,\n"
34399 " const char *device);\n"
34403 " guestfs_zero (guestfs_h *g,\n"
34404 " const char *device);\n"
34408 #: ../src/guestfs-actions.pod:8257
34410 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34411 "C<guestfs_is_zero_device>"
34415 #: ../src/guestfs-actions.pod:8269
34416 msgid "guestfs_zero_device"
34417 msgstr "guestfs_zero_device"
34420 #: ../src/guestfs-actions.pod:8271
34424 " guestfs_zero_device (guestfs_h *g,\n"
34425 " const char *device);\n"
34429 " guestfs_zero_device (guestfs_h *g,\n"
34430 " const char *device);\n"
34434 #: ../src/guestfs-actions.pod:8275
34436 "This command writes zeroes over the entire C<device>. Compare with "
34437 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34441 #: ../src/guestfs-actions.pod:8293
34442 msgid "(Added in 1.3.1)"
34443 msgstr "(Додано у 1.3.1)"
34446 #: ../src/guestfs-actions.pod:8295
34447 msgid "guestfs_zerofree"
34448 msgstr "guestfs_zerofree"
34451 #: ../src/guestfs-actions.pod:8297
34455 " guestfs_zerofree (guestfs_h *g,\n"
34456 " const char *device);\n"
34460 " guestfs_zerofree (guestfs_h *g,\n"
34461 " const char *device);\n"
34465 #: ../src/guestfs-actions.pod:8316
34466 msgid "guestfs_zfgrep"
34467 msgstr "guestfs_zfgrep"
34470 #: ../src/guestfs-actions.pod:8318
34474 " guestfs_zfgrep (guestfs_h *g,\n"
34475 " const char *pattern,\n"
34476 " const char *path);\n"
34480 " guestfs_zfgrep (guestfs_h *g,\n"
34481 " const char *pattern,\n"
34482 " const char *path);\n"
34486 #: ../src/guestfs-actions.pod:8335
34487 msgid "guestfs_zfgrepi"
34488 msgstr "guestfs_zfgrepi"
34491 #: ../src/guestfs-actions.pod:8337
34495 " guestfs_zfgrepi (guestfs_h *g,\n"
34496 " const char *pattern,\n"
34497 " const char *path);\n"
34501 " guestfs_zfgrepi (guestfs_h *g,\n"
34502 " const char *pattern,\n"
34503 " const char *path);\n"
34507 #: ../src/guestfs-actions.pod:8354
34508 msgid "guestfs_zfile"
34509 msgstr "guestfs_zfile"
34512 #: ../src/guestfs-actions.pod:8356
34516 " guestfs_zfile (guestfs_h *g,\n"
34517 " const char *meth,\n"
34518 " const char *path);\n"
34522 " guestfs_zfile (guestfs_h *g,\n"
34523 " const char *meth,\n"
34524 " const char *path);\n"
34528 #: ../src/guestfs-actions.pod:8361
34530 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34535 #: ../src/guestfs-actions.pod:8373
34537 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34542 #: ../src/guestfs-actions.pod:8381
34543 msgid "guestfs_zgrep"
34544 msgstr "guestfs_zgrep"
34547 #: ../src/guestfs-actions.pod:8383
34551 " guestfs_zgrep (guestfs_h *g,\n"
34552 " const char *regex,\n"
34553 " const char *path);\n"
34557 " guestfs_zgrep (guestfs_h *g,\n"
34558 " const char *regex,\n"
34559 " const char *path);\n"
34563 #: ../src/guestfs-actions.pod:8400
34564 msgid "guestfs_zgrepi"
34565 msgstr "guestfs_zgrepi"
34568 #: ../src/guestfs-actions.pod:8402
34572 " guestfs_zgrepi (guestfs_h *g,\n"
34573 " const char *regex,\n"
34574 " const char *path);\n"
34578 " guestfs_zgrepi (guestfs_h *g,\n"
34579 " const char *regex,\n"
34580 " const char *path);\n"
34584 #: ../src/guestfs-availability.pod:3
34589 #: ../src/guestfs-availability.pod:5
34591 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
34592 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
34593 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
34594 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
34595 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
34599 #: ../src/guestfs-availability.pod:21
34604 #: ../src/guestfs-availability.pod:23
34605 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34609 #: ../src/guestfs-availability.pod:26
34614 #: ../src/guestfs-availability.pod:28
34615 msgid "The following functions: L</guestfs_grub_install>"
34619 #: ../src/guestfs-availability.pod:31
34621 msgstr "B<inotify>"
34624 #: ../src/guestfs-availability.pod:33
34626 "The following functions: L</guestfs_inotify_add_watch> "
34627 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init>"
34628 " L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34632 #: ../src/guestfs-availability.pod:41
34633 msgid "B<linuxfsuuid>"
34634 msgstr "B<linuxfsuuid>"
34637 #: ../src/guestfs-availability.pod:43
34639 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
34640 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34644 #: ../src/guestfs-availability.pod:50
34645 msgid "B<linuxmodules>"
34646 msgstr "B<linuxmodules>"
34649 #: ../src/guestfs-availability.pod:52
34650 msgid "The following functions: L</guestfs_modprobe>"
34654 #: ../src/guestfs-availability.pod:55
34655 msgid "B<linuxxattrs>"
34656 msgstr "B<linuxxattrs>"
34659 #: ../src/guestfs-availability.pod:57
34661 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
34662 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
34663 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
34664 "L</guestfs_setxattr>"
34668 #: ../src/guestfs-availability.pod:68
34673 #: ../src/guestfs-availability.pod:70
34675 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
34676 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
34677 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34681 #: ../src/guestfs-availability.pod:79
34686 #: ../src/guestfs-availability.pod:81
34688 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
34689 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
34690 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
34691 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
34692 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
34693 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
34694 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
34695 "L</guestfs_vgs_full>"
34699 #: ../src/guestfs-availability.pod:104
34704 #: ../src/guestfs-availability.pod:106
34706 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
34707 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
34711 #: ../src/guestfs-availability.pod:112
34716 #: ../src/guestfs-availability.pod:114
34717 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34721 #: ../src/guestfs-availability.pod:117
34722 msgid "B<ntfsprogs>"
34723 msgstr "B<ntfsprogs>"
34726 #: ../src/guestfs-availability.pod:119
34728 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34729 "L</guestfs_ntfsresize_size>"
34733 #: ../src/guestfs-availability.pod:124
34734 msgid "B<realpath>"
34735 msgstr "B<realpath>"
34738 #: ../src/guestfs-availability.pod:126
34739 msgid "The following functions: L</guestfs_realpath>"
34743 #: ../src/guestfs-availability.pod:129
34748 #: ../src/guestfs-availability.pod:131
34750 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
34751 "L</guestfs_scrub_freespace>"
34755 #: ../src/guestfs-availability.pod:136
34757 msgstr "B<selinux>"
34760 #: ../src/guestfs-availability.pod:138
34761 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34765 #: ../src/guestfs-availability.pod:142
34770 #: ../src/guestfs-availability.pod:144
34771 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34775 #: ../src/guestfs-availability.pod:148
34776 msgid "B<zerofree>"
34777 msgstr "B<zerofree>"
34780 #: ../src/guestfs-availability.pod:150
34781 msgid "The following functions: L</guestfs_zerofree>"
34785 #: ../src/guestfs-structs.pod:1
34786 msgid "guestfs_int_bool"
34790 #: ../src/guestfs-structs.pod:3
34793 " struct guestfs_int_bool {\n"
34801 #: ../src/guestfs-structs.pod:8
34804 " struct guestfs_int_bool_list {\n"
34805 " uint32_t len; /* Number of elements in list. */\n"
34806 " struct guestfs_int_bool *val; /* Elements. */\n"
34812 #: ../src/guestfs-structs.pod:13
34815 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34816 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34821 #: ../src/guestfs-structs.pod:16
34822 msgid "guestfs_lvm_pv"
34826 #: ../src/guestfs-structs.pod:18
34829 " struct guestfs_lvm_pv {\n"
34830 " char *pv_name;\n"
34831 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34832 " char pv_uuid[32];\n"
34834 " uint64_t pv_size;\n"
34835 " uint64_t dev_size;\n"
34836 " uint64_t pv_free;\n"
34837 " uint64_t pv_used;\n"
34838 " char *pv_attr;\n"
34839 " int64_t pv_pe_count;\n"
34840 " int64_t pv_pe_alloc_count;\n"
34841 " char *pv_tags;\n"
34842 " uint64_t pe_start;\n"
34843 " int64_t pv_mda_count;\n"
34844 " uint64_t pv_mda_free;\n"
34850 #: ../src/guestfs-structs.pod:36
34853 " struct guestfs_lvm_pv_list {\n"
34854 " uint32_t len; /* Number of elements in list. */\n"
34855 " struct guestfs_lvm_pv *val; /* Elements. */\n"
34861 #: ../src/guestfs-structs.pod:41
34864 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34865 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34870 #: ../src/guestfs-structs.pod:44
34871 msgid "guestfs_lvm_vg"
34875 #: ../src/guestfs-structs.pod:46
34878 " struct guestfs_lvm_vg {\n"
34879 " char *vg_name;\n"
34880 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34881 " char vg_uuid[32];\n"
34883 " char *vg_attr;\n"
34884 " uint64_t vg_size;\n"
34885 " uint64_t vg_free;\n"
34886 " char *vg_sysid;\n"
34887 " uint64_t vg_extent_size;\n"
34888 " int64_t vg_extent_count;\n"
34889 " int64_t vg_free_count;\n"
34890 " int64_t max_lv;\n"
34891 " int64_t max_pv;\n"
34892 " int64_t pv_count;\n"
34893 " int64_t lv_count;\n"
34894 " int64_t snap_count;\n"
34895 " int64_t vg_seqno;\n"
34896 " char *vg_tags;\n"
34897 " int64_t vg_mda_count;\n"
34898 " uint64_t vg_mda_free;\n"
34904 #: ../src/guestfs-structs.pod:69
34907 " struct guestfs_lvm_vg_list {\n"
34908 " uint32_t len; /* Number of elements in list. */\n"
34909 " struct guestfs_lvm_vg *val; /* Elements. */\n"
34915 #: ../src/guestfs-structs.pod:74
34918 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34919 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34924 #: ../src/guestfs-structs.pod:77
34925 msgid "guestfs_lvm_lv"
34929 #: ../src/guestfs-structs.pod:79
34932 " struct guestfs_lvm_lv {\n"
34933 " char *lv_name;\n"
34934 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34935 " char lv_uuid[32];\n"
34936 " char *lv_attr;\n"
34937 " int64_t lv_major;\n"
34938 " int64_t lv_minor;\n"
34939 " int64_t lv_kernel_major;\n"
34940 " int64_t lv_kernel_minor;\n"
34941 " uint64_t lv_size;\n"
34942 " int64_t seg_count;\n"
34944 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
34945 " float snap_percent;\n"
34946 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
34947 " float copy_percent;\n"
34948 " char *move_pv;\n"
34949 " char *lv_tags;\n"
34950 " char *mirror_log;\n"
34951 " char *modules;\n"
34957 #: ../src/guestfs-structs.pod:101
34960 " struct guestfs_lvm_lv_list {\n"
34961 " uint32_t len; /* Number of elements in list. */\n"
34962 " struct guestfs_lvm_lv *val; /* Elements. */\n"
34968 #: ../src/guestfs-structs.pod:106
34971 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34972 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34977 #: ../src/guestfs-structs.pod:111
34980 " struct guestfs_stat {\n"
34984 " int64_t nlink;\n"
34989 " int64_t blksize;\n"
34990 " int64_t blocks;\n"
34991 " int64_t atime;\n"
34992 " int64_t mtime;\n"
34993 " int64_t ctime;\n"
34999 #: ../src/guestfs-structs.pod:127
35002 " struct guestfs_stat_list {\n"
35003 " uint32_t len; /* Number of elements in list. */\n"
35004 " struct guestfs_stat *val; /* Elements. */\n"
35010 #: ../src/guestfs-structs.pod:132
35013 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35014 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35019 #: ../src/guestfs-structs.pod:137
35022 " struct guestfs_statvfs {\n"
35023 " int64_t bsize;\n"
35024 " int64_t frsize;\n"
35025 " int64_t blocks;\n"
35026 " int64_t bfree;\n"
35027 " int64_t bavail;\n"
35028 " int64_t files;\n"
35029 " int64_t ffree;\n"
35030 " int64_t favail;\n"
35033 " int64_t namemax;\n"
35039 #: ../src/guestfs-structs.pod:151
35042 " struct guestfs_statvfs_list {\n"
35043 " uint32_t len; /* Number of elements in list. */\n"
35044 " struct guestfs_statvfs *val; /* Elements. */\n"
35050 #: ../src/guestfs-structs.pod:156
35053 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35054 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35059 #: ../src/guestfs-structs.pod:159
35060 msgid "guestfs_dirent"
35064 #: ../src/guestfs-structs.pod:161
35067 " struct guestfs_dirent {\n"
35076 #: ../src/guestfs-structs.pod:167
35079 " struct guestfs_dirent_list {\n"
35080 " uint32_t len; /* Number of elements in list. */\n"
35081 " struct guestfs_dirent *val; /* Elements. */\n"
35087 #: ../src/guestfs-structs.pod:172
35090 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35091 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35096 #: ../src/guestfs-structs.pod:177
35099 " struct guestfs_version {\n"
35100 " int64_t major;\n"
35101 " int64_t minor;\n"
35102 " int64_t release;\n"
35109 #: ../src/guestfs-structs.pod:184
35112 " struct guestfs_version_list {\n"
35113 " uint32_t len; /* Number of elements in list. */\n"
35114 " struct guestfs_version *val; /* Elements. */\n"
35120 #: ../src/guestfs-structs.pod:189
35123 " void guestfs_free_version (struct guestfs_free_version *);\n"
35124 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35129 #: ../src/guestfs-structs.pod:192
35130 msgid "guestfs_xattr"
35134 #: ../src/guestfs-structs.pod:194
35137 " struct guestfs_xattr {\n"
35138 " char *attrname;\n"
35139 " /* The next two fields describe a byte array. */\n"
35140 " uint32_t attrval_len;\n"
35141 " char *attrval;\n"
35147 #: ../src/guestfs-structs.pod:201
35150 " struct guestfs_xattr_list {\n"
35151 " uint32_t len; /* Number of elements in list. */\n"
35152 " struct guestfs_xattr *val; /* Elements. */\n"
35158 #: ../src/guestfs-structs.pod:206
35161 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35162 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35167 #: ../src/guestfs-structs.pod:209
35168 msgid "guestfs_inotify_event"
35172 #: ../src/guestfs-structs.pod:211
35175 " struct guestfs_inotify_event {\n"
35176 " int64_t in_wd;\n"
35177 " uint32_t in_mask;\n"
35178 " uint32_t in_cookie;\n"
35179 " char *in_name;\n"
35185 #: ../src/guestfs-structs.pod:218
35188 " struct guestfs_inotify_event_list {\n"
35189 " uint32_t len; /* Number of elements in list. */\n"
35190 " struct guestfs_inotify_event *val; /* Elements. */\n"
35196 #: ../src/guestfs-structs.pod:223
35199 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
35200 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
35205 #: ../src/guestfs-structs.pod:226
35206 msgid "guestfs_partition"
35210 #: ../src/guestfs-structs.pod:228
35213 " struct guestfs_partition {\n"
35214 " int32_t part_num;\n"
35215 " uint64_t part_start;\n"
35216 " uint64_t part_end;\n"
35217 " uint64_t part_size;\n"
35223 #: ../src/guestfs-structs.pod:235
35226 " struct guestfs_partition_list {\n"
35227 " uint32_t len; /* Number of elements in list. */\n"
35228 " struct guestfs_partition *val; /* Elements. */\n"
35234 #: ../src/guestfs-structs.pod:240
35237 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
35238 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
35243 #: ../src/guestfs-structs.pod:243
35244 msgid "guestfs_application"
35248 #: ../src/guestfs-structs.pod:245
35251 " struct guestfs_application {\n"
35252 " char *app_name;\n"
35253 " char *app_display_name;\n"
35254 " int32_t app_epoch;\n"
35255 " char *app_version;\n"
35256 " char *app_release;\n"
35257 " char *app_install_path;\n"
35258 " char *app_trans_path;\n"
35259 " char *app_publisher;\n"
35260 " char *app_url;\n"
35261 " char *app_source_package;\n"
35262 " char *app_summary;\n"
35263 " char *app_description;\n"
35269 #: ../src/guestfs-structs.pod:260
35272 " struct guestfs_application_list {\n"
35273 " uint32_t len; /* Number of elements in list. */\n"
35274 " struct guestfs_application *val; /* Elements. */\n"
35280 #: ../src/guestfs-structs.pod:265
35283 " void guestfs_free_application (struct guestfs_free_application *);\n"
35284 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35289 #: ../src/guestfs.pod:5
35290 msgid "guestfs - Library for accessing and modifying virtual machine images"
35292 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
35296 #: ../src/guestfs.pod:11
35299 " guestfs_h *g = guestfs_create ();\n"
35300 " guestfs_add_drive (g, \"guest.img\");\n"
35301 " guestfs_launch (g);\n"
35302 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35303 " guestfs_touch (g, \"/hello\");\n"
35304 " guestfs_umount (g, \"/\");\n"
35305 " guestfs_close (g);\n"
35308 " guestfs_h *g = guestfs_create ();\n"
35309 " guestfs_add_drive (g, \"guest.img\");\n"
35310 " guestfs_launch (g);\n"
35311 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35312 " guestfs_touch (g, \"/hello\");\n"
35313 " guestfs_umount (g, \"/\");\n"
35314 " guestfs_close (g);\n"
35318 #: ../src/guestfs.pod:25
35320 "Libguestfs is a library for accessing and modifying guest disk images. "
35321 "Amongst the things this is good for: making batch configuration changes to "
35322 "guests, getting disk used/free statistics (see also: virt-df), migrating "
35323 "between virtualization systems (see also: virt-p2v), performing partial "
35324 "backups, performing partial guest clones, cloning guests and changing "
35325 "registry/UUID/hostname info, and much else besides."
35329 #: ../src/guestfs.pod:33
35331 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest"
35332 " filesystem that Linux and qemu can, including but not limited to: ext2/3/4,"
35333 " btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
35338 #: ../src/guestfs.pod:38
35340 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
35341 "what filesystem is in each LV, etc.). It can also run commands in the "
35342 "context of the guest. Also you can access filesystems over FUSE."
35346 #: ../src/guestfs.pod:43
35348 "Libguestfs is a library that can be linked with C and C++ management "
35349 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java,"
35350 " PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the"
35355 #: ../src/guestfs.pod:48
35357 "You don't need to be root to use libguestfs, although obviously you do need "
35358 "enough permissions to access the disk images."
35362 #: ../src/guestfs.pod:51
35364 "Libguestfs is a large API because it can do many things. For a gentle "
35365 "introduction, please read the L</API OVERVIEW> section next."
35369 #: ../src/guestfs.pod:54
35371 "There are also some example programs in the L<guestfs-examples(3)> manual "
35376 #: ../src/guestfs.pod:57
35377 msgid "API OVERVIEW"
35381 #: ../src/guestfs.pod:59
35383 "This section provides a gentler overview of the libguestfs API. We also try"
35384 " to group API calls together, where that may not be obvious from reading "
35385 "about the individual calls in the main section of this manual."
35389 #: ../src/guestfs.pod:64
35394 #: ../src/guestfs.pod:66
35396 "Before you can use libguestfs calls, you have to create a handle. Then you "
35397 "must add at least one disk image to the handle, followed by launching the "
35398 "handle, then performing whatever operations you want, and finally closing "
35399 "the handle. By convention we use the single letter C<g> for the name of the"
35400 " handle variable, although of course you can use any name you want."
35404 #: ../src/guestfs.pod:73
35406 "The general structure of all libguestfs-using programs looks like this:"
35410 #: ../src/guestfs.pod:76
35413 " guestfs_h *g = guestfs_create ();\n"
35416 " guestfs_h *g = guestfs_create ();\n"
35420 #: ../src/guestfs.pod:78
35423 " /* Call guestfs_add_drive additional times if there are\n"
35424 " * multiple disk images.\n"
35426 " guestfs_add_drive (g, \"guest.img\");\n"
35431 #: ../src/guestfs.pod:83
35434 " /* Most manipulation calls won't work until you've launched\n"
35435 " * the handle 'g'. You have to do this _after_ adding drives\n"
35436 " * and _before_ other commands.\n"
35438 " guestfs_launch (g);\n"
35443 #: ../src/guestfs.pod:89
35446 " /* Now you can examine what partitions, LVs etc are available.\n"
35448 " char **partitions = guestfs_list_partitions (g);\n"
35449 " char **logvols = guestfs_lvs (g);\n"
35452 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
35454 " char **partitions = guestfs_list_partitions (g);\n"
35455 " char **logvols = guestfs_lvs (g);\n"
35459 #: ../src/guestfs.pod:94
35462 " /* To access a filesystem in the image, you must mount it.\n"
35464 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35467 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
35469 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35473 #: ../src/guestfs.pod:98
35476 " /* Now you can perform filesystem actions on the guest\n"
35479 " guestfs_touch (g, \"/hello\");\n"
35482 " /* Тепер ви можете виконувати дії з файловою системою на\n"
35483 " * образі диска операційної системи.\n"
35485 " guestfs_touch (g, \"/hello\");\n"
35489 #: ../src/guestfs.pod:103
35492 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
35493 " * it is done automatically when you close the handle. See\n"
35494 " * discussion of autosync in this page.\n"
35496 " guestfs_sync (g);\n"
35501 #: ../src/guestfs.pod:109
35504 " /* Close the handle 'g'. */\n"
35505 " guestfs_close (g);\n"
35508 " /* Закрити дескриптор 'g'. */\n"
35509 " guestfs_close (g);\n"
35513 #: ../src/guestfs.pod:112
35515 "The code above doesn't include any error checking. In real code you should "
35516 "check return values carefully for errors. In general all functions that "
35517 "return integers return C<-1> on error, and all functions that return "
35518 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
35519 "how to handle errors, and consult the documentation for each function call "
35520 "below to see precisely how they return error indications. See L<guestfs-"
35521 "examples(3)> for fully worked examples."
35525 #: ../src/guestfs.pod:121
35526 msgid "DISK IMAGES"
35527 msgstr "ОБРАЗИ ДИСКІВ"
35530 #: ../src/guestfs.pod:123
35532 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35533 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35534 "actual block device, or simply an empty file of zeroes that you have created"
35535 " through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all"
35540 #: ../src/guestfs.pod:129
35542 "The call you should use in modern code for adding drives is "
35543 "L</guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
35544 "specifying that the format is raw, do:"
35548 #: ../src/guestfs.pod:133
35551 " guestfs_add_drive_opts (g, filename,\n"
35552 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35556 " guestfs_add_drive_opts (g, filename,\n"
35557 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35562 #: ../src/guestfs.pod:137
35563 msgid "You can add a disk read-only using:"
35564 msgstr "Ви можете додати диск у режимі лише читання:"
35567 #: ../src/guestfs.pod:139
35570 " guestfs_add_drive_opts (g, filename,\n"
35571 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35572 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35576 " guestfs_add_drive_opts (g, filename,\n"
35577 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35578 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35583 #: ../src/guestfs.pod:144
35585 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
35586 "libguestfs won't modify the file."
35590 #: ../src/guestfs.pod:147
35592 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35593 "by a virtual machine. Adding it read-write will almost certainly cause disk"
35594 " corruption, but adding it read-only is safe."
35598 #: ../src/guestfs.pod:151
35600 "You must add at least one disk image, and you may add multiple disk images."
35601 " In the API, the disk images are usually referred to as C</dev/sda> (for "
35602 "the first one you added), C</dev/sdb> (for the second one you added), etc."
35606 #: ../src/guestfs.pod:156
35608 "Once L</guestfs_launch> has been called you cannot add any more images. You"
35609 " can call L</guestfs_list_devices> to get a list of the device names, in the"
35610 " order that you added them. See also L</BLOCK DEVICE NAMING> below."
35614 #: ../src/guestfs.pod:161
35616 msgstr "МОНТУВАННЯ"
35619 #: ../src/guestfs.pod:163
35621 "Before you can read or write files, create directories and so on in a disk "
35622 "image that contains filesystems, you have to mount those filesystems using "
35623 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that"
35624 " a disk image contains (for example) one partition with a filesystem on that"
35625 " partition, then you can mount it directly:"
35629 #: ../src/guestfs.pod:170
35632 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35635 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35639 #: ../src/guestfs.pod:172
35641 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35642 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
35643 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
35644 "that these are libguestfs virtual devices, and are nothing to do with host "
35649 #: ../src/guestfs.pod:178
35651 "If you are given a disk image and you don't know what it contains then you "
35652 "have to find out. Libguestfs can do that too: use "
35653 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
35654 "and LVs, and either try mounting each to see what is mountable, or else "
35655 "examine them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
35656 "filesystems, use L</guestfs_list_filesystems>."
35660 #: ../src/guestfs.pod:186
35662 "Libguestfs also has a set of APIs for inspection of unknown disk images (see"
35663 " L</INSPECTION> below). But you might find it easier to look at higher "
35664 "level programs built on top of libguestfs, in particular L<virt-"
35669 #: ../src/guestfs.pod:191
35671 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
35672 "several other variations of the C<guestfs_mount_*> call."
35676 #: ../src/guestfs.pod:194
35677 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35678 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
35681 #: ../src/guestfs.pod:196
35683 "The majority of the libguestfs API consists of fairly low-level calls for "
35684 "accessing and modifying the files, directories, symlinks etc on mounted "
35685 "filesystems. There are over a hundred such calls which you can find listed "
35686 "in detail below in this man page, and we don't even pretend to cover them "
35687 "all in this overview."
35691 #: ../src/guestfs.pod:202
35693 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35696 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35697 "точкою монтування."
35700 #: ../src/guestfs.pod:205
35702 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35703 "the file called C<\"etc/passwd\"> then you could do:"
35705 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35706 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35710 #: ../src/guestfs.pod:208
35713 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35716 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35720 #: ../src/guestfs.pod:210
35722 "This would return C<data> as a newly allocated buffer containing the full "
35723 "content of that file (with some conditions: see also L</DOWNLOADING> below),"
35724 " or C<NULL> if there was an error."
35728 #: ../src/guestfs.pod:214
35730 "As another example, to create a top-level directory on that filesystem "
35731 "called C<\"var\"> you would do:"
35735 #: ../src/guestfs.pod:217
35738 " guestfs_mkdir (g, \"/var\");\n"
35741 " guestfs_mkdir (g, \"/var\");\n"
35745 #: ../src/guestfs.pod:219
35746 msgid "To create a symlink you could do:"
35748 "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35751 #: ../src/guestfs.pod:221
35754 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35755 " \"/etc/rc3.d/S30portmap\");\n"
35758 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35759 " \"/etc/rc3.d/S30portmap\");\n"
35763 #: ../src/guestfs.pod:224
35765 "Libguestfs will reject attempts to use relative paths and there is no "
35766 "concept of a current working directory."
35770 #: ../src/guestfs.pod:227
35772 "Libguestfs can return errors in many situations: for example if the "
35773 "filesystem isn't writable, or if a file or directory that you requested "
35774 "doesn't exist. If you are using the C API (documented here) you have to "
35775 "check for those error conditions after each call. (Other language bindings "
35776 "turn these errors into exceptions)."
35780 #: ../src/guestfs.pod:233
35782 "File writes are affected by the per-handle umask, set by calling "
35783 "L</guestfs_umask> and defaulting to 022. See L</UMASK>."
35787 #: ../src/guestfs.pod:236
35788 msgid "PARTITIONING"
35789 msgstr "ПОДІЛ НА РОЗДІЛИ"
35792 #: ../src/guestfs.pod:238
35794 "Libguestfs contains API calls to read, create and modify partition tables on"
35799 #: ../src/guestfs.pod:241
35801 "In the common case where you want to create a single partition covering the "
35802 "whole disk, you should use the L</guestfs_part_disk> call:"
35806 #: ../src/guestfs.pod:245
35809 " const char *parttype = \"mbr\";\n"
35810 " if (disk_is_larger_than_2TB)\n"
35811 " parttype = \"gpt\";\n"
35812 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35815 " const char *parttype = \"mbr\";\n"
35816 " if (disk_is_larger_than_2TB)\n"
35817 " parttype = \"gpt\";\n"
35818 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35822 #: ../src/guestfs.pod:250
35824 "Obviously this effectively wipes anything that was on that disk image "
35829 #: ../src/guestfs.pod:253
35834 #: ../src/guestfs.pod:255
35836 "Libguestfs provides access to a large part of the LVM2 API, such as "
35837 "L</guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense "
35838 "unless you familiarize yourself with the concepts of physical volumes, "
35839 "volume groups and logical volumes."
35843 #: ../src/guestfs.pod:260
35845 "This author strongly recommends reading the LVM HOWTO, online at "
35846 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
35850 #: ../src/guestfs.pod:263
35851 msgid "DOWNLOADING"
35852 msgstr "ОТРИМАННЯ ДАНИХ"
35855 #: ../src/guestfs.pod:265
35857 "Use L</guestfs_cat> to download small, text only files. This call is "
35858 "limited to files which are less than 2 MB and which cannot contain any ASCII"
35859 " NUL (C<\\0>) characters. However the API is very simple to use."
35863 #: ../src/guestfs.pod:269
35865 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35866 "bit data, since it returns a (pointer, size) pair. However it is still "
35867 "limited to \"small\" files, less than 2 MB."
35871 #: ../src/guestfs.pod:273
35873 "L</guestfs_download> can be used to download any file, with no limits on "
35874 "content or size (even files larger than 4 GB)."
35878 #: ../src/guestfs.pod:276
35880 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35884 #: ../src/guestfs.pod:279
35886 msgstr "ВИВАНТАЖЕННЯ"
35889 #: ../src/guestfs.pod:281
35891 "It's often the case that you want to write a file or files to the disk "
35896 #: ../src/guestfs.pod:284
35898 "To write a small file with fixed content, use L</guestfs_write>. To create "
35899 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
35900 "L</guestfs_fallocate64> (with all disk blocks allocated). There are a "
35901 "variety of other functions for creating test files, for example "
35902 "L</guestfs_fill> and L</guestfs_fill_pattern>."
35906 #: ../src/guestfs.pod:290
35908 "To upload a single file, use L</guestfs_upload>. This call has no limits on"
35909 " file content or size (even files larger than 4 GB)."
35913 #: ../src/guestfs.pod:293
35915 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35919 #: ../src/guestfs.pod:295
35921 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35922 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
35923 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>. If you add"
35924 " the drive in a predictable way (eg. adding it last after all other drives) "
35925 "then you can get the device name from L</guestfs_list_devices> and mount it "
35926 "directly using L</guestfs_mount_ro>. Note that squashfs images are "
35927 "sometimes non-portable between kernel versions, and they don't support "
35928 "labels or UUIDs. If you want to pre-build an image or you need to mount it "
35929 "using a label or UUID, use an ISO image instead."
35933 #: ../src/guestfs.pod:306
35935 msgstr "КОПІЮВАННЯ"
35938 #: ../src/guestfs.pod:308
35940 "There are various different commands for copying between files and devices "
35941 "and in and out of the guest filesystem. These are summarised in the table "
35946 #: ../src/guestfs.pod:314
35947 msgid "B<file> to B<file>"
35948 msgstr "B<файл> у B<файл>"
35951 #: ../src/guestfs.pod:316
35953 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35954 "directories recursively."
35958 #: ../src/guestfs.pod:319
35960 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
35964 #: ../src/guestfs.pod:322
35965 msgid "B<file> to B<device>"
35969 #: ../src/guestfs.pod:324
35970 msgid "B<device> to B<file>"
35974 #: ../src/guestfs.pod:326
35975 msgid "B<device> to B<device>"
35979 #: ../src/guestfs.pod:328
35981 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or "
35982 "L</guestfs_copy_device_to_device>."
35986 #: ../src/guestfs.pod:331
35987 msgid "Example: duplicate the contents of an LV:"
35991 #: ../src/guestfs.pod:333
35994 " guestfs_copy_device_to_device (g,\n"
35995 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35996 " /* -1 marks the end of the list of optional parameters */\n"
36002 #: ../src/guestfs.pod:338
36004 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36005 "(C</dev/VG/Original>). To copy less than the whole source device, use the "
36006 "optional C<size> parameter:"
36010 #: ../src/guestfs.pod:342
36013 " guestfs_copy_device_to_device (g,\n"
36014 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36015 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36021 #: ../src/guestfs.pod:347
36022 msgid "B<file on the host> to B<file or device>"
36026 #: ../src/guestfs.pod:349
36027 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
36031 #: ../src/guestfs.pod:351
36032 msgid "B<file or device> to B<file on the host>"
36036 #: ../src/guestfs.pod:353
36037 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
36041 #: ../src/guestfs.pod:357
36042 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36046 #: ../src/guestfs.pod:359
36048 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
36049 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36050 "appears you can only upload and download to files. However many Un*x-like "
36051 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
36052 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
36053 "stderr, and arbitrary file descriptor N."
36057 #: ../src/guestfs.pod:367
36058 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36062 #: ../src/guestfs.pod:370
36065 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36068 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36072 #: ../src/guestfs.pod:372
36073 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36077 #: ../src/guestfs.pod:374
36080 " char devfd[64];\n"
36081 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36082 " guestfs_tar_out (g, \"/\", devfd);\n"
36085 " char devfd[64];\n"
36086 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36087 " guestfs_tar_out (g, \"/\", devfd);\n"
36091 #: ../src/guestfs.pod:378
36092 msgid "LISTING FILES"
36093 msgstr "СПИСКИ ФАЙЛІВ"
36096 #: ../src/guestfs.pod:380
36098 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36099 "L<guestfish(1)>-equivalent command C<ll>)."
36103 #: ../src/guestfs.pod:383
36105 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36106 "programs, as a flat list of strings."
36110 #: ../src/guestfs.pod:386
36112 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36113 "directory, plus additional information about each one. It is more "
36114 "equivalent to using the L<readdir(3)> call on a local filesystem."
36118 #: ../src/guestfs.pod:390
36120 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
36125 #: ../src/guestfs.pod:393
36126 msgid "RUNNING COMMANDS"
36127 msgstr "ВИКОНАННЯ КОМАНД"
36130 #: ../src/guestfs.pod:395
36132 "Although libguestfs is primarily an API for manipulating files inside guest "
36133 "images, we also provide some limited facilities for running commands inside "
36138 #: ../src/guestfs.pod:399
36139 msgid "There are many limitations to this:"
36143 #: ../src/guestfs.pod:405
36145 "The kernel version that the command runs under will be different from what "
36150 #: ../src/guestfs.pod:410
36152 "If the command needs to communicate with daemons, then most likely they "
36153 "won't be running."
36157 #: ../src/guestfs.pod:415
36158 msgid "The command will be running in limited memory."
36162 #: ../src/guestfs.pod:419
36164 "The network may not be available unless you enable it (see "
36165 "L</guestfs_set_network>)."
36169 #: ../src/guestfs.pod:424
36170 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36174 #: ../src/guestfs.pod:428
36176 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36180 #: ../src/guestfs.pod:433
36182 "For SELinux guests, you may need to enable SELinux and load policy first. "
36183 "See L</SELINUX> in this manpage."
36187 #: ../src/guestfs.pod:438
36189 "I<Security:> It is not safe to run commands from untrusted, possibly "
36190 "malicious guests. These commands may attempt to exploit your program by "
36191 "sending unexpected output. They could also try to exploit the Linux kernel "
36192 "or qemu provided by the libguestfs appliance. They could use the network "
36193 "provided by the libguestfs appliance to bypass ordinary network partitions "
36194 "and firewalls. They could use the elevated privileges or different SELinux "
36195 "context of your program to their advantage."
36199 #: ../src/guestfs.pod:447
36201 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36202 "(a script which runs when the guest next boots normally), and to have this "
36203 "script run the commands you want in the normal context of the running guest,"
36204 " network security and so on. For information about other security issues, "
36205 "see L</SECURITY>."
36209 #: ../src/guestfs.pod:455
36211 "The two main API calls to run commands are L</guestfs_command> and "
36212 "L</guestfs_sh> (there are also variations)."
36216 #: ../src/guestfs.pod:458
36218 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
36219 "shell globs, redirections, etc will work."
36223 #: ../src/guestfs.pod:461
36224 msgid "CONFIGURATION FILES"
36225 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
36228 #: ../src/guestfs.pod:463
36230 "To read and write configuration files in Linux guest filesystems, we "
36231 "strongly recommend using Augeas. For example, Augeas understands how to "
36232 "read and write, say, a Linux shadow password file or X.org configuration "
36233 "file, and so avoids you having to write that code."
36237 #: ../src/guestfs.pod:468
36239 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't"
36240 " document Augeas itself here because there is excellent documentation on the"
36241 " L<http://augeas.net/> website."
36245 #: ../src/guestfs.pod:472
36247 "If you don't want to use Augeas (you fool!) then try calling "
36248 "L</guestfs_read_lines> to get the file as a list of lines which you can "
36253 #: ../src/guestfs.pod:476
36258 #: ../src/guestfs.pod:478
36260 "We support SELinux guests. To ensure that labeling happens correctly in "
36261 "SELinux guests, you need to enable SELinux and load the guest's policy:"
36265 #: ../src/guestfs.pod:486
36266 msgid "Before launching, do:"
36270 #: ../src/guestfs.pod:488
36273 " guestfs_set_selinux (g, 1);\n"
36276 " guestfs_set_selinux (g, 1);\n"
36280 #: ../src/guestfs.pod:492
36282 "After mounting the guest's filesystem(s), load the policy. This is best "
36283 "done by running the L<load_policy(8)> command in the guest itself:"
36287 #: ../src/guestfs.pod:496
36290 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36293 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36297 #: ../src/guestfs.pod:498
36299 "(Older versions of C<load_policy> require you to specify the name of the "
36304 #: ../src/guestfs.pod:503
36306 "Optionally, set the security context for the API. The correct security "
36307 "context to use can only be known by inspecting the guest. As an example:"
36311 #: ../src/guestfs.pod:507
36314 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36317 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36321 #: ../src/guestfs.pod:511
36322 msgid "This will work for running commands and editing existing files."
36326 #: ../src/guestfs.pod:513
36328 "When new files are created, you may need to label them explicitly, for "
36329 "example by running the external command C<restorecon pathname>."
36333 #: ../src/guestfs.pod:517
36338 #: ../src/guestfs.pod:519
36340 "Certain calls are affected by the current file mode creation mask (the "
36341 "\"umask\"). In particular ones which create files or directories, such as "
36342 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
36343 "either the default mode that the file is created with or modifies the mode "
36348 #: ../src/guestfs.pod:525
36350 "The default umask is C<022>, so files are created with modes such as C<0644>"
36351 " and directories with C<0755>."
36355 #: ../src/guestfs.pod:528
36357 "There are two ways to avoid being affected by umask. Either set umask to 0 "
36358 "(call C<guestfs_umask (g, 0)> early after launching). Or call "
36359 "L</guestfs_chmod> after creating each file or directory."
36363 #: ../src/guestfs.pod:532
36364 msgid "For more information about umask, see L<umask(2)>."
36368 #: ../src/guestfs.pod:536
36370 "Libguestfs allows you to access Linux guests which have been encrypted using"
36371 " whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36372 "standard. This includes nearly all whole disk encryption systems used by "
36373 "modern Linux guests."
36377 #: ../src/guestfs.pod:542
36379 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
36380 "returns the string C<crypto_LUKS>)."
36384 #: ../src/guestfs.pod:545
36386 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
36387 "will require the passphrase!"
36391 #: ../src/guestfs.pod:548
36393 "Opening a LUKS device creates a new device mapper device called "
36394 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
36395 "L</guestfs_luks_open>). Reads and writes to this mapper device are "
36396 "decrypted from and encrypted to the underlying block device respectively."
36400 #: ../src/guestfs.pod:554
36402 "LVM volume groups on the device can be made visible by calling "
36403 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical "
36404 "volume(s) can now be mounted in the usual way."
36408 #: ../src/guestfs.pod:558
36410 "Use the reverse process to close a LUKS device. Unmount any logical volumes"
36411 " on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36412 "[\"/dev/VG\"])>. Then close the mapper device by calling "
36413 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36414 "underlying encrypted block device)."
36418 #: ../src/guestfs.pod:565
36423 #: ../src/guestfs.pod:567
36425 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36426 "contains operating systems, an install CD or a live CD. (These APIs used to"
36427 " be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since"
36428 " version 1.5.3 the most frequently used part of this library has been "
36429 "rewritten in C and moved into the core code)."
36433 #: ../src/guestfs.pod:574
36435 "Add all disks belonging to the unknown virtual machine and call "
36436 "L</guestfs_launch> in the usual way."
36440 #: ../src/guestfs.pod:577
36442 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls"
36443 " and certain heuristics, and returns a list of operating systems that were "
36444 "found. An empty list means none were found. A single element is the root "
36445 "filesystem of the operating system. For dual- or multi-boot guests, "
36446 "multiple roots can be returned, each one corresponding to a separate "
36447 "operating system. (Multi-boot virtual machines are extremely rare in the "
36448 "world of virtualization, but since this scenario can happen, we have built "
36449 "libguestfs to deal with it.)"
36453 #: ../src/guestfs.pod:586
36455 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36456 "to get additional details about that operating system. For example, call "
36457 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for"
36458 " Windows and Linux-based operating systems respectively."
36462 #: ../src/guestfs.pod:592
36464 "Un*x-like and Linux-based operating systems usually consist of several "
36465 "filesystems which are mounted at boot time (for example, a separate boot "
36466 "partition mounted on C</boot>). The inspection rules are able to detect how"
36467 " filesystems correspond to mount points. Call "
36468 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
36469 "hash table like this example:"
36473 #: ../src/guestfs.pod:599
36476 " /boot => /dev/sda1\n"
36477 " / => /dev/vg_guest/lv_root\n"
36478 " /usr => /dev/vg_guest/lv_usr\n"
36481 " /boot => /dev/sda1\n"
36482 " / => /dev/vg_guest/lv_root\n"
36483 " /usr => /dev/vg_guest/lv_usr\n"
36487 #: ../src/guestfs.pod:603
36489 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36490 "filesystems as suggested."
36494 #: ../src/guestfs.pod:606
36496 "Be careful to mount filesystems in the right order (eg. C</> before "
36497 "C</usr>). Sorting the keys of the hash by length, shortest first, should "
36502 #: ../src/guestfs.pod:610
36504 "Inspection currently only works for some common operating systems. "
36505 "Contributors are welcome to send patches for other operating systems that we"
36506 " currently cannot detect."
36510 #: ../src/guestfs.pod:614
36512 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
36513 "for more details. The L</guestfs_inspect_os> function just ignores any "
36514 "encrypted devices."
36518 #: ../src/guestfs.pod:618
36520 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36521 "inspection and caches the results in the guest handle. Subsequent calls to "
36522 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36523 "read the disks. If you change the content of the guest disks, you can redo "
36524 "inspection by calling L</guestfs_inspect_os> again. "
36525 "(L</guestfs_inspect_list_applications> works a little differently from the "
36526 "other calls and does read the disks. See documentation for that function "
36531 #: ../src/guestfs.pod:627
36532 msgid "INSPECTING INSTALL DISKS"
36536 #: ../src/guestfs.pod:629
36538 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36543 #: ../src/guestfs.pod:632
36545 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36546 "system, which currently can be C<installed> (a regular operating system) or "
36547 "C<installer> (some sort of install disk)."
36551 #: ../src/guestfs.pod:636
36553 "Further information is available about the operating system that can be "
36554 "installed using the regular inspection APIs like "
36555 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
36560 #: ../src/guestfs.pod:641
36562 "Some additional information specific to installer disks is also available "
36563 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
36564 "L</guestfs_inspect_is_multipart> calls."
36568 #: ../src/guestfs.pod:646
36569 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36573 #: ../src/guestfs.pod:648
36575 "Libguestfs can mount NTFS partitions. It does this using the L<http://www"
36576 ".ntfs-3g.org/> driver."
36580 #: ../src/guestfs.pod:651
36581 msgid "DRIVE LETTERS AND PATHS"
36582 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
36585 #: ../src/guestfs.pod:653
36587 "DOS and Windows still use drive letters, and the filesystems are always "
36588 "treated as case insensitive by Windows itself, and therefore you might find "
36589 "a Windows configuration file referring to a path like "
36590 "C<c:\\windows\\system32>. When the filesystem is mounted in libguestfs, "
36591 "that directory might be referred to as C</WINDOWS/System32>."
36595 #: ../src/guestfs.pod:659
36597 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36598 "L</guestfs_inspect_get_drive_mappings>)"
36602 #: ../src/guestfs.pod:662
36604 "Dealing with separator characters (backslash vs forward slash) is outside "
36605 "the scope of libguestfs, but usually a simple character replacement will "
36610 #: ../src/guestfs.pod:666
36612 "To resolve the case insensitivity of paths, call "
36613 "L</guestfs_case_sensitive_path>."
36617 #: ../src/guestfs.pod:669
36618 msgid "ACCESSING THE WINDOWS REGISTRY"
36619 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
36622 #: ../src/guestfs.pod:671
36624 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36625 "files, through the library C<hivex> which is part of the libguestfs project "
36626 "although ships as a separate tarball. You have to locate and download the "
36627 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
36628 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-"
36629 "win-reg(1)> for more help on this issue."
36633 #: ../src/guestfs.pod:679
36634 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36635 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
36638 #: ../src/guestfs.pod:681
36640 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36641 "provide something which looks like a Linux symlink. The way it tries to do "
36642 "the rewriting is described here:"
36646 #: ../src/guestfs.pod:685
36648 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36651 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36655 #: ../src/guestfs.pod:687
36657 "The essential problem is that ntfs-3g simply does not have enough "
36658 "information to do a correct job. NTFS links can contain drive letters and "
36659 "references to external device GUIDs that ntfs-3g has no way of resolving. "
36660 "It is almost certainly the case that libguestfs callers should ignore what "
36661 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36665 #: ../src/guestfs.pod:694
36667 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
36668 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36669 "attribute, and read the raw reparse data from that (you can find the format "
36670 "documented in various places around the web)."
36674 #: ../src/guestfs.pod:699
36675 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36679 #: ../src/guestfs.pod:701
36681 "There are other useful extended attributes that can be read from ntfs-3g "
36682 "filesystems (using L</guestfs_getxattr>). See:"
36686 #: ../src/guestfs.pod:704
36688 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36690 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36693 #: ../src/guestfs.pod:706
36694 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36695 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
36698 #: ../src/guestfs.pod:708
36700 "Although we don't want to discourage you from using the C API, we will "
36701 "mention here that the same API is also available in other languages."
36705 #: ../src/guestfs.pod:711
36707 "The API is broadly identical in all supported languages. This means that "
36708 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)>"
36709 " in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36710 "OCaml. In other words, a straightforward, predictable isomorphism between "
36715 #: ../src/guestfs.pod:717
36717 "Error messages are automatically transformed into exceptions if the language"
36722 #: ../src/guestfs.pod:720
36724 "We don't try to \"object orientify\" parts of the API in OO languages, "
36725 "although contributors are welcome to write higher level APIs above what we "
36726 "provide in their favourite languages if they wish."
36730 #: ../src/guestfs.pod:726
36735 #: ../src/guestfs.pod:728
36737 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
36738 "identical to the C API. C++ classes and exceptions are not used."
36742 #: ../src/guestfs.pod:732
36747 #: ../src/guestfs.pod:734
36749 "The C# bindings are highly experimental. Please read the warnings at the "
36750 "top of C<csharp/Libguestfs.cs>."
36754 #: ../src/guestfs.pod:737
36759 #: ../src/guestfs.pod:739
36760 msgid "See L<guestfs-erlang(3)>."
36764 #: ../src/guestfs.pod:741
36766 msgstr "B<Haskell>"
36769 #: ../src/guestfs.pod:743
36771 "This is the only language binding that is working but incomplete. Only "
36772 "calls which return simple integers have been bound in Haskell, and we are "
36773 "looking for help to complete this binding."
36777 #: ../src/guestfs.pod:747
36782 #: ../src/guestfs.pod:749
36784 "Full documentation is contained in the Javadoc which is distributed with "
36785 "libguestfs. For examples, see L<guestfs-java(3)>."
36789 #: ../src/guestfs.pod:752
36794 #: ../src/guestfs.pod:754
36795 msgid "See L<guestfs-ocaml(3)>."
36796 msgstr "Див. L<guestfs-ocaml(3)>."
36799 #: ../src/guestfs.pod:756
36804 #: ../src/guestfs.pod:758
36805 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36806 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36809 #: ../src/guestfs.pod:760
36814 #: ../src/guestfs.pod:762
36816 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36817 "the php-libguestfs package for your distribution."
36821 #: ../src/guestfs.pod:765
36822 msgid "The PHP binding only works correctly on 64 bit machines."
36826 #: ../src/guestfs.pod:767
36831 #: ../src/guestfs.pod:769
36832 msgid "See L<guestfs-python(3)>."
36833 msgstr "Див. L<guestfs-python(3)>."
36836 #: ../src/guestfs.pod:771
36841 #: ../src/guestfs.pod:773
36842 msgid "See L<guestfs-ruby(3)>."
36843 msgstr "Див. L<guestfs-ruby(3)>."
36846 #: ../src/guestfs.pod:775
36847 msgid "B<shell scripts>"
36848 msgstr "B<скрипти оболонки>"
36851 #: ../src/guestfs.pod:777
36852 msgid "See L<guestfish(1)>."
36853 msgstr "Див. L<guestfish(1)>."
36856 #: ../src/guestfs.pod:781
36857 msgid "LIBGUESTFS GOTCHAS"
36861 #: ../src/guestfs.pod:783
36863 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36864 "system [...] that works in the way it is documented but is counterintuitive "
36865 "and almost invites mistakes.\""
36869 #: ../src/guestfs.pod:787
36871 "Since we developed libguestfs and the associated tools, there are several "
36872 "things we would have designed differently, but are now stuck with for "
36873 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0"
36874 " release, you can expect these to change. Beware of them."
36878 #: ../src/guestfs.pod:795
36879 msgid "Autosync / forgetting to sync."
36883 #: ../src/guestfs.pod:797
36885 "I<Update:> Autosync is enabled by default for all API users starting from "
36886 "libguestfs 1.5.24. This section only applies to older versions."
36890 #: ../src/guestfs.pod:800
36892 "When modifying a filesystem from C or another language, you B<must> unmount "
36893 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36894 "libguestfs handle. You can also call:"
36898 #: ../src/guestfs.pod:804
36901 " guestfs_set_autosync (g, 1);\n"
36904 " guestfs_set_autosync (g, 1);\n"
36908 #: ../src/guestfs.pod:806
36910 "to have the unmount/sync done automatically for you when the handle 'g' is "
36911 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> "
36916 #: ../src/guestfs.pod:810
36918 "If you forget to do this, then it is entirely possible that your changes "
36919 "won't be written out, or will be partially written, or (very rarely) that "
36920 "you'll get disk corruption."
36924 #: ../src/guestfs.pod:814
36926 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
36927 "guestfish scripts that forget to sync will work just fine, which can make "
36928 "this very puzzling if you are trying to debug a problem."
36932 #: ../src/guestfs.pod:818
36933 msgid "Mount option C<-o sync> should not be the default."
36937 #: ../src/guestfs.pod:820
36939 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36940 "libguestfs 1.13.16. This section only applies to older versions."
36944 #: ../src/guestfs.pod:823
36946 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly."
36947 " However C<-o sync> does not add any reliability benefit, but does have a "
36948 "very large performance impact."
36952 #: ../src/guestfs.pod:827
36954 "The work around is to use L</guestfs_mount_options> and set the mount "
36955 "options that you actually want to use."
36959 #: ../src/guestfs.pod:830
36960 msgid "Read-only should be the default."
36964 #: ../src/guestfs.pod:832
36966 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36967 "specify I<--rw> if you want to make changes to the image."
36971 #: ../src/guestfs.pod:835
36972 msgid "This would reduce the potential to corrupt live VM images."
36976 #: ../src/guestfs.pod:837
36978 "Note that many filesystems change the disk when you just mount and unmount, "
36979 "even if you didn't perform any writes. You need to use "
36980 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
36984 #: ../src/guestfs.pod:841
36985 msgid "guestfish command line is hard to use."
36989 #: ../src/guestfs.pod:843
36991 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36992 "examination). It tries to run a guestfish command C<disk.img> which doesn't"
36993 " exist, so it fails. In earlier versions of guestfish the error message was"
36994 " also unintuitive, but we have corrected this since. Like the Bourne shell,"
36995 " we should have used C<guestfish -c command> to run commands."
36999 #: ../src/guestfs.pod:850
37000 msgid "guestfish megabyte modifiers don't work right on all commands"
37004 #: ../src/guestfs.pod:852
37006 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37007 "other modifiers). What guestfish actually does is to multiply the number "
37008 "part by the modifier part and pass the result to the C API. However this "
37009 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37010 "expecting some other unit (eg. megabytes)."
37014 #: ../src/guestfs.pod:859
37015 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
37019 #: ../src/guestfs.pod:861
37022 " lvcreate LV VG 100M\n"
37025 " lvcreate LV VG 100M\n"
37029 #: ../src/guestfs.pod:863
37031 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
37032 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37033 "megabytes * megabytes) logical volume. The error message you get from this "
37034 "is also a little obscure."
37038 #: ../src/guestfs.pod:868
37040 "This could be fixed in the generator by specially marking parameters and "
37041 "return values which take bytes or other units."
37045 #: ../src/guestfs.pod:871
37046 msgid "Ambiguity between devices and paths"
37050 #: ../src/guestfs.pod:873
37052 "There is a subtle ambiguity in the API between a device name (eg. "
37053 "C</dev/sdb2>) and a similar pathname. A file might just happen to be called"
37054 " C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37058 #: ../src/guestfs.pod:878
37060 "In the current API we usually resolve this ambiguity by having two separate "
37061 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
37062 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37063 "detecting if the path supplied begins with C</dev/>."
37067 #: ../src/guestfs.pod:884
37069 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37070 "make paths/devices into structured names. One way to do this would be to "
37071 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37072 "aspect of grub. Another way would be to use a structured type, equivalent "
37073 "to this OCaml type:"
37077 #: ../src/guestfs.pod:890
37080 " type path = Path of string | Device of int | Partition of int * int\n"
37085 #: ../src/guestfs.pod:892
37086 msgid "which would allow you to pass arguments like:"
37090 #: ../src/guestfs.pod:894
37093 " Path \"/foo/bar\"\n"
37094 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
37095 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37096 " Path \"/dev/sdb2\" (* not a device *)\n"
37101 #: ../src/guestfs.pod:899
37103 "As you can see there are still problems to resolve even with this "
37104 "representation. Also consider how it might work in guestfish."
37108 #: ../src/guestfs.pod:904
37109 msgid "KEYS AND PASSPHRASES"
37110 msgstr "КЛЮЧІ І ПАРОЛІ"
37113 #: ../src/guestfs.pod:906
37115 "Certain libguestfs calls take a parameter that contains sensitive key "
37116 "material, passed in as a C string."
37120 #: ../src/guestfs.pod:909
37122 "In the future we would hope to change the libguestfs implementation so that "
37123 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37124 "swap. However this is I<not> done at the moment, because of the complexity "
37125 "of such an implementation."
37129 #: ../src/guestfs.pod:914
37131 "Therefore you should be aware that any key parameter you pass to libguestfs "
37132 "might end up being written out to the swap partition. If this is a concern,"
37133 " scrub the swap partition or don't use libguestfs on encrypted devices."
37137 #: ../src/guestfs.pod:919
37138 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37142 #: ../src/guestfs.pod:921
37144 "All high-level libguestfs actions are synchronous. If you want to use "
37145 "libguestfs asynchronously then you must create a thread."
37149 #: ../src/guestfs.pod:924
37151 "Only use the handle from a single thread. Either use the handle exclusively"
37152 " from one thread, or provide your own mutex so that two threads cannot issue"
37153 " calls on the same handle at the same time."
37157 #: ../src/guestfs.pod:928
37159 "See the graphical program guestfs-browser for one possible architecture for "
37160 "multithreaded programs using libvirt and libguestfs."
37164 #: ../src/guestfs.pod:931
37169 #: ../src/guestfs.pod:933
37171 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37176 #: ../src/guestfs.pod:936
37178 "By default it looks for these in the directory C<$libdir/guestfs> (eg. "
37179 "C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37183 #: ../src/guestfs.pod:939
37185 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH>"
37186 " to change the directories that libguestfs will search in. The value is a "
37187 "colon-separated list of paths. The current directory is I<not> searched "
37188 "unless the path contains an empty element or C<.>. For example "
37189 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37190 "then C</usr/lib/guestfs>."
37194 #: ../src/guestfs.pod:946
37195 msgid "QEMU WRAPPERS"
37199 #: ../src/guestfs.pod:948
37201 "If you want to compile your own qemu, run qemu from a non-standard location,"
37202 " or pass extra arguments to qemu, then you can write a shell-script wrapper "
37207 #: ../src/guestfs.pod:952
37209 "There is one important rule to remember: you I<must C<exec qemu>> as the "
37210 "last command in the shell script (so that qemu replaces the shell and "
37211 "becomes the direct child of the libguestfs-using program). If you don't do "
37212 "this, then the qemu process won't be cleaned up correctly."
37216 #: ../src/guestfs.pod:957
37218 "Here is an example of a wrapper, where I have built my own copy of qemu from"
37223 #: ../src/guestfs.pod:960
37227 " qemudir=/home/rjones/d/qemu\n"
37228 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37232 " qemudir=/home/rjones/d/qemu\n"
37233 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37237 #: ../src/guestfs.pod:964
37239 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
37240 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
37245 #: ../src/guestfs.pod:968
37248 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37251 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37255 #: ../src/guestfs.pod:970
37257 "Note that libguestfs also calls qemu with the -help and -version options in "
37258 "order to determine features."
37262 #: ../src/guestfs.pod:973
37264 "Wrappers can also be used to edit the options passed to qemu. In the "
37265 "following example, the C<-machine ...> option (C<-machine> and the following"
37266 " argument) are removed from the command line and replaced with C<-machine "
37267 "pc,accel=tcg>. The while loop iterates over the options until it finds the "
37268 "right one to remove, putting the remaining options into the C<args> array."
37272 #: ../src/guestfs.pod:982
37276 " while [ $# -gt 0 ]; do\n"
37277 " case \"$1\" in\n"
37281 " args[i]=\"$1\"\n"
37290 #: ../src/guestfs.pod:994
37293 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
37298 #: ../src/guestfs.pod:996
37299 msgid "ATTACHING TO RUNNING DAEMONS"
37300 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
37303 #: ../src/guestfs.pod:998
37305 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
37306 "babies. Use with caution."
37310 #: ../src/guestfs.pod:1001
37312 "I<Note (2):> This section explains how to attach to a running daemon from a "
37313 "low level perspective. For most users, simply using virt tools such as "
37314 "L<guestfish(1)> with the I<--live> option will \"just work\"."
37318 #: ../src/guestfs.pod:1005
37319 msgid "Using guestfs_set_attach_method"
37320 msgstr "За допомогою guestfs_set_attach_method"
37323 #: ../src/guestfs.pod:1007
37325 "By calling L</guestfs_set_attach_method> you can change how the library "
37326 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
37327 "L</ARCHITECTURE> for some background)."
37331 #: ../src/guestfs.pod:1011
37333 "The normal attach method is C<appliance>, where a small appliance is created"
37334 " containing the daemon, and then the library connects to this."
37338 #: ../src/guestfs.pod:1014
37340 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
37341 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
37342 "daemon over the Unix domain socket."
37346 #: ../src/guestfs.pod:1018
37348 "The normal use for this is to connect to a running virtual machine that "
37349 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37350 "files inside the live virtual machine."
37354 #: ../src/guestfs.pod:1022
37355 msgid "Using guestfs_add_domain with live flag"
37356 msgstr "За допомогою guestfs_add_domain з прапорцем live"
37359 #: ../src/guestfs.pod:1024
37361 "L</guestfs_add_domain> provides some help for getting the correct attach "
37362 "method. If you pass the C<live> option to this function, then (if the "
37363 "virtual machine is running) it will examine the libvirt XML looking for a "
37364 "virtio-serial channel to connect to:"
37368 #: ../src/guestfs.pod:1030
37375 " <channel type='unix'>\n"
37376 " <source mode='bind' path='/path/to/socket'/>\n"
37377 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37388 " <channel type='unix'>\n"
37389 " <source mode='bind' path='/path/to/socket'/>\n"
37390 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37398 #: ../src/guestfs.pod:1042
37400 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37401 "method to C<unix:/path/to/socket>."
37405 #: ../src/guestfs.pod:1045
37407 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37408 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37409 "to attach to and modify live virtual machines."
37413 #: ../src/guestfs.pod:1049
37415 "The virtual machine needs to have been set up beforehand so that it has the "
37416 "virtio-serial channel and so that guestfsd is running inside it."
37420 #: ../src/guestfs.pod:1053
37421 msgid "ABI GUARANTEE"
37422 msgstr "ГАРАНТІЯ ЩОДО ABI"
37425 #: ../src/guestfs.pod:1055
37427 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37428 "actions as outlined in this section. Although we will deprecate some "
37429 "actions, for example if they get replaced by newer calls, we will keep the "
37430 "old actions forever. This allows you the developer to program in confidence"
37431 " against the libguestfs API."
37435 #: ../src/guestfs.pod:1061
37436 msgid "BLOCK DEVICE NAMING"
37437 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
37440 #: ../src/guestfs.pod:1063
37442 "In the kernel there is now quite a profusion of schemata for naming block "
37443 "devices (in this context, by I<block device> I mean a physical or virtual "
37444 "hard drive). The original Linux IDE driver used names starting with "
37445 "C</dev/hd*>. SCSI devices have historically used a different naming scheme,"
37446 " C</dev/sd*>. When the Linux kernel I<libata> driver became a popular "
37447 "replacement for the old IDE driver (particularly for SATA devices) those "
37448 "devices also used the C</dev/sd*> scheme. Additionally we now have virtual "
37449 "machines with paravirtualized drivers. This has created several different "
37450 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
37455 #: ../src/guestfs.pod:1075
37457 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37458 "Linux kernel to access block devices. We can run a variety of appliances "
37459 "based on a variety of Linux kernels."
37463 #: ../src/guestfs.pod:1079
37465 "This causes a problem for libguestfs because many API calls use device or "
37466 "partition names. Working scripts and the recipe (example) scripts that we "
37467 "make available over the internet could fail if the naming scheme changes."
37471 #: ../src/guestfs.pod:1084
37473 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
37474 "Internally C</dev/sd*> names are translated, if necessary, to other names as"
37475 " required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any"
37476 " device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37480 #: ../src/guestfs.pod:1090
37482 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>,"
37483 " L</guestfs_list_partitions> and similar calls return the true names of the "
37484 "devices and partitions as known to the appliance."
37488 #: ../src/guestfs.pod:1095
37489 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37493 #: ../src/guestfs.pod:1097
37495 "Usually this translation is transparent. However in some (very rare) cases"
37496 " you may need to know the exact algorithm. Such cases include where you use"
37497 " L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37498 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37502 #: ../src/guestfs.pod:1103
37504 "The algorithm is applied only to I<parameters> which are known to be either "
37505 "device or partition names. Return values from functions such as "
37506 "L</guestfs_list_devices> are never changed."
37510 #: ../src/guestfs.pod:1111
37511 msgid "Is the string a parameter which is a device or partition name?"
37515 #: ../src/guestfs.pod:1115
37516 msgid "Does the string begin with C</dev/sd>?"
37517 msgstr "Чи починається рядок з C</dev/sd>?"
37520 #: ../src/guestfs.pod:1119
37522 "Does the named device exist? If so, we use that device. However if I<not> "
37523 "then we continue with this algorithm."
37527 #: ../src/guestfs.pod:1124
37528 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37532 #: ../src/guestfs.pod:1126
37533 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37537 #: ../src/guestfs.pod:1128
37538 msgid "If that named device exists, use it. If not, continue."
37542 #: ../src/guestfs.pod:1132
37543 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37547 #: ../src/guestfs.pod:1134
37548 msgid "If that named device exists, use it. If not, return an error."
37552 #: ../src/guestfs.pod:1138
37553 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37557 #: ../src/guestfs.pod:1140
37559 "Although the standard naming scheme and automatic translation is useful for "
37560 "simple programs and guestfish scripts, for larger programs it is best not to"
37561 " rely on this mechanism."
37565 #: ../src/guestfs.pod:1144
37567 "Where possible for maximum future portability programs using libguestfs "
37568 "should use these future-proof techniques:"
37572 #: ../src/guestfs.pod:1151
37574 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37575 "device names, and then use those names directly."
37579 #: ../src/guestfs.pod:1154
37581 "Since those device names exist by definition, they will never be translated."
37585 #: ../src/guestfs.pod:1159
37587 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37588 "filesystem labels."
37592 #: ../src/guestfs.pod:1166
37594 "This section discusses security implications of using libguestfs, "
37595 "particularly with untrusted or malicious guests or disk images."
37599 #: ../src/guestfs.pod:1169
37600 msgid "GENERAL SECURITY CONSIDERATIONS"
37601 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
37604 #: ../src/guestfs.pod:1171
37606 "Be careful with any files or data that you download from a guest (by "
37607 "\"download\" we mean not just the L</guestfs_download> command but any "
37608 "command that reads files, filenames, directories or anything else from a "
37609 "disk image). An attacker could manipulate the data to fool your program "
37610 "into doing the wrong thing. Consider cases such as:"
37614 #: ../src/guestfs.pod:1181
37615 msgid "the data (file etc) not being present"
37619 #: ../src/guestfs.pod:1185
37620 msgid "being present but empty"
37624 #: ../src/guestfs.pod:1189
37625 msgid "being much larger than normal"
37629 #: ../src/guestfs.pod:1193
37630 msgid "containing arbitrary 8 bit data"
37634 #: ../src/guestfs.pod:1197
37635 msgid "being in an unexpected character encoding"
37639 #: ../src/guestfs.pod:1201
37640 msgid "containing homoglyphs."
37644 #: ../src/guestfs.pod:1205
37645 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37646 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
37649 #: ../src/guestfs.pod:1207
37651 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37652 "(VFS) module can sometimes be escalated into exploits by deliberately "
37653 "creating a malicious, malformed filesystem. These exploits are very severe "
37654 "for two reasons. Firstly there are very many filesystem drivers in the "
37655 "kernel, and many of them are infrequently used and not much developer "
37656 "attention has been paid to the code. Linux userspace helps potential "
37657 "crackers by detecting the filesystem type and automatically choosing the "
37658 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37659 "the administrator. Secondly, a kernel-level exploit is like a local root "
37660 "exploit (worse in some ways), giving immediate and total access to the "
37661 "system right down to the hardware level."
37665 #: ../src/guestfs.pod:1220
37667 "That explains why you should never mount a filesystem from an untrusted "
37668 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
37669 "inside a qemu virtual machine, usually running as a non-root user. The "
37670 "attacker would need to write a filesystem which first exploited the kernel, "
37671 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37672 "the libguestfs protocol, and finally to be as serious as the host kernel "
37673 "exploit it would need to escalate its privileges to root. This multi-step "
37674 "escalation, performed by a static piece of data, is thought to be extremely "
37675 "hard to do, although we never say 'never' about security issues."
37679 #: ../src/guestfs.pod:1231
37681 "In any case callers can reduce the attack surface by forcing the filesystem "
37682 "type when mounting (use L</guestfs_mount_vfs>)."
37686 #: ../src/guestfs.pod:1234
37687 msgid "PROTOCOL SECURITY"
37688 msgstr "ЗАХИСТ ПРОТОКОЛУ"
37691 #: ../src/guestfs.pod:1236
37693 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a"
37694 " defined upper message size. However a program that uses libguestfs must "
37695 "also take care - for example you can write a program that downloads a binary"
37696 " from a disk image and executes it locally, and no amount of protocol "
37697 "security will save you from the consequences."
37701 #: ../src/guestfs.pod:1242
37702 msgid "INSPECTION SECURITY"
37706 #: ../src/guestfs.pod:1244
37708 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37709 "directly from the guest, and these could contain any 8 bit data. Callers "
37710 "should be careful to escape these before printing them to a structured file "
37711 "(for example, use HTML escaping if creating a web page)."
37715 #: ../src/guestfs.pod:1250
37717 "Guest configuration may be altered in unusual ways by the administrator of "
37718 "the virtual machine, and may not reflect reality (particularly for untrusted"
37719 " or actively malicious guests). For example we parse the hostname from "
37720 "configuration files like C</etc/sysconfig/network> that we find in the "
37721 "guest, but the guest administrator can easily manipulate these files to "
37722 "provide the wrong hostname."
37726 #: ../src/guestfs.pod:1258
37728 "The inspection API parses guest configuration using two external libraries: "
37729 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
37730 "designed to be robust in the face of malicious data, although denial of "
37731 "service attacks are still possible, for example with oversized configuration"
37736 #: ../src/guestfs.pod:1264
37737 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37738 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37741 #: ../src/guestfs.pod:1266
37743 "Be very cautious about running commands from the guest. By running a "
37744 "command in the guest, you are giving CPU time to a binary that you do not "
37745 "control, under the same user account as the library, albeit wrapped in qemu "
37746 "virtualization. More information and alternatives can be found in the "
37747 "section L</RUNNING COMMANDS>."
37751 #: ../src/guestfs.pod:1272
37752 msgid "CVE-2010-3851"
37753 msgstr "CVE-2010-3851"
37756 #: ../src/guestfs.pod:1274
37757 msgid "https://bugzilla.redhat.com/642934"
37758 msgstr "https://bugzilla.redhat.com/642934"
37761 #: ../src/guestfs.pod:1276
37763 "This security bug concerns the automatic disk format detection that qemu "
37764 "does on disk images."
37768 #: ../src/guestfs.pod:1279
37770 "A raw disk image is just the raw bytes, there is no header. Other disk "
37771 "images like qcow2 contain a special header. Qemu deals with this by looking"
37772 " for one of the known headers, and if none is found then assuming the disk "
37773 "image must be raw."
37777 #: ../src/guestfs.pod:1284
37779 "This allows a guest which has been given a raw disk image to write some "
37780 "other header. At next boot (or when the disk image is accessed by "
37781 "libguestfs) qemu would do autodetection and think the disk image format was,"
37782 " say, qcow2 based on the header written by the guest."
37786 #: ../src/guestfs.pod:1289
37788 "This in itself would not be a problem, but qcow2 offers many features, one "
37789 "of which is to allow a disk image to refer to another image (called the "
37790 "\"backing disk\"). It does this by placing the path to the backing disk "
37791 "into the qcow2 header. This path is not validated and could point to any "
37792 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
37793 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37794 "control of the attacker."
37798 #: ../src/guestfs.pod:1297
37800 "In libguestfs this is rather hard to exploit except under two circumstances:"
37804 #: ../src/guestfs.pod:1304
37805 msgid "You have enabled the network or have opened the disk in write mode."
37809 #: ../src/guestfs.pod:1308
37811 "You are also running untrusted code from the guest (see L</RUNNING "
37816 #: ../src/guestfs.pod:1313
37818 "The way to avoid this is to specify the expected disk format when adding "
37819 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
37820 "should always do this if the disk is raw format, and it's a good idea for "
37825 #: ../src/guestfs.pod:1318
37827 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37828 "format is fetched from libvirt and passed through."
37832 #: ../src/guestfs.pod:1321
37834 "For libguestfs tools, use the I<--format> command line parameter as "
37839 #: ../src/guestfs.pod:1324
37840 msgid "CONNECTION MANAGEMENT"
37841 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37844 #: ../src/guestfs.pod:1326
37845 msgid "guestfs_h *"
37846 msgstr "guestfs_h *"
37849 #: ../src/guestfs.pod:1328
37851 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
37852 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
37853 "handle and release all resources used."
37857 #: ../src/guestfs.pod:1332
37859 "For information on using multiple handles and threads, see the section "
37860 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37864 #: ../src/guestfs.pod:1335
37865 msgid "guestfs_create"
37866 msgstr "guestfs_create"
37869 #: ../src/guestfs.pod:1337
37872 " guestfs_h *guestfs_create (void);\n"
37875 " guestfs_h *guestfs_create (void);\n"
37879 #: ../src/guestfs.pod:1339
37880 msgid "Create a connection handle."
37881 msgstr "Створити дескриптор з’єднання."
37884 #: ../src/guestfs.pod:1341
37886 "On success this returns a non-NULL pointer to a handle. On error it returns"
37891 #: ../src/guestfs.pod:1344
37893 "You have to \"configure\" the handle after creating it. This includes "
37894 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37895 "handle at least once."
37899 #: ../src/guestfs.pod:1348
37900 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37904 #: ../src/guestfs.pod:1350
37906 "You may also want to configure error handling for the handle. See the "
37907 "L</ERROR HANDLING> section below."
37911 #: ../src/guestfs.pod:1353
37912 msgid "guestfs_close"
37913 msgstr "guestfs_close"
37916 #: ../src/guestfs.pod:1355
37919 " void guestfs_close (guestfs_h *g);\n"
37922 " void guestfs_close (guestfs_h *g);\n"
37926 #: ../src/guestfs.pod:1357
37927 msgid "This closes the connection handle and frees up all resources used."
37931 #: ../src/guestfs.pod:1359
37933 "If autosync was set on the handle and the handle was launched, then this "
37934 "implicitly calls various functions to unmount filesystems and sync the disk."
37935 " See L</guestfs_set_autosync> for more details."
37939 #: ../src/guestfs.pod:1363
37940 msgid "If a close callback was set on the handle, then it is called."
37944 #: ../src/guestfs.pod:1365
37945 msgid "ERROR HANDLING"
37946 msgstr "ОБРОБКА ПОМИЛОК"
37949 #: ../src/guestfs.pod:1367
37951 "API functions can return errors. For example, almost all functions that "
37952 "return C<int> will return C<-1> to indicate an error."
37956 #: ../src/guestfs.pod:1370
37958 "Additional information is available for errors: an error message string and "
37959 "optionally an error number (errno) if the thing that failed was a system "
37964 #: ../src/guestfs.pod:1374
37966 "You can get at the additional information about the last error on the handle"
37967 " by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by "
37968 "setting up an error handler with L</guestfs_set_error_handler>."
37972 #: ../src/guestfs.pod:1379
37974 "When the handle is created, a default error handler is installed which "
37975 "prints the error message string to C<stderr>. For small short-running "
37976 "command line programs it is sufficient to do:"
37980 #: ../src/guestfs.pod:1383
37983 " if (guestfs_launch (g) == -1)\n"
37984 " exit (EXIT_FAILURE);\n"
37987 " if (guestfs_launch (g) == -1)\n"
37988 " exit (EXIT_FAILURE);\n"
37992 #: ../src/guestfs.pod:1386
37994 "since the default error handler will ensure that an error message has been "
37995 "printed to C<stderr> before the program exits."
37999 #: ../src/guestfs.pod:1389
38001 "For other programs the caller will almost certainly want to install an "
38002 "alternate error handler or do error handling in-line like this:"
38006 #: ../src/guestfs.pod:1392
38009 " /* This disables the default behaviour of printing errors\n"
38011 " guestfs_set_error_handler (g, NULL, NULL);\n"
38016 #: ../src/guestfs.pod:1396
38019 " if (guestfs_launch (g) == -1) {\n"
38020 " /* Examine the error message and print it etc. */\n"
38021 " char *msg = guestfs_last_error (g);\n"
38022 " int errnum = guestfs_last_errno (g);\n"
38023 " fprintf (stderr, \"%s\", msg);\n"
38024 " if (errnum != 0)\n"
38025 " fprintf (stderr, \": %s\", strerror (errnum));\n"
38026 " fprintf (stderr, \"\\n\");\n"
38033 #: ../src/guestfs.pod:1407
38035 "Out of memory errors are handled differently. The default action is to call"
38036 " L<abort(3)>. If this is undesirable, then you can set a handler using "
38037 "L</guestfs_set_out_of_memory_handler>."
38041 #: ../src/guestfs.pod:1411
38043 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38044 "because there is no handle if this happens there is no way to get additional"
38045 " error information. However L</guestfs_create> is supposed to be a "
38046 "lightweight operation which can only fail because of insufficient memory (it"
38047 " returns NULL in this case)."
38051 #: ../src/guestfs.pod:1417
38052 msgid "guestfs_last_error"
38053 msgstr "guestfs_last_error"
38056 #: ../src/guestfs.pod:1419
38059 " const char *guestfs_last_error (guestfs_h *g);\n"
38062 " const char *guestfs_last_error (guestfs_h *g);\n"
38066 #: ../src/guestfs.pod:1421
38068 "This returns the last error message that happened on C<g>. If there has not"
38069 " been an error since the handle was created, then this returns C<NULL>."
38073 #: ../src/guestfs.pod:1425
38075 "The lifetime of the returned string is until the next error occurs, or "
38076 "L</guestfs_close> is called."
38080 #: ../src/guestfs.pod:1428
38081 msgid "guestfs_last_errno"
38082 msgstr "guestfs_last_errno"
38085 #: ../src/guestfs.pod:1430
38088 " int guestfs_last_errno (guestfs_h *g);\n"
38091 " int guestfs_last_errno (guestfs_h *g);\n"
38095 #: ../src/guestfs.pod:1432
38096 msgid "This returns the last error number (errno) that happened on C<g>."
38100 #: ../src/guestfs.pod:1434
38101 msgid "If successful, an errno integer not equal to zero is returned."
38105 #: ../src/guestfs.pod:1436
38107 "If no error, this returns 0. This call can return 0 in three situations:"
38111 #: ../src/guestfs.pod:1443
38112 msgid "There has not been any error on the handle."
38116 #: ../src/guestfs.pod:1447
38118 "There has been an error but the errno was meaningless. This corresponds to "
38119 "the case where the error did not come from a failed system call, but for "
38120 "some other reason."
38124 #: ../src/guestfs.pod:1453
38126 "There was an error from a failed system call, but for some reason the errno "
38127 "was not captured and returned. This usually indicates a bug in libguestfs."
38131 #: ../src/guestfs.pod:1459
38133 "Libguestfs tries to convert the errno from inside the applicance into a "
38134 "corresponding errno for the caller (not entirely trivial: the appliance "
38135 "might be running a completely different operating system from the library "
38136 "and error numbers are not standardized across Un*xen). If this could not be"
38137 " done, then the error is translated to C<EINVAL>. In practice this should "
38138 "only happen in very rare circumstances."
38142 #: ../src/guestfs.pod:1467
38143 msgid "guestfs_set_error_handler"
38144 msgstr "guestfs_set_error_handler"
38147 #: ../src/guestfs.pod:1469
38150 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38152 " const char *msg);\n"
38153 " void guestfs_set_error_handler (guestfs_h *g,\n"
38154 " guestfs_error_handler_cb cb,\n"
38155 " void *opaque);\n"
38158 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38160 " const char *msg);\n"
38161 " void guestfs_set_error_handler (guestfs_h *g,\n"
38162 " guestfs_error_handler_cb cb,\n"
38163 " void *opaque);\n"
38167 #: ../src/guestfs.pod:1476
38169 "The callback C<cb> will be called if there is an error. The parameters "
38170 "passed to the callback are an opaque data pointer and the error message "
38175 #: ../src/guestfs.pod:1480
38177 "C<errno> is not passed to the callback. To get that the callback must call "
38178 "L</guestfs_last_errno>."
38182 #: ../src/guestfs.pod:1483
38184 "Note that the message string C<msg> is freed as soon as the callback "
38185 "function returns, so if you want to stash it somewhere you must make your "
38190 #: ../src/guestfs.pod:1487
38191 msgid "The default handler prints messages on C<stderr>."
38195 #: ../src/guestfs.pod:1489
38196 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38200 #: ../src/guestfs.pod:1491
38201 msgid "guestfs_get_error_handler"
38202 msgstr "guestfs_get_error_handler"
38205 #: ../src/guestfs.pod:1493
38208 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38209 " void **opaque_rtn);\n"
38212 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38213 " void **opaque_rtn);\n"
38217 #: ../src/guestfs.pod:1496
38218 msgid "Returns the current error handler callback."
38222 #: ../src/guestfs.pod:1498
38223 msgid "guestfs_set_out_of_memory_handler"
38224 msgstr "guestfs_set_out_of_memory_handler"
38227 #: ../src/guestfs.pod:1500
38230 " typedef void (*guestfs_abort_cb) (void);\n"
38231 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38232 " guestfs_abort_cb);\n"
38237 #: ../src/guestfs.pod:1504
38239 "The callback C<cb> will be called if there is an out of memory situation. "
38240 "I<Note this callback must not return>."
38244 #: ../src/guestfs.pod:1507
38245 msgid "The default is to call L<abort(3)>."
38249 #: ../src/guestfs.pod:1509
38251 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
38255 #: ../src/guestfs.pod:1512
38256 msgid "guestfs_get_out_of_memory_handler"
38257 msgstr "guestfs_get_out_of_memory_handler"
38260 #: ../src/guestfs.pod:1514
38263 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38266 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38270 #: ../src/guestfs.pod:1516
38271 msgid "This returns the current out of memory handler."
38275 #: ../src/guestfs.pod:1518
38277 msgstr "ВИКЛИКИ API"
38280 #: ../src/guestfs.pod:1522
38285 #: ../src/guestfs.pod:1524
38290 #: ../src/guestfs.pod:1526
38291 msgid "AVAILABILITY"
38292 msgstr "ДОСТУПНІСТЬ"
38295 #: ../src/guestfs.pod:1528
38296 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
38297 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
38300 #: ../src/guestfs.pod:1530
38302 "Using L</guestfs_available> you can test availability of the following "
38303 "groups of functions. This test queries the appliance to see if the "
38304 "appliance you are currently using supports the functionality."
38308 #: ../src/guestfs.pod:1535
38309 msgid "@AVAILABILITY@"
38310 msgstr "@AVAILABILITY@"
38313 #: ../src/guestfs.pod:1537
38314 msgid "GUESTFISH supported COMMAND"
38318 #: ../src/guestfs.pod:1539
38320 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
38321 "prints out the available groups and whether they are supported by this build"
38322 " of libguestfs. Note however that you have to do C<run> first."
38326 #: ../src/guestfs.pod:1544
38327 msgid "SINGLE CALLS AT COMPILE TIME"
38331 #: ../src/guestfs.pod:1546
38333 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
38334 "function, such as:"
38338 #: ../src/guestfs.pod:1549
38341 " #define LIBGUESTFS_HAVE_DD 1\n"
38344 " #define LIBGUESTFS_HAVE_DD 1\n"
38348 #: ../src/guestfs.pod:1551
38349 msgid "if L</guestfs_dd> is available."
38353 #: ../src/guestfs.pod:1553
38355 "Before version 1.5.8, if you needed to test whether a single libguestfs "
38356 "function is available at compile time, we recommended using build tools such"
38357 " as autoconf or cmake. For example in autotools you could use:"
38361 #: ../src/guestfs.pod:1558
38364 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38365 " AC_CHECK_FUNCS([guestfs_dd])\n"
38368 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38369 " AC_CHECK_FUNCS([guestfs_dd])\n"
38373 #: ../src/guestfs.pod:1561
38375 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined"
38376 " in your program."
38380 #: ../src/guestfs.pod:1564
38381 msgid "SINGLE CALLS AT RUN TIME"
38385 #: ../src/guestfs.pod:1566
38387 "Testing at compile time doesn't guarantee that a function really exists in "
38388 "the library. The reason is that you might be dynamically linked against a "
38389 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
38390 "This situation unfortunately results in a segmentation fault, which is a "
38391 "shortcoming of the C dynamic linking system itself."
38395 #: ../src/guestfs.pod:1573
38397 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38398 "in this example program (note that you still need the compile time check as "
38403 #: ../src/guestfs.pod:1577
38406 " #include <stdio.h>\n"
38407 " #include <stdlib.h>\n"
38408 " #include <unistd.h>\n"
38409 " #include <dlfcn.h>\n"
38410 " #include <guestfs.h>\n"
38413 " #include <stdio.h>\n"
38414 " #include <stdlib.h>\n"
38415 " #include <unistd.h>\n"
38416 " #include <dlfcn.h>\n"
38417 " #include <guestfs.h>\n"
38421 #: ../src/guestfs.pod:1583
38426 " #ifdef LIBGUESTFS_HAVE_DD\n"
38428 " int has_function;\n"
38433 " #ifdef LIBGUESTFS_HAVE_DD\n"
38435 " int has_function;\n"
38439 #: ../src/guestfs.pod:1589
38442 " /* Test if the function guestfs_dd is really available. */\n"
38443 " dl = dlopen (NULL, RTLD_LAZY);\n"
38445 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38446 " exit (EXIT_FAILURE);\n"
38448 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38454 #: ../src/guestfs.pod:1598
38457 " if (!has_function)\n"
38458 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38460 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38461 " /* Now it's safe to call\n"
38462 " guestfs_dd (g, \"foo\", \"bar\");\n"
38466 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38473 #: ../src/guestfs.pod:1611
38475 "You may think the above is an awful lot of hassle, and it is. There are "
38476 "other ways outside of the C linking system to ensure that this kind of "
38477 "incompatibility never arises, such as using package versioning:"
38481 #: ../src/guestfs.pod:1616
38484 " Requires: libguestfs >= 1.0.80\n"
38489 #: ../src/guestfs.pod:1618
38490 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38494 #: ../src/guestfs.pod:1620
38496 "A recent feature of the API is the introduction of calls which take optional"
38497 " arguments. In C these are declared 3 ways. The main way is as a call "
38498 "which takes variable arguments (ie. C<...>), as in this example:"
38502 #: ../src/guestfs.pod:1625
38505 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38508 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38512 #: ../src/guestfs.pod:1627
38514 "Call this with a list of optional arguments, terminated by C<-1>. So to "
38515 "call with no optional arguments specified:"
38519 #: ../src/guestfs.pod:1630
38522 " guestfs_add_drive_opts (g, filename, -1);\n"
38525 " guestfs_add_drive_opts (g, filename, -1);\n"
38529 #: ../src/guestfs.pod:1632
38530 msgid "With a single optional argument:"
38534 #: ../src/guestfs.pod:1634
38537 " guestfs_add_drive_opts (g, filename,\n"
38538 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38542 " guestfs_add_drive_opts (g, filename,\n"
38543 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38548 #: ../src/guestfs.pod:1638
38553 #: ../src/guestfs.pod:1640
38556 " guestfs_add_drive_opts (g, filename,\n"
38557 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38558 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38562 " guestfs_add_drive_opts (g, filename,\n"
38563 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38564 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38569 #: ../src/guestfs.pod:1645
38571 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
38576 #: ../src/guestfs.pod:1648
38577 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38581 #: ../src/guestfs.pod:1650
38583 "The second variant has the same name with the suffix C<_va>, which works the"
38584 " same way but takes a C<va_list>. See the C manual for details. For the "
38585 "example function, this is declared:"
38589 #: ../src/guestfs.pod:1654
38592 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38593 " va_list args);\n"
38596 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38597 " va_list args);\n"
38601 #: ../src/guestfs.pod:1657
38602 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38606 #: ../src/guestfs.pod:1659
38608 "The third variant is useful where you need to construct these calls. You "
38609 "pass in a structure where you fill in the optional fields. The structure "
38610 "has a bitmask as the first element which you must set to indicate which "
38611 "fields you have filled in. For our example function the structure and call "
38616 #: ../src/guestfs.pod:1665
38619 " struct guestfs_add_drive_opts_argv {\n"
38620 " uint64_t bitmask;\n"
38622 " const char *format;\n"
38625 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38626 " const struct guestfs_add_drive_opts_argv *optargs);\n"
38629 " struct guestfs_add_drive_opts_argv {\n"
38630 " uint64_t bitmask;\n"
38632 " const char *format;\n"
38635 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38636 " const struct guestfs_add_drive_opts_argv *optargs);\n"
38640 #: ../src/guestfs.pod:1674
38641 msgid "You could call it like this:"
38645 #: ../src/guestfs.pod:1676
38648 " struct guestfs_add_drive_opts_argv optargs = {\n"
38649 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38650 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38651 " .readonly = 1,\n"
38652 " .format = \"qcow2\"\n"
38656 " struct guestfs_add_drive_opts_argv optargs = {\n"
38657 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38658 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38659 " .readonly = 1,\n"
38660 " .format = \"qcow2\"\n"
38665 #: ../src/guestfs.pod:1683
38668 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38671 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38675 #: ../src/guestfs.pod:1691
38677 "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38681 #: ../src/guestfs.pod:1696
38682 msgid "You do not need to fill in all fields of the structure."
38686 #: ../src/guestfs.pod:1700
38688 "There must be a one-to-one correspondence between fields of the structure "
38689 "that are filled in, and bits set in the bitmask."
38693 #: ../src/guestfs.pod:1705
38694 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38698 #: ../src/guestfs.pod:1707
38700 "In other languages, optional arguments are expressed in the way that is "
38701 "natural for that language. We refer you to the language-specific "
38702 "documentation for more details on that."
38706 #: ../src/guestfs.pod:1711
38707 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38711 #: ../src/guestfs.pod:1713
38712 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38716 #: ../src/guestfs.pod:1715
38718 "B<Note:> This section documents the generic event mechanism introduced in "
38719 "libguestfs 1.10, which you should use in new code if possible. The old "
38720 "functions C<guestfs_set_log_message_callback>, "
38721 "C<guestfs_set_subprocess_quit_callback>, "
38722 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38723 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38724 "page. Because of the ABI guarantee, the old functions continue to work."
38728 #: ../src/guestfs.pod:1724
38730 "Handles generate events when certain things happen, such as log messages "
38731 "being generated, progress messages during long-running operations, or the "
38732 "handle being closed. The API calls described below let you register a "
38733 "callback to be called when events happen. You can register multiple "
38734 "callbacks (for the same, different or overlapping sets of events), and "
38735 "individually remove callbacks. If callbacks are not removed, then they "
38736 "remain in force until the handle is closed."
38740 #: ../src/guestfs.pod:1732
38742 "In the current implementation, events are only generated synchronously: that"
38743 " means that events (and hence callbacks) can only happen while you are in "
38744 "the middle of making another libguestfs call. The callback is called in the"
38749 #: ../src/guestfs.pod:1737
38751 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38752 "unsigned integers, or a message buffer. Payloads are discussed later on."
38756 #: ../src/guestfs.pod:1741
38757 msgid "CLASSES OF EVENTS"
38761 #: ../src/guestfs.pod:1745
38762 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38766 #: ../src/guestfs.pod:1748
38768 "The callback function will be called while the handle is being closed "
38769 "(synchronously from L</guestfs_close>)."
38773 #: ../src/guestfs.pod:1751
38775 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38776 "handles that are open when the program exits. This means that this callback"
38777 " might be called indirectly from L<exit(3)>, which can cause unexpected "
38778 "problems in higher-level languages (eg. if your HLL interpreter has already "
38779 "been cleaned up by the time this is called, and if your callback then jumps "
38780 "into some HLL function)."
38784 #: ../src/guestfs.pod:1758
38786 "If no callback is registered: the handle is closed without any callback "
38791 #: ../src/guestfs.pod:1761
38792 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38796 #: ../src/guestfs.pod:1764
38798 "The callback function will be called when the child process quits, either "
38799 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
38800 "corresponds to a transition from any state to the CONFIG state)."
38804 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38805 msgid "If no callback is registered: the event is ignored."
38809 #: ../src/guestfs.pod:1770
38810 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38814 #: ../src/guestfs.pod:1773
38816 "The callback function will be called when the child process becomes ready "
38817 "first time after it has been launched. (This corresponds to a transition "
38818 "from LAUNCHING to the READY state)."
38822 #: ../src/guestfs.pod:1779
38823 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38827 #: ../src/guestfs.pod:1782
38829 "Some long-running operations can generate progress messages. If this "
38830 "callback is registered, then it will be called each time a progress message "
38831 "is generated (usually two seconds after the operation started, and three "
38832 "times per second thereafter until it completes, although the frequency may "
38833 "change in future versions)."
38837 #: ../src/guestfs.pod:1788
38839 "The callback receives in the payload four unsigned 64 bit numbers which are "
38840 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38844 #: ../src/guestfs.pod:1791
38846 "The units of C<total> are not defined, although for some operations C<total>"
38847 " may relate in some way to the amount of data to be transferred (eg. in "
38848 "bytes or megabytes), and C<position> may be the portion which has been "
38853 #: ../src/guestfs.pod:1796
38854 msgid "The only defined and stable parts of the API are:"
38858 #: ../src/guestfs.pod:1802
38860 "The callback can display to the user some type of progress bar or indicator "
38861 "which shows the ratio of C<position>:C<total>."
38865 #: ../src/guestfs.pod:1807
38866 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38870 #: ../src/guestfs.pod:1811
38872 "If any progress notification is sent during a call, then a final progress "
38873 "notification is always sent when C<position> = C<total> (I<unless> the call "
38874 "fails with an error)."
38878 #: ../src/guestfs.pod:1815
38880 "This is to simplify caller code, so callers can easily set the progress "
38881 "indicator to \"100%\" at the end of the operation, without requiring special"
38882 " code to detect this case."
38886 #: ../src/guestfs.pod:1821
38888 "For some calls we are unable to estimate the progress of the call, but we "
38889 "can still generate progress messages to indicate activity. This is known as"
38890 " \"pulse mode\", and is directly supported by certain progress bar "
38891 "implementations (eg. GtkProgressBar)."
38895 #: ../src/guestfs.pod:1826
38897 "For these calls, zero or more progress messages are generated with "
38898 "C<position = 0> and C<total = 1>, followed by a final message with "
38899 "C<position = total = 1>."
38903 #: ../src/guestfs.pod:1830
38905 "As noted above, if the call fails with an error then the final message may "
38906 "not be generated."
38910 #: ../src/guestfs.pod:1835
38912 "The callback also receives the procedure number (C<proc_nr>) and serial "
38913 "number (C<serial>) of the call. These are only useful for debugging "
38914 "protocol issues, and the callback can normally ignore them. The callback "
38915 "may want to print these numbers in error messages or debugging messages."
38919 #: ../src/guestfs.pod:1841
38920 msgid "If no callback is registered: progress messages are discarded."
38924 #: ../src/guestfs.pod:1843
38925 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38929 #: ../src/guestfs.pod:1846
38931 "The callback function is called whenever a log message is generated by qemu,"
38932 " the appliance kernel, guestfsd (daemon), or utility programs."
38936 #: ../src/guestfs.pod:1849
38938 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
38939 "(L</guestfs_launch>) then additional debug messages are generated."
38943 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
38945 "If no callback is registered: the messages are discarded unless the verbose "
38946 "flag is set in which case they are sent to stderr. You can override the "
38947 "printing of verbose messages to stderr by setting up a callback."
38951 #: ../src/guestfs.pod:1857
38952 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38956 #: ../src/guestfs.pod:1860
38958 "The callback function is called whenever a log message is generated by the "
38959 "library part of libguestfs."
38963 #: ../src/guestfs.pod:1863
38965 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38966 "messages are generated."
38970 #: ../src/guestfs.pod:1871
38971 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38975 #: ../src/guestfs.pod:1874
38977 "The callback function is called whenever a trace message is generated. This"
38978 " only applies if the trace flag (L</guestfs_set_trace>) is set."
38982 #: ../src/guestfs.pod:1877
38984 "If no callback is registered: the messages are sent to stderr. You can "
38985 "override the printing of trace messages to stderr by setting up a callback."
38989 #: ../src/guestfs.pod:1881
38990 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38994 #: ../src/guestfs.pod:1884
38996 "The callback function is called whenever a libguestfs function is entered."
39000 #: ../src/guestfs.pod:1887
39002 "The payload is a string which contains the name of the function that we are "
39003 "entering (not including C<guestfs_> prefix)."
39007 #: ../src/guestfs.pod:1890
39009 "Note that libguestfs functions can call themselves, so you may see many "
39010 "events from a single call. A few libguestfs functions do not generate this "
39015 #: ../src/guestfs.pod:1898
39016 msgid "guestfs_set_event_callback"
39020 #: ../src/guestfs.pod:1900
39023 " int guestfs_set_event_callback (guestfs_h *g,\n"
39024 " guestfs_event_callback cb,\n"
39025 " uint64_t event_bitmask,\n"
39027 " void *opaque);\n"
39032 #: ../src/guestfs.pod:1906
39034 "This function registers a callback (C<cb>) for all event classes in the "
39035 "C<event_bitmask>."
39039 #: ../src/guestfs.pod:1909
39041 "For example, to register for all log message events, you could call this "
39042 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>."
39043 " To register a single callback for all possible classes of events, use "
39044 "C<GUESTFS_EVENT_ALL>."
39048 #: ../src/guestfs.pod:1915
39049 msgid "C<flags> should always be passed as 0."
39053 #: ../src/guestfs.pod:1917
39055 "C<opaque> is an opaque pointer which is passed to the callback. You can use"
39056 " it for any purpose."
39060 #: ../src/guestfs.pod:1920
39062 "The return value is the event handle (an integer) which you can use to "
39063 "delete the callback (see below)."
39067 #: ../src/guestfs.pod:1923
39069 "If there is an error, this function returns C<-1>, and sets the error in the"
39070 " handle in the usual way (see L</guestfs_last_error> etc.)"
39074 #: ../src/guestfs.pod:1926
39076 "Callbacks remain in effect until they are deleted, or until the handle is "
39081 #: ../src/guestfs.pod:1929
39083 "In the case where multiple callbacks are registered for a particular event "
39084 "class, all of the callbacks are called. The order in which multiple "
39085 "callbacks are called is not defined."
39089 #: ../src/guestfs.pod:1933
39090 msgid "guestfs_delete_event_callback"
39094 #: ../src/guestfs.pod:1935
39097 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39102 #: ../src/guestfs.pod:1937
39104 "Delete a callback that was previously registered. C<event_handle> should be"
39105 " the integer that was returned by a previous call to "
39106 "C<guestfs_set_event_callback> on the same handle."
39110 #: ../src/guestfs.pod:1941
39111 msgid "guestfs_event_callback"
39115 #: ../src/guestfs.pod:1943
39118 " typedef void (*guestfs_event_callback) (\n"
39121 " uint64_t event,\n"
39122 " int event_handle,\n"
39124 " const char *buf, size_t buf_len,\n"
39125 " const uint64_t *array, size_t array_len);\n"
39130 #: ../src/guestfs.pod:1952
39132 "This is the type of the event callback function that you have to provide."
39136 #: ../src/guestfs.pod:1955
39138 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39139 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39140 "handle, and C<flags> which in the current API you should ignore."
39144 #: ../src/guestfs.pod:1959
39146 "The remaining parameters contain the event payload (if any). Each event may"
39147 " contain a payload, which usually relates to the event class, but for future"
39148 " proofing your code should be written to handle any payload for any event "
39153 #: ../src/guestfs.pod:1964
39155 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39156 "there is no message buffer). Note that this message buffer can contain "
39157 "arbitrary 8 bit data, including NUL bytes."
39161 #: ../src/guestfs.pod:1968
39163 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
39164 "moment this is only used for progress messages."
39168 #: ../src/guestfs.pod:1971
39169 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39173 #: ../src/guestfs.pod:1973
39175 "One motivation for the generic event API was to allow GUI programs to "
39176 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
39177 "unconditionally to C<stderr>."
39181 #: ../src/guestfs.pod:1977
39183 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39184 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
39185 "messages are not events; you must capture error messages separately)."
39189 #: ../src/guestfs.pod:1982
39191 "Programs have to set up a callback to capture the classes of events of "
39196 #: ../src/guestfs.pod:1985
39200 " guestfs_set_event_callback\n"
39201 " (g, message_callback,\n"
39202 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39203 " GUESTFS_EVENT_TRACE,\n"
39204 " 0, NULL) == -1)\n"
39205 " if (eh == -1) {\n"
39206 " // handle error in the usual way\n"
39212 #: ../src/guestfs.pod:1995
39214 "The callback can then direct messages to the appropriate place. In this "
39215 "example, messages are directed to syslog:"
39219 #: ../src/guestfs.pod:1998
39223 " message_callback (\n"
39226 " uint64_t event,\n"
39227 " int event_handle,\n"
39229 " const char *buf, size_t buf_len,\n"
39230 " const uint64_t *array, size_t array_len)\n"
39232 " const int priority = LOG_USER|LOG_INFO;\n"
39233 " if (buf_len > 0)\n"
39234 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
39240 #: ../src/guestfs.pod:2013
39241 msgid "CANCELLING LONG TRANSFERS"
39245 #: ../src/guestfs.pod:2015
39247 "Some operations can be cancelled by the caller while they are in progress. "
39248 "Currently only operations that involve uploading or downloading data can be "
39249 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
39250 "parameters in the generator)."
39254 #: ../src/guestfs.pod:2020
39255 msgid "guestfs_user_cancel"
39259 #: ../src/guestfs.pod:2022
39262 " void guestfs_user_cancel (guestfs_h *g);\n"
39267 #: ../src/guestfs.pod:2024
39269 "C<guestfs_user_cancel> cancels the current upload or download operation."
39273 #: ../src/guestfs.pod:2027
39275 "Unlike most other libguestfs calls, this function is signal safe and thread "
39276 "safe. You can call it from a signal handler or from another thread, without"
39277 " needing to do any locking."
39281 #: ../src/guestfs.pod:2031
39283 "The transfer that was in progress (if there is one) will stop shortly "
39284 "afterwards, and will return an error. The errno (see "
39285 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find"
39286 " out if the operation was cancelled or failed because of another error."
39290 #: ../src/guestfs.pod:2037
39292 "No cleanup is performed: for example, if a file was being uploaded then "
39293 "after cancellation there may be a partially uploaded file. It is the "
39294 "caller's responsibility to clean up if necessary."
39298 #: ../src/guestfs.pod:2041
39300 "There are two common places that you might call C<guestfs_user_cancel>."
39304 #: ../src/guestfs.pod:2043
39306 "In an interactive text-based program, you might call it from a C<SIGINT> "
39307 "signal handler so that pressing C<^C> cancels the current operation. (You "
39308 "also need to call L</guestfs_set_pgroup> so that child processes don't "
39309 "receive the C<^C> signal)."
39313 #: ../src/guestfs.pod:2048
39315 "In a graphical program, when the main thread is displaying a progress bar "
39316 "with a cancel button, wire up the cancel button to call this function."
39320 #: ../src/guestfs.pod:2052
39321 msgid "PRIVATE DATA AREA"
39325 #: ../src/guestfs.pod:2054
39327 "You can attach named pieces of private data to the libguestfs handle, fetch "
39328 "them by name, and walk over them, for the lifetime of the handle. This is "
39329 "called the private data area and is only available from the C API."
39333 #: ../src/guestfs.pod:2059
39334 msgid "To attach a named piece of data, use the following call:"
39338 #: ../src/guestfs.pod:2061
39341 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39344 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39348 #: ../src/guestfs.pod:2063
39350 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
39351 "pointer (which can be C<NULL>). Any previous item with the same key is "
39356 #: ../src/guestfs.pod:2067
39358 "You can use any C<key> you want, but your key should I<not> start with an "
39359 "underscore character. Keys beginning with an underscore character are "
39360 "reserved for internal libguestfs purposes (eg. for implementing language "
39361 "bindings). It is recommended that you prefix the key with some unique "
39362 "string to avoid collisions with other users."
39366 #: ../src/guestfs.pod:2073
39367 msgid "To retrieve the pointer, use:"
39371 #: ../src/guestfs.pod:2075
39374 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39377 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39381 #: ../src/guestfs.pod:2077
39383 "This function returns C<NULL> if either no data is found associated with "
39384 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39389 #: ../src/guestfs.pod:2081
39391 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39392 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
39393 "all. In particular, libguestfs does I<not> try to free the data when the "
39394 "handle is closed. If the data must be freed, then the caller must either "
39395 "free it before calling L</guestfs_close> or must set up a close callback to "
39396 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39400 #: ../src/guestfs.pod:2088
39401 msgid "To walk over all entries, use these two functions:"
39405 #: ../src/guestfs.pod:2090
39408 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39413 #: ../src/guestfs.pod:2092
39416 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39421 #: ../src/guestfs.pod:2094
39423 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does"
39424 " not have any particular meaning -- keys are not returned in any defined "
39425 "order). A pointer to the key is returned in C<*key_rtn> and the "
39426 "corresponding data pointer is returned from the function. C<NULL> is "
39427 "returned if there are no keys stored in the handle."
39431 #: ../src/guestfs.pod:2100
39433 "C<guestfs_next_private> returns the next key, pointer pair. The return "
39434 "value of this function is also C<NULL> is there are no further entries to "
39439 #: ../src/guestfs.pod:2104
39440 msgid "Notes about walking over entries:"
39444 #: ../src/guestfs.pod:2110
39446 "You must not call C<guestfs_set_private> while walking over the entries."
39450 #: ../src/guestfs.pod:2115
39452 "The handle maintains an internal iterator which is reset when you call "
39453 "C<guestfs_first_private>. This internal iterator is invalidated when you "
39454 "call C<guestfs_set_private>."
39458 #: ../src/guestfs.pod:2121
39459 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39463 #: ../src/guestfs.pod:2123
39466 " guestfs_set_private (g, key, NULL);\n"
39471 #: ../src/guestfs.pod:2125
39472 msgid "then that C<key> is not returned when walking."
39476 #: ../src/guestfs.pod:2129
39478 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39479 "C<guestfs_next_private> or C<guestfs_set_private>."
39483 #: ../src/guestfs.pod:2135
39485 "The following example code shows how to print all keys and data pointers "
39486 "that are associated with the handle C<g>:"
39490 #: ../src/guestfs.pod:2138
39493 " const char *key;\n"
39494 " void *data = guestfs_first_private (g, &key);\n"
39495 " while (data != NULL)\n"
39497 " printf (\"key = %s, data = %p\\n\", key, data);\n"
39498 " data = guestfs_next_private (g, &key);\n"
39504 #: ../src/guestfs.pod:2146
39506 "More commonly you are only interested in keys that begin with an "
39507 "application-specific prefix C<foo_>. Modify the loop like so:"
39511 #: ../src/guestfs.pod:2149
39514 " const char *key;\n"
39515 " void *data = guestfs_first_private (g, &key);\n"
39516 " while (data != NULL)\n"
39518 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39519 " printf (\"key = %s, data = %p\\n\", key, data);\n"
39520 " data = guestfs_next_private (g, &key);\n"
39526 #: ../src/guestfs.pod:2158
39528 "If you need to modify keys while walking, then you have to jump back to the "
39529 "beginning of the loop. For example, to delete all keys prefixed with "
39534 #: ../src/guestfs.pod:2162
39537 " const char *key;\n"
39540 " data = guestfs_first_private (g, &key);\n"
39541 " while (data != NULL)\n"
39543 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39545 " guestfs_set_private (g, key, NULL);\n"
39546 " /* note that 'key' pointer is now invalid, and so is\n"
39547 " the internal iterator */\n"
39550 " data = guestfs_next_private (g, &key);\n"
39556 #: ../src/guestfs.pod:2178
39558 "Note that the above loop is guaranteed to terminate because the keys are "
39559 "being deleted, but other manipulations of keys within the loop might not "
39560 "terminate unless you also maintain an indication of which keys have been "
39565 #: ../src/guestfs.pod:2183
39570 #: ../src/guestfs.pod:2185
39572 "The libguestfs C library can be probed using systemtap or DTrace. This is "
39573 "true of any library, not just libguestfs. However libguestfs also contains "
39574 "static markers to help in probing internal operations."
39578 #: ../src/guestfs.pod:2189
39579 msgid "You can list all the static markers by doing:"
39583 #: ../src/guestfs.pod:2191
39586 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39587 " .provider(\"guestfs\").mark(\"*\")'\n"
39592 #: ../src/guestfs.pod:2194
39594 "B<Note:> These static markers are I<not> part of the stable API and may "
39595 "change in future versions."
39599 #: ../src/guestfs.pod:2197
39600 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39604 #: ../src/guestfs.pod:2199
39606 "This script contains examples of displaying both the static markers and some"
39607 " ordinary C entry points:"
39611 #: ../src/guestfs.pod:2202
39619 #: ../src/guestfs.pod:2204
39622 " function display_time () {\n"
39623 " now = gettimeofday_us ();\n"
39626 " delta = now - last;\n"
39632 #: ../src/guestfs.pod:2211
39635 " printf (\"%d (+%d):\", now, delta);\n"
39641 #: ../src/guestfs.pod:2214
39646 " printf (\"ready\\n\");\n"
39652 #: ../src/guestfs.pod:2219
39655 " /* Display all calls to static markers. */\n"
39656 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39657 " .provider(\"guestfs\").mark(\"*\") ? {\n"
39658 " display_time();\n"
39659 " printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39665 #: ../src/guestfs.pod:2226
39668 " /* Display all calls to guestfs_mkfs* functions. */\n"
39669 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39670 " .function(\"guestfs_mkfs*\") ? {\n"
39671 " display_time();\n"
39672 " printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39678 #: ../src/guestfs.pod:2233
39680 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39681 "program. Note that you either have to be root, or you have to add yourself "
39682 "to several special stap groups. Consult the systemtap documentation for "
39683 "more information."
39687 #: ../src/guestfs.pod:2238
39690 " # stap /tmp/test.stap\n"
39696 #: ../src/guestfs.pod:2241
39697 msgid "In another terminal, run a guestfish command such as this:"
39701 #: ../src/guestfs.pod:2245
39702 msgid "In the first terminal, stap trace output similar to this is shown:"
39706 #: ../src/guestfs.pod:2247
39709 " 1318248056692655 (+0):\tlaunch_start\n"
39710 " 1318248056692850 (+195): launch_build_appliance_start\n"
39711 " 1318248056818285 (+125435): launch_build_appliance_end\n"
39712 " 1318248056838059 (+19774): launch_run_qemu\n"
39713 " 1318248061071167 (+4233108): launch_end\n"
39714 " 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
39719 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
39724 #: ../src/guestfs.pod:2256
39726 "<!-- old anchor for the next section --> <a "
39727 "name=\"state_machine_and_low_level_event_api\"/>"
39729 "<!-- old anchor for the next section --> <a "
39730 "name=\"state_machine_and_low_level_event_api\"/>"
39733 #: ../src/guestfs.pod:2261
39734 msgid "ARCHITECTURE"
39735 msgstr "АРХІТЕКТУРА"
39738 #: ../src/guestfs.pod:2263
39740 "Internally, libguestfs is implemented by running an appliance (a special "
39741 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
39742 "process of the main program."
39746 #: ../src/guestfs.pod:2267
39749 " ___________________\n"
39751 " | main program |\n"
39753 " | | child process / appliance\n"
39754 " | | __________________________\n"
39756 " +-------------------+ RPC | +-----------------+ |\n"
39757 " | libguestfs <--------------------> guestfsd | |\n"
39758 " | | | +-----------------+ |\n"
39759 " \\___________________/ | | Linux kernel | |\n"
39760 " | +--^--------------+ |\n"
39761 " \\_________|________________/\n"
39763 " _______v______\n"
39766 " | disk image |\n"
39767 " \\______________/\n"
39772 #: ../src/guestfs.pod:2287
39774 "The library, linked to the main program, creates the child process and hence"
39775 " the appliance in the L</guestfs_launch> function."
39779 #: ../src/guestfs.pod:2290
39781 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39782 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39783 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
39784 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs"
39785 " API calls and RPC calls to the daemon. Lastly the disk image(s) are "
39786 "attached to the qemu process which translates device access by the "
39787 "appliance's Linux kernel into accesses to the image."
39791 #: ../src/guestfs.pod:2299
39793 "A common misunderstanding is that the appliance \"is\" the virtual machine."
39794 " Although the disk image you are attached to might also be used by some "
39795 "virtual machine, libguestfs doesn't know or care about this. (But you will "
39796 "care if both libguestfs's qemu process and your virtual machine are trying "
39797 "to update the disk image at the same time, since these usually results in "
39798 "massive disk corruption)."
39802 #: ../src/guestfs.pod:2306
39803 msgid "STATE MACHINE"
39804 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39807 #: ../src/guestfs.pod:2308
39808 msgid "libguestfs uses a state machine to model the child process:"
39812 #: ../src/guestfs.pod:2310
39816 " guestfs_create\n"
39824 " / | \\ \\ guestfs_launch\n"
39825 " / | _\\__V______\n"
39827 " / | | LAUNCHING |\n"
39828 " / | \\___________/\n"
39830 " / | guestfs_launch\n"
39832 " ______ / __|____V\n"
39833 " / \\ ------> / \\\n"
39834 " | BUSY | | READY |\n"
39835 " \\______/ <------ \\________/\n"
39840 #: ../src/guestfs.pod:2332
39842 "The normal transitions are (1) CONFIG (when the handle is created, but there"
39843 " is no child process), (2) LAUNCHING (when the child process is booting up),"
39844 " (3) alternating between READY and BUSY as commands are issued to, and "
39845 "carried out by, the child process."
39849 #: ../src/guestfs.pod:2337
39851 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39852 "asynchronously at any time (eg. due to some internal error), and that causes"
39853 " the state to transition back to CONFIG."
39857 #: ../src/guestfs.pod:2341
39859 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39860 "issued when in the CONFIG state."
39864 #: ../src/guestfs.pod:2344
39866 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
39867 "L</guestfs_launch> blocks until the child process is READY to accept "
39868 "commands (or until some failure or timeout). L</guestfs_launch> internally "
39869 "moves the state from CONFIG to LAUNCHING while it is running."
39873 #: ../src/guestfs.pod:2350
39875 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39876 "state. These API calls block waiting for the command to be carried out (ie."
39877 " the state to transition to BUSY and then back to READY). There are no non-"
39878 "blocking versions, and no way to issue more than one command per handle at "
39883 #: ../src/guestfs.pod:2356
39885 "Finally, the child process sends asynchronous messages back to the main "
39886 "program, such as kernel log messages. You can register a callback to "
39887 "receive these messages."
39891 #: ../src/guestfs.pod:2360
39896 #: ../src/guestfs.pod:2362
39897 msgid "APPLIANCE BOOT PROCESS"
39901 #: ../src/guestfs.pod:2364
39903 "This process has evolved and continues to evolve. The description here "
39904 "corresponds only to the current version of libguestfs and is provided for "
39905 "information only."
39909 #: ../src/guestfs.pod:2368
39911 "In order to follow the stages involved below, enable libguestfs debugging "
39912 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39916 #: ../src/guestfs.pod:2373
39917 msgid "Create the appliance"
39921 #: ../src/guestfs.pod:2375
39923 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39924 "initrd and the appliance."
39928 #: ../src/guestfs.pod:2378
39930 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another"
39931 " directory if C<TMPDIR> is set)."
39935 #: ../src/guestfs.pod:2381
39937 "For a complete description of how the appliance is created and cached, read "
39938 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39942 #: ../src/guestfs.pod:2385
39943 msgid "Start qemu and boot the kernel"
39947 #: ../src/guestfs.pod:2387
39948 msgid "qemu is invoked to boot the kernel."
39952 #: ../src/guestfs.pod:2389
39953 msgid "Run the initrd"
39957 #: ../src/guestfs.pod:2391
39959 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the"
39960 " appliance. The purpose of the initrd is to load enough kernel modules in "
39961 "order that the appliance itself can be mounted and started."
39965 #: ../src/guestfs.pod:2395
39967 "The initrd is a cpio archive called "
39968 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
39972 #: ../src/guestfs.pod:2398
39974 "When the initrd has started you will see messages showing that kernel "
39975 "modules are being loaded, similar to this:"
39979 #: ../src/guestfs.pod:2401
39982 " febootstrap: ext2 mini initrd starting up\n"
39983 " febootstrap: mounting /sys\n"
39984 " febootstrap: internal insmod libcrc32c.ko\n"
39985 " febootstrap: internal insmod crc32c-intel.ko\n"
39990 #: ../src/guestfs.pod:2406
39991 msgid "Find and mount the appliance device"
39995 #: ../src/guestfs.pod:2408
39997 "The appliance is a sparse file containing an ext2 filesystem which contains "
39998 "a familiar (although reduced in size) Linux operating system. It would "
39999 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40003 #: ../src/guestfs.pod:2412
40005 "The regular disks being inspected by libguestfs are the first devices "
40006 "exposed by qemu (eg. as C</dev/vda>)."
40010 #: ../src/guestfs.pod:2415
40012 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40013 "there was only one regular disk)."
40017 #: ../src/guestfs.pod:2418
40019 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40020 "and switch root into the appliance, and run C</init> from the appliance."
40024 #: ../src/guestfs.pod:2422
40025 msgid "If this works successfully you will see messages such as:"
40029 #: ../src/guestfs.pod:2424
40032 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40033 " febootstrap: creating /dev/root as block special 252:16\n"
40034 " febootstrap: mounting new root on /root\n"
40035 " febootstrap: chroot\n"
40036 " Starting /init script ...\n"
40041 #: ../src/guestfs.pod:2430
40043 "Note that C<Starting /init script ...> indicates that the appliance's init "
40044 "script is now running."
40048 #: ../src/guestfs.pod:2433
40049 msgid "Initialize the appliance"
40053 #: ../src/guestfs.pod:2435
40055 "The appliance itself now initializes itself. This involves starting certain"
40056 " processes like C<udev>, possibly printing some debug information, and "
40057 "finally running the daemon (C<guestfsd>)."
40061 #: ../src/guestfs.pod:2439
40066 #: ../src/guestfs.pod:2441
40068 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
40073 #: ../src/guestfs.pod:2444
40076 " verbose daemon enabled\n"
40081 #: ../src/guestfs.pod:2446
40083 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40084 "connected on the other end to the library."
40088 #: ../src/guestfs.pod:2449
40090 "The daemon connects to this port (and hence to the library) and sends a four"
40091 " byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40092 "protocol (see below)."
40096 #: ../src/guestfs.pod:2455
40097 msgid "COMMUNICATION PROTOCOL"
40101 #: ../src/guestfs.pod:2457
40103 "Don't rely on using this protocol directly. This section documents how it "
40104 "currently works, but it may change at any time."
40108 #: ../src/guestfs.pod:2460
40110 "The protocol used to talk between the library and the daemon running inside "
40111 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40112 "1014, RFC 1832, RFC 4506)."
40116 #: ../src/guestfs.pod:2464
40118 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40119 "this file is automatically generated)."
40123 #: ../src/guestfs.pod:2467
40125 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40126 "and C<FileOut> parameters, which are handled with very simple request/reply "
40127 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
40128 "parameters, which use the same request and reply messages, but they may also"
40129 " be followed by files sent using a chunked encoding."
40133 #: ../src/guestfs.pod:2474
40134 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40138 #: ../src/guestfs.pod:2476
40139 msgid "For ordinary functions, the request message is:"
40143 #: ../src/guestfs.pod:2478
40146 " total length (header + arguments,\n"
40147 " but not including the length word itself)\n"
40148 " struct guestfs_message_header (encoded as XDR)\n"
40149 " struct guestfs_<foo>_args (encoded as XDR)\n"
40154 #: ../src/guestfs.pod:2483
40156 "The total length field allows the daemon to allocate a fixed size buffer "
40157 "into which it slurps the rest of the message. As a result, the total length"
40158 " is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the"
40159 " effective size of any request is limited to somewhere under this size."
40163 #: ../src/guestfs.pod:2489
40165 "Note also that many functions don't take any arguments, in which case the "
40166 "C<guestfs_I<foo>_args> is completely omitted."
40170 #: ../src/guestfs.pod:2492
40172 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40173 "receiver knows what type of args structure to expect, or none at all."
40177 #: ../src/guestfs.pod:2496
40179 "For functions that take optional arguments, the optional arguments are "
40180 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40181 "arguments. A bitmask in the header indicates which optional arguments are "
40182 "meaningful. The bitmask is also checked to see if it contains bits set "
40183 "which the daemon does not know about (eg. if more optional arguments were "
40184 "added in a later version of the library), and this causes the call to be "
40189 #: ../src/guestfs.pod:2504
40190 msgid "The reply message for ordinary functions is:"
40194 #: ../src/guestfs.pod:2506
40197 " total length (header + ret,\n"
40198 " but not including the length word itself)\n"
40199 " struct guestfs_message_header (encoded as XDR)\n"
40200 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40205 #: ../src/guestfs.pod:2511
40207 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40208 "functions that return no formal return values."
40212 #: ../src/guestfs.pod:2514
40214 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
40218 #: ../src/guestfs.pod:2517
40220 "In the case of an error, a flag is set in the header, and the reply message "
40221 "is slightly changed:"
40225 #: ../src/guestfs.pod:2520
40228 " total length (header + error,\n"
40229 " but not including the length word itself)\n"
40230 " struct guestfs_message_header (encoded as XDR)\n"
40231 " struct guestfs_message_error (encoded as XDR)\n"
40236 #: ../src/guestfs.pod:2525
40238 "The C<guestfs_message_error> structure contains the error message as a "
40243 #: ../src/guestfs.pod:2528
40244 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
40248 #: ../src/guestfs.pod:2530
40250 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
40251 "The normal request message is sent (see above). However this is followed by"
40252 " a sequence of file chunks."
40256 #: ../src/guestfs.pod:2534
40259 " total length (header + arguments,\n"
40260 " but not including the length word itself,\n"
40261 " and not including the chunks)\n"
40262 " struct guestfs_message_header (encoded as XDR)\n"
40263 " struct guestfs_<foo>_args (encoded as XDR)\n"
40264 " sequence of chunks for FileIn param #0\n"
40265 " sequence of chunks for FileIn param #1 etc.\n"
40270 #: ../src/guestfs.pod:2542
40271 msgid "The \"sequence of chunks\" is:"
40275 #: ../src/guestfs.pod:2544
40278 " length of chunk (not including length word itself)\n"
40279 " struct guestfs_chunk (encoded as XDR)\n"
40280 " length of chunk\n"
40281 " struct guestfs_chunk (encoded as XDR)\n"
40283 " length of chunk\n"
40284 " struct guestfs_chunk (with data.data_len == 0)\n"
40289 #: ../src/guestfs.pod:2552
40291 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
40292 "is set in the final chunk to indicate either successful completion or early "
40297 #: ../src/guestfs.pod:2556
40299 "At time of writing there are no functions that have more than one FileIn "
40300 "parameter. However this is (theoretically) supported, by sending the "
40301 "sequence of chunks for each FileIn parameter one after another (from left to"
40306 #: ../src/guestfs.pod:2561
40308 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
40309 "transfer. The library does this by sending a chunk with a special flag set "
40310 "to indicate cancellation. When the daemon sees this, it cancels the whole "
40311 "RPC, does I<not> send any reply, and goes back to reading the next request."
40315 #: ../src/guestfs.pod:2567
40317 "The daemon may also cancel. It does this by writing a special word "
40318 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
40319 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
40320 "cancel chunk). The special word is chosen so that even if cancellation "
40321 "happens right at the end of the transfer (after the library has finished "
40322 "writing and has started listening for the reply), the \"spurious\" cancel "
40323 "flag will not be confused with the reply message."
40327 #: ../src/guestfs.pod:2576
40329 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
40330 "limit), and also files where the size is not known in advance (eg. from "
40331 "pipes or sockets). However the chunks are rather small "
40332 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need"
40333 " to keep much in memory."
40337 #: ../src/guestfs.pod:2582
40338 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
40342 #: ../src/guestfs.pod:2584
40344 "The protocol for FileOut parameters is exactly the same as for FileIn "
40345 "parameters, but with the roles of daemon and library reversed."
40349 #: ../src/guestfs.pod:2587
40352 " total length (header + ret,\n"
40353 " but not including the length word itself,\n"
40354 " and not including the chunks)\n"
40355 " struct guestfs_message_header (encoded as XDR)\n"
40356 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40357 " sequence of chunks for FileOut param #0\n"
40358 " sequence of chunks for FileOut param #1 etc.\n"
40363 #: ../src/guestfs.pod:2595
40364 msgid "INITIAL MESSAGE"
40368 #: ../src/guestfs.pod:2597
40370 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40371 "which indicates that the guest and daemon is alive. This is what "
40372 "L</guestfs_launch> waits for."
40376 #: ../src/guestfs.pod:2601
40377 msgid "PROGRESS NOTIFICATION MESSAGES"
40381 #: ../src/guestfs.pod:2603
40383 "The daemon may send progress notification messages at any time. These are "
40384 "distinguished by the normal length word being replaced by "
40385 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40389 #: ../src/guestfs.pod:2607
40391 "The library turns them into progress callbacks (see "
40392 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
40397 #: ../src/guestfs.pod:2611
40399 "The daemon self-limits the frequency of progress messages it sends (see "
40400 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
40405 #: ../src/guestfs.pod:2615
40406 msgid "LIBGUESTFS VERSION NUMBERS"
40410 #: ../src/guestfs.pod:2617
40412 "Since April 2010, libguestfs has started to make separate development and "
40413 "stable releases, along with corresponding branches in our git repository. "
40414 "These separate releases can be identified by version number:"
40418 #: ../src/guestfs.pod:2622
40421 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
40422 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40428 " | `-------- sub-version\n"
40430 " `------ always '1' because we don't change the ABI\n"
40435 #: ../src/guestfs.pod:2633
40436 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40440 #: ../src/guestfs.pod:2635
40442 "As time passes we cherry pick fixes from the development branch and backport"
40443 " those into the stable branch, the effect being that the stable branch "
40444 "should get more stable and less buggy over time. So the stable releases are"
40445 " ideal for people who don't need new features but would just like the "
40446 "software to work."
40450 #: ../src/guestfs.pod:2641
40451 msgid "Our criteria for backporting changes are:"
40455 #: ../src/guestfs.pod:2647
40457 "Documentation changes which don't affect any code are backported unless the "
40458 "documentation refers to a future feature which is not in stable."
40462 #: ../src/guestfs.pod:2653
40464 "Bug fixes which are not controversial, fix obvious problems, and have been "
40465 "well tested are backported."
40469 #: ../src/guestfs.pod:2658
40471 "Simple rearrangements of code which shouldn't affect how it works get "
40472 "backported. This is so that the code in the two branches doesn't get too "
40473 "far out of step, allowing us to backport future fixes more easily."
40477 #: ../src/guestfs.pod:2664
40479 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40480 "exceptional case: the new feature is required in order to implement an "
40481 "important bug fix."
40485 #: ../src/guestfs.pod:2670
40487 "A new stable branch starts when we think the new features in development are"
40488 " substantial and compelling enough over the current stable branch to warrant"
40489 " it. When that happens we create new stable and development versions 1.N.0 "
40490 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
40491 "stable at this point, but by backporting fixes from development, that branch"
40492 " will stabilize over time."
40496 #: ../src/guestfs.pod:2678
40497 msgid "EXTENDING LIBGUESTFS"
40501 #: ../src/guestfs.pod:2680
40502 msgid "ADDING A NEW API ACTION"
40506 #: ../src/guestfs.pod:2682
40508 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40509 "documentation) are generated, and this makes it easy to extend the "
40514 #: ../src/guestfs.pod:2686
40515 msgid "To add a new API action there are two changes:"
40519 #: ../src/guestfs.pod:2692
40521 "You need to add a description of the call (name, parameters, return type, "
40522 "tests, documentation) to C<generator/generator_actions.ml>."
40526 #: ../src/guestfs.pod:2695
40528 "There are two sorts of API action, depending on whether the call goes "
40529 "through to the daemon in the appliance, or is serviced entirely by the "
40530 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the"
40531 " former, since the sync is done in the appliance. L</guestfs_set_trace> is "
40532 "an example of the latter, since a trace flag is maintained in the handle and"
40533 " all tracing is done on the library side."
40537 #: ../src/guestfs.pod:2703
40539 "Most new actions are of the first type, and get added to the "
40540 "C<daemon_functions> list. Each function has a unique procedure number used "
40541 "in the RPC protocol which is assigned to that action when we publish "
40542 "libguestfs and cannot be reused. Take the latest procedure number and "
40547 #: ../src/guestfs.pod:2709
40549 "For library-only actions of the second type, add to the "
40550 "C<non_daemon_functions> list. Since these functions are serviced by the "
40551 "library and do not travel over the RPC mechanism to the daemon, these "
40552 "functions do not need a procedure number, and so the procedure number is set"
40557 #: ../src/guestfs.pod:2717
40558 msgid "Implement the action (in C):"
40562 #: ../src/guestfs.pod:2719
40564 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40565 "C<daemon/> directory."
40569 #: ../src/guestfs.pod:2722
40571 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40572 "(note: double underscore) in the C<src/> directory."
40576 #: ../src/guestfs.pod:2725
40577 msgid "In either case, use another function as an example of what to do."
40581 #: ../src/guestfs.pod:2729
40582 msgid "After making these changes, use C<make> to compile."
40586 #: ../src/guestfs.pod:2731
40588 "Note that you don't need to implement the RPC, language bindings, manual "
40589 "pages or anything else. It's all automatically generated from the OCaml "
40594 #: ../src/guestfs.pod:2735
40595 msgid "ADDING TESTS FOR AN API ACTION"
40599 #: ../src/guestfs.pod:2737
40601 "You can supply zero or as many tests as you want per API call. The tests "
40602 "can either be added as part of the API description "
40603 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
40604 "drop a script into C<regressions/>. Note that adding a script to "
40605 "C<regressions/> is slower, so if possible use the first method."
40609 #: ../src/guestfs.pod:2743
40611 "The following describes the test environment used when you add an API test "
40612 "in C<generator_actions.ml>."
40616 #: ../src/guestfs.pod:2746
40617 msgid "The test environment has 4 block devices:"
40621 #: ../src/guestfs.pod:2750
40622 msgid "C</dev/sda> 500MB"
40623 msgstr "C</dev/sda> 500 МБ"
40626 #: ../src/guestfs.pod:2752
40627 msgid "General block device for testing."
40631 #: ../src/guestfs.pod:2754
40632 msgid "C</dev/sdb> 50MB"
40633 msgstr "C</dev/sdb> 50 МБ"
40636 #: ../src/guestfs.pod:2756
40638 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40643 #: ../src/guestfs.pod:2759
40644 msgid "C</dev/sdc> 10MB"
40645 msgstr "C</dev/sdc> 10 МБ"
40648 #: ../src/guestfs.pod:2761
40649 msgid "Used in a few tests where two block devices are needed."
40653 #: ../src/guestfs.pod:2763
40654 msgid "C</dev/sdd>"
40655 msgstr "C</dev/sdd>"
40658 #: ../src/guestfs.pod:2765
40659 msgid "ISO with fixed content (see C<images/test.iso>)."
40663 #: ../src/guestfs.pod:2769
40665 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40666 "appliance and block devices are reused between tests. So don't try testing "
40667 "L</guestfs_kill_subprocess> :-x"
40671 #: ../src/guestfs.pod:2773
40673 "Each test starts with an initial scenario, selected using one of the "
40674 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
40675 "initialize the disks mentioned above in a particular way as documented in "
40676 "C<generator_types.ml>. You should not assume anything about the previous "
40677 "contents of other disks that are not initialized."
40681 #: ../src/guestfs.pod:2779
40683 "You can add a prerequisite clause to any individual test. This is a run-"
40684 "time check, which, if it fails, causes the test to be skipped. Useful if "
40685 "testing a command which might not work on all variations of libguestfs "
40686 "builds. A test that has prerequisite of C<Always> means to run "
40691 #: ../src/guestfs.pod:2785
40693 "In addition, packagers can skip individual tests by setting environment "
40694 "variables before running C<make check>."
40698 #: ../src/guestfs.pod:2788
40701 " SKIP_TEST_<CMD>_<NUM>=1\n"
40706 #: ../src/guestfs.pod:2790
40707 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40711 #: ../src/guestfs.pod:2792
40716 #: ../src/guestfs.pod:2794
40719 " SKIP_TEST_<CMD>=1\n"
40724 #: ../src/guestfs.pod:2796
40725 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40729 #: ../src/guestfs.pod:2798
40730 msgid "Packagers can run only certain tests by setting for example:"
40734 #: ../src/guestfs.pod:2800
40737 " TEST_ONLY=\"vfs_type zerofree\"\n"
40742 #: ../src/guestfs.pod:2802
40744 "See C<capitests/tests.c> for more details of how these environment variables"
40749 #: ../src/guestfs.pod:2805
40750 msgid "DEBUGGING NEW API ACTIONS"
40754 #: ../src/guestfs.pod:2807
40755 msgid "Test new actions work before submitting them."
40759 #: ../src/guestfs.pod:2809
40760 msgid "You can use guestfish to try out new commands."
40764 #: ../src/guestfs.pod:2811
40766 "Debugging the daemon is a problem because it runs inside a minimal "
40767 "environment. However you can fprintf messages in the daemon to stderr, and "
40768 "they will show up if you use C<guestfish -v>."
40772 #: ../src/guestfs.pod:2815
40773 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40777 #: ../src/guestfs.pod:2817
40779 "Our C source code generally adheres to some basic code-formatting "
40780 "conventions. The existing code base is not totally consistent on this "
40781 "front, but we do prefer that contributed code be formatted similarly. In "
40782 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40783 "indentation level, and other than that, follow the K&R style."
40787 #: ../src/guestfs.pod:2823
40789 "If you use Emacs, add the following to one of one of your start-up files "
40790 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
40794 #: ../src/guestfs.pod:2826
40797 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40798 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40799 " (add-hook 'find-file-hook\n"
40800 " '(lambda () (if (and buffer-file-name\n"
40801 " (string-match \"/libguestfs\\\\>\"\n"
40802 " (buffer-file-name))\n"
40803 " (not (string-equal mode-name \"Change Log\"))\n"
40804 " (not (string-equal mode-name \"Makefile\")))\n"
40805 " (setq indent-tabs-mode nil))))\n"
40810 #: ../src/guestfs.pod:2836
40813 " ;;; When editing C sources in libguestfs, use this style.\n"
40814 " (defun libguestfs-c-mode ()\n"
40815 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
40817 " (c-set-style \"K&R\")\n"
40818 " (setq c-indent-level 2)\n"
40819 " (setq c-basic-offset 2))\n"
40820 " (add-hook 'c-mode-hook\n"
40821 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40822 " (buffer-file-name))\n"
40823 " (libguestfs-c-mode))))\n"
40828 #: ../src/guestfs.pod:2848
40829 msgid "Enable warnings when compiling (and fix any problems this finds):"
40833 #: ../src/guestfs.pod:2851
40836 " ./configure --enable-gcc-warnings\n"
40839 " ./configure --enable-gcc-warnings\n"
40843 #: ../src/guestfs.pod:2853
40844 msgid "Useful targets are:"
40848 #: ../src/guestfs.pod:2855
40851 " make syntax-check # checks the syntax of the C code\n"
40852 " make check # runs the test suite\n"
40857 #: ../src/guestfs.pod:2858
40858 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40862 #: ../src/guestfs.pod:2860
40864 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>,"
40865 " which are used to do shell quoting."
40869 #: ../src/guestfs.pod:2865
40874 #: ../src/guestfs.pod:2867
40876 "Simple shell quoted string. Any spaces or other shell characters are "
40881 #: ../src/guestfs.pod:2870
40886 #: ../src/guestfs.pod:2872
40888 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40893 #: ../src/guestfs.pod:2879
40896 " asprintf (&cmd, \"cat %R\", path);\n"
40899 " asprintf (&cmd, \"cat %R\", path);\n"
40903 #: ../src/guestfs.pod:2881
40904 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40908 #: ../src/guestfs.pod:2883
40910 "I<Note:> Do I<not> use these when you are passing parameters to the "
40911 "C<command{,r,v,rv}()> functions. These parameters do NOT need to be quoted "
40912 "because they are not passed via the shell (instead, straight to exec). You "
40913 "probably want to use the C<sysroot_path()> function however."
40917 #: ../src/guestfs.pod:2889
40918 msgid "SUBMITTING YOUR NEW API ACTIONS"
40922 #: ../src/guestfs.pod:2891
40924 "Submit patches to the mailing list: "
40925 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
40926 "L<rjones@redhat.com>."
40930 #: ../src/guestfs.pod:2895
40931 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40935 #: ../src/guestfs.pod:2897
40936 msgid "We support i18n (gettext anyhow) in the library."
40940 #: ../src/guestfs.pod:2899
40942 "However many messages come from the daemon, and we don't translate those at "
40943 "the moment. One reason is that the appliance generally has all locale files"
40944 " removed from it, because they take up a lot of space. So we'd have to "
40945 "readd some of those, as well as copying our PO files into the appliance."
40949 #: ../src/guestfs.pod:2905
40951 "Debugging messages are never translated, since they are intended for the "
40956 #: ../src/guestfs.pod:2908
40957 msgid "SOURCE CODE SUBDIRECTORIES"
40961 #: ../src/guestfs.pod:2912
40966 #: ../src/guestfs.pod:2914
40967 msgid "L<virt-alignment-scan(1)> command and documentation."
40971 #: ../src/guestfs.pod:2918
40972 msgid "The libguestfs appliance, build scripts and so on."
40976 #: ../src/guestfs.pod:2920
40977 msgid "C<capitests>"
40978 msgstr "C<capitests>"
40981 #: ../src/guestfs.pod:2922
40982 msgid "Automated tests of the C API."
40986 #: ../src/guestfs.pod:2924
40991 #: ../src/guestfs.pod:2926
40993 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40998 #: ../src/guestfs.pod:2929
41000 msgstr "C<caution>"
41003 #: ../src/guestfs.pod:2931
41005 "Safety and liveness tests of components that libguestfs depends upon (not of"
41006 " libguestfs itself). Mainly this is for qemu and the kernel."
41010 #: ../src/guestfs.pod:2934
41015 #: ../src/guestfs.pod:2936
41017 "Tools for cloning virtual machines. Currently contains L<virt-sysprep(1)> "
41018 "command and documentation."
41022 #: ../src/guestfs.pod:2939
41024 msgstr "C<contrib>"
41027 #: ../src/guestfs.pod:2941
41028 msgid "Outside contributions, experimental parts."
41032 #: ../src/guestfs.pod:2943
41037 #: ../src/guestfs.pod:2945
41039 "The daemon that runs inside the libguestfs appliance and carries out "
41044 #: ../src/guestfs.pod:2948
41049 #: ../src/guestfs.pod:2950
41050 msgid "L<virt-df(1)> command and documentation."
41054 #: ../src/guestfs.pod:2952
41059 #: ../src/guestfs.pod:2954
41060 msgid "L<virt-edit(1)> command and documentation."
41064 #: ../src/guestfs.pod:2956
41065 msgid "C<examples>"
41066 msgstr "C<examples>"
41069 #: ../src/guestfs.pod:2958
41070 msgid "C API example code."
41071 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
41074 #: ../src/guestfs.pod:2960
41079 #: ../src/guestfs.pod:2962
41081 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41082 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L"
41083 "<virt-tar-out(1)>."
41087 #: ../src/guestfs.pod:2966
41092 #: ../src/guestfs.pod:2968
41094 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41098 #: ../src/guestfs.pod:2970
41099 msgid "C<generator>"
41100 msgstr "C<generator>"
41103 #: ../src/guestfs.pod:2972
41105 "The crucially important generator, used to automatically generate large "
41106 "amounts of boilerplate C code for things like RPC and bindings."
41110 #: ../src/guestfs.pod:2975
41115 #: ../src/guestfs.pod:2977
41116 msgid "Files used by the test suite."
41120 #: ../src/guestfs.pod:2979
41121 msgid "Some \"phony\" guest images which we test against."
41125 #: ../src/guestfs.pod:2981
41126 msgid "C<inspector>"
41127 msgstr "C<inspector>"
41130 #: ../src/guestfs.pod:2983
41131 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41135 #: ../src/guestfs.pod:2985
41140 #: ../src/guestfs.pod:2987
41141 msgid "Logo used on the website. The fish is called Arthur by the way."
41145 #: ../src/guestfs.pod:2989
41150 #: ../src/guestfs.pod:2991
41151 msgid "M4 macros used by autoconf."
41155 #: ../src/guestfs.pod:2993
41160 #: ../src/guestfs.pod:2995
41161 msgid "Translations of simple gettext strings."
41162 msgstr "Переклади простих рядків gettext."
41165 #: ../src/guestfs.pod:2997
41167 msgstr "C<po-docs>"
41170 #: ../src/guestfs.pod:2999
41172 "The build infrastructure and PO files for translations of manpages and POD "
41173 "files. Eventually this will be combined with the C<po> directory, but that "
41174 "is rather complicated."
41178 #: ../src/guestfs.pod:3003
41179 msgid "C<regressions>"
41180 msgstr "C<regressions>"
41183 #: ../src/guestfs.pod:3005
41184 msgid "Regression tests."
41185 msgstr "Тести на регресії."
41188 #: ../src/guestfs.pod:3007
41193 #: ../src/guestfs.pod:3009
41194 msgid "L<virt-rescue(1)> command and documentation."
41198 #: ../src/guestfs.pod:3011
41203 #: ../src/guestfs.pod:3013
41204 msgid "L<virt-resize(1)> command and documentation."
41208 #: ../src/guestfs.pod:3015
41209 msgid "C<sparsify>"
41213 #: ../src/guestfs.pod:3017
41214 msgid "L<virt-sparsify(1)> command and documentation."
41218 #: ../src/guestfs.pod:3019
41223 #: ../src/guestfs.pod:3021
41224 msgid "Source code to the C library."
41228 #: ../src/guestfs.pod:3023
41233 #: ../src/guestfs.pod:3025
41235 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
41239 #: ../src/guestfs.pod:3027
41240 msgid "C<test-tool>"
41241 msgstr "C<test-tool>"
41244 #: ../src/guestfs.pod:3029
41246 "Test tool for end users to test if their qemu/kernel combination will work "
41251 #: ../src/guestfs.pod:3032
41256 #: ../src/guestfs.pod:3034
41261 #: ../src/guestfs.pod:3036
41263 msgstr "C<haskell>"
41266 #: ../src/guestfs.pod:3038
41271 #: ../src/guestfs.pod:3040
41276 #: ../src/guestfs.pod:3042
41281 #: ../src/guestfs.pod:3044
41286 #: ../src/guestfs.pod:3046
41291 #: ../src/guestfs.pod:3048
41296 #: ../src/guestfs.pod:3050
41297 msgid "Language bindings."
41298 msgstr "Прив’язки до мов програмування."
41301 #: ../src/guestfs.pod:3054
41302 msgid "MAKING A STABLE RELEASE"
41306 #: ../src/guestfs.pod:3056
41308 "When we make a stable release, there are several steps documented here. See"
41309 " L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
41314 #: ../src/guestfs.pod:3064
41316 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
41320 #: ../src/guestfs.pod:3069
41321 msgid "Finalize RELEASE-NOTES."
41325 #: ../src/guestfs.pod:3073
41326 msgid "Update ROADMAP."
41330 #: ../src/guestfs.pod:3077
41331 msgid "Run C<src/api-support/update-from-tarballs.sh>."
41335 #: ../src/guestfs.pod:3081
41336 msgid "Push and pull from Transifex."
41340 #: ../src/guestfs.pod:3083
41345 #: ../src/guestfs.pod:3085
41353 #: ../src/guestfs.pod:3087
41354 msgid "to push the latest POT files to Transifex. Then run:"
41358 #: ../src/guestfs.pod:3089
41366 #: ../src/guestfs.pod:3091
41367 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41371 #: ../src/guestfs.pod:3095
41373 "Create new stable and development directories under "
41374 "L<http://libguestfs.org/download>."
41378 #: ../src/guestfs.pod:3100
41379 msgid "Create the branch in git:"
41383 #: ../src/guestfs.pod:3102
41386 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41387 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41388 " git branch stable-1.XX\n"
41389 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41394 #: ../src/guestfs.pod:3109
41399 #: ../src/guestfs.pod:3111
41400 msgid "PROTOCOL LIMITS"
41401 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
41404 #: ../src/guestfs.pod:3113
41406 "Internally libguestfs uses a message-based protocol to pass API calls and "
41407 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41408 "plenty more detail about this). The maximum message size used by the "
41409 "protocol is slightly less than 4 MB. For some API calls you may need to be "
41410 "aware of this limit. The API calls which may be affected are individually "
41411 "documented, with a link back to this section of the documentation."
41415 #: ../src/guestfs.pod:3121
41417 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41418 "a simple string. Because this string is at some point internally encoded as"
41419 " a message, the maximum size that it can return is slightly under 4 MB. If "
41420 "the requested file is larger than this then you will get an error."
41424 #: ../src/guestfs.pod:3127
41426 "In order to transfer large files into and out of the guest filesystem, you "
41427 "need to use particular calls that support this. The sections L</UPLOADING> "
41428 "and L</DOWNLOADING> document how to do this."
41432 #: ../src/guestfs.pod:3131
41434 "You might also consider mounting the disk image using our FUSE filesystem "
41435 "support (L<guestmount(1)>)."
41439 #: ../src/guestfs.pod:3134
41440 msgid "MAXIMUM NUMBER OF DISKS"
41444 #: ../src/guestfs.pod:3136
41446 "When using virtio disks (the default) the current limit is B<25> disks."
41450 #: ../src/guestfs.pod:3139
41452 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31"
41453 " slots. However febootstrap only understands disks with names C</dev/vda> "
41454 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41459 #: ../src/guestfs.pod:3144
41461 "We are working to substantially raise this limit in future versions but it "
41462 "requires complex changes to qemu."
41466 #: ../src/guestfs.pod:3147
41468 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41469 "disks (add and remove disks after calling L</guestfs_launch>). This also "
41470 "requires changes to qemu."
41474 #: ../src/guestfs.pod:3151
41475 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41479 #: ../src/guestfs.pod:3153
41480 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41484 #: ../src/guestfs.pod:3155
41486 "This is because it reserves 4 bits for the minor device number (thus "
41487 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
41491 #: ../src/guestfs.pod:3158
41493 "If you attach a disk with more than 15 partitions, the extra partitions are "
41494 "ignored by libguestfs."
41498 #: ../src/guestfs.pod:3161
41499 msgid "MAXIMUM SIZE OF A DISK"
41503 #: ../src/guestfs.pod:3163
41504 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41508 #: ../src/guestfs.pod:3165
41510 "We have tested block devices up to 1 exabyte (2**60 or "
41511 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41516 #: ../src/guestfs.pod:3169
41518 "Although libguestfs probably does not impose any limit, the underlying host "
41519 "storage will. If you store disk images on a host ext4 filesystem, then the "
41520 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41521 "TB). If you store disk images as host logical volumes then you are limited "
41522 "by the maximum size of an LV."
41526 #: ../src/guestfs.pod:3175
41528 "For the hugest disk image files, we recommend using XFS on the host for "
41533 #: ../src/guestfs.pod:3178
41534 msgid "MAXIMUM SIZE OF A PARTITION"
41538 #: ../src/guestfs.pod:3180
41540 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector numbers."
41541 " Assuming a 512 byte sector size, this means that MBR cannot address a "
41542 "partition located beyond 2 TB on the disk."
41546 #: ../src/guestfs.pod:3184
41548 "It is recommended that you use GPT partitions on disks which are larger than"
41549 " this size. GPT uses 64 bit sector numbers and so can address partitions "
41550 "which are theoretically larger than the largest disk we could support."
41554 #: ../src/guestfs.pod:3189
41555 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41559 #: ../src/guestfs.pod:3191
41561 "This depends on the filesystem type. libguestfs itself does not impose any "
41562 "known limit. Consult Wikipedia or the filesystem documentation to find out "
41563 "what these limits are."
41567 #: ../src/guestfs.pod:3195
41568 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41572 #: ../src/guestfs.pod:3197
41574 "The API functions L</guestfs_upload>, L</guestfs_download>, "
41575 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41576 "uploads and downloads."
41580 #: ../src/guestfs.pod:3201
41581 msgid "INSPECTION LIMITS"
41585 #: ../src/guestfs.pod:3203
41587 "The inspection code has several arbitrary limits on things like the size of "
41588 "Windows Registry hive it will read, and the length of product name. These "
41589 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41590 "memory and disk space on the host, and should not be reached in practice. "
41591 "See the source code for more information."
41595 #: ../src/guestfs.pod:3229
41597 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
41598 "effect as calling C<guestfs_set_verbose (g, 1)>."
41602 #: ../src/guestfs.pod:3241
41604 "Set the path that libguestfs uses to search for a supermin appliance. See "
41605 "the discussion of paths in section L</PATH> above."
41609 #: ../src/guestfs.pod:3250
41610 msgid "See also L</QEMU WRAPPERS> above."
41614 #: ../src/guestfs.pod:3254
41616 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
41617 "effect as calling C<guestfs_set_trace (g, 1)>."
41621 #: ../src/guestfs.pod:3272
41623 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41624 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41625 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-"
41626 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-"
41627 "edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
41628 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-"
41629 "fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-"
41630 "sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-"
41631 "win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-"
41632 "helper(8)>, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
41636 #: ../src/guestfs.pod:3308
41638 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
41639 "L<lvm(8)>, L<disktype(1)>."
41643 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
41644 #: ../tools/virt-win-reg.pl:772
41649 #: ../src/guestfs.pod:3317
41650 msgid "To get a list of bugs against libguestfs use this link:"
41652 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
41656 #: ../src/guestfs.pod:3319
41658 "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
41660 "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
41663 #: ../src/guestfs.pod:3321
41664 msgid "To report a new bug against libguestfs use this link:"
41665 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
41668 #: ../src/guestfs.pod:3323
41670 "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
41672 "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
41675 #: ../src/guestfs.pod:3325
41676 msgid "When reporting a bug, please check:"
41680 #: ../src/guestfs.pod:3331
41681 msgid "That the bug hasn't been reported already."
41685 #: ../src/guestfs.pod:3335
41686 msgid "That you are testing a recent version."
41690 #: ../src/guestfs.pod:3339
41691 msgid "Describe the bug accurately, and give a way to reproduce it."
41695 #: ../src/guestfs.pod:3343
41697 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the"
41702 #: ../test-tool/libguestfs-test-tool.pod:5
41703 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41707 #: ../test-tool/libguestfs-test-tool.pod:9
41710 " libguestfs-test-tool [--options]\n"
41715 #: ../test-tool/libguestfs-test-tool.pod:13
41717 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41718 "to check basic libguestfs functionality is working. This is needed because "
41719 "libguestfs occasionally breaks for reasons beyond our control: usually "
41720 "because of changes in the underlying qemu or kernel packages, or the host "
41725 #: ../test-tool/libguestfs-test-tool.pod:19
41726 msgid "If you suspect a problem in libguestfs, then just run:"
41730 #: ../test-tool/libguestfs-test-tool.pod:21
41733 " libguestfs-test-tool\n"
41738 #: ../test-tool/libguestfs-test-tool.pod:23
41739 msgid "It will print lots of diagnostic messages."
41743 #: ../test-tool/libguestfs-test-tool.pod:25
41744 msgid "If it runs to completion successfully, you will see this near the end:"
41748 #: ../test-tool/libguestfs-test-tool.pod:27
41751 " ===== TEST FINISHED OK =====\n"
41756 #: ../test-tool/libguestfs-test-tool.pod:29
41757 msgid "and the test tool will exit with code 0."
41761 #: ../test-tool/libguestfs-test-tool.pod:31
41763 "If it fails (and/or exits with non-zero error code), please paste the "
41764 "I<complete, unedited> output of the test tool into a bug report. More "
41765 "information about reporting bugs can be found on the "
41766 "L<http://libguestfs.org/> website."
41770 #: ../test-tool/libguestfs-test-tool.pod:42
41771 msgid "Display short usage information and exit."
41775 #: ../test-tool/libguestfs-test-tool.pod:44
41776 msgid "B<--qemu qemu_binary>"
41780 #: ../test-tool/libguestfs-test-tool.pod:46
41782 "If you have downloaded another qemu binary, point this option at the full "
41783 "path of the binary to try it."
41787 #: ../test-tool/libguestfs-test-tool.pod:49
41788 msgid "B<--qemudir qemu_source_dir>"
41792 #: ../test-tool/libguestfs-test-tool.pod:51
41794 "If you have compiled qemu from source, point this option at the source "
41795 "directory to try it."
41799 #: ../test-tool/libguestfs-test-tool.pod:54
41804 #: ../test-tool/libguestfs-test-tool.pod:56
41805 msgid "B<--timeout N>"
41809 #: ../test-tool/libguestfs-test-tool.pod:58
41811 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
41812 "minutes) which does not usually need to be adjusted."
41816 #: ../test-tool/libguestfs-test-tool.pod:63
41817 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41821 #: ../test-tool/libguestfs-test-tool.pod:65
41823 "If you have compiled another version of qemu from source and would like to "
41824 "try that, then you can use the I<--qemudir> option to point to the qemu "
41825 "source directory."
41829 #: ../test-tool/libguestfs-test-tool.pod:69
41831 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41832 "option to point to the binary."
41836 #: ../test-tool/libguestfs-test-tool.pod:72
41838 "Note when using these options, you can ignore the business of qemu wrapper "
41839 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41840 "wrapper script for you if one is needed."
41844 #: ../test-tool/libguestfs-test-tool.pod:76
41845 msgid "TRYING OUT A DIFFERENT KERNEL"
41849 #: ../test-tool/libguestfs-test-tool.pod:78
41851 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41852 "libguestfs tries. You do this by setting the environment variables "
41853 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41857 #: ../test-tool/libguestfs-test-tool.pod:82
41859 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further"
41864 #: ../test-tool/libguestfs-test-tool.pod:85
41865 msgid "SELF-DIAGNOSIS"
41869 #: ../test-tool/libguestfs-test-tool.pod:87
41871 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41872 "produced by libguestfs-test-tool and/or possible errors."
41876 #: ../test-tool/libguestfs-test-tool.pod:92
41878 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41879 "I<1> if there was an error."
41883 #: ../test-tool/libguestfs-test-tool.pod:97
41885 "For the full list of environment variables which may affect libguestfs, "
41886 "please see the L<guestfs(3)> manual page."
41890 #: ../test-tool/libguestfs-test-tool.pod:102
41891 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41895 #: ../tools/virt-list-filesystems.pl:32
41897 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41901 #: ../tools/virt-list-filesystems.pl:36
41904 " virt-list-filesystems [--options] domname\n"
41909 #: ../tools/virt-list-filesystems.pl:38
41912 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41917 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41919 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
41924 #: ../tools/virt-list-filesystems.pl:45
41926 "C<virt-list-filesystems> is a command line tool to list the filesystems that"
41927 " are contained in a virtual machine or disk image."
41931 #: ../tools/virt-list-filesystems.pl:49
41933 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41934 "functionality. For more complex cases you should look at the "
41935 "L<guestfish(1)> tool."
41939 #: ../tools/virt-list-filesystems.pl:112
41941 "With this option, C<virt-list-filesystems> displays the type of each "
41942 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41946 #: ../tools/virt-list-filesystems.pl:119
41951 #: ../tools/virt-list-filesystems.pl:123
41953 "Normally we only show mountable filesystems. If this option is given then "
41954 "swap devices are shown too."
41958 #: ../tools/virt-list-filesystems.pl:197
41960 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41961 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
41962 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41964 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41965 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
41966 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41969 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41970 msgid "Copyright (C) 2009 Red Hat Inc."
41971 msgstr "© Red Hat Inc., 2009"
41974 #: ../tools/virt-list-partitions.pl:32
41976 "virt-list-partitions - List partitions in a virtual machine or disk image"
41980 #: ../tools/virt-list-partitions.pl:36
41983 " virt-list-partitions [--options] domname\n"
41986 " virt-list-partitions [--параметри] назва_домену\n"
41990 #: ../tools/virt-list-partitions.pl:38
41993 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41996 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
42000 #: ../tools/virt-list-partitions.pl:45
42002 "C<virt-list-partitions> is a command line tool to list the partitions that "
42003 "are contained in a virtual machine or disk image. It is mainly useful as a "
42004 "first step to using L<virt-resize(1)>."
42008 #: ../tools/virt-list-partitions.pl:50
42010 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42011 "functionality. For more complex cases you should look at the "
42012 "L<guestfish(1)> tool."
42016 #: ../tools/virt-list-partitions.pl:113
42017 msgid "Show sizes in human-readable form (eg. \"1G\")."
42021 #: ../tools/virt-list-partitions.pl:123
42023 "With this option, C<virt-list-partitions> displays the type and size of each"
42024 " partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42028 #: ../tools/virt-list-partitions.pl:130
42033 #: ../tools/virt-list-partitions.pl:132
42035 msgstr "B<--total>"
42038 #: ../tools/virt-list-partitions.pl:134
42040 "Display the total size of each block device (as a separate row or rows)."
42044 #: ../tools/virt-list-partitions.pl:267
42046 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42047 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
42048 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42050 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42051 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
42052 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42055 #: ../tools/virt-list-partitions.pl:283
42056 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42057 msgstr "© Red Hat Inc., 2009–2010"
42060 #: ../tools/virt-make-fs.pl:37
42061 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42065 #: ../tools/virt-make-fs.pl:41
42068 " virt-make-fs [--options] input.tar output.img\n"
42073 #: ../tools/virt-make-fs.pl:43
42076 " virt-make-fs [--options] input.tar.gz output.img\n"
42081 #: ../tools/virt-make-fs.pl:45
42084 " virt-make-fs [--options] directory output.img\n"
42089 #: ../tools/virt-make-fs.pl:49
42091 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42092 "archive or some files in a directory. It is similar to tools like "
42093 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, "
42094 "it can create common filesystem types like ext2/3 or NTFS, which can be "
42095 "useful if you want to attach these filesystems to existing virtual machines "
42096 "(eg. to import large amounts of read-only data to a VM)."
42100 #: ../tools/virt-make-fs.pl:57
42101 msgid "Basic usage is:"
42105 #: ../tools/virt-make-fs.pl:59
42108 " virt-make-fs input output.img\n"
42113 #: ../tools/virt-make-fs.pl:61
42115 "where C<input> is either a directory containing files that you want to add, "
42116 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42117 "C<output.img> is a disk image. The input type is detected automatically. "
42118 "The output disk image defaults to a raw ext2 sparse image unless you specify"
42119 " extra flags (see L</OPTIONS> below)."
42123 #: ../tools/virt-make-fs.pl:67
42124 msgid "FILESYSTEM TYPE"
42125 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
42128 #: ../tools/virt-make-fs.pl:69
42130 "The default filesystem type is C<ext2>. Just about any filesystem type that"
42131 " libguestfs supports can be used (but I<not> read-only formats like "
42132 "ISO9660). Here are some of the more common choices:"
42136 #: ../tools/virt-make-fs.pl:75
42141 #: ../tools/virt-make-fs.pl:77
42143 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If"
42144 " you are not going to use the filesystem in a way that requires the journal,"
42145 " then this is just wasted overhead."
42149 #: ../tools/virt-make-fs.pl:81
42150 msgid "I<ntfs> or I<vfat>"
42151 msgstr "I<ntfs> або I<vfat>"
42154 #: ../tools/virt-make-fs.pl:83
42155 msgid "Useful if exporting data to a Windows guest."
42159 #: ../tools/virt-make-fs.pl:85
42161 "I<Note for vfat>: The tar archive or local directory must only contain files"
42162 " which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
42163 "program running within libguestfs is unable to change the ownership of non-"
42164 "root files, since vfat itself does not support this."
42168 #: ../tools/virt-make-fs.pl:90
42173 #: ../tools/virt-make-fs.pl:92
42175 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42176 "total filesystem size."
42180 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
42181 #: ../tools/virt-make-fs.pl:149
42186 #: ../tools/virt-make-fs.pl:99
42189 " virt-make-fs --type=minix input minixfs.img\n"
42194 #: ../tools/virt-make-fs.pl:101
42195 msgid "TO PARTITION OR NOT TO PARTITION"
42199 #: ../tools/virt-make-fs.pl:103
42200 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42204 #: ../tools/virt-make-fs.pl:105
42206 "Adding a partition can make the disk image more compatible with certain "
42207 "virtualized operating systems which don't expect to see a filesystem "
42208 "directly located on a block device (Linux doesn't care and will happily "
42209 "handle both types)."
42213 #: ../tools/virt-make-fs.pl:110
42215 "On the other hand, if you have a partition table then the output image is no"
42216 " longer a straight filesystem. For example you cannot run L<fsck(8)> "
42217 "directly on a partitioned disk image. (However libguestfs tools such as "
42218 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
42222 #: ../tools/virt-make-fs.pl:118
42223 msgid "Add an MBR partition:"
42227 #: ../tools/virt-make-fs.pl:120
42230 " virt-make-fs --partition -- input disk.img\n"
42235 #: ../tools/virt-make-fs.pl:122
42237 "If the output disk image could be terabyte-sized or larger, it's better to "
42238 "use an EFI/GPT-compatible partition table:"
42242 #: ../tools/virt-make-fs.pl:125
42245 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
42250 #: ../tools/virt-make-fs.pl:127
42251 msgid "EXTRA SPACE"
42255 #: ../tools/virt-make-fs.pl:129
42257 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
42258 "the files that it contains, but might have extra space. Depending on how "
42259 "you are going to use the output, you might think this extra space is wasted "
42260 "and want to minimize it, or you might want to leave space so that more files"
42261 " can be added later. Virt-make-fs defaults to minimizing the extra space, "
42262 "but you can use the I<--size> flag to leave space in the filesystem if you "
42267 #: ../tools/virt-make-fs.pl:137
42269 "An alternative way to leave extra space but not make the output image any "
42270 "bigger is to use an alternative disk image format (instead of the default "
42271 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2"
42272 " image format (check your hypervisor supports this before using it). This "
42273 "allows you to choose a large I<--size> but the extra space won't actually be"
42274 " allocated in the image until you try to store something in it."
42278 #: ../tools/virt-make-fs.pl:145
42280 "Don't forget that you can also use local commands including L<resize2fs(8)> "
42281 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
42282 "to build another image from scratch."
42286 #: ../tools/virt-make-fs.pl:151
42289 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42292 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42296 #: ../tools/virt-make-fs.pl:179
42297 msgid "Enable debugging information."
42298 msgstr "Увімкнути виведення діагностичних даних."
42301 #: ../tools/virt-make-fs.pl:185
42302 msgid "B<--size=E<lt>NE<gt>>"
42303 msgstr "B<--size=E<lt>NE<gt>>"
42306 #: ../tools/virt-make-fs.pl:187
42307 msgid "B<--size=+E<lt>NE<gt>>"
42308 msgstr "B<--size=+E<lt>NE<gt>>"
42311 #: ../tools/virt-make-fs.pl:189
42312 msgid "B<-s E<lt>NE<gt>>"
42313 msgstr "B<-s E<lt>NE<gt>>"
42316 #: ../tools/virt-make-fs.pl:191
42317 msgid "B<-s +E<lt>NE<gt>>"
42318 msgstr "B<-s +E<lt>NE<gt>>"
42321 #: ../tools/virt-make-fs.pl:193
42323 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
42327 #: ../tools/virt-make-fs.pl:196
42329 "If this option is I<not> given, then the output image will be just large "
42330 "enough to contain all the files, with not much wasted space."
42334 #: ../tools/virt-make-fs.pl:199
42336 "To choose a fixed size output disk, specify an absolute number followed by "
42337 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42338 "Petabytes or Exabytes. This must be large enough to contain all the input "
42339 "files, else you will get an error."
42343 #: ../tools/virt-make-fs.pl:204
42345 "To leave extra space, specify C<+> (plus sign) and a number followed by "
42346 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42347 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
42348 "the input files, and (approximately) an extra 200 MB free space."
42352 #: ../tools/virt-make-fs.pl:210
42354 "Note that virt-make-fs estimates free space, and therefore will not produce "
42355 "filesystems containing precisely the free space requested. (It is much more"
42356 " expensive and time-consuming to produce a filesystem which has precisely "
42357 "the desired free space)."
42361 #: ../tools/virt-make-fs.pl:219
42362 msgid "B<--format=E<lt>fmtE<gt>>"
42366 #: ../tools/virt-make-fs.pl:221
42367 msgid "B<-F E<lt>fmtE<gt>>"
42371 #: ../tools/virt-make-fs.pl:223
42372 msgid "Choose the output disk image format."
42376 #: ../tools/virt-make-fs.pl:225
42377 msgid "The default is C<raw> (raw sparse disk image)."
42381 #: ../tools/virt-make-fs.pl:227
42383 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
42384 "that would really make sense here is C<qcow2>."
42388 #: ../tools/virt-make-fs.pl:234
42389 msgid "B<--type=E<lt>fsE<gt>>"
42393 #: ../tools/virt-make-fs.pl:236
42394 msgid "B<-t E<lt>fsE<gt>>"
42398 #: ../tools/virt-make-fs.pl:238
42399 msgid "Choose the output filesystem type."
42403 #: ../tools/virt-make-fs.pl:240
42404 msgid "The default is C<ext2>."
42405 msgstr "Типовим значенням є C<ext2>."
42408 #: ../tools/virt-make-fs.pl:242
42410 "Any filesystem which is supported read-write by libguestfs can be used here."
42414 #: ../tools/virt-make-fs.pl:249
42415 msgid "B<--partition>"
42416 msgstr "B<--partition>"
42419 #: ../tools/virt-make-fs.pl:251
42420 msgid "B<--partition=E<lt>parttypeE<gt>>"
42424 #: ../tools/virt-make-fs.pl:253
42426 "If specified, this flag adds an MBR partition table to the output disk "
42431 #: ../tools/virt-make-fs.pl:256
42433 "You can change the partition table type, eg. I<--partition=gpt> for large "
42438 #: ../tools/virt-make-fs.pl:259
42440 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42441 "might consider the next parameter to be the partition type. For example:"
42445 #: ../tools/virt-make-fs.pl:263
42448 " virt-make-fs --partition input.tar output.img\n"
42453 #: ../tools/virt-make-fs.pl:265
42455 "would cause virt-make-fs to think you wanted to use a partition type of "
42456 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
42457 "dash) between options and the input and output arguments:"
42461 #: ../tools/virt-make-fs.pl:269
42464 " virt-make-fs --partition -- input.tar output.img\n"
42469 #: ../tools/virt-make-fs.pl:271
42470 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
42474 #: ../tools/virt-make-fs.pl:559
42476 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42477 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
42478 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42480 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42481 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
42482 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42485 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
42487 "When reporting bugs, please enable debugging and capture the I<complete> "
42492 #: ../tools/virt-make-fs.pl:576
42495 " export LIBGUESTFS_DEBUG=1\n"
42496 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42499 " export LIBGUESTFS_DEBUG=1\n"
42500 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42504 #: ../tools/virt-make-fs.pl:579
42506 "Attach /tmp/virt-make-fs.log to a new bug report at "
42507 "L<https://bugzilla.redhat.com/>"
42511 #: ../tools/virt-tar.pl:33
42512 msgid "virt-tar - Extract or upload files to a virtual machine"
42516 #: ../tools/virt-tar.pl:37
42519 " virt-tar [--options] -x domname directory tarball\n"
42524 #: ../tools/virt-tar.pl:39
42527 " virt-tar [--options] -u domname tarball directory\n"
42532 #: ../tools/virt-tar.pl:41
42535 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42540 #: ../tools/virt-tar.pl:43
42543 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42548 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42553 #: ../tools/virt-tar.pl:47
42555 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42556 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42560 #: ../tools/virt-tar.pl:52
42561 msgid "Download C</home> from the VM into a local tarball:"
42565 #: ../tools/virt-tar.pl:54
42568 " virt-tar -x domname /home home.tar\n"
42573 #: ../tools/virt-tar.pl:56
42576 " virt-tar -zx domname /home home.tar.gz\n"
42581 #: ../tools/virt-tar.pl:58
42582 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42586 #: ../tools/virt-tar.pl:60
42589 " virt-tar -u domname uploadstuff.tar /tmp\n"
42594 #: ../tools/virt-tar.pl:62
42597 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42602 #: ../tools/virt-tar.pl:66
42604 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42605 "virtual machines. If you do this, you risk disk corruption in the VM. C"
42606 "<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42610 #: ../tools/virt-tar.pl:71
42612 "You can use I<-x> (extract) on live virtual machines, but you might get "
42613 "inconsistent results or errors if there is filesystem activity inside the "
42614 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
42615 "work, but the only way to guarantee consistent results is if the virtual "
42616 "machine is shut down."
42620 #: ../tools/virt-tar.pl:79
42622 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42623 "parts of a guest filesystem. There are many possibilities: making backups, "
42624 "uploading data files, snooping on guest activity, fixing or customizing "
42629 #: ../tools/virt-tar.pl:84
42631 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
42632 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you"
42633 " should look at the L<guestfish(1)> tool."
42637 #: ../tools/virt-tar.pl:88
42639 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42640 "its contents (recursively) from the virtual machine into a local tarball. "
42641 "I<-u> uploads from a local tarball, unpacking it into a directory inside the"
42642 " virtual machine. You cannot use these two options together."
42646 #: ../tools/virt-tar.pl:94
42648 "In addition, you may need to use the I<-z> (gZip) option to enable "
42649 "compression. When uploading, you have to specify I<-z> if the upload file "
42650 "is compressed because virt-tar won't detect this on its own."
42654 #: ../tools/virt-tar.pl:98
42656 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
42657 "example it cannot do PKZip files or bzip2 compression. If you want that "
42658 "then you'll have to rebuild the tarballs yourself. (This is a limitation of"
42659 " the L<libguestfs(3)> API)."
42663 #: ../tools/virt-tar.pl:160
42664 msgid "B<--extract>"
42665 msgstr "B<--extract>"
42668 #: ../tools/virt-tar.pl:162
42669 msgid "B<--download>"
42670 msgstr "B<--download>"
42673 #: ../tools/virt-tar.pl:164
42678 #: ../tools/virt-tar.pl:166
42679 msgid "B<--upload>"
42680 msgstr "B<--upload>"
42683 #: ../tools/virt-tar.pl:168
42685 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42690 #: ../tools/virt-tar.pl:171
42692 "Use I<-u> to upload and unpack from a local tarball into a virtual machine."
42693 " Please read the L</WARNING> section above before using this option."
42697 #: ../tools/virt-tar.pl:175
42698 msgid "You must specify exactly one of these options."
42702 #: ../tools/virt-tar.pl:181
42707 #: ../tools/virt-tar.pl:183
42712 #: ../tools/virt-tar.pl:185
42713 msgid "Specify that the input or output tarball is gzip-compressed."
42717 #: ../tools/virt-tar.pl:298
42719 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
42720 "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
42721 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
42722 "L<http://libguestfs.org/>."
42724 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
42725 "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
42726 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
42727 "L<http://libguestfs.org/>."
42730 #: ../tools/virt-win-reg.pl:37
42732 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
42737 #: ../tools/virt-win-reg.pl:41
42740 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42745 #: ../tools/virt-win-reg.pl:43
42748 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42753 #: ../tools/virt-win-reg.pl:45
42756 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42761 #: ../tools/virt-win-reg.pl:47
42764 " virt-win-reg --merge domname [input.reg ...]\n"
42769 #: ../tools/virt-win-reg.pl:49
42772 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42777 #: ../tools/virt-win-reg.pl:53
42779 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42780 "virtual machines. If you do this, you I<will> get irreversible disk "
42781 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
42782 "but doesn't catch all cases."
42786 #: ../tools/virt-win-reg.pl:58
42788 "Modifying the Windows Registry is an inherently risky operation. The format"
42789 " is deliberately obscure and undocumented, and Registry changes can leave "
42790 "the system unbootable. Therefore when using the I<--merge> option, make "
42791 "sure you have a reliable backup first."
42795 #: ../tools/virt-win-reg.pl:65
42797 "This program can export and merge Windows Registry entries from a Windows "
42802 #: ../tools/virt-win-reg.pl:68
42804 "The first parameter is the libvirt guest name or the raw disk image of a "
42809 #: ../tools/virt-win-reg.pl:71
42811 "If I<--merge> is I<not> specified, then the chosen registry key is "
42812 "displayed/exported (recursively). For example:"
42816 #: ../tools/virt-win-reg.pl:74
42819 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42822 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42826 #: ../tools/virt-win-reg.pl:76
42828 "You can also display single values from within registry keys, for example:"
42832 #: ../tools/virt-win-reg.pl:79
42835 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42836 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42837 " Windows 7 Enterprise\n"
42840 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42841 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42842 " Windows 7 Enterprise\n"
42846 #: ../tools/virt-win-reg.pl:83
42848 "With I<--merge>, you can merge a textual regedit file into the Windows "
42853 #: ../tools/virt-win-reg.pl:86
42856 " $ virt-win-reg --merge Windows7 changes.reg\n"
42859 " $ virt-win-reg --merge Windows7 changes.reg\n"
42863 #: ../tools/virt-win-reg.pl:90
42865 "This program is only meant for simple access to the registry. If you want "
42866 "to do complicated things with the registry, we suggest you download the "
42867 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)>"
42868 " and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42869 "L<hivexregedit(1)>."
42873 #: ../tools/virt-win-reg.pl:159
42875 msgstr "B<--merge>"
42878 #: ../tools/virt-win-reg.pl:161
42880 "In merge mode, this merges a textual regedit file into the Windows Registry "
42881 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
42882 "displays or exports Registry entries instead."
42886 #: ../tools/virt-win-reg.pl:165
42888 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42889 "result in disk corruption. However exporting (without this flag) is always"
42894 #: ../tools/virt-win-reg.pl:173
42895 msgid "B<--encoding> UTF-16LE|ASCII"
42896 msgstr "B<--encoding> UTF-16LE|ASCII"
42899 #: ../tools/virt-win-reg.pl:175
42901 "When merging (only), you may need to specify the encoding for strings to be "
42902 "used in the hive file. This is explained in detail in "
42903 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
42907 #: ../tools/virt-win-reg.pl:179
42909 "The default is to use UTF-16LE, which should work with recent versions of "
42914 #: ../tools/virt-win-reg.pl:186
42915 msgid "B<--unsafe-printable-strings>"
42916 msgstr "B<--unsafe-printable-strings>"
42919 #: ../tools/virt-win-reg.pl:188
42921 "When exporting (only), assume strings are UTF-16LE and print them as strings"
42922 " instead of hex sequences. Remove the final zero codepoint from strings if "
42927 #: ../tools/virt-win-reg.pl:192
42929 "This is unsafe and does not preserve the fidelity of strings in the original"
42930 " Registry for various reasons:"
42934 #: ../tools/virt-win-reg.pl:199
42936 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
42937 "other encodings will be corrupted by this transformation."
42941 #: ../tools/virt-win-reg.pl:204
42943 "Assumes that everything which has type 1 or 2 is really a string and that "
42944 "everything else is not a string, but the type field in real Registries is "
42949 #: ../tools/virt-win-reg.pl:210
42951 "Loses information about whether a zero codepoint followed the string in the "
42956 #: ../tools/virt-win-reg.pl:215
42958 "This all happens because the Registry itself contains no information about "
42959 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42963 #: ../tools/virt-win-reg.pl:219
42965 "You should only use this option for quick hacking and debugging of the "
42966 "Registry contents, and I<never> use it if the output is going to be passed "
42967 "into another program or stored in another Registry."
42971 #: ../tools/virt-win-reg.pl:556
42972 msgid "SUPPORTED SYSTEMS"
42973 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
42976 #: ../tools/virt-win-reg.pl:558
42978 "The program currently supports Windows NT-derived guests starting with "
42979 "Windows XP through to at least Windows 7."
42983 #: ../tools/virt-win-reg.pl:561
42984 msgid "The following Registry keys are supported:"
42988 #: ../tools/virt-win-reg.pl:565
42989 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42990 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
42993 #: ../tools/virt-win-reg.pl:567
42994 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42995 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42998 #: ../tools/virt-win-reg.pl:569
42999 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43000 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43003 #: ../tools/virt-win-reg.pl:571
43004 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43005 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43008 #: ../tools/virt-win-reg.pl:573
43009 msgid "C<HKEY_USERS\\.DEFAULT>"
43010 msgstr "C<HKEY_USERS\\.DEFAULT>"
43013 #: ../tools/virt-win-reg.pl:575
43014 msgid "C<HKEY_USERS\\I<SID>>"
43015 msgstr "C<HKEY_USERS\\I<SID>>"
43018 #: ../tools/virt-win-reg.pl:577
43019 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43023 #: ../tools/virt-win-reg.pl:579
43024 msgid "C<HKEY_USERS\\I<username>>"
43025 msgstr "C<HKEY_USERS\\I<користувач>>"
43028 #: ../tools/virt-win-reg.pl:581
43030 "where I<username> is a local user name (this is a libguestfs extension)."
43034 #: ../tools/virt-win-reg.pl:585
43036 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for"
43041 #: ../tools/virt-win-reg.pl:588
43043 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43044 "supported (there is no \"current user\")."
43048 #: ../tools/virt-win-reg.pl:591
43053 #: ../tools/virt-win-reg.pl:593
43055 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43056 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
43057 "style line endings. Since Windows regedit files are often in UTF-16LE with "
43058 "Windows-style line endings, you may need to reencode the whole file before "
43059 "or after processing."
43063 #: ../tools/virt-win-reg.pl:599
43065 "To reencode a file from Windows format to Linux (before processing it with "
43066 "the I<--merge> option), you would do something like this:"
43070 #: ../tools/virt-win-reg.pl:602
43073 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43076 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43080 #: ../tools/virt-win-reg.pl:604
43082 "To go in the opposite direction, after exporting and before sending the file"
43083 " to a Windows user, do something like this:"
43087 #: ../tools/virt-win-reg.pl:607
43090 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43093 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43097 #: ../tools/virt-win-reg.pl:609
43098 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43102 #: ../tools/virt-win-reg.pl:611
43104 "If you are unsure about the current encoding, use the L<file(1)> command. "
43105 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43106 "style (CRLF) line endings, like this:"
43110 #: ../tools/virt-win-reg.pl:615
43113 " $ file software.reg\n"
43114 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43115 " with CRLF line terminators\n"
43120 #: ../tools/virt-win-reg.pl:619
43121 msgid "This file would need conversion before you could I<--merge> it."
43125 #: ../tools/virt-win-reg.pl:621
43126 msgid "CurrentControlSet etc."
43130 #: ../tools/virt-win-reg.pl:623
43132 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43133 "Registry at the level of the hive file, and therefore you cannot modify "
43138 #: ../tools/virt-win-reg.pl:627
43140 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
43141 "circumstances it might refer to another control set. The way to find out is"
43142 " to look at the C<HKLM\\SYSTEM\\Select> key:"
43146 #: ../tools/virt-win-reg.pl:631
43149 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43150 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43151 " \"Current\"=dword:00000001\n"
43152 " \"Default\"=dword:00000001\n"
43153 " \"Failed\"=dword:00000000\n"
43154 " \"LastKnownGood\"=dword:00000002\n"
43157 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43158 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43159 " \"Current\"=dword:00000001\n"
43160 " \"Default\"=dword:00000001\n"
43161 " \"Failed\"=dword:00000000\n"
43162 " \"LastKnownGood\"=dword:00000002\n"
43166 #: ../tools/virt-win-reg.pl:638
43167 msgid "\"Current\" is the one which Windows will choose when it boots."
43171 #: ../tools/virt-win-reg.pl:640
43173 "Similarly, other C<Current...> keys in the path may need to be replaced."
43177 #: ../tools/virt-win-reg.pl:643
43178 msgid "DELETING REGISTRY KEYS AND VALUES"
43182 #: ../tools/virt-win-reg.pl:645
43183 msgid "To delete a whole registry key, use the syntax:"
43187 #: ../tools/virt-win-reg.pl:647
43190 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
43195 #: ../tools/virt-win-reg.pl:649
43196 msgid "To delete a single value within a key, use the syntax:"
43200 #: ../tools/virt-win-reg.pl:651
43203 " [HKEY_LOCAL_MACHINE\\Foo]\n"
43209 #: ../tools/virt-win-reg.pl:654
43210 msgid "WINDOWS TIPS"
43214 #: ../tools/virt-win-reg.pl:656
43216 "Note that some of these tips modify the guest disk image. The guest I<must>"
43217 " be shut off, else you will get disk corruption."
43221 #: ../tools/virt-win-reg.pl:659
43222 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
43226 #: ../tools/virt-win-reg.pl:661
43228 "Prepare a DOS batch script, VBScript or executable. Upload this using "
43229 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
43230 "is uploaded into C<C:\\>:"
43234 #: ../tools/virt-win-reg.pl:665
43237 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43240 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43244 #: ../tools/virt-win-reg.pl:667
43245 msgid "Prepare a regedit file containing the registry change:"
43249 #: ../tools/virt-win-reg.pl:669
43252 " cat > test.reg <<'EOF'\n"
43253 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43254 " \"Test\"=\"c:\\\\test.bat\"\n"
43258 " cat > test.reg <<'EOF'\n"
43259 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43260 " \"Test\"=\"c:\\\\test.bat\"\n"
43265 #: ../tools/virt-win-reg.pl:674
43267 "In this example we use the key C<RunOnce> which means that the script will "
43268 "run precisely once when the first user logs in. If you want it to run every"
43269 " time a user logs in, replace C<RunOnce> with C<Run>."
43273 #: ../tools/virt-win-reg.pl:678
43274 msgid "Now update the registry:"
43275 msgstr "Оновіть регістр:"
43278 #: ../tools/virt-win-reg.pl:680
43281 " virt-win-reg --merge WindowsGuest test.reg\n"
43286 #: ../tools/virt-win-reg.pl:682
43287 msgid "INSTALLING A SERVICE"
43291 #: ../tools/virt-win-reg.pl:684
43293 "This section assumes you are familiar with Windows services, and you either "
43294 "have a program which handles the Windows Service Control Protocol directly "
43295 "or you want to run any program using a service wrapper like SrvAny or the "
43300 #: ../tools/virt-win-reg.pl:689
43302 "First upload the program and optionally the service wrapper. In this case "
43303 "the test program is called C<test.exe> and we are using the RHSrvAny "
43308 #: ../tools/virt-win-reg.pl:693
43311 " guestfish -i -d WindowsGuest <<EOF\n"
43312 " upload rhsrvany.exe /rhsrvany.exe\n"
43313 " upload test.exe /test.exe\n"
43317 " guestfish -i -d WindowsGuest <<EOF\n"
43318 " upload rhsrvany.exe /rhsrvany.exe\n"
43319 " upload test.exe /test.exe\n"
43324 #: ../tools/virt-win-reg.pl:698
43326 "Prepare a regedit file containing the registry changes. In this example, "
43327 "the first registry change is needed for the service itself or the service "
43328 "wrapper (if used). The second registry change is only needed because I am "
43329 "using the RHSrvAny service wrapper."
43333 #: ../tools/virt-win-reg.pl:703
43336 " cat > service.reg <<'EOF'\n"
43337 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43338 " \"Type\"=dword:00000010\n"
43339 " \"Start\"=dword:00000002\n"
43340 " \"ErrorControl\"=dword:00000001\n"
43341 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43342 " \"DisplayName\"=\"RHSrvAny\"\n"
43343 " \"ObjectName\"=\"NetworkService\"\n"
43346 " cat > service.reg <<'EOF'\n"
43347 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43348 " \"Type\"=dword:00000010\n"
43349 " \"Start\"=dword:00000002\n"
43350 " \"ErrorControl\"=dword:00000001\n"
43351 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43352 " \"DisplayName\"=\"RHSrvAny\"\n"
43353 " \"ObjectName\"=\"NetworkService\"\n"
43357 #: ../tools/virt-win-reg.pl:712
43360 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43361 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43362 " \"PWD\"=\"c:\\\\Temp\"\n"
43366 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43367 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43368 " \"PWD\"=\"c:\\\\Temp\"\n"
43373 #: ../tools/virt-win-reg.pl:723
43375 "For use of C<ControlSet001> see the section above in this manual page. You "
43376 "may need to adjust this according to the control set that is in use by the "
43381 #: ../tools/virt-win-reg.pl:729
43383 "C<\"ObjectName\"> controls the privileges that the service will have. An "
43384 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
43385 "privileged account."
43389 #: ../tools/virt-win-reg.pl:735
43391 "For the meaning of the magic numbers, see this Microsoft KB article: "
43392 "L<http://support.microsoft.com/kb/103000>."
43396 #: ../tools/virt-win-reg.pl:740
43397 msgid "Update the registry:"
43398 msgstr "Оновіть регістр:"
43401 #: ../tools/virt-win-reg.pl:742
43404 " virt-win-reg --merge WindowsGuest service.reg\n"
43409 #: ../tools/virt-win-reg.pl:746
43411 "Be careful when passing parameters containing C<\\> (backslash) in the "
43412 "shell. Usually you will have to use 'single quotes' or double backslashes "
43413 "(but not both) to protect them from the shell."
43417 #: ../tools/virt-win-reg.pl:750
43418 msgid "Paths and value names are case-insensitive."
43422 #: ../tools/virt-win-reg.pl:759
43424 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
43425 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
43426 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
43427 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43429 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
43430 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
43431 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
43432 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43435 #: ../tools/virt-win-reg.pl:777
43438 " export LIBGUESTFS_DEBUG=1\n"
43439 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43444 #: ../tools/virt-win-reg.pl:780
43446 "Attach /tmp/virt-win-reg.log to a new bug report at "
43447 "L<https://bugzilla.redhat.com/>"