1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
5 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-10-04 19:22+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
22 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
23 #: ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
24 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
25 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
26 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
27 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
28 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
29 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
30 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
31 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
32 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
33 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
34 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
35 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
36 #: ../tools/virt-win-reg.pl:35
41 #: ../cat/virt-cat.pod:5
42 msgid "virt-cat - Display files in a virtual machine"
46 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
47 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
48 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
49 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
50 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
51 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
52 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
53 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
54 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
55 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
56 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
57 #: ../test-tool/libguestfs-test-tool.pod:7
58 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
59 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
60 #: ../tools/virt-win-reg.pl:39
62 msgstr "КОРОТКИЙ ОПИС"
65 #: ../cat/virt-cat.pod:9
68 #| " virt-list-partitions [--options] domname\n"
71 " virt-cat [--options] -d domname file [file ...]\n"
74 " virt-list-partitions [--параметри] назва_домену\n"
78 #: ../cat/virt-cat.pod:11
81 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
84 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
87 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
91 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
92 #: ../inspector/virt-inspector.pod:13
97 #: ../cat/virt-cat.pod:15
100 " virt-cat domname file\n"
105 #: ../cat/virt-cat.pod:17
108 " virt-cat disk.img file\n"
113 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
114 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
115 #: ../erlang/examples/guestfs-erlang.pod:16
116 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
117 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
118 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
119 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
120 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
121 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
122 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
123 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
124 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
125 #: ../test-tool/libguestfs-test-tool.pod:11
126 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
127 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
128 #: ../tools/virt-win-reg.pl:63
133 #: ../cat/virt-cat.pod:21
135 "C<virt-cat> is a command line tool to display the contents of C<file> where "
136 "C<file> exists in the named virtual machine (or disk image)."
140 #: ../cat/virt-cat.pod:24
142 "Multiple filenames can be given, in which case they are concatenated "
143 "together. Each filename must be a full path, starting at the root directory "
144 "(starting with '/')."
148 #: ../cat/virt-cat.pod:28
150 "C<virt-cat> can be used to quickly view a file. To edit a file, use C<virt-"
151 "edit>. For more complex cases you should look at the L<guestfish(1)> tool "
152 "(see L</USING GUESTFISH> below)."
156 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
157 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
158 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
159 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
160 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
161 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
162 #: ../tools/virt-tar.pl:50
167 #: ../cat/virt-cat.pod:34
169 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
173 #: ../cat/virt-cat.pod:37
176 " virt-cat -d mydomain /etc/fstab\n"
181 #: ../cat/virt-cat.pod:39
182 msgid "List syslog messages from a VM disk image file:"
186 #: ../cat/virt-cat.pod:41
189 " virt-cat -a disk.img /var/log/messages | tail\n"
194 #: ../cat/virt-cat.pod:43
195 msgid "Find out what DHCP IP address a VM acquired:"
199 #: ../cat/virt-cat.pod:45
202 " virt-cat -d mydomain /var/log/messages | \\\n"
203 " grep 'dhclient: bound to' | tail\n"
208 #: ../cat/virt-cat.pod:48
209 msgid "Find out what packages were recently installed:"
213 #: ../cat/virt-cat.pod:50
216 " virt-cat -d mydomain /var/log/yum.log | tail\n"
221 #: ../cat/virt-cat.pod:52
222 msgid "Find out who is logged on inside a virtual machine:"
226 #: ../cat/virt-cat.pod:54
229 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
235 #: ../cat/virt-cat.pod:57
236 msgid "or who was logged on:"
240 #: ../cat/virt-cat.pod:59
243 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
244 " last -f /tmp/wtmp\n"
249 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
250 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
251 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
252 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
253 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
254 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
255 #: ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99
256 #: ../test-tool/libguestfs-test-tool.pod:36
257 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
258 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
259 #: ../tools/virt-win-reg.pl:96
264 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
265 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
266 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
267 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
268 #: ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103
269 #: ../test-tool/libguestfs-test-tool.pod:40
270 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
271 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
272 #: ../tools/virt-win-reg.pl:104
277 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
278 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
279 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
280 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
281 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
282 #: ../tools/virt-win-reg.pl:106
283 msgid "Display brief help."
287 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
288 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
289 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
291 #| msgid "B<-f file>"
296 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
297 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
298 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
300 #| msgid "B<--add image>"
301 msgid "B<--add> file"
302 msgstr "B<--add образ>"
305 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
306 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
307 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
309 "Add I<file> which should be a disk image from a virtual machine. If the "
310 "virtual machine has multiple block devices, you must supply all of them with "
311 "separate I<-a> options."
315 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
316 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
317 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
318 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
320 "The format of the disk image is auto-detected. To override this and force a "
321 "particular format use the I<--format=..> option."
325 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
326 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
330 msgstr "B<-c адреса>"
333 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
334 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
336 #| msgid "B<--connect URI>"
337 msgid "B<--connect> URI"
338 msgstr "B<--connect адреса>"
341 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
342 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
343 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
344 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
345 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
347 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
348 "to the default libvirt hypervisor."
352 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
353 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
355 "If you specify guest block devices directly (I<-a>), then libvirt is not "
360 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
361 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
362 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
367 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
368 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
369 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
370 msgid "B<--domain> guest"
374 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
375 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
376 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
378 "Add all the disks from the named libvirt guest. Domain UUIDs can be used "
383 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
384 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
385 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
386 msgid "B<--echo-keys>"
387 msgstr "B<--echo-keys>"
390 #: ../cat/virt-cat.pod:100
392 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
393 "so you cannot see what you are typing. If you are not worried about Tempest "
394 "attacks and there is no one else in the room you can specify this flag to "
395 "see what you are typing."
399 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
400 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
401 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
402 #: ../rescue/virt-rescue.pod:124
403 msgid "B<--format=raw|qcow2|..>"
404 msgstr "B<--format=raw|qcow2|..>"
407 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
408 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
409 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
410 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
415 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
416 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
417 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
418 #: ../rescue/virt-rescue.pod:128
420 "The default for the I<-a> option is to auto-detect the format of the disk "
421 "image. Using this forces the disk format for I<-a> options which follow on "
422 "the command line. Using I<--format> with no argument switches back to auto-"
423 "detection for subsequent I<-a> options."
427 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
428 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
429 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
430 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
431 #: ../src/guestfs.pod:2791
436 #: ../cat/virt-cat.pod:116
439 #| " guestfish --format=raw -a disk.img\n"
442 " virt-cat --format=raw -a disk.img file\n"
445 " guestfish --format=raw -a disk.img\n"
449 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
450 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
451 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
452 msgid "forces raw format (no auto-detection) for C<disk.img>."
456 #: ../cat/virt-cat.pod:120
459 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
462 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
465 " guestfish --format=raw -a disk.img --format -a another.img\n"
469 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
470 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
471 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
478 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
479 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
480 #: ../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 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
489 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
490 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
491 msgid "B<--keys-from-stdin>"
492 msgstr "B<--keys-from-stdin>"
495 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
496 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
497 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
499 "Read key or passphrase parameters from stdin. The default is to try to read "
500 "passphrases from the user by opening C</dev/tty>."
504 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
505 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
506 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
507 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:182
508 #: ../sparsify/virt-sparsify.pod:159
513 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
514 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
515 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
516 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184
517 #: ../sparsify/virt-sparsify.pod:161
519 msgstr "B<--verbose>"
522 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
523 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
524 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186
525 #: ../sparsify/virt-sparsify.pod:163
526 msgid "Enable verbose messages for debugging."
530 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
531 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
532 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
533 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188
534 #: ../resize/virt-resize.pod:484 ../sparsify/virt-sparsify.pod:165
539 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
540 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
541 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
542 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:190
543 #: ../resize/virt-resize.pod:486 ../sparsify/virt-sparsify.pod:167
544 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-list-partitions.pl:70
545 #: ../tools/virt-make-fs.pl:169 ../tools/virt-tar.pl:119
546 #: ../tools/virt-win-reg.pl:112
548 msgstr "B<--version>"
551 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
552 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
553 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192
554 #: ../resize/virt-resize.pod:488 ../sparsify/virt-sparsify.pod:169
555 #: ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72
556 #: ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121
557 #: ../tools/virt-win-reg.pl:114
558 msgid "Display version number and exit."
559 msgstr "Показати дані щодо версії і завершити роботу."
562 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
563 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
564 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
565 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:203
566 #: ../sparsify/virt-sparsify.pod:171 ../tools/virt-tar.pl:158
571 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
572 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
573 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205
574 #: ../sparsify/virt-sparsify.pod:173
575 msgid "Enable tracing of libguestfs API calls."
579 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
580 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
581 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
585 #: ../cat/virt-cat.pod:154
586 msgid "Previous versions of virt-cat allowed you to write either:"
590 #: ../cat/virt-cat.pod:156
593 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
596 " virt-cat disk.img [disk.img ...] file\n"
599 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
603 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
604 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
611 #: ../cat/virt-cat.pod:160
614 " virt-cat guestname file\n"
619 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
620 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
622 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
623 "the confusing case where a disk image might have the same name as a guest."
627 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
628 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
629 msgid "For compatibility the old style is still supported."
633 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
634 msgid "USING GUESTFISH"
638 #: ../cat/virt-cat.pod:170
640 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
641 "C<virt-cat> doesn't work."
645 #: ../cat/virt-cat.pod:173
646 msgid "Using C<virt-cat> is approximately equivalent to doing:"
650 #: ../cat/virt-cat.pod:175
653 #| " guestfish --ro -d myguest -i\n"
656 " guestfish --ro -i -d domname download file -\n"
659 " guestfish --ro -d myguest -i\n"
663 #: ../cat/virt-cat.pod:177
665 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
666 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
670 #: ../cat/virt-cat.pod:181
672 "The command above uses libguestfs's guest inspection feature and so does not "
673 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
674 "disk images that don't contain guests. To display a file from a disk image "
679 #: ../cat/virt-cat.pod:186
682 #| " guestfish [--ro] -i disk.img\n"
685 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
688 " guestfish [--ro] -i disk.img\n"
692 #: ../cat/virt-cat.pod:188
694 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
695 "the disk image, and C<file> is the full path to the file."
699 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
700 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
701 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266
702 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
703 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
704 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
705 msgid "SHELL QUOTING"
709 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
710 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
711 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268
712 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
713 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
714 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
716 "Libvirt guest names can contain arbitrary characters, some of which have "
717 "meaning to the shell such as C<#> and space. You may need to quote or "
718 "escape these characters on the command line. See the shell manual page L<sh"
723 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
724 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
725 #: ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303
726 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608
727 #: ../sparsify/virt-sparsify.pod:227 ../test-tool/libguestfs-test-tool.pod:90
732 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
733 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
734 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
735 #: ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
737 "This program returns 0 if successful, or non-zero if there was an error."
741 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
742 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
743 #: ../erlang/examples/guestfs-erlang.pod:97
744 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
745 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
746 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
747 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
748 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
749 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
750 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
751 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
752 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3167
753 #: ../test-tool/libguestfs-test-tool.pod:100
754 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
755 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
756 #: ../tools/virt-win-reg.pl:746
758 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
761 #: ../cat/virt-cat.pod:205
764 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
765 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
766 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
768 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
769 "tar-out(1)>, L<http://libguestfs.org/>."
771 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
772 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
773 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
776 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
777 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
778 #: ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:635
779 #: ../sparsify/virt-sparsify.pod:264 ../tools/virt-list-filesystems.pl:208
780 #: ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:564
781 #: ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:772
786 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
787 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
788 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298
789 #: ../resize/virt-resize.pod:637 ../sparsify/virt-sparsify.pod:266
790 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279
791 #: ../tools/virt-make-fs.pl:566 ../tools/virt-tar.pl:313
792 #: ../tools/virt-win-reg.pl:774
793 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
794 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
797 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
798 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
799 #: ../erlang/examples/guestfs-erlang.pod:114
800 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
801 #: ../fish/guestfish.pod:1265 ../fish/virt-copy-in.pod:64
802 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
803 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
804 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
805 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
806 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
807 #: ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52
808 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3246
809 #: ../test-tool/libguestfs-test-tool.pod:110
810 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
811 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
812 #: ../tools/virt-win-reg.pl:776
814 msgstr "АВТОРСЬКІ ПРАВА"
817 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
818 #: ../resize/virt-resize.pod:641
820 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
821 msgid "Copyright (C) 2010-2011 Red Hat Inc."
822 msgstr "© Red Hat Inc., 2009–2010"
825 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
826 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
827 #: ../fish/guestfish.pod:1270 ../fish/virt-copy-in.pod:69
828 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
829 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328
830 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:304
831 #: ../resize/virt-resize.pod:643 ../sparsify/virt-sparsify.pod:272
832 #: ../test-tool/libguestfs-test-tool.pod:115
833 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
834 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
835 #: ../tools/virt-win-reg.pl:780
837 "This program is free software; you can redistribute it and/or modify it "
838 "under the terms of the GNU General Public License as published by the Free "
839 "Software Foundation; either version 2 of the License, or (at your option) "
844 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
845 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
846 #: ../fish/guestfish.pod:1275 ../fish/virt-copy-in.pod:74
847 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
848 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333
849 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:309
850 #: ../resize/virt-resize.pod:648 ../sparsify/virt-sparsify.pod:277
851 #: ../test-tool/libguestfs-test-tool.pod:120
852 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
853 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
854 #: ../tools/virt-win-reg.pl:785
856 "This program is distributed in the hope that it will be useful, but WITHOUT "
857 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
858 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
861 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
862 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
863 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
864 "дізнатися з GNU General Public License."
867 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
868 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
869 #: ../fish/guestfish.pod:1280 ../fish/virt-copy-in.pod:79
870 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
871 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338
872 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:314
873 #: ../resize/virt-resize.pod:653 ../sparsify/virt-sparsify.pod:282
874 #: ../test-tool/libguestfs-test-tool.pod:125
875 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
876 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
877 #: ../tools/virt-win-reg.pl:790
879 "You should have received a copy of the GNU General Public License along with "
880 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
881 "Ave, Cambridge, MA 02139, USA."
885 #: ../cat/virt-filesystems.pod:5
887 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
888 "virtual machine or disk image"
892 #: ../cat/virt-filesystems.pod:9
895 #| " virt-list-partitions [--options] domname\n"
898 " virt-filesystems [--options] -d domname\n"
901 " virt-list-partitions [--параметри] назва_домену\n"
905 #: ../cat/virt-filesystems.pod:11
908 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
911 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
914 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
918 #: ../cat/virt-filesystems.pod:15
920 "This tool allows you to discover filesystems, partitions, logical volumes, "
921 "and their sizes in a disk image or virtual machine. It is a replacement for "
922 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
926 #: ../cat/virt-filesystems.pod:20
928 "One use for this tool is from shell scripts to iterate over all filesystems "
933 #: ../cat/virt-filesystems.pod:23
936 " for fs in $(virt-filesystems -a disk.img); do\n"
943 #: ../cat/virt-filesystems.pod:27
945 "Another use is to list partitions before using another tool to modify those "
946 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
947 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
951 #: ../cat/virt-filesystems.pod:32
953 "Various command line options control what this program displays. You need "
954 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
955 "guest respectively. If you just specify that then the program shows "
956 "filesystems found, one per line, like this:"
960 #: ../cat/virt-filesystems.pod:37
963 " $ virt-filesystems -a disk.img\n"
965 " /dev/vg_guest/lv_root\n"
970 #: ../cat/virt-filesystems.pod:41
972 "If you add I<-l> or I<--long> then the output includes extra information:"
976 #: ../cat/virt-filesystems.pod:44
979 " $ virt-filesystems -a disk.img -l\n"
980 " Name Type VFS Label Size\n"
981 " /dev/sda1 filesystem ext4 boot 524288000\n"
982 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
987 #: ../cat/virt-filesystems.pod:49
989 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
994 #: ../cat/virt-filesystems.pod:52
997 " $ virt-filesystems -a disk.img --extra\n"
999 " /dev/vg_guest/lv_root\n"
1000 " /dev/vg_guest/lv_swap\n"
1001 " /dev/vg_guest/lv_data\n"
1006 #: ../cat/virt-filesystems.pod:58
1008 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1012 #: ../cat/virt-filesystems.pod:60
1015 " $ virt-filesystems -a disk.img --partitions\n"
1022 #: ../cat/virt-filesystems.pod:64
1024 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1025 "volumes>, I<--block-devices> to list those items."
1029 #: ../cat/virt-filesystems.pod:67
1031 "You can use these options in combination as well (if you want a combination "
1032 "including filesystems, you have to add I<--filesystems>). Notice that some "
1033 "items fall into several categories (eg. C</dev/sda1> might be both a "
1034 "partition and a filesystem). These items are listed several times. To get "
1035 "a list which includes absolutely everything that virt-filesystems knows "
1036 "about, use the I<--all> option."
1040 #: ../cat/virt-filesystems.pod:74
1042 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
1043 "uuid> option to display device and filesystem UUIDs in the long output."
1047 #: ../cat/virt-filesystems.pod:78
1049 "I<--all --long --uuid> is a useful combination to display all possible "
1050 "information about everything."
1054 #: ../cat/virt-filesystems.pod:81
1057 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1058 " Name Type VFS Label Size Parent UUID\n"
1059 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1060 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1061 " /dev/sda1 partition - - 100M /dev/sda -\n"
1062 " /dev/sda2 partition - - 20G /dev/sda -\n"
1063 " /dev/sda device - - 20G - -\n"
1068 #: ../cat/virt-filesystems.pod:89
1070 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1074 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1076 #| msgid "B<--help>"
1081 #: ../cat/virt-filesystems.pod:112
1083 "Display everything. This is currently the same as specifying these options: "
1084 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1085 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1086 "added to this list in future)."
1090 #: ../cat/virt-filesystems.pod:117
1092 #| msgid "See also L</is-lv>."
1093 msgid "See also I<--long>."
1094 msgstr "Див. також L</is-lv>."
1097 #: ../cat/virt-filesystems.pod:119
1099 #| msgid "B<--live>"
1100 msgid "B<--blkdevs>"
1104 #: ../cat/virt-filesystems.pod:121
1106 #| msgid "is-blockdev"
1107 msgid "B<--block-devices>"
1108 msgstr "is-blockdev"
1111 #: ../cat/virt-filesystems.pod:123
1113 #| msgid "is-blockdev"
1114 msgid "Display block devices."
1115 msgstr "is-blockdev"
1118 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1125 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1127 "Write out the results in CSV format (comma-separated values). This format "
1128 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1129 "ABOUT CSV FORMAT> below."
1133 #: ../cat/virt-filesystems.pod:150
1135 "When prompting for keys and passphrases, virt-filesystems normally turns "
1136 "echoing off so you cannot see what you are typing. If you are not worried "
1137 "about Tempest attacks and there is no one else in the room you can specify "
1138 "this flag to see what you are typing."
1142 #: ../cat/virt-filesystems.pod:155
1149 #: ../cat/virt-filesystems.pod:157
1151 "This causes filesystems that are not ordinary, mountable filesystems to be "
1152 "displayed. This category includes swapspace, and filesystems that are empty "
1153 "or contain unknown data."
1157 #: ../cat/virt-filesystems.pod:161
1158 msgid "This option implies I<--filesystems>."
1162 #: ../cat/virt-filesystems.pod:163
1164 #| msgid "list-filesystems"
1165 msgid "B<--filesystems>"
1166 msgstr "list-filesystems"
1169 #: ../cat/virt-filesystems.pod:165
1171 "Display mountable filesystems. If no display option was selected then this "
1172 "option is implied."
1176 #: ../cat/virt-filesystems.pod:168
1177 msgid "With I<--extra>, non-mountable filesystems are shown too."
1181 #: ../cat/virt-filesystems.pod:181
1184 #| " guestfish --format=raw -a disk.img\n"
1187 " virt-filesystems --format=raw -a disk.img\n"
1190 " guestfish --format=raw -a disk.img\n"
1194 #: ../cat/virt-filesystems.pod:185
1197 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1200 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1203 " guestfish --format=raw -a disk.img --format -a another.img\n"
1207 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1208 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1209 #: ../tools/virt-list-partitions.pl:109
1214 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1215 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1217 #| msgid "B<-h> | B<--human-readable>"
1218 msgid "B<--human-readable>"
1219 msgstr "B<-h> | B<--human-readable>"
1222 #: ../cat/virt-filesystems.pod:198
1223 msgid "In I<--long> mode, display sizes in human-readable format."
1227 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1228 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1233 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1234 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1241 #: ../cat/virt-filesystems.pod:209
1242 msgid "Display extra columns of data (\"long format\")."
1246 #: ../cat/virt-filesystems.pod:211
1247 msgid "A title row is added unless you also specify I<--no-title>."
1251 #: ../cat/virt-filesystems.pod:213
1253 "The extra columns displayed depend on what output you select, and the "
1254 "ordering of columns may change in future versions. Use the title row, I<--"
1255 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1260 #: ../cat/virt-filesystems.pod:218
1262 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1263 "default is to show raw numbers of I<bytes>."
1267 #: ../cat/virt-filesystems.pod:221
1268 msgid "Use I<--uuid> to display UUIDs too."
1272 #: ../cat/virt-filesystems.pod:223
1274 #| msgid "B<--live>"
1279 #: ../cat/virt-filesystems.pod:225
1281 #| msgid "B<--live>"
1282 msgid "B<--logvols>"
1286 #: ../cat/virt-filesystems.pod:227
1288 #| msgid "B<--live>"
1289 msgid "B<--logical-volumes>"
1293 #: ../cat/virt-filesystems.pod:229
1295 "Display LVM logical volumes. In this mode, these are displayed irrespective "
1296 "of whether the LVs contain filesystems."
1300 #: ../cat/virt-filesystems.pod:232
1302 #| msgid "B<--listen>"
1303 msgid "B<--no-title>"
1304 msgstr "B<--listen>"
1307 #: ../cat/virt-filesystems.pod:234
1308 msgid "In I<--long> mode, don't add a title row."
1312 #: ../cat/virt-filesystems.pod:236
1314 "Note that the order of the columns is not fixed, and may change in future "
1315 "versions of virt-filesystems, so using this option may give you unexpected "
1320 #: ../cat/virt-filesystems.pod:240
1322 #| msgid "B<--partition>"
1324 msgstr "B<--partition>"
1327 #: ../cat/virt-filesystems.pod:242
1329 #| msgid "B<--partition>"
1330 msgid "B<--partitions>"
1331 msgstr "B<--partition>"
1334 #: ../cat/virt-filesystems.pod:244
1336 "Display partitions. In this mode, these are displayed irrespective of "
1337 "whether the partitions contain filesystems."
1341 #: ../cat/virt-filesystems.pod:247
1348 #: ../cat/virt-filesystems.pod:249
1350 #| msgid "B<--verbose>"
1351 msgid "B<--physvols>"
1352 msgstr "B<--verbose>"
1355 #: ../cat/virt-filesystems.pod:251
1356 msgid "B<--physical-volumes>"
1360 #: ../cat/virt-filesystems.pod:253
1361 msgid "Display LVM physical volumes."
1365 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1367 #| msgid "B<--live>"
1372 #: ../cat/virt-filesystems.pod:257
1379 #: ../cat/virt-filesystems.pod:259
1380 msgid "In I<--long> mode, display UUIDs as well."
1384 #: ../cat/virt-filesystems.pod:273
1391 #: ../cat/virt-filesystems.pod:275
1393 #| msgid "B<--verbose>"
1394 msgid "B<--volgroups>"
1395 msgstr "B<--verbose>"
1398 #: ../cat/virt-filesystems.pod:277
1400 #| msgid "B<--verbose>"
1401 msgid "B<--volume-groups>"
1402 msgstr "B<--verbose>"
1405 #: ../cat/virt-filesystems.pod:279
1406 msgid "Display LVM volume groups."
1410 #: ../cat/virt-filesystems.pod:287
1415 #: ../cat/virt-filesystems.pod:289
1417 "Note that columns in the output are subject to reordering and change in "
1418 "future versions of this tool."
1422 #: ../cat/virt-filesystems.pod:294
1427 #: ../cat/virt-filesystems.pod:296
1428 msgid "The filesystem, partition, block device or LVM name."
1432 #: ../cat/virt-filesystems.pod:298
1434 "For device and partition names these are displayed as canonical libguestfs "
1435 "names, so that for example C</dev/sda2> is the second partition on the first "
1440 #: ../cat/virt-filesystems.pod:302
1442 "If the I<--long> option is B<not> specified, then only the name column is "
1443 "shown in the output."
1447 #: ../cat/virt-filesystems.pod:305
1449 #| msgid "B<-N type>"
1454 #: ../cat/virt-filesystems.pod:307
1455 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1459 #: ../cat/virt-filesystems.pod:309
1464 #: ../cat/virt-filesystems.pod:311
1466 "If there is a filesystem, then this column displays the filesystem type if "
1467 "one could be detected, eg. C<ext4>."
1471 #: ../cat/virt-filesystems.pod:314
1476 #: ../cat/virt-filesystems.pod:316
1478 "If the object has a label (used for identifying and mounting filesystems) "
1479 "then this column contains the label."
1483 #: ../cat/virt-filesystems.pod:319
1485 #| msgid "B<part_size>"
1487 msgstr "B<part_size>"
1490 #: ../cat/virt-filesystems.pod:321
1492 "The size of the object in bytes. If the I<--human> option is used then the "
1493 "size is displayed in a human-readable form."
1497 #: ../cat/virt-filesystems.pod:324
1502 #: ../cat/virt-filesystems.pod:326
1504 "The parent column records the parent relationship between objects. For "
1505 "example, if the object is a partition, then this column contains the name of "
1506 "the containing device. If the object is a logical volume, then this column "
1507 "is the name of the volume group."
1511 #: ../cat/virt-filesystems.pod:331
1516 #: ../cat/virt-filesystems.pod:333
1518 "If the object has a UUID (used for identifying and mounting filesystems and "
1519 "block devices) then this column contains the UUID as a string."
1523 #: ../cat/virt-filesystems.pod:337
1524 msgid "The UUID is only displayed if the I<--uuid> option is given."
1528 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1529 #: ../df/virt-df.pod:191
1530 msgid "NOTE ABOUT CSV FORMAT"
1534 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1535 #: ../df/virt-df.pod:193
1537 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
1538 "should be easy to parse, but it is definitely not easy to parse."
1542 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1543 #: ../df/virt-df.pod:196
1545 "Myth: Just split fields at commas. Reality: This does I<not> work "
1546 "reliably. This example has two columns:"
1550 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1551 #: ../df/virt-df.pod:199
1554 " \"foo,bar\",baz\n"
1559 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1560 #: ../df/virt-df.pod:201
1562 "Myth: Read the file one line at a time. Reality: This does I<not> work "
1563 "reliably. This example has one row:"
1567 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1568 #: ../df/virt-df.pod:204
1577 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1578 #: ../df/virt-df.pod:207
1580 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1581 "packaged in major Linux distributions)."
1585 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1586 #: ../df/virt-df.pod:210
1588 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1589 "or Python's built-in csv library)."
1593 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1594 #: ../df/virt-df.pod:213
1595 msgid "Most spreadsheets and databases can import CSV directly."
1599 #: ../cat/virt-filesystems.pod:379
1602 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1603 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1604 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1606 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1607 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1610 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1611 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1612 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1615 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1616 #: ../tools/virt-win-reg.pl:778
1617 msgid "Copyright (C) 2010 Red Hat Inc."
1621 #: ../cat/virt-ls.pod:5
1622 msgid "virt-ls - List files in a virtual machine"
1626 #: ../cat/virt-ls.pod:9
1629 " virt-ls [--options] -d domname directory [directory ...]\n"
1634 #: ../cat/virt-ls.pod:11
1637 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1640 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1643 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1647 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1652 #: ../cat/virt-ls.pod:15
1655 #| " virt-list-partitions [--options] domname\n"
1658 " virt-ls [--options] domname directory\n"
1661 " virt-list-partitions [--параметри] назва_домену\n"
1665 #: ../cat/virt-ls.pod:17
1668 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1671 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1674 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1678 #: ../cat/virt-ls.pod:21
1680 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1681 "more from a virtual machine or disk image."
1685 #: ../cat/virt-ls.pod:24
1687 "Multiple directory names can be given, in which case the output from each is "
1692 #: ../cat/virt-ls.pod:27
1694 "To list directories from a libvirt guest use the I<-d> option to specify the "
1695 "name of the guest. For a disk image, use the I<-a> option."
1699 #: ../cat/virt-ls.pod:31
1701 "C<virt-ls> can do many simple file listings. For more complicated cases you "
1702 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1707 #: ../cat/virt-ls.pod:37
1708 msgid "Get a list of all files and directories in a virtual machine:"
1712 #: ../cat/virt-ls.pod:39
1715 #| " guestfish --ro -d myguest -i\n"
1718 " virt-ls -R -d guest /\n"
1721 " guestfish --ro -d myguest -i\n"
1725 #: ../cat/virt-ls.pod:41
1726 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1730 #: ../cat/virt-ls.pod:43
1733 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1738 #: ../cat/virt-ls.pod:45
1739 msgid "List all public-writable directories in a Linux virtual machine:"
1743 #: ../cat/virt-ls.pod:47
1746 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1751 #: ../cat/virt-ls.pod:49
1752 msgid "List all Unix domain sockets in a Linux virtual machine:"
1756 #: ../cat/virt-ls.pod:51
1759 " virt-ls -lR -d guest / | grep '^s'\n"
1764 #: ../cat/virt-ls.pod:53
1765 msgid "List all regular files with filenames ending in '.png':"
1769 #: ../cat/virt-ls.pod:55
1772 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1777 #: ../cat/virt-ls.pod:57
1778 msgid "To display files larger than 10MB in home directories:"
1782 #: ../cat/virt-ls.pod:59
1785 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1790 #: ../cat/virt-ls.pod:61
1791 msgid "Find everything modified in the last 7 days:"
1795 #: ../cat/virt-ls.pod:63
1798 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1803 #: ../cat/virt-ls.pod:65
1804 msgid "Find regular files modified in the last 24 hours:"
1808 #: ../cat/virt-ls.pod:67
1811 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1816 #: ../cat/virt-ls.pod:69
1817 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1821 #: ../cat/virt-ls.pod:71
1823 "Find the differences between files in a guest and an earlier snapshot of the "
1828 #: ../cat/virt-ls.pod:74
1831 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1832 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1833 " diff -u old new | less\n"
1838 #: ../cat/virt-ls.pod:78
1840 "The commands above won't find files where the content has changed but the "
1841 "metadata (eg. file size and modification date) is the same. To do that, you "
1842 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
1843 "checksum> can be quite slow since it has to read and compute a checksum of "
1844 "every regular file in the virtual machine."
1848 #: ../cat/virt-ls.pod:84
1849 msgid "OUTPUT MODES"
1853 #: ../cat/virt-ls.pod:86
1855 "C<virt-ls> has four output modes, controlled by different combinations of "
1856 "the I<-l> and I<-R> options."
1860 #: ../cat/virt-ls.pod:89
1861 msgid "SIMPLE LISTING"
1865 #: ../cat/virt-ls.pod:91
1866 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1870 #: ../cat/virt-ls.pod:93
1873 " $ virt-ls -d guest /\n"
1881 #: ../cat/virt-ls.pod:98
1884 msgid "LONG LISTING"
1888 #: ../cat/virt-ls.pod:100
1890 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1891 "(more specifically, like the C<guestfs_ll> function)."
1895 #: ../cat/virt-ls.pod:103
1898 " $ virt-ls -l -d guest /\n"
1900 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
1901 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
1907 #: ../cat/virt-ls.pod:109
1909 "Note that while this is useful for displaying a directory, do not try "
1910 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
1915 #: ../cat/virt-ls.pod:113
1916 msgid "RECURSIVE LISTING"
1920 #: ../cat/virt-ls.pod:115
1922 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1923 "and directories recursively:"
1927 #: ../cat/virt-ls.pod:118
1930 " $ virt-ls -R -d guest /tmp\n"
1938 #: ../cat/virt-ls.pod:123
1940 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1941 "converts C<\\0> characters to C<\\n>."
1945 #: ../cat/virt-ls.pod:126
1946 msgid "RECURSIVE LONG LISTING"
1950 #: ../cat/virt-ls.pod:128
1952 "Using I<-lR> options together changes the output to display directories "
1953 "recursively, with file stats, and optionally other features such as "
1954 "checksums and extended attributes."
1958 #: ../cat/virt-ls.pod:132
1960 "Most of the interesting features of C<virt-ls> are only available when using "
1965 #: ../cat/virt-ls.pod:135
1967 "The fields are normally space-separated. Filenames are B<not> quoted, so "
1968 "you cannot use the output in another program (because filenames can contain "
1969 "spaces and other unsafe characters). If the guest was untrusted and someone "
1970 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1971 "on you by creating filenames with embedded newline characters. To B<safely> "
1972 "parse the output in another program, use the I<--csv> (Comma-Separated "
1977 #: ../cat/virt-ls.pod:143
1979 "Note that this output format is completely unrelated to the C<ls -lR> "
1984 #: ../cat/virt-ls.pod:146
1987 " $ virt-ls -lR -d guest /bin\n"
1988 " d 0555 4096 /bin\n"
1989 " - 0755 123 /bin/alsaunmute\n"
1990 " - 0755 28328 /bin/arch\n"
1991 " l 0777 4 /bin/awk -> gawk\n"
1992 " - 0755 27216 /bin/basename\n"
1993 " - 0755 943360 /bin/bash\n"
1999 #: ../cat/virt-ls.pod:155
2000 msgid "These basic fields are always shown:"
2004 #: ../cat/virt-ls.pod:159
2011 #: ../cat/virt-ls.pod:161
2013 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2014 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2015 "link), C<s> (socket) or C<u> (unknown)."
2019 #: ../cat/virt-ls.pod:171
2026 #: ../cat/virt-ls.pod:173
2027 msgid "The Unix permissions, displayed as a 4 digit octal number."
2031 #: ../cat/virt-ls.pod:175
2038 #: ../cat/virt-ls.pod:177
2040 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2041 "readable> option is given, in which case this is shown as a human-readable "
2046 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4245
2051 #: ../cat/virt-ls.pod:183
2052 msgid "The full path of the file or directory."
2056 #: ../cat/virt-ls.pod:185
2063 #: ../cat/virt-ls.pod:187
2064 msgid "For symbolic links only, the link target."
2068 #: ../cat/virt-ls.pod:191
2070 "In I<-lR> mode, additional command line options enable the display of more "
2075 #: ../cat/virt-ls.pod:194
2077 "With the I<--uids> flag, these additional fields are displayed before the "
2082 #: ../cat/virt-ls.pod:199
2089 #: ../cat/virt-ls.pod:201
2096 #: ../cat/virt-ls.pod:203
2098 "The UID and GID of the owner of the file (displayed numerically). Note "
2099 "these only make sense in the context of a Unix-like guest."
2103 #: ../cat/virt-ls.pod:208
2104 msgid "With the I<--times> flag, these additional fields are displayed:"
2108 #: ../cat/virt-ls.pod:212
2115 #: ../cat/virt-ls.pod:214
2116 msgid "The time of last access."
2120 #: ../cat/virt-ls.pod:216
2127 #: ../cat/virt-ls.pod:218
2128 msgid "The time of last modification."
2132 #: ../cat/virt-ls.pod:220
2139 #: ../cat/virt-ls.pod:222
2140 msgid "The time of last status change."
2144 #: ../cat/virt-ls.pod:226
2146 "The time fields are displayed as string dates and times, unless one of the "
2147 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2151 #: ../cat/virt-ls.pod:229
2152 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2156 #: ../cat/virt-ls.pod:233
2158 #| msgid "zero-device"
2160 msgstr "zero-device"
2163 #: ../cat/virt-ls.pod:235
2165 "The device containing the file (displayed as major:minor). This may not "
2166 "match devices as known to the guest."
2170 #: ../cat/virt-ls.pod:238
2175 #: ../cat/virt-ls.pod:240
2176 msgid "The inode number."
2180 #: ../cat/virt-ls.pod:242
2187 #: ../cat/virt-ls.pod:244
2188 msgid "The number of hard links."
2192 #: ../cat/virt-ls.pod:246
2197 #: ../cat/virt-ls.pod:248
2199 "For block and char special files, the device (displayed as major:minor)."
2203 #: ../cat/virt-ls.pod:251
2205 #| msgid "C<blocksize>"
2207 msgstr "C<blocksize>"
2210 #: ../cat/virt-ls.pod:253
2211 msgid "The number of 512 byte blocks allocated to the file."
2215 #: ../cat/virt-ls.pod:257
2217 "With the I<--checksum> flag, the checksum of the file contents is shown "
2218 "(only for regular files). Computing file checksums can take a considerable "
2223 #: ../cat/virt-ls.pod:280
2226 msgid "B<--checksum>"
2230 #: ../cat/virt-ls.pod:282
2231 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2235 #: ../cat/virt-ls.pod:284
2237 "Display checksum over file contents for regular files. With no argument, "
2238 "this defaults to using I<md5>. Using an argument, you can select the "
2239 "checksum type to use."
2243 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2244 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2245 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2247 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2252 #: ../cat/virt-ls.pod:316
2254 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2255 "so you cannot see what you are typing. If you are not worried about Tempest "
2256 "attacks and there is no one else in the room you can specify this flag to "
2257 "see what you are typing."
2261 #: ../cat/virt-ls.pod:321
2263 #| msgid "B<--no-dest-paths>"
2264 msgid "B<--extra-stats>"
2265 msgstr "B<--no-dest-paths>"
2268 #: ../cat/virt-ls.pod:323
2269 msgid "Display extra stats."
2273 #: ../cat/virt-ls.pod:339
2276 #| " guestfish --format=raw -a disk.img\n"
2279 " virt-ls --format=raw -a disk.img /dir\n"
2282 " guestfish --format=raw -a disk.img\n"
2286 #: ../cat/virt-ls.pod:343
2289 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2292 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2295 " guestfish --format=raw -a disk.img --format -a another.img\n"
2299 #: ../cat/virt-ls.pod:356
2300 msgid "Display file sizes in human-readable format."
2304 #: ../cat/virt-ls.pod:370
2309 #: ../cat/virt-ls.pod:372
2311 #| msgid "B<--live>"
2312 msgid "B<--recursive>"
2316 #: ../cat/virt-ls.pod:374
2318 "Select the mode. With neither of these options, C<virt-ls> produces a "
2319 "simple, flat list of the files in the named directory. See L</SIMPLE "
2324 #: ../cat/virt-ls.pod:378
2326 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
2331 #: ../cat/virt-ls.pod:381
2333 "C<virt-ls -R> produces a recursive list of files starting at the named "
2334 "directory. See L</RECURSIVE LISTING>."
2338 #: ../cat/virt-ls.pod:384
2340 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2341 "parsed. See L</RECURSIVE LONG LISTING>."
2345 #: ../cat/virt-ls.pod:387
2347 #| msgid "B<--live>"
2352 #: ../cat/virt-ls.pod:389
2353 msgid "Display time fields."
2357 #: ../cat/virt-ls.pod:394
2359 #| msgid "B<--echo-keys>"
2360 msgid "B<--time-days>"
2361 msgstr "B<--echo-keys>"
2364 #: ../cat/virt-ls.pod:396
2365 msgid "Display time fields as days before now (negative if in the future)."
2369 #: ../cat/virt-ls.pod:398
2371 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2372 "of the file is between 0 and 86399 seconds."
2376 #: ../cat/virt-ls.pod:404
2378 #| msgid "B<--live>"
2379 msgid "B<--time-relative>"
2383 #: ../cat/virt-ls.pod:406
2384 msgid "Display time fields as seconds before now (negative if in the future)."
2388 #: ../cat/virt-ls.pod:411
2390 #| msgid "I<--timeout N>"
2392 msgstr "I<--timeout N>"
2395 #: ../cat/virt-ls.pod:413
2396 msgid "Display time fields as seconds since the Unix epoch."
2400 #: ../cat/virt-ls.pod:418
2407 #: ../cat/virt-ls.pod:420
2408 msgid "Display UID and GID fields."
2412 #: ../cat/virt-ls.pod:445
2413 msgid "Previous versions of virt-ls allowed you to write either:"
2417 #: ../cat/virt-ls.pod:447
2420 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2423 " virt-ls disk.img [disk.img ...] /dir\n"
2426 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2430 #: ../cat/virt-ls.pod:451
2433 #| " inspect-get-hostname root\n"
2436 " virt-ls guestname /dir\n"
2439 " inspect-get-hostname корінь\n"
2443 #: ../cat/virt-ls.pod:497
2446 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2447 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2448 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2450 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2451 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2452 "L<http://libguestfs.org/>."
2454 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2455 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2456 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2459 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2460 #: ../rescue/virt-rescue.pod:302
2462 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2463 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2464 msgstr "© Red Hat Inc., 2009–2010"
2467 #: ../df/virt-df.pod:5
2468 msgid "virt-df - Display free space on virtual filesystems"
2472 #: ../df/virt-df.pod:9
2475 #| " virt-list-partitions [--options] domname\n"
2478 " virt-df [--options]\n"
2481 " virt-list-partitions [--параметри] назва_домену\n"
2485 #: ../df/virt-df.pod:11
2488 #| " virt-list-partitions [--options] domname\n"
2491 " virt-df [--options] -d domname\n"
2494 " virt-list-partitions [--параметри] назва_домену\n"
2498 #: ../df/virt-df.pod:13
2501 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2504 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2507 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2511 #: ../df/virt-df.pod:17
2514 #| " virt-list-partitions [--options] domname\n"
2517 " virt-df [--options] domname\n"
2520 " virt-list-partitions [--параметри] назва_домену\n"
2524 #: ../df/virt-df.pod:19
2527 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2530 " virt-df [--options] disk.img [disk.img ...]\n"
2533 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2537 #: ../df/virt-df.pod:23
2539 "C<virt-df> is a command line tool to display free space on virtual machine "
2540 "filesystems. Unlike other tools, it doesn't just display the size of disk "
2541 "allocated to a virtual machine, but can look inside disk images to see how "
2542 "much space is really being used."
2546 #: ../df/virt-df.pod:28
2548 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2549 "to get a list of all active and inactive guests, and performs a C<df>-type "
2550 "operation on each one in turn, printing out the results."
2554 #: ../df/virt-df.pod:32
2556 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2557 "type operation on either the single named libvirt domain, or on the disk "
2558 "image(s) listed on the command line (which must all belong to a single VM). "
2559 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2560 "guest>. If you want to run on multiple guests, then you have to invoke "
2561 "C<virt-df> multiple times."
2565 #: ../df/virt-df.pod:39
2567 "Use the I<--csv> option to get a format which can be easily parsed by other "
2568 "programs. Other options are similar to the standard L<df(1)> command."
2572 #: ../df/virt-df.pod:45
2574 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
2575 "output human-readable:"
2579 #: ../df/virt-df.pod:48
2582 " # virt-df -d F14x64 -h\n"
2583 " Filesystem Size Used Available Use%\n"
2584 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
2585 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
2590 #: ../df/virt-df.pod:53
2591 msgid "Show disk usage for a disk image file called C<test.img>:"
2595 #: ../df/virt-df.pod:55
2598 " $ virt-df -a test1.img\n"
2599 " Filesystem 1K-blocks Used Available Use%\n"
2600 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
2605 #: ../df/virt-df.pod:112
2608 #| " guestfish --format=raw -a disk.img\n"
2611 " virt-df --format=raw -a disk.img\n"
2614 " guestfish --format=raw -a disk.img\n"
2618 #: ../df/virt-df.pod:116
2621 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2624 " virt-df --format=raw -a disk.img --format -a another.img\n"
2627 " guestfish --format=raw -a disk.img --format -a another.img\n"
2631 #: ../df/virt-df.pod:129
2632 msgid "Print sizes in human-readable format."
2636 #: ../df/virt-df.pod:131
2637 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2641 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2646 #: ../df/virt-df.pod:135
2648 #| msgid "B<--live>"
2653 #: ../df/virt-df.pod:137
2654 msgid "Print inodes instead of blocks."
2658 #: ../df/virt-df.pod:139
2660 #| msgid "B<--merge>"
2661 msgid "B<--one-per-guest>"
2665 #: ../df/virt-df.pod:141
2667 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
2668 "disks from several guests to a single libguestfs appliance."
2672 #: ../df/virt-df.pod:144
2673 msgid "You might use this option in the following circumstances:"
2677 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2678 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2679 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2680 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2681 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2682 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2683 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2684 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2685 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2686 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2687 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2688 #: ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143
2689 #: ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151
2690 #: ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163
2691 #: ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177
2692 #: ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185
2693 #: ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279
2694 #: ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289
2695 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
2696 #: ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596
2697 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610
2698 #: ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011
2699 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026
2700 #: ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445
2701 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
2702 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
2703 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
2704 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
2705 #: ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32
2706 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
2707 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
2708 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
2709 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2710 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2711 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2712 #: ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782
2713 #: ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1790
2714 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802
2715 #: ../src/guestfs-actions.pod:1806 ../src/guestfs-actions.pod:1816
2716 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1824
2717 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1966
2718 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1976
2719 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2041
2720 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2461
2721 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2475
2722 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3018
2723 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3033
2724 #: ../src/guestfs-actions.pod:3040 ../src/guestfs.pod:388
2725 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
2726 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
2727 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
2728 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
2729 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
2730 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
2731 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
2732 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
2733 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
2734 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
2735 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2559 ../src/guestfs.pod:2565
2736 #: ../src/guestfs.pod:2570 ../src/guestfs.pod:2576 ../src/guestfs.pod:2959
2737 #: ../src/guestfs.pod:2964 ../src/guestfs.pod:2968 ../src/guestfs.pod:2972
2738 #: ../src/guestfs.pod:2976 ../src/guestfs.pod:2990 ../src/guestfs.pod:2995
2739 #: ../src/guestfs.pod:3223 ../src/guestfs.pod:3227 ../src/guestfs.pod:3231
2740 #: ../src/guestfs.pod:3235 ../tools/virt-win-reg.pl:197
2741 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
2742 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
2743 #: ../tools/virt-win-reg.pl:722
2748 #: ../df/virt-df.pod:150
2750 "If you think an untrusted guest might actively try to exploit the libguestfs "
2751 "appliance kernel, then this prevents one guest from interfering with the "
2752 "stats printed for another guest."
2756 #: ../df/virt-df.pod:156
2758 "If the kernel has a bug which stops it from accessing a filesystem in one "
2759 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2760 "and report stats for further guests."
2764 #: ../df/virt-df.pod:165
2766 "Print UUIDs instead of names. This is useful for following a guest even "
2767 "when the guest is migrated or renamed, or when two guests happen to have the "
2772 #: ../df/virt-df.pod:169
2774 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
2775 "images, we still print the disk image name even when this option is "
2780 #: ../df/virt-df.pod:229
2782 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2787 #: ../edit/virt-edit.pod:5
2788 msgid "virt-edit - Edit a file in a virtual machine"
2792 #: ../edit/virt-edit.pod:9
2795 #| " virt-list-partitions [--options] domname\n"
2798 " virt-edit [--options] -d domname file [file ...]\n"
2801 " virt-list-partitions [--параметри] назва_домену\n"
2805 #: ../edit/virt-edit.pod:11
2808 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2811 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2814 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2818 #: ../edit/virt-edit.pod:13
2821 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2826 #: ../edit/virt-edit.pod:17
2829 " virt-edit domname file\n"
2834 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2837 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2840 " virt-edit disk.img [disk.img ...] file\n"
2843 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2847 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2848 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2849 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2850 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2852 msgstr "ПОПЕРЕДЖЕННЯ"
2855 #: ../edit/virt-edit.pod:23
2857 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
2858 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
2859 "doing this, but doesn't catch all cases."
2863 #: ../edit/virt-edit.pod:29
2865 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2866 "exists in the named virtual machine (or disk image)."
2870 #: ../edit/virt-edit.pod:32
2872 "Multiple filenames can be given, in which case they are each edited in "
2873 "turn. Each filename must be a full path, starting at the root directory "
2874 "(starting with '/')."
2878 #: ../edit/virt-edit.pod:36
2879 msgid "If you want to just view a file, use L<virt-cat(1)>."
2883 #: ../edit/virt-edit.pod:38
2885 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2886 "USING GUESTFISH> below)."
2890 #: ../edit/virt-edit.pod:41
2892 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
2893 "that and much more."
2897 #: ../edit/virt-edit.pod:46
2898 msgid "Edit the named files interactively:"
2902 #: ../edit/virt-edit.pod:48
2905 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2910 #: ../edit/virt-edit.pod:50
2913 " virt-edit -d mydomain /etc/passwd\n"
2918 #: ../edit/virt-edit.pod:52
2919 msgid "For Windows guests, some Windows paths are understood:"
2923 #: ../edit/virt-edit.pod:54
2926 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2931 #: ../edit/virt-edit.pod:56
2933 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2934 "INTERACTIVE EDITING> below). To change the init default level to 5:"
2938 #: ../edit/virt-edit.pod:60
2941 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2946 #: ../edit/virt-edit.pod:81
2947 msgid "B<-b> extension"
2951 #: ../edit/virt-edit.pod:83
2952 msgid "B<--backup> extension"
2956 #: ../edit/virt-edit.pod:85
2958 "Create a backup of the original file I<in the guest disk image>. The backup "
2959 "has the original filename with C<extension> added."
2963 #: ../edit/virt-edit.pod:88
2965 "Usually the first character of C<extension> would be a dot C<.> so you would "
2970 #: ../edit/virt-edit.pod:91
2973 " virt-edit -b .orig [etc]\n"
2978 #: ../edit/virt-edit.pod:93
2979 msgid "By default, no backup file is made."
2983 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2984 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2985 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2986 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2988 msgstr "B<-c адреса>"
2991 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2992 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2993 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2994 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2995 msgid "B<--connect URI>"
2996 msgstr "B<--connect адреса>"
2999 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
3000 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
3001 #: ../tools/virt-win-reg.pl:135
3003 "If you specify guest block devices directly, then libvirt is not used at all."
3007 #: ../edit/virt-edit.pod:114
3009 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3010 "off so you cannot see what you are typing. If you are not worried about "
3011 "Tempest attacks and there is no one else in the room you can specify this "
3012 "flag to see what you are typing."
3016 #: ../edit/virt-edit.pod:119
3021 #: ../edit/virt-edit.pod:121
3023 #| msgid "B<--help>"
3024 msgid "B<--expr> EXPR"
3028 #: ../edit/virt-edit.pod:123
3030 "Instead of launching the external editor, non-interactively apply the Perl "
3031 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
3036 #: ../edit/virt-edit.pod:127
3038 "Be careful to properly quote the expression to prevent it from being altered "
3043 #: ../edit/virt-edit.pod:130
3044 msgid "Note that this option is only available when Perl 5 is installed."
3048 #: ../edit/virt-edit.pod:132
3050 #| msgid "B<--format=raw|qcow2|..>"
3051 msgid "B<--format> raw|qcow2|..."
3052 msgstr "B<--format=raw|qcow2|..>"
3055 #: ../edit/virt-edit.pod:143
3058 #| " guestfish --format=raw -a disk.img\n"
3061 " virt-edit --format=raw -a disk.img file\n"
3064 " guestfish --format=raw -a disk.img\n"
3068 #: ../edit/virt-edit.pod:147
3071 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3074 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3077 " guestfish --format=raw -a disk.img --format -a another.img\n"
3081 #: ../edit/virt-edit.pod:181
3082 msgid "Previous versions of virt-edit allowed you to write either:"
3086 #: ../edit/virt-edit.pod:187
3089 #| " edit filename\n"
3092 " virt-edit guestname file\n"
3095 " edit назва_файла\n"
3099 #: ../edit/virt-edit.pod:195
3100 msgid "NON-INTERACTIVE EDITING"
3104 #: ../edit/virt-edit.pod:197
3106 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3107 "administrator can interactively edit the file."
3111 #: ../edit/virt-edit.pod:200
3113 "There are two ways also to use C<virt-edit> from scripts in order to make "
3114 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
3115 "like this, it's less error-prone to write scripts directly using the "
3116 "libguestfs API and Augeas for configuration file editing.)"
3120 #: ../edit/virt-edit.pod:206
3122 "The first method is to temporarily set C<$EDITOR> to any script or program "
3123 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
3124 "update C<tmpfile> in place however it likes."
3128 #: ../edit/virt-edit.pod:210
3130 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3131 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
3132 "instances of C<foo> with C<bar> in a file:"
3136 #: ../edit/virt-edit.pod:214
3139 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3144 #: ../edit/virt-edit.pod:216
3146 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
3147 "For example to delete root's password you could do:"
3151 #: ../edit/virt-edit.pod:219
3154 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3159 #: ../edit/virt-edit.pod:221
3161 "What really happens is that the snippet is evaluated as a Perl expression "
3162 "for each line of the file. The line, including the final C<\\n>, is passed "
3163 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3167 #: ../edit/virt-edit.pod:226
3169 "To delete a line, set C<$_> to the empty string. For example, to delete the "
3170 "C<apache> user account from the password file you can do:"
3174 #: ../edit/virt-edit.pod:229
3177 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3182 #: ../edit/virt-edit.pod:231
3184 "To insert a line, prepend or append it to C<$_>. However appending lines to "
3185 "the end of the file is rather difficult this way since there is no concept "
3186 "of \"last line of the file\" - your expression just doesn't get called "
3187 "again. You might want to use the first method (setting C<$EDITOR>) if you "
3192 #: ../edit/virt-edit.pod:237
3194 "The variable C<$lineno> contains the current line number. As is "
3195 "traditional, the first line in the file is number C<1>."
3199 #: ../edit/virt-edit.pod:240
3201 "The return value from the expression is ignored, but the expression may call "
3202 "C<die> in order to abort the whole program, leaving the original file "
3207 #: ../edit/virt-edit.pod:244
3209 "Remember when matching the end of a line that C<$_> may contain the final C<"
3210 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3211 "newline then neither of these. Thus to match or substitute some text at the "
3212 "end of a line, use this regular expression:"
3216 #: ../edit/virt-edit.pod:249
3219 " /some text(\\r?\\n)?$/\n"
3224 #: ../edit/virt-edit.pod:251
3226 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3227 "$_> itself (since that would remove all newlines from the file):"
3231 #: ../edit/virt-edit.pod:255
3234 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3239 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3240 msgid "WINDOWS PATHS"
3244 #: ../edit/virt-edit.pod:259
3246 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3247 "paths (eg. C<E:\\foo\\bar.txt>)."
3251 #: ../edit/virt-edit.pod:262
3252 msgid "If and only if the guest is running Windows then:"
3256 #: ../edit/virt-edit.pod:268
3258 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3259 "to the correct filesystem."
3263 #: ../edit/virt-edit.pod:273
3265 "Any backslash (C<\\>) characters in the path are replaced with forward "
3266 "slashes so that libguestfs can process it."
3270 #: ../edit/virt-edit.pod:278
3272 "The path is resolved case insensitively to locate the file that should be "
3277 #: ../edit/virt-edit.pod:283
3278 msgid "There are some known shortcomings:"
3282 #: ../edit/virt-edit.pod:289
3283 msgid "Some NTFS symbolic links may not be followed correctly."
3287 #: ../edit/virt-edit.pod:293
3288 msgid "NTFS junction points that cross filesystems are not followed."
3292 #: ../edit/virt-edit.pod:299
3294 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3295 "C<virt-edit> doesn't work."
3299 #: ../edit/virt-edit.pod:302
3300 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3304 #: ../edit/virt-edit.pod:304
3307 #| " guestfish --ro -d myguest -i\n"
3310 " guestfish --rw -i -d domname edit /file\n"
3313 " guestfish --ro -d myguest -i\n"
3317 #: ../edit/virt-edit.pod:306
3319 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3324 #: ../edit/virt-edit.pod:309
3326 "The command above uses libguestfs's guest inspection feature and so does not "
3327 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3328 "disk images that don't contain guests. To edit a file on a disk image "
3333 #: ../edit/virt-edit.pod:314
3336 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3339 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3342 " guestfish --format=raw -a disk.img --format -a another.img\n"
3346 #: ../edit/virt-edit.pod:316
3348 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3349 "the disk image to edit, and C</file> is the full path to the file."
3353 #: ../edit/virt-edit.pod:320
3355 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
3356 "C<write> or C<upload> instead:"
3360 #: ../edit/virt-edit.pod:323
3363 #| " guestfish --ro -d myguest -i\n"
3366 " guestfish --rw -i -d domname touch /newfile\n"
3369 " guestfish --ro -d myguest -i\n"
3373 #: ../edit/virt-edit.pod:325
3376 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3381 #: ../edit/virt-edit.pod:327
3384 " guestfish --rw -i -d domname upload localfile /newfile\n"
3389 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3390 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
3391 #: ../src/guestfs.pod:3106 ../test-tool/libguestfs-test-tool.pod:95
3392 msgid "ENVIRONMENT VARIABLES"
3393 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3396 #: ../edit/virt-edit.pod:333
3403 #: ../edit/virt-edit.pod:335
3405 "If set, this string is used as the editor. It may contain arguments, eg. C<"
3410 #: ../edit/virt-edit.pod:338
3411 msgid "If not set, C<vi> is used."
3415 #: ../edit/virt-edit.pod:356
3418 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3419 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3420 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3422 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3423 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3424 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3426 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3427 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3428 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3431 #: ../erlang/examples/guestfs-erlang.pod:5
3432 msgid "guestfs-erlang - How to use libguestfs from Erlang"
3436 #: ../erlang/examples/guestfs-erlang.pod:9
3439 " {ok, G} = guestfs:create(),\n"
3440 " ok = guestfs:add_drive_opts(G, Disk,\n"
3441 " [{format, \"raw\"}, {readonly, true}]),\n"
3442 " ok = guestfs:launch(G),\n"
3443 " [Device] = guestfs:list_devices(G),\n"
3444 " ok = guestfs:close(G).\n"
3449 #: ../erlang/examples/guestfs-erlang.pod:18
3451 "This manual page documents how to call libguestfs from the Erlang "
3452 "programming language. This page just documents the differences from the C "
3453 "API and gives some examples. If you are not familiar with using libguestfs, "
3454 "you also need to read L<guestfs(3)>."
3458 #: ../erlang/examples/guestfs-erlang.pod:23
3459 msgid "OPENING AND CLOSING THE HANDLE"
3463 #: ../erlang/examples/guestfs-erlang.pod:25
3465 "The Erlang bindings are implemented using an external program called C<erl-"
3466 "guestfs>. This program must be on the current PATH, or else you should "
3467 "specify the full path to the program:"
3471 #: ../erlang/examples/guestfs-erlang.pod:29
3474 #| " g = guestfs_create ();\n"
3477 " {ok, G} = guestfs:create().\n"
3480 " g = guestfs_create ();\n"
3484 #: ../erlang/examples/guestfs-erlang.pod:31
3487 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
3492 #: ../erlang/examples/guestfs-erlang.pod:33
3493 msgid "C<G> is the libguestfs handle which you should pass to other functions."
3497 #: ../erlang/examples/guestfs-erlang.pod:36
3498 msgid "To close the handle:"
3502 #: ../erlang/examples/guestfs-erlang.pod:38
3505 #| " g = guestfs_create ();\n"
3508 " ok = guestfs:close(G).\n"
3511 " g = guestfs_create ();\n"
3515 #: ../erlang/examples/guestfs-erlang.pod:40
3517 #| msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
3518 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
3519 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
3522 #: ../erlang/examples/guestfs-erlang.pod:42
3524 "For functions that take optional arguments, the first arguments are the non-"
3525 "optional ones. The last argument is a list of tuples supplying the "
3526 "remaining optional arguments."
3530 #: ../erlang/examples/guestfs-erlang.pod:46
3533 #| " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3534 #| " va_list args);\n"
3537 " ok = guestfs:add_drive_opts(G, Disk,\n"
3538 " [{format, \"raw\"}, {readonly, true}]).\n"
3541 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3546 #: ../erlang/examples/guestfs-erlang.pod:49
3547 msgid "If the last argument would be an empty list, you can also omit it:"
3551 #: ../erlang/examples/guestfs-erlang.pod:51
3554 #| " guestfs_add_drive_opts (g, filename, -1);\n"
3557 " ok = guestfs:add_drive_opts(G, Disk).\n"
3560 " guestfs_add_drive_opts (g, filename, -1);\n"
3564 #: ../erlang/examples/guestfs-erlang.pod:53
3565 msgid "RETURN VALUES AND ERRORS"
3569 #: ../erlang/examples/guestfs-erlang.pod:55
3571 "On success, most functions return a C<Result> term (which could be a list, "
3572 "string, tuple etc.). If there is nothing for the function to return, then "
3573 "the atom C<ok> is returned."
3577 #: ../erlang/examples/guestfs-erlang.pod:59
3578 msgid "On error, you would see one of the following tuples:"
3582 #: ../erlang/examples/guestfs-erlang.pod:63
3583 msgid "C<{error, Msg, Errno}>"
3587 #: ../erlang/examples/guestfs-erlang.pod:65
3588 msgid "This indicates an ordinary error from the function."
3592 #: ../erlang/examples/guestfs-erlang.pod:67
3594 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
3599 #: ../erlang/examples/guestfs-erlang.pod:70
3600 msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
3604 #: ../erlang/examples/guestfs-erlang.pod:72
3605 msgid "C<{unknown, Function}>"
3609 #: ../erlang/examples/guestfs-erlang.pod:74
3611 "This indicates that the function you called is not known. Generally this "
3612 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
3613 "which you should not do."
3617 #: ../erlang/examples/guestfs-erlang.pod:78
3618 msgid "C<Function> is the name of the unknown function."
3622 #: ../erlang/examples/guestfs-erlang.pod:80
3623 msgid "C<{unknownarg, Arg}>"
3627 #: ../erlang/examples/guestfs-erlang.pod:82
3629 "This indicates that you called a function with optional arguments, with an "
3630 "unknown argument name."
3634 #: ../erlang/examples/guestfs-erlang.pod:85
3635 msgid "C<Arg> is the name of the unknown argument."
3639 #: ../erlang/examples/guestfs-erlang.pod:89
3640 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3641 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3642 #: ../python/examples/guestfs-python.pod:34
3643 #: ../ruby/examples/guestfs-ruby.pod:28
3644 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3648 #: ../erlang/examples/guestfs-erlang.pod:91
3649 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3650 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3651 #: ../python/examples/guestfs-python.pod:36
3652 #: ../ruby/examples/guestfs-ruby.pod:30
3659 #: ../erlang/examples/guestfs-erlang.pod:93
3660 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3661 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3662 #: ../python/examples/guestfs-python.pod:38
3663 #: ../ruby/examples/guestfs-ruby.pod:32
3664 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3668 #: ../erlang/examples/guestfs-erlang.pod:95
3669 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3670 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3671 #: ../python/examples/guestfs-python.pod:40
3672 #: ../ruby/examples/guestfs-ruby.pod:34
3679 #: ../erlang/examples/guestfs-erlang.pod:99
3682 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3683 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3684 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3686 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3687 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3688 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
3690 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3691 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3692 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3695 #: ../erlang/examples/guestfs-erlang.pod:110
3696 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
3697 #: ../fish/guestfish.pod:1261 ../fish/virt-copy-in.pod:60
3698 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3699 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3700 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
3701 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
3702 #: ../python/examples/guestfs-python.pod:54
3703 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3242
3704 #: ../test-tool/libguestfs-test-tool.pod:106
3709 #: ../erlang/examples/guestfs-erlang.pod:112
3710 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
3711 #: ../fish/guestfish.pod:1263 ../fish/virt-copy-in.pod:62
3712 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3713 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3714 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
3715 #: ../perl/examples/guestfs-perl.pod:54
3716 #: ../python/examples/guestfs-python.pod:56
3717 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3244
3718 #: ../test-tool/libguestfs-test-tool.pod:108
3719 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3723 #: ../erlang/examples/guestfs-erlang.pod:116
3724 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
3726 #| msgid "Copyright (C) 2009 Red Hat Inc."
3727 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
3728 msgstr "© Red Hat Inc., 2009"
3731 #: ../erlang/examples/guestfs-erlang.pod:118
3732 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
3733 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
3734 #: ../perl/examples/guestfs-perl.pod:60
3735 #: ../python/examples/guestfs-python.pod:62
3736 #: ../ruby/examples/guestfs-ruby.pod:56
3738 "The examples in this manual page may be freely copied, modified and "
3739 "distributed without any restrictions."
3743 #: ../erlang/examples/guestfs-erlang.pod:121
3744 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
3745 #: ../java/examples/guestfs-java.pod:69
3746 #: ../ocaml/examples/guestfs-ocaml.pod:102
3747 #: ../perl/examples/guestfs-perl.pod:63
3748 #: ../python/examples/guestfs-python.pod:65
3749 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3251
3751 "This library is free software; you can redistribute it and/or modify it "
3752 "under the terms of the GNU Lesser General Public License as published by the "
3753 "Free Software Foundation; either version 2 of the License, or (at your "
3754 "option) any later version."
3758 #: ../erlang/examples/guestfs-erlang.pod:126
3759 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
3760 #: ../java/examples/guestfs-java.pod:74
3761 #: ../ocaml/examples/guestfs-ocaml.pod:107
3762 #: ../perl/examples/guestfs-perl.pod:68
3763 #: ../python/examples/guestfs-python.pod:70
3764 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3256
3766 "This library is distributed in the hope that it will be useful, but WITHOUT "
3767 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3768 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
3773 #: ../erlang/examples/guestfs-erlang.pod:131
3774 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
3775 #: ../java/examples/guestfs-java.pod:79
3776 #: ../ocaml/examples/guestfs-ocaml.pod:112
3777 #: ../perl/examples/guestfs-perl.pod:73
3778 #: ../python/examples/guestfs-python.pod:75
3779 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3261
3781 "You should have received a copy of the GNU Lesser General Public License "
3782 "along with this library; if not, write to the Free Software Foundation, "
3783 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3787 #: ../examples/guestfs-examples.pod:5
3788 msgid "guestfs-examples - Examples of using libguestfs from C"
3792 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3795 " #include <guestfs.h>\n"
3798 " #include <guestfs.h>\n"
3802 #: ../examples/guestfs-examples.pod:11
3805 " guestfs_h *g = guestfs_create ();\n"
3806 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3807 " guestfs_launch (g);\n"
3812 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3815 " cc prog.c -o prog -lguestfs\n"
3817 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3820 " cc prog.c -o prog -lguestfs\n"
3822 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3826 #: ../examples/guestfs-examples.pod:21
3828 "This manual page contains examples of calling libguestfs from the C "
3829 "programming language. If you are not familiar with using libguestfs, you "
3830 "also need to read L<guestfs(3)>."
3834 #: ../examples/guestfs-examples.pod:35
3837 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3838 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3839 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3841 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3842 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3843 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3845 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3846 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3847 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3850 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
3851 #: ../python/examples/guestfs-python.pod:60
3852 #: ../ruby/examples/guestfs-ruby.pod:54
3854 #| msgid "Copyright (C) 2009 Red Hat Inc."
3855 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3856 msgstr "© Red Hat Inc., 2009"
3859 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3864 #: ../examples/guestfs-recipes.pod:5
3866 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3867 "here. The only way which works for both sorts of output is to just write "
3868 "the URL directly. Do NOT use L<...> for URLs."
3872 #: ../examples/guestfs-recipes.pod:9
3874 "We break with tradition here and don't use ALL CAPS for the section "
3875 "headings, as this makes them much easier to read."
3879 #: ../examples/guestfs-recipes.pod:16
3880 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3884 #: ../examples/guestfs-recipes.pod:20
3886 "This page contains recipes for and links to things you can do using "
3887 "libguestfs, L<guestfish(1)> and the virt tools."
3891 #: ../examples/guestfs-recipes.pod:23
3892 msgid "Audit a virtual machine for setuid files"
3896 #: ../examples/guestfs-recipes.pod:25
3898 "The link below contains a small program which can be used to audit a Linux "
3899 "virtual machine to see what setuid and setgid files it contains."
3903 #: ../examples/guestfs-recipes.pod:28
3905 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3910 #: ../examples/guestfs-recipes.pod:30
3911 msgid "Change the background image in a Windows XP VM"
3915 #: ../examples/guestfs-recipes.pod:32
3917 "The links below explain how to use L<guestfish(1)> to change the background "
3918 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
3919 "be substantially different for each version of Windows."
3923 #: ../examples/guestfs-recipes.pod:37
3925 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3926 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3930 #: ../examples/guestfs-recipes.pod:40
3931 msgid "Cloning a virtual machine (Linux)"
3935 #: ../examples/guestfs-recipes.pod:42
3937 "The guestfish technique described in the link below works well for most "
3938 "Linux VMs. Depending on the Linux distro you may need to change the paths "
3943 #: ../examples/guestfs-recipes.pod:46
3945 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3950 #: ../examples/guestfs-recipes.pod:48
3952 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
3957 #: ../examples/guestfs-recipes.pod:51
3958 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3962 #: ../examples/guestfs-recipes.pod:53
3963 msgid "Cloning a virtual machine (Windows)"
3967 #: ../examples/guestfs-recipes.pod:55
3969 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3970 "straightforward. Currently there is code in the Aeolus Oz project which "
3971 "does this (using libguestfs). As part of our review of the virt-clone tool, "
3972 "we may add sysprepping ability."
3976 #: ../examples/guestfs-recipes.pod:60
3978 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3979 "list/2011-May/msg00019.html"
3983 #: ../examples/guestfs-recipes.pod:63
3984 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3988 #: ../examples/guestfs-recipes.pod:65
3989 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3993 #: ../examples/guestfs-recipes.pod:67
3996 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
4001 #: ../examples/guestfs-recipes.pod:69
4002 msgid "To export just a subdirectory, eg. C</files>, do:"
4006 #: ../examples/guestfs-recipes.pod:71
4009 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
4014 #: ../examples/guestfs-recipes.pod:73
4015 msgid "Create empty disk images"
4019 #: ../examples/guestfs-recipes.pod:75
4021 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
4022 "The useful guide below explains the options available."
4026 #: ../examples/guestfs-recipes.pod:78
4028 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
4033 #: ../examples/guestfs-recipes.pod:80
4034 msgid "Dump raw filesystem content from inside a disk image or VM"
4038 #: ../examples/guestfs-recipes.pod:82
4040 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4041 "filesystem content from any filesystem in a disk image or a VM (even one "
4042 "which is encrypted or buried inside an LV):"
4046 #: ../examples/guestfs-recipes.pod:86
4049 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4052 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4055 " guestfish --format=raw -a disk.img --format -a another.img\n"
4059 #: ../examples/guestfs-recipes.pod:88
4062 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4067 #: ../examples/guestfs-recipes.pod:90
4068 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4072 #: ../examples/guestfs-recipes.pod:92
4073 msgid "Edit grub configuration in a VM"
4077 #: ../examples/guestfs-recipes.pod:94
4078 msgid "You can use this to:"
4082 #: ../examples/guestfs-recipes.pod:100
4083 msgid "Fix a virtual machine that does not boot."
4087 #: ../examples/guestfs-recipes.pod:104
4088 msgid "Change which kernel is used to boot the VM."
4092 #: ../examples/guestfs-recipes.pod:108
4093 msgid "Change kernel command line options."
4097 #: ../examples/guestfs-recipes.pod:112
4098 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4102 #: ../examples/guestfs-recipes.pod:114
4105 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4110 #: ../examples/guestfs-recipes.pod:116
4112 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4117 #: ../examples/guestfs-recipes.pod:119
4120 " virt-rescue -d BrokenGuest\n"
4125 #: ../examples/guestfs-recipes.pod:121
4126 msgid "Export any directory from a VM"
4130 #: ../examples/guestfs-recipes.pod:123
4132 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4136 #: ../examples/guestfs-recipes.pod:126
4139 #| " copy-out /home .\n"
4142 " virt-copy-out -d Guest /home .\n"
4145 " copy-out /home .\n"
4149 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
4150 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
4151 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18
4152 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457
4153 #: ../src/guestfs-actions.pod:3008 ../src/guestfs.pod:1670
4154 #: ../tools/virt-win-reg.pl:706
4159 #: ../examples/guestfs-recipes.pod:134
4161 "The final dot of the command is not a printing error. It means we want to "
4162 "copy out to the current directory."
4166 #: ../examples/guestfs-recipes.pod:139
4167 msgid "This creates a directory called C<home> under the current directory."
4171 #: ../examples/guestfs-recipes.pod:143
4173 "If the guest is a Windows guest then you can use drive letters and "
4174 "backslashes, but you must prefix the path with C<win:> and quote it to "
4175 "protect it from the shell, like this:"
4179 #: ../examples/guestfs-recipes.pod:147
4182 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4187 #: ../examples/guestfs-recipes.pod:149
4188 msgid "To get the output as a compressed tarball, do:"
4192 #: ../examples/guestfs-recipes.pod:151
4195 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4200 #: ../examples/guestfs-recipes.pod:153
4202 "Although it sounds tempting, this is usually not a reliable way to get a "
4203 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
4204 "org/FAQ.html#backup"
4208 #: ../examples/guestfs-recipes.pod:157
4209 msgid "Find out which user is using the most space"
4213 #: ../examples/guestfs-recipes.pod:159
4215 "This simple script examines a Linux guest to find out which user is using "
4216 "the most space in their home directory:"
4220 #: ../examples/guestfs-recipes.pod:162
4223 #| " #!/usr/bin/guestfish -f\n"
4229 " #!/usr/bin/guestfish -f\n"
4233 #: ../examples/guestfs-recipes.pod:164
4236 #| " set-qemu qemu\n"
4246 #: ../examples/guestfs-recipes.pod:166
4255 #: ../examples/guestfs-recipes.pod:169
4258 #| " guestfish --ro -d myguest -i\n"
4261 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4264 " guestfish --ro -d myguest -i\n"
4268 #: ../examples/guestfs-recipes.pod:171
4271 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4272 " echo -n \"$dir/$d\"\n"
4274 " guestfish --remote du \"$dir/$d\";\n"
4275 " done | sort -nr -k 2\n"
4280 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4283 " guestfish --remote exit\n"
4288 #: ../examples/guestfs-recipes.pod:179
4289 msgid "Get DHCP address from a VM"
4293 #: ../examples/guestfs-recipes.pod:181
4295 "The link below explains the many different possible techniques for getting "
4296 "the last assigned DHCP address of a virtual machine."
4300 #: ../examples/guestfs-recipes.pod:184
4302 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4303 "a-virtual-machine-disk-image/#content"
4307 #: ../examples/guestfs-recipes.pod:186
4309 "In the libguestfs source examples directory you will find the latest version "
4310 "of the C<virt-dhcp-address.c> program."
4314 #: ../examples/guestfs-recipes.pod:189
4315 msgid "Get the operating system product name string"
4319 #: ../examples/guestfs-recipes.pod:191
4320 msgid "Save the following script into a file called C<product-name.sh>:"
4324 #: ../examples/guestfs-recipes.pod:193
4327 #| " eval \"`guestfish --listen`\"\n"
4328 #| " guestfish --remote add-ro disk.img\n"
4329 #| " guestfish --remote run\n"
4330 #| " guestfish --remote lvs\n"
4335 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4336 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4337 " guestfish --remote inspect-get-product-name \"$root\"\n"
4338 " guestfish --remote exit\n"
4341 " eval \"`guestfish --listen`\"\n"
4342 " guestfish --remote add-ro disk.img\n"
4343 " guestfish --remote run\n"
4344 " guestfish --remote lvs\n"
4348 #: ../examples/guestfs-recipes.pod:200
4349 msgid "Make the script executable and run it on a named guest:"
4353 #: ../examples/guestfs-recipes.pod:202
4356 " # product-name.sh RHEL60x64\n"
4357 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4362 #: ../examples/guestfs-recipes.pod:205
4364 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4365 "C<xpath> command line tool or from your favourite programming language:"
4369 #: ../examples/guestfs-recipes.pod:209
4372 " # virt-inspector RHEL60x64 > xml\n"
4373 " # xpath '//product_name' < xml\n"
4376 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4381 #: ../examples/guestfs-recipes.pod:215
4382 msgid "Get the default boot kernel for a Linux VM"
4386 #: ../examples/guestfs-recipes.pod:217
4388 "The link below contains a program to print the default boot kernel for a "
4393 #: ../examples/guestfs-recipes.pod:220
4395 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4396 "kernel-for-a-vm/#content"
4400 #: ../examples/guestfs-recipes.pod:222
4402 "It uses Augeas, and the technique is generally applicable for many different "
4407 #: ../examples/guestfs-recipes.pod:229
4408 msgid "listing the user accounts in the guest"
4412 #: ../examples/guestfs-recipes.pod:233
4413 msgid "what repositories is it configured to use"
4417 #: ../examples/guestfs-recipes.pod:237
4418 msgid "what NTP servers does it connect to"
4422 #: ../examples/guestfs-recipes.pod:241
4423 msgid "what were the boot messages last time it booted"
4427 #: ../examples/guestfs-recipes.pod:245
4428 msgid "listing who was logged in recently"
4432 #: ../examples/guestfs-recipes.pod:249
4433 msgid "http://augeas.net/"
4437 #: ../examples/guestfs-recipes.pod:251
4438 msgid "Install RPMs in a guest"
4442 #: ../examples/guestfs-recipes.pod:253
4444 "The link below contains a method to install RPMs in a guest. In fact the "
4445 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4446 "installs them next time the guest is booted. You could use this technique "
4447 "to install vital security updates in an offline guest."
4451 #: ../examples/guestfs-recipes.pod:259
4453 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4457 #: ../examples/guestfs-recipes.pod:261
4458 msgid "List applications installed in a VM"
4462 #: ../examples/guestfs-recipes.pod:263
4463 msgid "Save the following to a file C<list-apps.sh>:"
4467 #: ../examples/guestfs-recipes.pod:265
4470 #| " eval \"`guestfish --listen`\"\n"
4471 #| " guestfish --remote add-ro disk.img\n"
4472 #| " guestfish --remote run\n"
4473 #| " guestfish --remote lvs\n"
4478 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4479 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4480 " guestfish --remote inspect-list-applications \"$root\"\n"
4481 " guestfish --remote exit\n"
4484 " eval \"`guestfish --listen`\"\n"
4485 " guestfish --remote add-ro disk.img\n"
4486 " guestfish --remote run\n"
4487 " guestfish --remote lvs\n"
4491 #: ../examples/guestfs-recipes.pod:272
4493 "Make the file executable and then you can run it on any named virtual "
4498 #: ../examples/guestfs-recipes.pod:275
4501 " # list-apps.sh WinGuest\n"
4503 " app_name: Mozilla Firefox (3.6.12)\n"
4504 " app_display_name: Mozilla Firefox (3.6.12)\n"
4506 " app_version: 3.6.12 (en-GB)\n"
4508 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4509 " app_trans_path:\n"
4510 " app_publisher: Mozilla\n"
4511 " app_url: http://www.mozilla.com/en-GB/\n"
4512 " app_source_package:\n"
4514 " app_description: Mozilla Firefox\n"
4517 " app_name: VLC media player\n"
4518 " app_display_name: VLC media player 1.1.5\n"
4520 " app_version: 1.1.5\n"
4522 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4523 " app_trans_path:\n"
4524 " app_publisher: VideoLAN\n"
4525 " app_url: http://www.videolan.org/\n"
4526 " app_source_package:\n"
4528 " app_description:\n"
4534 #: ../examples/guestfs-recipes.pod:305
4536 "If you want to run the script on disk images (instead of libvirt virtual "
4537 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
4542 #: ../examples/guestfs-recipes.pod:309
4543 msgid "List files and directories in a VM"
4547 #: ../examples/guestfs-recipes.pod:311
4548 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4552 #: ../examples/guestfs-recipes.pod:313
4555 #| " guestfish --ro -d myguest -i\n"
4558 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4561 " guestfish --ro -d myguest -i\n"
4565 #: ../examples/guestfs-recipes.pod:315
4566 msgid "List services in a Windows VM"
4570 #: ../examples/guestfs-recipes.pod:317
4572 "The link below contains a script that can be used to list out the services "
4573 "from a Windows VM, and whether those services run at boot time or are loaded "
4578 #: ../examples/guestfs-recipes.pod:321
4580 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4585 #: ../examples/guestfs-recipes.pod:323
4586 msgid "Make a disk image sparse"
4590 #: ../examples/guestfs-recipes.pod:325
4592 "The link below contains some guides for making a disk image sparse (or "
4593 "reintroducing sparseness)."
4597 #: ../examples/guestfs-recipes.pod:328
4599 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4603 #: ../examples/guestfs-recipes.pod:330
4604 msgid "Monitor disk usage over time"
4608 #: ../examples/guestfs-recipes.pod:332
4610 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
4611 "The link below contains a guide."
4615 #: ../examples/guestfs-recipes.pod:335
4616 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4620 #: ../examples/guestfs-recipes.pod:337
4621 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4625 #: ../examples/guestfs-recipes.pod:339
4627 "L<guestfish(1)> plus the tools described in the link below can be used to "
4628 "read out the Windows Event Log from any virtual machine running Windows "
4629 "Vista or a later version."
4633 #: ../examples/guestfs-recipes.pod:343
4635 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4636 "guestfish/#content"
4640 #: ../examples/guestfs-recipes.pod:345
4641 msgid "Remove root password (Linux)"
4645 #: ../examples/guestfs-recipes.pod:347
4647 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4648 "files. One use is to remove the root password from a Linux guest:"
4652 #: ../examples/guestfs-recipes.pod:350
4655 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4660 #: ../examples/guestfs-recipes.pod:352
4661 msgid "Remove Administrator password (Windows)"
4665 #: ../examples/guestfs-recipes.pod:354
4667 "The link below contains one technique for removing the Administrator "
4668 "password from a Windows VM, or to be more precise, it gives you a command "
4669 "prompt the next time you log in which you can use to bypass any security:"
4673 #: ../examples/guestfs-recipes.pod:359
4675 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4676 "administrator-password-with-guestfish/"
4680 #: ../examples/guestfs-recipes.pod:361
4681 msgid "Unpack a live CD"
4685 #: ../examples/guestfs-recipes.pod:363
4687 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4688 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
4689 "layers, as outlined in the guide below."
4693 #: ../examples/guestfs-recipes.pod:367
4695 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4700 #: ../examples/guestfs-recipes.pod:369
4701 msgid "Uploading and downloading files"
4705 #: ../examples/guestfs-recipes.pod:371
4707 "The link below contains general tips on uploading (copying in) and "
4708 "downloading (copying out) files from VMs."
4712 #: ../examples/guestfs-recipes.pod:374
4714 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4718 #: ../examples/guestfs-recipes.pod:376
4719 msgid "Use libguestfs tools on VMware ESX guests"
4723 #: ../examples/guestfs-recipes.pod:378
4725 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4726 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4730 #: ../examples/guestfs-recipes.pod:382
4732 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4737 #: ../examples/guestfs-recipes.pod:386
4740 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4741 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4742 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4744 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
4745 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
4746 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4748 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4749 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4750 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4753 #: ../examples/guestfs-recipes.pod:403
4755 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4756 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4757 msgstr "© Red Hat Inc., 2009–2010"
4760 #: ../fish/guestfish-actions.pod:1
4765 #: ../fish/guestfish-actions.pod:3
4768 " add-cdrom filename\n"
4773 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4774 msgid "This function adds a virtual CD-ROM disk image to the guest."
4778 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4779 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4783 #: ../fish/guestfish-actions.pod:15
4785 "This call checks for the existence of C<filename>. This stops you from "
4786 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4787 "and C<http:> URLs. To specify those, use the general L</config> call "
4792 #: ../fish/guestfish-actions.pod:22
4794 "If you just want to add an ISO file (often you use this as an efficient way "
4795 "to transfer large files into the guest), then you should probably use L</add-"
4796 "drive-ro> instead."
4800 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4801 #: ../fish/guestfish-actions.pod:177
4803 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4808 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4809 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
4810 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
4811 #: ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3468
4812 #: ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429
4813 #: ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474
4814 #: ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161
4815 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10
4816 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
4817 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118
4818 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4771
4819 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5393
4820 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6719
4821 #: ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6816
4822 #: ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:7857
4823 #: ../src/guestfs-actions.pod:8040
4825 "Deprecated functions will not be removed from the API, but the fact that "
4826 "they are deprecated indicates that there are problems with correct use of "
4831 #: ../fish/guestfish-actions.pod:35
4836 #: ../fish/guestfish-actions.pod:37
4841 #: ../fish/guestfish-actions.pod:39
4844 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4849 #: ../fish/guestfish-actions.pod:41
4851 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
4852 "It works by connecting to libvirt, requesting the domain and domain XML from "
4853 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4857 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4859 "The number of disks added is returned. This operation is atomic: if an "
4860 "error is returned, then no disks are added."
4864 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4866 "This function does some minimal checks to make sure the libvirt domain is "
4867 "not running (unless C<readonly> is true). In a future version we will try "
4868 "to acquire the libvirt lock on each disk."
4872 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4874 "Disks must be accessible locally. This often means that adding disks from a "
4875 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
4876 "unless those disks are accessible via the same device path locally too."
4880 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4882 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4883 "libvirt.org/uri.html>). If this is not set then we connect to the default "
4884 "libvirt URI (or one set through an environment variable, see the libvirt "
4885 "documentation for full details)."
4889 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4891 "The optional C<live> flag controls whether this call will try to connect to "
4892 "a running virtual machine C<guestfsd> process if it sees a suitable "
4893 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
4894 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
4895 "DAEMONS> for more information."
4899 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4901 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4902 "passed instead of the domain name. The C<dom> string is treated as a UUID "
4903 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4908 #: ../fish/guestfish-actions.pod:76
4910 "The other optional parameters are passed directly through to L</add-drive-"
4915 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4916 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
4917 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
4918 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369
4919 #: ../fish/guestfish-actions.pod:3504
4921 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
4925 #: ../fish/guestfish-actions.pod:81
4930 #: ../fish/guestfish-actions.pod:83
4933 " add-drive filename\n"
4936 " add-drive назва_файла\n"
4940 #: ../fish/guestfish-actions.pod:85
4942 "This function is the equivalent of calling L</add-drive-opts> with no "
4943 "optional parameters, so the disk is added writable, with the format being "
4944 "detected automatically."
4948 #: ../fish/guestfish-actions.pod:89
4950 "Automatic detection of the format opens you up to a potential security hole "
4951 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
4952 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
4953 "you should think about replacing calls to this function with calls to L</add-"
4954 "drive-opts>, and specifying the format."
4958 #: ../fish/guestfish-actions.pod:96
4959 msgid "add-drive-opts"
4960 msgstr "add-drive-opts"
4963 #: ../fish/guestfish-actions.pod:98
4968 #: ../fish/guestfish-actions.pod:100
4971 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4976 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4978 "This function adds a virtual machine disk image C<filename> to libguestfs. "
4979 "The first time you call this function, the disk appears as C</dev/sda>, the "
4980 "second time as C</dev/sdb>, and so on."
4984 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4986 "You don't necessarily need to be root when using libguestfs. However you "
4987 "obviously do need sufficient permissions to access the filename for whatever "
4988 "operations you want to perform (ie. read access if you just want to read the "
4989 "image or write access if you want to modify the image)."
4993 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4994 msgid "This call checks that C<filename> exists."
4998 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
4999 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4808
5000 msgid "The optional arguments are:"
5004 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
5006 msgstr "C<readonly>"
5009 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
5011 "If true then the image is treated as read-only. Writes are still allowed, "
5012 "but they are stored in a temporary snapshot overlay which is discarded at "
5013 "the end. The disk that you add is not modified."
5017 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
5022 #: ../fish/guestfish-actions.pod:127
5024 "This forces the image format. If you omit this (or use L</add-drive> or L</"
5025 "add-drive-ro>) then the format is automatically detected. Possible formats "
5026 "include C<raw> and C<qcow2>."
5030 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
5032 "Automatic detection of the format opens you up to a potential security hole "
5033 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
5034 "RHBZ#642934. Specifying the format closes this security hole."
5038 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
5043 #: ../fish/guestfish-actions.pod:138
5045 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
5046 "add-drive-with-if> call (q.v.)"
5050 #: ../fish/guestfish-actions.pod:145
5051 msgid "add-drive-ro"
5052 msgstr "add-drive-ro"
5055 #: ../fish/guestfish-actions.pod:147
5060 #: ../fish/guestfish-actions.pod:149
5063 " add-drive-ro filename\n"
5068 #: ../fish/guestfish-actions.pod:151
5070 "This function is the equivalent of calling L</add-drive-opts> with the "
5071 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5072 "is added read-only, with the format being detected automatically."
5076 #: ../fish/guestfish-actions.pod:156
5077 msgid "add-drive-ro-with-if"
5081 #: ../fish/guestfish-actions.pod:158
5084 " add-drive-ro-with-if filename iface\n"
5089 #: ../fish/guestfish-actions.pod:160
5091 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
5092 "interface emulation to use at run time."
5096 #: ../fish/guestfish-actions.pod:170
5097 msgid "add-drive-with-if"
5101 #: ../fish/guestfish-actions.pod:172
5104 " add-drive-with-if filename iface\n"
5109 #: ../fish/guestfish-actions.pod:174
5111 "This is the same as L</add-drive> but it allows you to specify the QEMU "
5112 "interface emulation to use at run time."
5116 #: ../fish/guestfish-actions.pod:184
5121 #: ../fish/guestfish-actions.pod:186
5124 " aug-clear augpath\n"
5129 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
5131 "Set the value associated with C<path> to C<NULL>. This is the same as the "
5132 "L<augtool(1)> C<clear> command."
5136 #: ../fish/guestfish-actions.pod:191
5141 #: ../fish/guestfish-actions.pod:193
5149 #: ../fish/guestfish-actions.pod:195
5151 "Close the current Augeas handle and free up any resources used by it. After "
5152 "calling this, you have to call L</aug-init> again before you can use any "
5153 "other Augeas functions."
5157 #: ../fish/guestfish-actions.pod:200
5162 #: ../fish/guestfish-actions.pod:202
5165 " aug-defnode name expr val\n"
5170 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
5172 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5176 #: ../fish/guestfish-actions.pod:207
5178 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5179 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
5180 "containing that single node."
5184 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
5186 "On success this returns a pair containing the number of nodes in the "
5187 "nodeset, and a boolean flag if a node was created."
5191 #: ../fish/guestfish-actions.pod:215
5196 #: ../fish/guestfish-actions.pod:217
5199 " aug-defvar name expr\n"
5204 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
5206 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5207 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
5211 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
5213 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5214 "evaluates to something which is not a nodeset."
5218 #: ../fish/guestfish-actions.pod:226
5223 #: ../fish/guestfish-actions.pod:228
5226 " aug-get augpath\n"
5231 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
5233 "Look up the value associated with C<path>. If C<path> matches exactly one "
5234 "node, the C<value> is returned."
5238 #: ../fish/guestfish-actions.pod:233
5243 #: ../fish/guestfish-actions.pod:235
5246 " aug-init root flags\n"
5251 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
5253 "Create a new Augeas handle for editing configuration files. If there was "
5254 "any previous Augeas handle associated with this guestfs session, then it is "
5259 #: ../fish/guestfish-actions.pod:241
5260 msgid "You must call this before using any other L</aug-*> commands."
5264 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
5266 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
5270 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5272 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5273 "logical I<or> of the following integers:"
5277 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5278 msgid "C<AUG_SAVE_BACKUP> = 1"
5279 msgstr "C<AUG_SAVE_BACKUP> = 1"
5282 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5283 msgid "Keep the original file with a C<.augsave> extension."
5287 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5288 msgid "C<AUG_SAVE_NEWFILE> = 2"
5289 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5292 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5294 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5295 "original. Overrides C<AUG_SAVE_BACKUP>."
5299 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5300 msgid "C<AUG_TYPE_CHECK> = 4"
5301 msgstr "C<AUG_TYPE_CHECK> = 4"
5304 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5305 msgid "Typecheck lenses."
5309 #: ../fish/guestfish-actions.pod:266
5311 "This option is only useful when debugging Augeas lenses. Use of this option "
5312 "may require additional memory for the libguestfs appliance. You may need to "
5313 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5317 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5318 msgid "C<AUG_NO_STDINC> = 8"
5319 msgstr "C<AUG_NO_STDINC> = 8"
5322 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5323 msgid "Do not use standard load path for modules."
5327 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5328 msgid "C<AUG_SAVE_NOOP> = 16"
5329 msgstr "C<AUG_SAVE_NOOP> = 16"
5332 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5333 msgid "Make save a no-op, just record what would have been changed."
5337 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5338 msgid "C<AUG_NO_LOAD> = 32"
5339 msgstr "C<AUG_NO_LOAD> = 32"
5342 #: ../fish/guestfish-actions.pod:281
5343 msgid "Do not load the tree in L</aug-init>."
5347 #: ../fish/guestfish-actions.pod:285
5348 msgid "To close the handle, you can call L</aug-close>."
5352 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5353 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5357 #: ../fish/guestfish-actions.pod:289
5362 #: ../fish/guestfish-actions.pod:291
5365 " aug-insert augpath label true|false\n"
5370 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5372 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5373 "or after C<path> (depending on the boolean flag C<before>)."
5377 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5379 "C<path> must match exactly one existing node in the tree, and C<label> must "
5380 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5384 #: ../fish/guestfish-actions.pod:301
5389 #: ../fish/guestfish-actions.pod:303
5397 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5398 msgid "Load files into the tree."
5399 msgstr "Завантажити файли до ієрархії."
5402 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5403 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5407 #: ../fish/guestfish-actions.pod:310
5412 #: ../fish/guestfish-actions.pod:312
5420 #: ../fish/guestfish-actions.pod:314
5422 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5423 "resulting nodes into alphabetical order."
5427 #: ../fish/guestfish-actions.pod:317
5432 #: ../fish/guestfish-actions.pod:319
5435 " aug-match augpath\n"
5440 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5442 "Returns a list of paths which match the path expression C<path>. The "
5443 "returned paths are sufficiently qualified so that they match exactly one "
5444 "node in the current tree."
5448 #: ../fish/guestfish-actions.pod:325
5453 #: ../fish/guestfish-actions.pod:327
5456 " aug-mv src dest\n"
5461 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5463 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
5464 "C<dest> is overwritten if it exists."
5468 #: ../fish/guestfish-actions.pod:332
5473 #: ../fish/guestfish-actions.pod:334
5481 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5482 msgid "Remove C<path> and all of its children."
5486 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5487 msgid "On success this returns the number of entries which were removed."
5491 #: ../fish/guestfish-actions.pod:340
5496 #: ../fish/guestfish-actions.pod:342
5504 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5505 msgid "This writes all pending changes to disk."
5509 #: ../fish/guestfish-actions.pod:346
5511 "The flags which were passed to L</aug-init> affect exactly how files are "
5516 #: ../fish/guestfish-actions.pod:349
5521 #: ../fish/guestfish-actions.pod:351
5524 " aug-set augpath val\n"
5529 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5530 msgid "Set the value associated with C<path> to C<val>."
5534 #: ../fish/guestfish-actions.pod:355
5536 "In the Augeas API, it is possible to clear a node by setting the value to "
5537 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
5538 "this call. Instead you must use the L</aug-clear> call."
5542 #: ../fish/guestfish-actions.pod:360
5547 #: ../fish/guestfish-actions.pod:362
5550 " available 'groups ...'\n"
5555 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5557 "This command is used to check the availability of some groups of "
5558 "functionality in the appliance, which not all builds of the libguestfs "
5559 "appliance will be able to provide."
5563 #: ../fish/guestfish-actions.pod:368
5565 "The libguestfs groups, and the functions that those groups correspond to, "
5566 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
5567 "runtime by calling L</available-all-groups>."
5571 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5573 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5574 "\"]> would check for the availability of the Linux inotify functions and "
5575 "Augeas (configuration file editing) functions."
5579 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5580 msgid "The command returns no error if I<all> requested groups are available."
5584 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5586 "It fails with an error if one or more of the requested groups is unavailable "
5591 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5593 "If an unknown group name is included in the list of groups then an error is "
5598 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5600 msgstr "I<Нотатки:>"
5603 #: ../fish/guestfish-actions.pod:392
5604 msgid "You must call L</launch> before calling this function."
5608 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5610 "The reason is because we don't know what groups are supported by the "
5611 "appliance/daemon until it is running and can be queried."
5615 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5617 "If a group of functions is available, this does not necessarily mean that "
5618 "they will work. You still have to check for errors when calling individual "
5619 "API functions even if they are available."
5623 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5625 "It is usually the job of distro packagers to build complete functionality "
5626 "into the libguestfs appliance. Upstream libguestfs, if built from source "
5627 "with all requirements satisfied, will support everything."
5631 #: ../fish/guestfish-actions.pod:414
5633 "This call was added in version C<1.0.80>. In previous versions of "
5634 "libguestfs all you could do would be to speculatively execute a command to "
5635 "find out if the daemon implemented it. See also L</version>."
5639 #: ../fish/guestfish-actions.pod:421
5640 msgid "available-all-groups"
5644 #: ../fish/guestfish-actions.pod:423
5647 " available-all-groups\n"
5652 #: ../fish/guestfish-actions.pod:425
5654 "This command returns a list of all optional groups that this daemon knows "
5655 "about. Note this returns both supported and unsupported groups. To find "
5656 "out which ones the daemon can actually support you have to call L</"
5657 "available> on each member of the returned list."
5661 #: ../fish/guestfish-actions.pod:431
5662 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5666 #: ../fish/guestfish-actions.pod:433
5671 #: ../fish/guestfish-actions.pod:435
5674 " base64-in (base64file|-) filename\n"
5679 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5681 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5685 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5686 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
5687 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
5688 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
5689 #: ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:4744
5690 #: ../fish/guestfish-actions.pod:4755 ../fish/guestfish-actions.pod:4766
5691 #: ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4827
5692 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4904
5693 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5697 #: ../fish/guestfish-actions.pod:442
5702 #: ../fish/guestfish-actions.pod:444
5705 " base64-out filename (base64file|-)\n"
5710 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5712 "This command downloads the contents of C<filename>, writing it out to local "
5713 "file C<base64file> encoded as base64."
5717 #: ../fish/guestfish-actions.pod:451
5718 msgid "blockdev-flushbufs"
5722 #: ../fish/guestfish-actions.pod:453
5725 " blockdev-flushbufs device\n"
5730 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5732 "This tells the kernel to flush internal buffers associated with C<device>."
5736 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5737 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5738 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5739 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5740 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5741 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5742 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5743 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5744 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5745 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5746 msgid "This uses the L<blockdev(8)> command."
5750 #: ../fish/guestfish-actions.pod:460
5751 msgid "blockdev-getbsz"
5755 #: ../fish/guestfish-actions.pod:462
5758 " blockdev-getbsz device\n"
5763 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5764 msgid "This returns the block size of a device."
5768 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5769 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5771 "(Note this is different from both I<size in blocks> and I<filesystem block "
5776 #: ../fish/guestfish-actions.pod:471
5777 msgid "blockdev-getro"
5781 #: ../fish/guestfish-actions.pod:473
5784 " blockdev-getro device\n"
5789 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5791 "Returns a boolean indicating if the block device is read-only (true if read-"
5792 "only, false if not)."
5796 #: ../fish/guestfish-actions.pod:480
5797 msgid "blockdev-getsize64"
5801 #: ../fish/guestfish-actions.pod:482
5804 " blockdev-getsize64 device\n"
5809 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5810 msgid "This returns the size of the device in bytes."
5814 #: ../fish/guestfish-actions.pod:486
5815 msgid "See also L</blockdev-getsz>."
5819 #: ../fish/guestfish-actions.pod:490
5820 msgid "blockdev-getss"
5824 #: ../fish/guestfish-actions.pod:492
5827 " blockdev-getss device\n"
5832 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5834 "This returns the size of sectors on a block device. Usually 512, but can be "
5835 "larger for modern devices."
5839 #: ../fish/guestfish-actions.pod:497
5841 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5845 #: ../fish/guestfish-actions.pod:502
5846 msgid "blockdev-getsz"
5850 #: ../fish/guestfish-actions.pod:504
5853 " blockdev-getsz device\n"
5858 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5860 "This returns the size of the device in units of 512-byte sectors (even if "
5861 "the sectorsize isn't 512 bytes ... weird)."
5865 #: ../fish/guestfish-actions.pod:509
5867 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5868 "blockdev-getsize64> for the more useful I<size in bytes>."
5872 #: ../fish/guestfish-actions.pod:515
5873 msgid "blockdev-rereadpt"
5877 #: ../fish/guestfish-actions.pod:517
5880 " blockdev-rereadpt device\n"
5885 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5886 msgid "Reread the partition table on C<device>."
5890 #: ../fish/guestfish-actions.pod:523
5891 msgid "blockdev-setbsz"
5895 #: ../fish/guestfish-actions.pod:525
5898 " blockdev-setbsz device blocksize\n"
5903 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5904 msgid "This sets the block size of a device."
5908 #: ../fish/guestfish-actions.pod:534
5909 msgid "blockdev-setro"
5913 #: ../fish/guestfish-actions.pod:536
5916 " blockdev-setro device\n"
5921 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5922 msgid "Sets the block device named C<device> to read-only."
5926 #: ../fish/guestfish-actions.pod:542
5927 msgid "blockdev-setrw"
5931 #: ../fish/guestfish-actions.pod:544
5934 " blockdev-setrw device\n"
5939 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5940 msgid "Sets the block device named C<device> to read-write."
5944 #: ../fish/guestfish-actions.pod:550
5945 msgid "btrfs-filesystem-resize"
5949 #: ../fish/guestfish-actions.pod:552
5952 " btrfs-filesystem-resize mountpoint [size:..]\n"
5957 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5958 msgid "This command resizes a btrfs filesystem."
5962 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5964 "Note that unlike other resize calls, the filesystem has to be mounted and "
5965 "the parameter is the mountpoint not the device (this is a requirement of "
5970 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3479
5971 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5332
5972 msgid "The optional parameters are:"
5976 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3483
5977 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5336
5982 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5984 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
5985 "resized to the maximum size."
5989 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5990 msgid "See also L<btrfs(8)>."
5994 #: ../fish/guestfish-actions.pod:575
5995 msgid "case-sensitive-path"
5999 #: ../fish/guestfish-actions.pod:577
6002 " case-sensitive-path path\n"
6007 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
6009 "This can be used to resolve case insensitive paths on a filesystem which is "
6010 "case sensitive. The use case is to resolve paths which you have read from "
6011 "Windows configuration files or the Windows Registry, to the true path."
6015 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
6017 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6018 "(and probably others), which is that although the underlying filesystem is "
6019 "case-insensitive, the driver exports the filesystem to Linux as case-"
6024 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
6026 "One consequence of this is that special directories such as C<c:\\windows> "
6027 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6028 "precise details of how they were created. In Windows itself this would not "
6033 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
6035 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
6040 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
6042 "This function resolves the true case of each element in the path and returns "
6043 "the case-sensitive path."
6047 #: ../fish/guestfish-actions.pod:601
6049 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
6050 "WINDOWS/system32\"> (the exact return value would depend on details of how "
6051 "the directories were originally created under Windows)."
6055 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
6056 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6060 #: ../fish/guestfish-actions.pod:609
6061 msgid "See also L</realpath>."
6065 #: ../fish/guestfish-actions.pod:611
6070 #: ../fish/guestfish-actions.pod:613
6080 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3899
6081 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5975
6082 msgid "Return the contents of the file named C<path>."
6086 #: ../fish/guestfish-actions.pod:617
6088 "Note that this function cannot correctly handle binary files (specifically, "
6089 "files containing C<\\0> character which is treated as end of string). For "
6090 "those you need to use the L</read-file> or L</download> functions which have "
6091 "a more complex interface."
6095 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
6096 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
6097 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
6098 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
6099 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
6100 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
6101 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
6102 #: ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3784
6103 #: ../fish/guestfish-actions.pod:3860 ../fish/guestfish-actions.pod:3877
6104 #: ../fish/guestfish-actions.pod:3892 ../fish/guestfish-actions.pod:4573
6105 #: ../fish/guestfish-actions.pod:4619 ../fish/guestfish-actions.pod:4704
6106 #: ../fish/guestfish-actions.pod:4719 ../fish/guestfish-actions.pod:5125
6107 #: ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5155
6108 #: ../fish/guestfish-actions.pod:5172 ../fish/guestfish-actions.pod:5182
6109 #: ../fish/guestfish-actions.pod:5239 ../fish/guestfish-actions.pod:5249
6110 #: ../fish/guestfish-actions.pod:5278 ../fish/guestfish-actions.pod:5288
6111 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
6112 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1554
6113 #: ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1676
6114 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1941
6115 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2442
6116 #: ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2531
6117 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2577
6118 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5783
6119 #: ../src/guestfs-actions.pod:5914 ../src/guestfs-actions.pod:5940
6120 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6931
6121 #: ../src/guestfs-actions.pod:6986 ../src/guestfs-actions.pod:7132
6122 #: ../src/guestfs-actions.pod:7156 ../src/guestfs-actions.pod:7821
6123 #: ../src/guestfs-actions.pod:7841 ../src/guestfs-actions.pod:7874
6124 #: ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7912
6125 #: ../src/guestfs-actions.pod:8006 ../src/guestfs-actions.pod:8025
6126 #: ../src/guestfs-actions.pod:8071 ../src/guestfs-actions.pod:8090
6128 "Because of the message protocol, there is a transfer limit of somewhere "
6129 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
6133 #: ../fish/guestfish-actions.pod:625
6138 #: ../fish/guestfish-actions.pod:627
6141 " checksum csumtype path\n"
6146 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
6148 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6152 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
6154 "The type of checksum to compute is given by the C<csumtype> parameter which "
6155 "must have one of the following values:"
6159 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
6164 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
6166 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6171 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
6176 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
6177 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6181 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
6186 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
6187 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6191 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
6196 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
6197 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6201 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
6206 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
6207 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6211 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
6216 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
6217 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6221 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
6226 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
6227 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6231 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
6232 msgid "The checksum is returned as a printable string."
6236 #: ../fish/guestfish-actions.pod:670
6237 msgid "To get the checksum for a device, use L</checksum-device>."
6241 #: ../fish/guestfish-actions.pod:672
6242 msgid "To get the checksums for many files, use L</checksums-out>."
6246 #: ../fish/guestfish-actions.pod:674
6247 msgid "checksum-device"
6248 msgstr "checksum-device"
6251 #: ../fish/guestfish-actions.pod:676
6254 " checksum-device csumtype device\n"
6259 #: ../fish/guestfish-actions.pod:678
6261 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6262 "device named C<device>. For the types of checksums supported see the L</"
6263 "checksum> command."
6267 #: ../fish/guestfish-actions.pod:682
6268 msgid "checksums-out"
6272 #: ../fish/guestfish-actions.pod:684
6275 " checksums-out csumtype directory (sumsfile|-)\n"
6280 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6282 "This command computes the checksums of all regular files in C<directory> and "
6283 "then emits a list of those checksums to the local output file C<sumsfile>."
6287 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6289 "This can be used for verifying the integrity of a virtual machine. However "
6290 "to be properly secure you should pay attention to the output of the checksum "
6291 "command (it uses the ones from GNU coreutils). In particular when the "
6292 "filename is not printable, coreutils uses a special backslash syntax. For "
6293 "more information, see the GNU coreutils info file."
6297 #: ../fish/guestfish-actions.pod:700
6302 #: ../fish/guestfish-actions.pod:702
6305 " chmod mode path\n"
6310 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6312 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
6317 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6319 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6320 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6325 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132
6326 #: ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281
6327 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064
6328 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4948
6329 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4986
6330 msgid "The mode actually set is affected by the umask."
6334 #: ../fish/guestfish-actions.pod:713
6339 #: ../fish/guestfish-actions.pod:715
6342 " chown owner group path\n"
6347 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6348 msgid "Change the file owner to C<owner> and group to C<group>."
6352 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567
6353 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3810
6355 "Only numeric uid and gid are supported. If you want to use names, you will "
6356 "need to locate and parse the password file yourself (Augeas support makes "
6357 "this relatively easy)."
6361 #: ../fish/guestfish-actions.pod:723
6366 #: ../fish/guestfish-actions.pod:725
6369 " command 'arguments ...'\n"
6374 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6376 "This call runs a command from the guest filesystem. The filesystem must be "
6377 "mounted, and must contain a compatible operating system (ie. something "
6378 "Linux, with the same or compatible processor architecture)."
6382 #: ../fish/guestfish-actions.pod:732
6384 "The single parameter is an argv-style list of arguments. The first element "
6385 "is the name of the program to run. Subsequent elements are parameters. The "
6386 "list must be non-empty (ie. must contain a program name). Note that the "
6387 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6391 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6392 msgid "The return value is anything printed to I<stdout> by the command."
6396 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6398 "If the command returns a non-zero exit status, then this function returns an "
6399 "error message. The error message string is the content of I<stderr> from "
6404 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6406 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6407 "bin>. If you require a program from another location, you should provide "
6408 "the full path in the first parameter."
6412 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6414 "Shared libraries and data files required by the program must be available on "
6415 "filesystems which are mounted in the correct places. It is the caller's "
6416 "responsibility to ensure all filesystems that are needed are mounted at the "
6421 #: ../fish/guestfish-actions.pod:760
6422 msgid "command-lines"
6426 #: ../fish/guestfish-actions.pod:762
6429 " command-lines 'arguments ...'\n"
6434 #: ../fish/guestfish-actions.pod:764
6436 "This is the same as L</command>, but splits the result into a list of lines."
6440 #: ../fish/guestfish-actions.pod:767
6441 msgid "See also: L</sh-lines>"
6445 #: ../fish/guestfish-actions.pod:772
6447 #| msgid "pread-device"
6448 msgid "compress-device-out"
6449 msgstr "pread-device"
6452 #: ../fish/guestfish-actions.pod:774
6455 " compress-device-out ctype device (zdevice|-) [level:..]\n"
6460 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
6462 "This command compresses C<device> and writes it out to the local file "
6467 #: ../fish/guestfish-actions.pod:779
6469 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
6474 #: ../fish/guestfish-actions.pod:786
6477 msgid "compress-out"
6481 #: ../fish/guestfish-actions.pod:788
6484 " compress-out ctype file (zfile|-) [level:..]\n"
6489 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1220
6491 "This command compresses C<file> and writes it out to the local file C<zfile>."
6495 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1223
6497 "The compression program used is controlled by the C<ctype> parameter. "
6498 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
6499 "Some compression types may not be supported by particular builds of "
6500 "libguestfs, in which case you will get an error containing the substring "
6501 "\"not supported\"."
6505 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1229
6507 "The optional C<level> parameter controls compression level. The meaning and "
6508 "default for this parameter depends on the compression program being used."
6512 #: ../fish/guestfish-actions.pod:807
6517 #: ../fish/guestfish-actions.pod:809
6520 " config qemuparam qemuvalue\n"
6525 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1270
6527 "This can be used to add arbitrary qemu command line parameters of the form "
6528 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
6529 "setting some parameters which would interfere with parameters that we use."
6533 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1275
6534 msgid "The first character of C<param> string must be a C<-> (dash)."
6538 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1277
6539 msgid "C<value> can be NULL."
6543 #: ../fish/guestfish-actions.pod:820
6548 #: ../fish/guestfish-actions.pod:822
6551 " copy-size src dest size\n"
6556 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1291
6558 "This command copies exactly C<size> bytes from one source device or file "
6559 "C<src> to another destination device or file C<dest>."
6563 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1294
6565 "Note this will fail if the source is too short or if the destination is not "
6570 #: ../fish/guestfish-actions.pod:830
6575 #: ../fish/guestfish-actions.pod:832
6583 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1313
6585 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6586 "destination filename or destination directory."
6590 #: ../fish/guestfish-actions.pod:837
6595 #: ../fish/guestfish-actions.pod:839
6603 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1327
6605 "This copies a file or directory from C<src> to C<dest> recursively using the "
6610 #: ../fish/guestfish-actions.pod:844
6615 #: ../fish/guestfish-actions.pod:846
6623 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1341
6625 "This command copies from one source device or file C<src> to another "
6626 "destination device or file C<dest>. Normally you would use this to copy to "
6627 "or from a device or partition, for example to duplicate a filesystem."
6631 #: ../fish/guestfish-actions.pod:853
6633 "If the destination is a device, it must be as large or larger than the "
6634 "source file or device, otherwise the copy will fail. This command cannot do "
6635 "partial copies (see L</copy-size>)."
6639 #: ../fish/guestfish-actions.pod:857
6644 #: ../fish/guestfish-actions.pod:859
6654 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1359
6655 msgid "This command runs the C<df> command to report disk space used."
6659 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
6661 "This command is mostly useful for interactive sessions. It is I<not> "
6662 "intended that you try to parse the output string. Use L</statvfs> from "
6667 #: ../fish/guestfish-actions.pod:867
6672 #: ../fish/guestfish-actions.pod:869
6682 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1375
6684 "This command runs the C<df -h> command to report disk space used in human-"
6689 #: ../fish/guestfish-actions.pod:878
6694 #: ../fish/guestfish-actions.pod:880
6704 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1392
6706 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
6707 "This is sometimes useful for extended debugging of problems."
6711 #: ../fish/guestfish-actions.pod:886
6713 "Another way to get the same information is to enable verbose messages with "
6714 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6715 "before running the program."
6719 #: ../fish/guestfish-actions.pod:891
6724 #: ../fish/guestfish-actions.pod:893
6727 " download remotefilename (filename|-)\n"
6732 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
6733 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1438
6735 "Download file C<remotefilename> and save it as C<filename> on the local "
6740 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4877
6741 #: ../src/guestfs-actions.pod:1416 ../src/guestfs-actions.pod:7391
6742 msgid "C<filename> can also be a named pipe."
6746 #: ../fish/guestfish-actions.pod:900
6747 msgid "See also L</upload>, L</cat>."
6751 #: ../fish/guestfish-actions.pod:904
6752 msgid "download-offset"
6753 msgstr "download-offset"
6756 #: ../fish/guestfish-actions.pod:906
6759 " download-offset remotefilename (filename|-) offset size\n"
6764 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1441
6766 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6767 "region must be within the file or device)."
6771 #: ../fish/guestfish-actions.pod:914
6773 "Note that there is no limit on the amount of data that can be downloaded "
6774 "with this call, unlike with L</pread>, and this call always reads the full "
6775 "amount unless an error occurs."
6779 #: ../fish/guestfish-actions.pod:919
6780 msgid "See also L</download>, L</pread>."
6784 #: ../fish/guestfish-actions.pod:923
6789 #: ../fish/guestfish-actions.pod:925
6792 " drop-caches whattodrop\n"
6797 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1466
6799 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6800 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
6801 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6805 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1471
6806 msgid "Setting C<whattodrop> to 3 should drop everything."
6810 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1473
6812 "This automatically calls L<sync(2)> before the operation, so that the "
6813 "maximum guest memory is freed."
6817 #: ../fish/guestfish-actions.pod:937
6822 #: ../fish/guestfish-actions.pod:939
6832 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1486
6834 "This command runs the C<du -s> command to estimate file space usage for "
6839 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1489
6841 "C<path> can be a file or a directory. If C<path> is a directory then the "
6842 "estimate includes the contents of the directory and all subdirectories "
6847 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1493
6849 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6853 #: ../fish/guestfish-actions.pod:951
6858 #: ../fish/guestfish-actions.pod:953
6861 " e2fsck-f device\n"
6866 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1511
6868 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6869 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6874 #: ../fish/guestfish-actions.pod:959
6876 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
6877 "should use L</fsck>."
6881 #: ../fish/guestfish-actions.pod:962
6886 #: ../fish/guestfish-actions.pod:964
6889 " echo-daemon 'words ...'\n"
6894 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1528
6896 "This command concatenates the list of C<words> passed with single spaces "
6897 "between them and returns the resulting string."
6901 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1531
6902 msgid "You can use this command to test the connection through to the daemon."
6906 #: ../fish/guestfish-actions.pod:971
6907 msgid "See also L</ping-daemon>."
6911 #: ../fish/guestfish-actions.pod:973
6916 #: ../fish/guestfish-actions.pod:975
6919 " egrep regex path\n"
6924 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1547
6926 "This calls the external C<egrep> program and returns the matching lines."
6930 #: ../fish/guestfish-actions.pod:983
6935 #: ../fish/guestfish-actions.pod:985
6938 " egrepi regex path\n"
6943 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1566
6945 "This calls the external C<egrep -i> program and returns the matching lines."
6949 #: ../fish/guestfish-actions.pod:993
6954 #: ../fish/guestfish-actions.pod:995
6957 " equal file1 file2\n"
6960 " equal файл1 файл2\n"
6964 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1585
6966 "This compares the two files C<file1> and C<file2> and returns true if their "
6967 "content is exactly equal, or false otherwise."
6971 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1588
6972 msgid "The external L<cmp(1)> program is used for the comparison."
6976 #: ../fish/guestfish-actions.pod:1002
6981 #: ../fish/guestfish-actions.pod:1004
6991 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1600
6993 "This returns C<true> if and only if there is a file, directory (or anything) "
6994 "with the given C<path> name."
6998 #: ../fish/guestfish-actions.pod:1009
6999 msgid "See also L</is-file>, L</is-dir>, L</stat>."
7000 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
7003 #: ../fish/guestfish-actions.pod:1011
7008 #: ../fish/guestfish-actions.pod:1013
7011 " fallocate path len\n"
7014 " fallocate шлях довжина\n"
7018 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
7019 #: ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1642
7021 "This command preallocates a file (containing zero bytes) named C<path> of "
7022 "size C<len> bytes. If the file exists already, it is overwritten."
7026 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1627
7028 "Do not confuse this with the guestfish-specific C<alloc> command which "
7029 "allocates a file in the host and attaches it as a device."
7033 #: ../fish/guestfish-actions.pod:1023
7035 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7040 #: ../fish/guestfish-actions.pod:1030
7042 msgstr "fallocate64"
7045 #: ../fish/guestfish-actions.pod:1032
7048 " fallocate64 path len\n"
7051 " fallocate64 шлях довжина\n"
7055 #: ../fish/guestfish-actions.pod:1038
7057 "Note that this call allocates disk blocks for the file. To create a sparse "
7058 "file use L</truncate-size> instead."
7062 #: ../fish/guestfish-actions.pod:1041
7064 "The deprecated call L</fallocate> does the same, but owing to an oversight "
7065 "it only allowed 30 bit lengths to be specified, effectively limiting the "
7066 "maximum size of files created through that call to 1GB."
7070 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1654
7072 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7073 "commands which create a file in the host and attach it as a device."
7077 #: ../fish/guestfish-actions.pod:1050
7082 #: ../fish/guestfish-actions.pod:1052
7085 " fgrep pattern path\n"
7088 " fgrep шаблон шлях\n"
7092 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1669
7094 "This calls the external C<fgrep> program and returns the matching lines."
7098 #: ../fish/guestfish-actions.pod:1060
7103 #: ../fish/guestfish-actions.pod:1062
7106 " fgrepi pattern path\n"
7109 " fgrepi шаблон шлях\n"
7113 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1688
7115 "This calls the external C<fgrep -i> program and returns the matching lines."
7119 #: ../fish/guestfish-actions.pod:1070
7124 #: ../fish/guestfish-actions.pod:1072
7134 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1706
7136 "This call uses the standard L<file(1)> command to determine the type or "
7137 "contents of the file."
7141 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1709
7143 "This call will also transparently look inside various types of compressed "
7148 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1712
7150 "The exact command which runs is C<file -zb path>. Note in particular that "
7151 "the filename is not prepended to the output (the I<-b> option)."
7155 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1716
7157 "The output depends on the output of the underlying L<file(1)> command and it "
7158 "can change in future in ways beyond our control. In other words, the output "
7159 "is not guaranteed by the ABI."
7163 #: ../fish/guestfish-actions.pod:1088
7165 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7166 "(etc), L</is-zero>."
7170 #: ../fish/guestfish-actions.pod:1091
7171 msgid "file-architecture"
7172 msgstr "file-architecture"
7175 #: ../fish/guestfish-actions.pod:1093
7178 " file-architecture filename\n"
7181 " file-architecture назва_файла\n"
7185 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1734
7187 "This detects the architecture of the binary C<filename>, and returns it if "
7192 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1737
7193 msgid "Currently defined architectures are:"
7197 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1741
7202 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1743
7204 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7205 "irrespective of the precise processor requirements of the binary."
7209 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1746
7214 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1748
7215 msgid "64 bit x86-64."
7219 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1750
7224 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1752
7225 msgid "32 bit SPARC."
7229 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1754
7234 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1756
7235 msgid "64 bit SPARC V9 and above."
7239 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1758
7244 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1760
7245 msgid "Intel Itanium."
7246 msgstr "Intel Itanium."
7249 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1762
7254 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1764
7255 msgid "32 bit Power PC."
7259 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1766
7264 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1768
7265 msgid "64 bit Power PC."
7269 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1772
7270 msgid "Libguestfs may return other architecture strings in future."
7274 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1774
7275 msgid "The function works on at least the following types of files:"
7279 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1780
7280 msgid "many types of Un*x and Linux binary"
7284 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1784
7285 msgid "many types of Un*x and Linux shared library"
7289 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1788
7290 msgid "Windows Win32 and Win64 binaries"
7294 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1792
7295 msgid "Windows Win32 and Win64 DLLs"
7299 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1794
7300 msgid "Win32 binaries and DLLs return C<i386>."
7304 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1796
7305 msgid "Win64 binaries and DLLs return C<x86_64>."
7309 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1800
7310 msgid "Linux kernel modules"
7314 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1804
7315 msgid "Linux new-style initrd images"
7319 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1808
7320 msgid "some non-x86 Linux vmlinuz kernels"
7324 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1812
7325 msgid "What it can't do currently:"
7329 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1818
7330 msgid "static libraries (libfoo.a)"
7334 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1822
7335 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7339 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1826
7340 msgid "x86 Linux vmlinuz kernels"
7344 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1828
7346 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7347 "compressed code, and are horribly hard to unpack. If you want to find the "
7348 "architecture of a kernel, use the architecture of the associated initrd or "
7349 "kernel module(s) instead."
7353 #: ../fish/guestfish-actions.pod:1196
7358 #: ../fish/guestfish-actions.pod:1198
7368 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1846
7369 msgid "This command returns the size of C<file> in bytes."
7373 #: ../fish/guestfish-actions.pod:1202
7375 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7376 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
7380 #: ../fish/guestfish-actions.pod:1206
7385 #: ../fish/guestfish-actions.pod:1208
7388 " fill c len path\n"
7393 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1864
7395 "This command creates a new file called C<path>. The initial content of the "
7396 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7401 #: ../fish/guestfish-actions.pod:1214
7403 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7404 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
7409 #: ../fish/guestfish-actions.pod:1219
7410 msgid "fill-pattern"
7411 msgstr "fill-pattern"
7414 #: ../fish/guestfish-actions.pod:1221
7417 " fill-pattern pattern len path\n"
7422 #: ../fish/guestfish-actions.pod:1223
7424 "This function is like L</fill> except that it creates a new file of length "
7425 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
7426 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7431 #: ../fish/guestfish-actions.pod:1228
7436 #: ../fish/guestfish-actions.pod:1230
7446 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1910
7448 "This command lists out all files and directories, recursively, starting at "
7449 "C<directory>. It is essentially equivalent to running the shell command "
7450 "C<find directory -print> but some post-processing happens on the output, "
7455 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1915
7457 "This returns a list of strings I<without any prefix>. Thus if the directory "
7462 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1918
7472 #: ../fish/guestfish-actions.pod:1244
7473 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7477 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1925
7488 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1930
7489 msgid "If C<directory> is not a directory, then this command returns an error."
7493 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1933
7494 msgid "The returned list is sorted."
7498 #: ../fish/guestfish-actions.pod:1257
7499 msgid "See also L</find0>."
7500 msgstr "Див. також L</find0>."
7503 #: ../fish/guestfish-actions.pod:1262
7508 #: ../fish/guestfish-actions.pod:1264
7511 " find0 directory (files|-)\n"
7514 " find0 каталог (файли|-)\n"
7518 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1953
7520 "This command lists out all files and directories, recursively, starting at "
7521 "C<directory>, placing the resulting list in the external file called "
7526 #: ../fish/guestfish-actions.pod:1270
7528 "This command works the same way as L</find> with the following exceptions:"
7532 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1964
7533 msgid "The resulting list is written to an external file."
7537 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1968
7539 "Items (filenames) in the result are separated by C<\\0> characters. See "
7540 "L<find(1)> option I<-print0>."
7544 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1973
7545 msgid "This command is not limited in the number of names that it can return."
7549 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1978
7550 msgid "The result list is not sorted."
7554 #: ../fish/guestfish-actions.pod:1297
7555 msgid "findfs-label"
7556 msgstr "findfs-label"
7559 #: ../fish/guestfish-actions.pod:1299
7562 " findfs-label label\n"
7565 " findfs-label мітка\n"
7569 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1992
7571 "This command searches the filesystems and returns the one which has the "
7572 "given label. An error is returned if no such filesystem can be found."
7576 #: ../fish/guestfish-actions.pod:1305
7577 msgid "To find the label of a filesystem, use L</vfs-label>."
7578 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7581 #: ../fish/guestfish-actions.pod:1307
7583 msgstr "findfs-uuid"
7586 #: ../fish/guestfish-actions.pod:1309
7589 " findfs-uuid uuid\n"
7592 " findfs-uuid uuid\n"
7596 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2009
7598 "This command searches the filesystems and returns the one which has the "
7599 "given UUID. An error is returned if no such filesystem can be found."
7603 #: ../fish/guestfish-actions.pod:1315
7604 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7605 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7608 #: ../fish/guestfish-actions.pod:1317
7613 #: ../fish/guestfish-actions.pod:1319
7616 " fsck fstype device\n"
7619 " fsck тип_файлової_системи пристрій\n"
7623 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2027
7625 "This runs the filesystem checker (fsck) on C<device> which should have "
7626 "filesystem type C<fstype>."
7630 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2030
7632 "The returned integer is the status. See L<fsck(8)> for the list of status "
7633 "codes from C<fsck>."
7637 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2039
7638 msgid "Multiple status codes can be summed together."
7642 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2043
7644 "A non-zero return code can mean \"success\", for example if errors have been "
7645 "corrected on the filesystem."
7649 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2048
7650 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7654 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2053
7656 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7660 #: ../fish/guestfish-actions.pod:1349
7665 #: ../fish/guestfish-actions.pod:1351
7675 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2064
7677 "Return the additional kernel options which are added to the guest kernel "
7682 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2067
7683 msgid "If C<NULL> then no options are added."
7687 #: ../fish/guestfish-actions.pod:1358
7688 msgid "get-attach-method"
7689 msgstr "get-attach-method"
7692 #: ../fish/guestfish-actions.pod:1360
7695 " get-attach-method\n"
7698 " get-attach-method\n"
7702 #: ../fish/guestfish-actions.pod:1362
7703 msgid "Return the current attach method. See L</set-attach-method>."
7707 #: ../fish/guestfish-actions.pod:1364
7708 msgid "get-autosync"
7709 msgstr "get-autosync"
7712 #: ../fish/guestfish-actions.pod:1366
7722 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2092
7723 msgid "Get the autosync flag."
7727 #: ../fish/guestfish-actions.pod:1370
7732 #: ../fish/guestfish-actions.pod:1372
7742 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2103
7743 msgid "Return the direct appliance mode flag."
7747 #: ../fish/guestfish-actions.pod:1376
7749 msgstr "get-e2label"
7752 #: ../fish/guestfish-actions.pod:1378
7755 " get-e2label device\n"
7758 " get-e2label пристрій\n"
7762 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2122
7764 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7768 #: ../fish/guestfish-actions.pod:1383
7770 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7775 #: ../fish/guestfish-actions.pod:1390
7780 #: ../fish/guestfish-actions.pod:1392
7783 " get-e2uuid device\n"
7786 " get-e2uuid пристрій\n"
7790 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2143
7792 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7796 #: ../fish/guestfish-actions.pod:1397
7798 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7803 #: ../fish/guestfish-actions.pod:1404
7805 msgstr "get-memsize"
7808 #: ../fish/guestfish-actions.pod:1406
7818 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2156
7820 "This gets the memory size in megabytes allocated to the qemu subprocess."
7824 #: ../fish/guestfish-actions.pod:1411
7826 "If L</set-memsize> was not called on this handle, and if "
7827 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7828 "value for memsize."
7832 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
7833 #: ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4327
7834 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2255
7835 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6562
7837 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7841 #: ../fish/guestfish-actions.pod:1418
7843 msgstr "get-network"
7846 #: ../fish/guestfish-actions.pod:1420
7856 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2175
7857 msgid "This returns the enable network flag."
7861 #: ../fish/guestfish-actions.pod:1424
7866 #: ../fish/guestfish-actions.pod:1426
7876 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2186
7877 msgid "Return the current search path."
7881 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2188
7883 "This is always non-NULL. If it wasn't set already, then this will return "
7888 #: ../fish/guestfish-actions.pod:1433
7893 #: ../fish/guestfish-actions.pod:1435
7901 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2201
7902 msgid "This returns the process group flag."
7906 #: ../fish/guestfish-actions.pod:1439
7911 #: ../fish/guestfish-actions.pod:1441
7916 #: ../fish/guestfish-actions.pod:1443
7926 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2212
7928 "Return the process ID of the qemu subprocess. If there is no qemu "
7929 "subprocess, then this will return an error."
7933 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2215
7934 msgid "This is an internal call used for debugging and testing."
7938 #: ../fish/guestfish-actions.pod:1450
7943 #: ../fish/guestfish-actions.pod:1452
7953 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2226
7954 msgid "Return the current qemu binary."
7958 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2228
7960 "This is always non-NULL. If it wasn't set already, then this will return "
7961 "the default qemu binary name."
7965 #: ../fish/guestfish-actions.pod:1459
7966 msgid "get-recovery-proc"
7967 msgstr "get-recovery-proc"
7970 #: ../fish/guestfish-actions.pod:1461
7973 " get-recovery-proc\n"
7976 " get-recovery-proc\n"
7980 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2241
7981 msgid "Return the recovery process enabled flag."
7985 #: ../fish/guestfish-actions.pod:1465
7987 msgstr "get-selinux"
7990 #: ../fish/guestfish-actions.pod:1467
8000 #: ../fish/guestfish-actions.pod:1469
8002 "This returns the current setting of the selinux flag which is passed to the "
8003 "appliance at boot time. See L</set-selinux>."
8007 #: ../fish/guestfish-actions.pod:1475
8014 #: ../fish/guestfish-actions.pod:1477
8027 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2267
8028 msgid "This returns the number of virtual CPUs assigned to the appliance."
8032 #: ../fish/guestfish-actions.pod:1481
8037 #: ../fish/guestfish-actions.pod:1483
8047 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2278
8049 "This returns the current state as an opaque integer. This is only useful "
8050 "for printing debug and internal error messages."
8054 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434
8055 #: ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490
8056 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2281
8057 #: ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3616
8058 #: ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3704
8059 msgid "For more information on states, see L<guestfs(3)>."
8063 #: ../fish/guestfish-actions.pod:1490
8068 #: ../fish/guestfish-actions.pod:1492
8078 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2292
8079 msgid "Return the command trace flag."
8083 #: ../fish/guestfish-actions.pod:1496
8088 #: ../fish/guestfish-actions.pod:1498
8098 #: ../fish/guestfish-actions.pod:1500
8100 "Return the current umask. By default the umask is C<022> unless it has been "
8101 "set by calling L</umask>."
8105 #: ../fish/guestfish-actions.pod:1503
8107 msgstr "get-verbose"
8110 #: ../fish/guestfish-actions.pod:1505
8120 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2315
8121 msgid "This returns the verbose messages flag."
8125 #: ../fish/guestfish-actions.pod:1509
8130 #: ../fish/guestfish-actions.pod:1511
8140 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2326
8141 msgid "This gets the SELinux security context of the daemon."
8145 #: ../fish/guestfish-actions.pod:1515
8146 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8150 #: ../fish/guestfish-actions.pod:1518
8155 #: ../fish/guestfish-actions.pod:1520
8158 " getxattr path name\n"
8161 " getxattr шлях назва\n"
8165 #: ../fish/guestfish-actions.pod:1522
8167 "Get a single extended attribute from file C<path> named C<name>. This call "
8168 "follows symlinks. If you want to lookup an extended attribute for the "
8169 "symlink itself, use L</lgetxattr>."
8173 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
8175 "Normally it is better to get all extended attributes from a file in one go "
8176 "by calling L</getxattrs>. However some Linux filesystem implementations are "
8177 "buggy and do not provide a way to list out attributes. For these "
8178 "filesystems (notably ntfs-3g) you have to know the names of the extended "
8179 "attributes you want in advance and call this function."
8183 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586
8184 #: ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:3837
8186 "Extended attribute values are blobs of binary data. If there is no extended "
8187 "attribute named C<name>, this returns an error."
8191 #: ../fish/guestfish-actions.pod:1536
8192 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8193 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8196 #: ../fish/guestfish-actions.pod:1538
8201 #: ../fish/guestfish-actions.pod:1540
8211 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2372
8213 "This call lists the extended attributes of the file or directory C<path>."
8217 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2375
8219 "At the system call level, this is a combination of the L<listxattr(2)> and "
8220 "L<getxattr(2)> calls."
8224 #: ../fish/guestfish-actions.pod:1548
8225 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8226 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
8229 #: ../fish/guestfish-actions.pod:1550
8231 msgstr "glob-expand"
8234 #: ../fish/guestfish-actions.pod:1552
8237 " glob-expand pattern\n"
8240 " glob-expand шаблон\n"
8244 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2392
8246 "This command searches for all the pathnames matching C<pattern> according to "
8247 "the wildcard expansion rules used by the shell."
8251 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2396
8253 "If no paths match, then this returns an empty list (note: not an error)."
8257 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2399
8259 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8260 "GLOB_BRACE>. See that manual page for more details."
8264 #: ../fish/guestfish-actions.pod:1565
8269 #: ../fish/guestfish-actions.pod:1567
8272 " grep regex path\n"
8275 " grepi формальний_вираз шлях\n"
8279 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2416
8280 msgid "This calls the external C<grep> program and returns the matching lines."
8284 #: ../fish/guestfish-actions.pod:1575
8289 #: ../fish/guestfish-actions.pod:1577
8292 " grepi regex path\n"
8295 " grepi формальний_вираз шлях\n"
8299 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2435
8301 "This calls the external C<grep -i> program and returns the matching lines."
8305 #: ../fish/guestfish-actions.pod:1585
8306 msgid "grub-install"
8307 msgstr "grub-install"
8310 #: ../fish/guestfish-actions.pod:1587
8313 " grub-install root device\n"
8316 " grub-install кореневий пристрій\n"
8320 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2454
8322 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8323 "with the root directory being C<root>."
8327 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2463
8329 "There is currently no way in the API to install grub2, which is used by most "
8330 "modern Linux guests. It is possible to run the grub2 command from the "
8331 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8335 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2470
8337 "This uses C<grub-install> from the host. Unfortunately grub is not always "
8338 "compatible with itself, so this only works in rather narrow circumstances. "
8339 "Careful testing with each guest version is advisable."
8343 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2477
8345 "If grub-install reports the error \"No suitable drive was found in the "
8346 "generated device map.\" it may be that you need to create a C</boot/grub/"
8347 "device.map> file first that contains the mapping between grub device names "
8348 "and Linux device names. It is usually sufficient to create a file "
8353 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2484
8361 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2486
8362 msgid "replacing C</dev/vda> with the name of the installation device."
8366 #: ../fish/guestfish-actions.pod:1625
8371 #: ../fish/guestfish-actions.pod:1627
8381 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2500
8383 "This command returns up to the first 10 lines of a file as a list of strings."
8387 #: ../fish/guestfish-actions.pod:1635
8392 #: ../fish/guestfish-actions.pod:1637
8395 " head-n nrlines path\n"
8400 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2519
8402 "If the parameter C<nrlines> is a positive number, this returns the first "
8403 "C<nrlines> lines of the file C<path>."
8407 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2522
8409 "If the parameter C<nrlines> is a negative number, this returns lines from "
8410 "the file C<path>, excluding the last C<nrlines> lines."
8414 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4717
8415 #: ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:7150
8416 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8420 #: ../fish/guestfish-actions.pod:1650
8425 #: ../fish/guestfish-actions.pod:1652
8435 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2542
8437 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
8438 "readable, canonical hex dump of the file."
8442 #: ../fish/guestfish-actions.pod:1660
8447 #: ../fish/guestfish-actions.pod:1662
8450 " initrd-cat initrdpath filename\n"
8453 " initrd-cat шлях_initrd назва_файла\n"
8457 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2561
8459 "This command unpacks the file C<filename> from the initrd file called "
8460 "C<initrdpath>. The filename must be given I<without> the initial C</> "
8465 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2565
8467 "For example, in guestfish you could use the following command to examine the "
8468 "boot script (usually called C</init>) contained in a Linux initrd or "
8473 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2569
8476 " initrd-cat /boot/initrd-<version>.img init\n"
8481 #: ../fish/guestfish-actions.pod:1674
8482 msgid "See also L</initrd-list>."
8483 msgstr "Див. також L</initrd-list>."
8486 #: ../fish/guestfish-actions.pod:1679
8488 msgstr "initrd-list"
8491 #: ../fish/guestfish-actions.pod:1681
8494 " initrd-list path\n"
8497 " initrd-list шлях\n"
8501 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2588
8502 msgid "This command lists out files contained in an initrd."
8506 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2590
8508 "The files are listed without any initial C</> character. The files are "
8509 "listed in the order they appear (not necessarily alphabetical). Directory "
8510 "names are listed as separate items."
8514 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2594
8516 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8517 "initrd. We I<only> support the newer initramfs format (compressed cpio "
8522 #: ../fish/guestfish-actions.pod:1693
8523 msgid "inotify-add-watch"
8524 msgstr "inotify-add-watch"
8527 #: ../fish/guestfish-actions.pod:1695
8530 " inotify-add-watch path mask\n"
8533 " inotify-add-watch шлях маска\n"
8537 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2611
8538 msgid "Watch C<path> for the events listed in C<mask>."
8542 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2613
8544 "Note that if C<path> is a directory then events within that directory are "
8545 "watched, but this does I<not> happen recursively (in subdirectories)."
8549 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2617
8551 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8552 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8556 #: ../fish/guestfish-actions.pod:1707
8557 msgid "inotify-close"
8558 msgstr "inotify-close"
8561 #: ../fish/guestfish-actions.pod:1709
8571 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2630
8573 "This closes the inotify handle which was previously opened by inotify_init. "
8574 "It removes all watches, throws away any pending events, and deallocates all "
8579 #: ../fish/guestfish-actions.pod:1715
8580 msgid "inotify-files"
8581 msgstr "inotify-files"
8584 #: ../fish/guestfish-actions.pod:1717
8594 #: ../fish/guestfish-actions.pod:1719
8596 "This function is a helpful wrapper around L</inotify-read> which just "
8597 "returns a list of pathnames of objects that were touched. The returned "
8598 "pathnames are sorted and deduplicated."
8602 #: ../fish/guestfish-actions.pod:1723
8603 msgid "inotify-init"
8604 msgstr "inotify-init"
8607 #: ../fish/guestfish-actions.pod:1725
8610 " inotify-init maxevents\n"
8615 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2659
8617 "This command creates a new inotify handle. The inotify subsystem can be "
8618 "used to notify events which happen to objects in the guest filesystem."
8622 #: ../fish/guestfish-actions.pod:1731
8624 "C<maxevents> is the maximum number of events which will be queued up between "
8625 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
8626 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
8627 "default was 16384 events. Beyond this limit, the kernel throws away events, "
8628 "but records the fact that it threw them away by setting a flag "
8629 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8633 #: ../fish/guestfish-actions.pod:1741
8635 "Before any events are generated, you have to add some watches to the "
8636 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8637 "L</inotify-watch-all>."
8641 #: ../fish/guestfish-actions.pod:1747
8643 "Queued up events should be read periodically by calling L</inotify-read> (or "
8644 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
8645 "If you don't read the events out often enough then you risk the internal "
8646 "queue overflowing."
8650 #: ../fish/guestfish-actions.pod:1754
8652 "The handle should be closed after use by calling L</inotify-close>. This "
8653 "also removes any watches automatically."
8657 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2690
8659 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8660 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
8661 "that there is one global inotify handle per libguestfs instance."
8665 #: ../fish/guestfish-actions.pod:1763
8666 msgid "inotify-read"
8667 msgstr "inotify-read"
8670 #: ../fish/guestfish-actions.pod:1765
8680 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2704
8682 "Return the complete queue of events that have happened since the previous "
8687 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2707
8688 msgid "If no events have happened, this returns an empty list."
8692 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2709
8694 "I<Note>: In order to make sure that all events have been read, you must call "
8695 "this function repeatedly until it returns an empty list. The reason is that "
8696 "the call will read events up to the maximum appliance-to-host message size "
8697 "and leave remaining events in the queue."
8701 #: ../fish/guestfish-actions.pod:1778
8702 msgid "inotify-rm-watch"
8703 msgstr "inotify-rm-watch"
8706 #: ../fish/guestfish-actions.pod:1780
8709 " inotify-rm-watch wd\n"
8714 #: ../fish/guestfish-actions.pod:1782
8715 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
8719 #: ../fish/guestfish-actions.pod:1785
8720 msgid "inspect-get-arch"
8721 msgstr "inspect-get-arch"
8724 #: ../fish/guestfish-actions.pod:1787
8727 " inspect-get-arch root\n"
8730 " inspect-get-arch корінь\n"
8734 #: ../fish/guestfish-actions.pod:1789
8736 "This returns the architecture of the inspected operating system. The "
8737 "possible return values are listed under L</file-architecture>."
8741 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2744
8743 "If the architecture could not be determined, then the string C<unknown> is "
8748 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883
8749 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974
8750 #: ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119
8751 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154
8752 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226
8753 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252
8754 #: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272
8755 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380
8756 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2747
8757 #: ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2945
8758 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3095
8759 #: ../src/guestfs-actions.pod:3178 ../src/guestfs-actions.pod:3206
8760 #: ../src/guestfs-actions.pod:3227 ../src/guestfs-actions.pod:3280
8761 #: ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3340
8762 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3377
8763 #: ../src/guestfs-actions.pod:3393 ../src/guestfs-actions.pod:3411
8764 #: ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3554
8765 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8769 #: ../fish/guestfish-actions.pod:1798
8770 msgid "inspect-get-distro"
8771 msgstr "inspect-get-distro"
8774 #: ../fish/guestfish-actions.pod:1800
8777 " inspect-get-distro root\n"
8780 " inspect-get-distro корінь\n"
8784 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2760
8786 "This returns the distro (distribution) of the inspected operating system."
8790 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2763
8791 msgid "Currently defined distros are:"
8795 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2767
8796 msgid "\"archlinux\""
8797 msgstr "\"archlinux\""
8800 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2769
8802 msgstr "Arch Linux."
8805 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2771
8810 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2773
8815 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2775
8820 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2777
8825 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2779
8830 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2781
8835 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2783
8840 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2785
8845 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2787
8846 msgid "\"linuxmint\""
8847 msgstr "\"linuxmint\""
8850 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2789
8852 msgstr "Linux Mint."
8855 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2791
8856 msgid "\"mandriva\""
8857 msgstr "\"mandriva\""
8860 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2793
8865 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2795
8870 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2797
8875 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2799
8880 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2801
8885 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2803
8886 msgid "\"redhat-based\""
8887 msgstr "\"redhat-based\""
8890 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2805
8891 msgid "Some Red Hat-derived distro."
8892 msgstr "Дистрибутив, що походить від Red Hat."
8895 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2807
8900 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2809
8901 msgid "Red Hat Enterprise Linux."
8905 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2811
8906 msgid "\"scientificlinux\""
8910 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2813
8911 msgid "Scientific Linux."
8915 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2815
8916 msgid "\"slackware\""
8920 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2817
8925 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2819
8927 #| msgid "\"linux\""
8928 msgid "\"ttylinux\""
8932 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2821
8934 #| msgid "\"linux\""
8939 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2823
8944 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2825
8949 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953
8950 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2827
8951 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
8953 msgstr "\"unknown\""
8956 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2829
8957 msgid "The distro could not be determined."
8958 msgstr "Дистрибутив, тип якого не вдалося визначити."
8961 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209
8962 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:3303
8964 msgstr "\"windows\""
8967 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2833
8969 "Windows does not have distributions. This string is returned if the OS type "
8974 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959
8975 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2838
8976 #: ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:3317
8978 "Future versions of libguestfs may return other strings here. The caller "
8979 "should be prepared to handle any string."
8983 #: ../fish/guestfish-actions.pod:1885
8984 msgid "inspect-get-drive-mappings"
8988 #: ../fish/guestfish-actions.pod:1887
8991 " inspect-get-drive-mappings root\n"
8996 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2854
8998 "This call is useful for Windows which uses a primitive system of assigning "
8999 "drive letters (like \"C:\") to partitions. This inspection API examines the "
9000 "Windows Registry to find out how disks/partitions are mapped to drive "
9001 "letters, and returns a hash table as in the example below:"
9005 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2860
9015 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2864
9017 "Note that keys are drive letters. For Windows, the key is case insensitive "
9018 "and just contains the drive letter, without the customary colon separator "
9023 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2868
9025 "In future we may support other operating systems that also used drive "
9026 "letters, but the keys for those might not be case insensitive and might be "
9027 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
9032 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2873
9034 "For Windows guests, currently only hard drive mappings are returned. "
9035 "Removable disks (eg. DVD-ROMs) are ignored."
9039 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2876
9041 "For guests that do not use drive mappings, or if the drive mappings could "
9042 "not be determined, this returns an empty hash table."
9046 #: ../fish/guestfish-actions.pod:1914
9048 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9049 "get-mountpoints>, L</inspect-get-filesystems>."
9053 #: ../fish/guestfish-actions.pod:1918
9054 msgid "inspect-get-filesystems"
9055 msgstr "inspect-get-filesystems"
9058 #: ../fish/guestfish-actions.pod:1920
9061 " inspect-get-filesystems root\n"
9064 " inspect-get-filesystems корінь\n"
9068 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2897
9070 "This returns a list of all the filesystems that we think are associated with "
9071 "this operating system. This includes the root filesystem, other ordinary "
9072 "filesystems, and non-mounted devices like swap partitions."
9076 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2902
9078 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9079 "to be shared between operating systems."
9083 #: ../fish/guestfish-actions.pod:1930
9085 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9090 #: ../fish/guestfish-actions.pod:1933
9091 msgid "inspect-get-format"
9092 msgstr "inspect-get-format"
9095 #: ../fish/guestfish-actions.pod:1935
9098 " inspect-get-format root\n"
9101 " inspect-get-format корінь\n"
9105 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2920
9107 "This returns the format of the inspected operating system. You can use it "
9108 "to detect install images, live CDs and similar."
9112 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2923
9113 msgid "Currently defined formats are:"
9117 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2927
9118 msgid "\"installed\""
9119 msgstr "\"installed\""
9122 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2929
9123 msgid "This is an installed operating system."
9124 msgstr "Це встановлена операційна система."
9127 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2931
9128 msgid "\"installer\""
9132 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2933
9134 "The disk image being inspected is not an installed operating system, but a "
9135 "I<bootable> install disk, live CD, or similar."
9139 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2938
9140 msgid "The format of this disk image is not known."
9144 #: ../fish/guestfish-actions.pod:1964
9145 msgid "inspect-get-hostname"
9146 msgstr "inspect-get-hostname"
9149 #: ../fish/guestfish-actions.pod:1966
9152 " inspect-get-hostname root\n"
9155 " inspect-get-hostname корінь\n"
9159 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2958
9161 "This function returns the hostname of the operating system as found by "
9162 "inspection of the guest's configuration files."
9166 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2961
9168 "If the hostname could not be determined, then the string C<unknown> is "
9173 #: ../fish/guestfish-actions.pod:1976
9174 msgid "inspect-get-icon"
9178 #: ../fish/guestfish-actions.pod:1978
9181 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9186 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2987
9188 "This function returns an icon corresponding to the inspected operating "
9189 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
9190 "to PNG if necessary)."
9194 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2991
9196 "If it was not possible to get an icon this function returns a zero-length "
9197 "(non-NULL) buffer. I<Callers must check for this case>."
9201 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2994
9203 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9204 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9205 "this file will be returned. You can disable favicons by passing the "
9206 "optional C<favicon> boolean as false (default is true)."
9210 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3000
9212 "If finding the favicon fails, then we look in other places in the guest for "
9217 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3003
9219 "If the optional C<highquality> boolean is true then only high quality icons "
9220 "are returned, which means only icons of high resolution with an alpha "
9221 "channel. The default (false) is to return any icon we can, even if it is of "
9222 "substandard quality."
9226 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3014
9228 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9229 "before you call this, since it needs to read information from the guest "
9230 "filesystem during the call."
9234 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3020
9236 "B<Security:> The icon data comes from the untrusted guest, and should be "
9237 "treated with caution. PNG files have been known to contain exploits. "
9238 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9239 "trying to process or display the icon."
9243 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3028
9245 "The PNG image returned can be any size. It might not be square. Libguestfs "
9246 "tries to return the largest, highest quality icon available. The "
9247 "application must scale the icon to the required size."
9251 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3035
9253 "Extracting icons from Windows guests requires the external C<wrestool> "
9254 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9255 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
9256 "installed separately."
9260 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3042
9262 "Operating system icons are usually trademarks. Seek legal advice before "
9263 "using trademarks in applications."
9267 #: ../fish/guestfish-actions.pod:2042
9268 msgid "inspect-get-major-version"
9269 msgstr "inspect-get-major-version"
9272 #: ../fish/guestfish-actions.pod:2044
9275 " inspect-get-major-version root\n"
9278 " inspect-get-major-version корінь\n"
9282 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3083
9284 "This returns the major version number of the inspected operating system."
9288 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3086
9290 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9291 "popular public names used by the operating system. Notably the operating "
9292 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9293 "1). You can find out the real versions corresponding to releases of Windows "
9294 "by consulting Wikipedia or MSDN."
9298 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067
9299 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3110
9300 msgid "If the version could not be determined, then C<0> is returned."
9304 #: ../fish/guestfish-actions.pod:2060
9305 msgid "inspect-get-minor-version"
9306 msgstr "inspect-get-minor-version"
9309 #: ../fish/guestfish-actions.pod:2062
9312 " inspect-get-minor-version root\n"
9315 " inspect-get-minor-version корінь\n"
9319 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3107
9321 "This returns the minor version number of the inspected operating system."
9325 #: ../fish/guestfish-actions.pod:2069
9327 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9328 "get-major-version>."
9332 #: ../fish/guestfish-actions.pod:2072
9333 msgid "inspect-get-mountpoints"
9334 msgstr "inspect-get-mountpoints"
9337 #: ../fish/guestfish-actions.pod:2074
9340 " inspect-get-mountpoints root\n"
9343 " inspect-get-mountpoints корінь\n"
9347 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3125
9349 "This returns a hash of where we think the filesystems associated with this "
9350 "operating system should be mounted. Callers should note that this is at "
9351 "best an educated guess made by reading configuration files such as C</etc/"
9352 "fstab>. I<In particular note> that this may return filesystems which are "
9353 "non-existent or not mountable and callers should be prepared to handle or "
9354 "ignore failures if they try to mount them."
9358 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3134
9360 "Each element in the returned hashtable has a key which is the path of the "
9361 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9362 "mounted there (eg. C</dev/sda1>)."
9366 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3139
9368 "Non-mounted devices such as swap devices are I<not> returned in this list."
9372 #: ../fish/guestfish-actions.pod:2093
9374 "For operating systems like Windows which still use drive letters, this call "
9375 "will only return an entry for the first drive \"mounted on\" C</>. For "
9376 "information about the mapping of drive letters to partitions, see L</inspect-"
9377 "get-drive-mappings>."
9381 #: ../fish/guestfish-actions.pod:2099
9383 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9388 #: ../fish/guestfish-actions.pod:2102
9389 msgid "inspect-get-package-format"
9390 msgstr "inspect-get-package-format"
9393 #: ../fish/guestfish-actions.pod:2104
9396 " inspect-get-package-format root\n"
9399 " inspect-get-package-format корінь\n"
9403 #: ../fish/guestfish-actions.pod:2106
9405 "This function and L</inspect-get-package-management> return the package "
9406 "format and package management tool used by the inspected operating system. "
9407 "For example for Fedora these functions would return C<rpm> (package format) "
9408 "and C<yum> (package management)."
9412 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3171
9414 "This returns the string C<unknown> if we could not determine the package "
9415 "format I<or> if the operating system does not have a real packaging system "
9420 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3175
9422 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>. "
9423 "Future versions of libguestfs may return other strings."
9427 #: ../fish/guestfish-actions.pod:2121
9428 msgid "inspect-get-package-management"
9429 msgstr "inspect-get-package-management"
9432 #: ../fish/guestfish-actions.pod:2123
9435 " inspect-get-package-management root\n"
9438 " inspect-get-package-management корінь\n"
9442 #: ../fish/guestfish-actions.pod:2125
9444 "L</inspect-get-package-format> and this function return the package format "
9445 "and package management tool used by the inspected operating system. For "
9446 "example for Fedora these functions would return C<rpm> (package format) and "
9447 "C<yum> (package management)."
9451 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3197
9453 "This returns the string C<unknown> if we could not determine the package "
9454 "management tool I<or> if the operating system does not have a real packaging "
9455 "system (eg. Windows)."
9459 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3201
9461 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9462 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>. Future versions of "
9463 "libguestfs may return other strings."
9467 #: ../fish/guestfish-actions.pod:2142
9468 msgid "inspect-get-product-name"
9469 msgstr "inspect-get-product-name"
9472 #: ../fish/guestfish-actions.pod:2144
9475 " inspect-get-product-name root\n"
9478 " inspect-get-product-name корінь\n"
9482 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3219
9484 "This returns the product name of the inspected operating system. The "
9485 "product name is generally some freeform string which can be displayed to the "
9486 "user, but should not be parsed by programs."
9490 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3224
9492 "If the product name could not be determined, then the string C<unknown> is "
9497 #: ../fish/guestfish-actions.pod:2156
9498 msgid "inspect-get-product-variant"
9502 #: ../fish/guestfish-actions.pod:2158
9505 " inspect-get-product-variant root\n"
9510 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3240
9511 msgid "This returns the product variant of the inspected operating system."
9515 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3243
9517 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9518 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9519 "is usually a string such as C<Client> or C<Server> (other values are "
9520 "possible). This can be used to distinguish consumer and enterprise versions "
9521 "of Windows that have the same version number (for example, Windows 7 and "
9522 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9523 "the latter is C<Server>)."
9527 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3252
9529 "For enterprise Linux guests, in future we intend this to return the product "
9530 "variant such as C<Desktop>, C<Server> and so on. But this is not "
9531 "implemented at present."
9535 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3256
9537 "If the product variant could not be determined, then the string C<unknown> "
9542 #: ../fish/guestfish-actions.pod:2179
9544 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9545 "get-product-name>, L</inspect-get-major-version>."
9549 #: ../fish/guestfish-actions.pod:2183
9550 msgid "inspect-get-roots"
9551 msgstr "inspect-get-roots"
9554 #: ../fish/guestfish-actions.pod:2185
9557 " inspect-get-roots\n"
9560 " inspect-get-roots\n"
9564 #: ../fish/guestfish-actions.pod:2187
9566 "This function is a convenient way to get the list of root devices, as "
9567 "returned from a previous call to L</inspect-os>, but without redoing the "
9568 "whole inspection process."
9572 #: ../fish/guestfish-actions.pod:2191
9574 "This returns an empty list if either no root devices were found or the "
9575 "caller has not called L</inspect-os>."
9579 #: ../fish/guestfish-actions.pod:2196
9580 msgid "inspect-get-type"
9581 msgstr "inspect-get-type"
9584 #: ../fish/guestfish-actions.pod:2198
9587 " inspect-get-type root\n"
9590 " inspect-get-type корінь\n"
9594 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3294
9596 "This returns the type of the inspected operating system. Currently defined "
9601 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3299
9606 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3301
9607 msgid "Any Linux-based operating system."
9611 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3305
9612 msgid "Any Microsoft Windows operating system."
9616 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3307
9618 msgstr "\"freebsd\""
9621 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3309
9626 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3313
9627 msgid "The operating system type could not be determined."
9631 #: ../fish/guestfish-actions.pod:2228
9632 msgid "inspect-get-windows-current-control-set"
9636 #: ../fish/guestfish-actions.pod:2230
9639 " inspect-get-windows-current-control-set root\n"
9644 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3333
9646 "This returns the Windows CurrentControlSet of the inspected guest. The "
9647 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9651 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3336
9653 "This call assumes that the guest is Windows and that the Registry could be "
9654 "examined by inspection. If this is not the case then an error is returned."
9658 #: ../fish/guestfish-actions.pod:2241
9659 msgid "inspect-get-windows-systemroot"
9660 msgstr "inspect-get-windows-systemroot"
9663 #: ../fish/guestfish-actions.pod:2243
9666 " inspect-get-windows-systemroot root\n"
9669 " inspect-get-windows-systemroot корінь\n"
9673 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3353
9675 "This returns the Windows systemroot of the inspected guest. The systemroot "
9676 "is a directory path such as C</WINDOWS>."
9680 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3356
9682 "This call assumes that the guest is Windows and that the systemroot could be "
9683 "determined by inspection. If this is not the case then an error is returned."
9687 #: ../fish/guestfish-actions.pod:2254
9688 msgid "inspect-is-live"
9689 msgstr "inspect-is-live"
9692 #: ../fish/guestfish-actions.pod:2256
9695 " inspect-is-live root\n"
9698 " inspect-is-live корінь\n"
9702 #: ../fish/guestfish-actions.pod:2258
9704 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9705 "then this returns true if a live image was detected on the disk."
9709 #: ../fish/guestfish-actions.pod:2264
9710 msgid "inspect-is-multipart"
9711 msgstr "inspect-is-multipart"
9714 #: ../fish/guestfish-actions.pod:2266
9717 " inspect-is-multipart root\n"
9720 " inspect-is-multipart корінь\n"
9724 #: ../fish/guestfish-actions.pod:2268
9726 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9727 "then this returns true if the disk is part of a set."
9731 #: ../fish/guestfish-actions.pod:2274
9732 msgid "inspect-is-netinst"
9733 msgstr "inspect-is-netinst"
9736 #: ../fish/guestfish-actions.pod:2276
9739 " inspect-is-netinst root\n"
9742 " inspect-is-netinst корінь\n"
9746 #: ../fish/guestfish-actions.pod:2278
9748 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9749 "then this returns true if the disk is a network installer, ie. not a self-"
9750 "contained install CD but one which is likely to require network access to "
9751 "complete the install."
9755 #: ../fish/guestfish-actions.pod:2286
9756 msgid "inspect-list-applications"
9757 msgstr "inspect-list-applications"
9760 #: ../fish/guestfish-actions.pod:2288
9763 " inspect-list-applications root\n"
9766 " inspect-list-applications кореневий_каталог\n"
9770 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3423
9771 msgid "Return the list of applications installed in the operating system."
9775 #: ../fish/guestfish-actions.pod:2292
9777 "I<Note:> This call works differently from other parts of the inspection "
9778 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9779 "then mount up the disks, before calling this. Listing applications is a "
9780 "significantly more difficult operation which requires access to the full "
9781 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
9782 "are just returning data cached in the libguestfs handle, this call actually "
9783 "reads parts of the mounted filesystems during the call."
9787 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3435
9789 "This returns an empty list if the inspection code was not able to determine "
9790 "the list of applications."
9794 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3438
9795 msgid "The application structure contains the following fields:"
9799 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3442
9801 msgstr "C<app_name>"
9804 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3444
9806 "The name of the application. For Red Hat-derived and Debian-derived Linux "
9807 "guests, this is the package name."
9811 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3447
9812 msgid "C<app_display_name>"
9813 msgstr "C<app_display_name>"
9816 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3449
9818 "The display name of the application, sometimes localized to the install "
9819 "language of the guest operating system."
9823 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3452
9825 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
9826 "to display something can use C<app_name> instead."
9830 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3455
9831 msgid "C<app_epoch>"
9832 msgstr "C<app_epoch>"
9835 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3457
9837 "For package managers which use epochs, this contains the epoch of the "
9838 "package (an integer). If unavailable, this is returned as C<0>."
9842 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3460
9843 msgid "C<app_version>"
9844 msgstr "C<app_version>"
9847 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3462
9849 "The version string of the application or package. If unavailable this is "
9850 "returned as an empty string C<\"\">."
9854 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3465
9855 msgid "C<app_release>"
9856 msgstr "C<app_release>"
9859 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3467
9861 "The release string of the application or package, for package managers that "
9862 "use this. If unavailable this is returned as an empty string C<\"\">."
9866 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3471
9867 msgid "C<app_install_path>"
9868 msgstr "C<app_install_path>"
9871 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3473
9873 "The installation path of the application (on operating systems such as "
9874 "Windows which use installation paths). This path is in the format used by "
9875 "the guest operating system, it is not a libguestfs path."
9879 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3478
9880 msgid "If unavailable this is returned as an empty string C<\"\">."
9884 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3480
9885 msgid "C<app_trans_path>"
9886 msgstr "C<app_trans_path>"
9889 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3482
9891 "The install path translated into a libguestfs path. If unavailable this is "
9892 "returned as an empty string C<\"\">."
9896 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3485
9897 msgid "C<app_publisher>"
9898 msgstr "C<app_publisher>"
9901 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3487
9903 "The name of the publisher of the application, for package managers that use "
9904 "this. If unavailable this is returned as an empty string C<\"\">."
9908 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3491
9913 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3493
9915 "The URL (eg. upstream URL) of the application. If unavailable this is "
9916 "returned as an empty string C<\"\">."
9920 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3496
9921 msgid "C<app_source_package>"
9922 msgstr "C<app_source_package>"
9925 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3498
9927 "For packaging systems which support this, the name of the source package. "
9928 "If unavailable this is returned as an empty string C<\"\">."
9932 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3501
9933 msgid "C<app_summary>"
9934 msgstr "C<app_summary>"
9937 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3503
9939 "A short (usually one line) description of the application or package. If "
9940 "unavailable this is returned as an empty string C<\"\">."
9944 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3506
9945 msgid "C<app_description>"
9946 msgstr "C<app_description>"
9949 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3508
9951 "A longer description of the application or package. If unavailable this is "
9952 "returned as an empty string C<\"\">."
9956 #: ../fish/guestfish-actions.pod:2382
9961 #: ../fish/guestfish-actions.pod:2384
9971 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3526
9973 "This function uses other libguestfs functions and certain heuristics to "
9974 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9975 "for operating systems."
9979 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3530
9980 msgid "The list returned is empty if no operating systems were found."
9984 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3532
9986 "If one operating system was found, then this returns a list with a single "
9987 "element, which is the name of the root filesystem of this operating system. "
9988 "It is also possible for this function to return a list containing more than "
9989 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9990 "element being the root filesystem of one of the operating systems."
9994 #: ../fish/guestfish-actions.pod:2399
9996 "You can pass the root string(s) returned to other L</inspect-get-*> "
9997 "functions in order to query further information about each operating system, "
9998 "such as the name and version."
10002 #: ../fish/guestfish-actions.pod:2404
10004 "This function uses other libguestfs features such as L</mount-ro> and L</"
10005 "umount-all> in order to mount and unmount filesystems and look at the "
10006 "contents. This should be called with no disks currently mounted. The "
10007 "function may also use Augeas, so any existing Augeas handle will be closed."
10011 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3550
10013 "This function cannot decrypt encrypted disks. The caller must do that first "
10014 "(supplying the necessary keys) if the disk is encrypted."
10018 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614
10019 #: ../fish/guestfish-actions.pod:2673
10020 msgid "See also L</list-filesystems>."
10021 msgstr "Див. також L</list-filesystems>."
10024 #: ../fish/guestfish-actions.pod:2418
10025 msgid "is-blockdev"
10026 msgstr "is-blockdev"
10029 #: ../fish/guestfish-actions.pod:2420
10032 " is-blockdev path\n"
10035 " is-blockdev шлях\n"
10039 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3570
10041 "This returns C<true> if and only if there is a block device with the given "
10046 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443
10047 #: ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471
10048 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515
10049 #: ../fish/guestfish-actions.pod:2524
10050 msgid "See also L</stat>."
10051 msgstr "Див. також L</stat>."
10054 #: ../fish/guestfish-actions.pod:2427
10059 #: ../fish/guestfish-actions.pod:2429
10069 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3584
10071 "This returns true iff this handle is busy processing a command (in the "
10076 #: ../fish/guestfish-actions.pod:2436
10078 msgstr "is-chardev"
10081 #: ../fish/guestfish-actions.pod:2438
10084 " is-chardev path\n"
10087 " is-chardev шлях\n"
10091 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3599
10093 "This returns C<true> if and only if there is a character device with the "
10094 "given C<path> name."
10098 #: ../fish/guestfish-actions.pod:2445
10103 #: ../fish/guestfish-actions.pod:2447
10113 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3613
10115 "This returns true iff this handle is being configured (in the C<CONFIG> "
10120 #: ../fish/guestfish-actions.pod:2454
10125 #: ../fish/guestfish-actions.pod:2456
10135 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3628
10137 "This returns C<true> if and only if there is a directory with the given "
10138 "C<path> name. Note that it returns false for other objects like files."
10142 #: ../fish/guestfish-actions.pod:2464
10147 #: ../fish/guestfish-actions.pod:2466
10157 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3644
10159 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
10160 "given C<path> name."
10164 #: ../fish/guestfish-actions.pod:2473
10169 #: ../fish/guestfish-actions.pod:2475
10179 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3659
10181 "This returns C<true> if and only if there is a regular file with the given "
10182 "C<path> name. Note that it returns false for other objects like directories."
10186 #: ../fish/guestfish-actions.pod:2483
10187 msgid "is-launching"
10188 msgstr "is-launching"
10191 #: ../fish/guestfish-actions.pod:2485
10201 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3674
10203 "This returns true iff this handle is launching the subprocess (in the "
10204 "C<LAUNCHING> state)."
10208 #: ../fish/guestfish-actions.pod:2492
10213 #: ../fish/guestfish-actions.pod:2494
10219 " is-lv пристрій\n"
10223 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3689
10225 "This command tests whether C<device> is a logical volume, and returns true "
10226 "iff this is the case."
10230 #: ../fish/guestfish-actions.pod:2499
10235 #: ../fish/guestfish-actions.pod:2501
10245 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3701
10247 "This returns true iff this handle is ready to accept commands (in the "
10252 #: ../fish/guestfish-actions.pod:2508
10257 #: ../fish/guestfish-actions.pod:2510
10260 " is-socket path\n"
10263 " is-socket шлях\n"
10267 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3716
10269 "This returns C<true> if and only if there is a Unix domain socket with the "
10270 "given C<path> name."
10274 #: ../fish/guestfish-actions.pod:2517
10276 msgstr "is-symlink"
10279 #: ../fish/guestfish-actions.pod:2519
10282 " is-symlink path\n"
10285 " is-symlink шлях\n"
10289 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3731
10291 "This returns C<true> if and only if there is a symbolic link with the given "
10296 #: ../fish/guestfish-actions.pod:2526
10301 #: ../fish/guestfish-actions.pod:2528
10309 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3746
10311 "This returns true iff the file exists and the file is empty or it contains "
10316 #: ../fish/guestfish-actions.pod:2533
10317 msgid "is-zero-device"
10321 #: ../fish/guestfish-actions.pod:2535
10324 " is-zero-device device\n"
10329 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3759
10330 msgid "This returns true iff the device exists and contains all zero bytes."
10334 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3761
10335 msgid "Note that for large devices this can take a long time to run."
10339 #: ../fish/guestfish-actions.pod:2541
10340 msgid "kill-subprocess"
10341 msgstr "kill-subprocess"
10344 #: ../fish/guestfish-actions.pod:2543
10347 " kill-subprocess\n"
10350 " kill-subprocess\n"
10354 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3772
10355 msgid "This kills the qemu subprocess. You should never need to call this."
10359 #: ../fish/guestfish-actions.pod:2547
10364 #: ../fish/guestfish-actions.pod:2549
10369 #: ../fish/guestfish-actions.pod:2551
10379 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3783
10381 "Internally libguestfs is implemented by running a virtual machine using "
10386 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3786
10388 "You should call this after configuring the handle (eg. adding drives) but "
10389 "before performing any actions."
10393 #: ../fish/guestfish-actions.pod:2559
10398 #: ../fish/guestfish-actions.pod:2561
10401 " lchown owner group path\n"
10404 " lchown власник група шлях\n"
10408 #: ../fish/guestfish-actions.pod:2563
10410 "Change the file owner to C<owner> and group to C<group>. This is like L</"
10411 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10416 #: ../fish/guestfish-actions.pod:2571
10421 #: ../fish/guestfish-actions.pod:2573
10424 " lgetxattr path name\n"
10427 " lgetxattr шлях назва\n"
10431 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3826
10433 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
10434 "is a symlink, then this call returns an extended attribute from the symlink."
10438 #: ../fish/guestfish-actions.pod:2589
10439 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10440 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10443 #: ../fish/guestfish-actions.pod:2591
10445 msgstr "lgetxattrs"
10448 #: ../fish/guestfish-actions.pod:2593
10451 " lgetxattrs path\n"
10454 " lgetxattrs шлях\n"
10458 #: ../fish/guestfish-actions.pod:2595
10460 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10461 "it returns the extended attributes of the link itself."
10465 #: ../fish/guestfish-actions.pod:2599
10470 #: ../fish/guestfish-actions.pod:2601
10478 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3869
10480 "List all 9p filesystems attached to the guest. A list of mount tags is "
10485 #: ../fish/guestfish-actions.pod:2606
10486 msgid "list-devices"
10487 msgstr "list-devices"
10490 #: ../fish/guestfish-actions.pod:2608
10500 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3883
10501 msgid "List all the block devices."
10505 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3885
10506 msgid "The full block device names are returned, eg. C</dev/sda>."
10510 #: ../fish/guestfish-actions.pod:2616
10511 msgid "list-dm-devices"
10515 #: ../fish/guestfish-actions.pod:2618
10518 " list-dm-devices\n"
10523 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3900
10524 msgid "List all device mapper devices."
10528 #: ../fish/guestfish-actions.pod:2622
10530 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10531 "previous call to L</luks-open>."
10535 #: ../fish/guestfish-actions.pod:2625
10537 "Device mapper devices which correspond to logical volumes are I<not> "
10538 "returned in this list. Call L</lvs> if you want to list logical volumes."
10542 #: ../fish/guestfish-actions.pod:2629
10543 msgid "list-filesystems"
10544 msgstr "list-filesystems"
10547 #: ../fish/guestfish-actions.pod:2631
10550 " list-filesystems\n"
10553 " list-filesystems\n"
10557 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3920
10559 "This inspection command looks for filesystems on partitions, block devices "
10560 "and logical volumes, returning a list of devices containing filesystems and "
10565 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3924
10567 "The return value is a hash, where the keys are the devices containing "
10568 "filesystems, and the values are the filesystem types. For example:"
10572 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3928
10575 " \"/dev/sda1\" => \"ntfs\"\n"
10576 " \"/dev/sda2\" => \"ext2\"\n"
10577 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10578 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10583 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3933
10585 "The value can have the special value \"unknown\", meaning the content of the "
10586 "device is undetermined or empty. \"swap\" means a Linux swap partition."
10590 #: ../fish/guestfish-actions.pod:2650
10592 "This command runs other libguestfs commands, which might include L</mount> "
10593 "and L</umount>, and therefore you should use this soon after launch and only "
10594 "when nothing is mounted."
10598 #: ../fish/guestfish-actions.pod:2654
10600 "Not all of the filesystems returned will be mountable. In particular, swap "
10601 "partitions are returned in the list. Also this command does not check that "
10602 "each filesystem found is valid and mountable, and some filesystems might be "
10603 "mountable but require special options. Filesystems may not all belong to a "
10604 "single logical operating system (use L</inspect-os> to look for OSes)."
10608 #: ../fish/guestfish-actions.pod:2662
10609 msgid "list-partitions"
10610 msgstr "list-partitions"
10613 #: ../fish/guestfish-actions.pod:2664
10616 " list-partitions\n"
10619 " list-partitions\n"
10623 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3962
10624 msgid "List all the partitions detected on all block devices."
10628 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3964
10629 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10633 #: ../fish/guestfish-actions.pod:2670
10635 "This does not return logical volumes. For that you will need to call L</"
10640 #: ../fish/guestfish-actions.pod:2675
10645 #: ../fish/guestfish-actions.pod:2677
10655 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3983
10657 "List the files in C<directory> (relative to the root directory, there is no "
10658 "cwd) in the format of 'ls -la'."
10662 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3986
10664 "This command is mostly useful for interactive sessions. It is I<not> "
10665 "intended that you try to parse the output string."
10669 #: ../fish/guestfish-actions.pod:2685
10674 #: ../fish/guestfish-actions.pod:2687
10677 " ln target linkname\n"
10680 " ln призначення назва_посилання\n"
10684 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4001
10685 msgid "This command creates a hard link using the C<ln> command."
10689 #: ../fish/guestfish-actions.pod:2691
10694 #: ../fish/guestfish-actions.pod:2693
10697 " ln-f target linkname\n"
10700 " ln-f призначення назва_посилання\n"
10704 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4014
10706 "This command creates a hard link using the C<ln -f> command. The I<-f> "
10707 "option removes the link (C<linkname>) if it exists already."
10711 #: ../fish/guestfish-actions.pod:2698
10716 #: ../fish/guestfish-actions.pod:2700
10719 " ln-s target linkname\n"
10722 " ln-s призначення назва_посилання\n"
10726 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4028
10727 msgid "This command creates a symbolic link using the C<ln -s> command."
10731 #: ../fish/guestfish-actions.pod:2704
10736 #: ../fish/guestfish-actions.pod:2706
10739 " ln-sf target linkname\n"
10742 " ln-sf призначення назва_посилання\n"
10746 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4041
10748 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10749 "option removes the link (C<linkname>) if it exists already."
10753 #: ../fish/guestfish-actions.pod:2711
10754 msgid "lremovexattr"
10755 msgstr "lremovexattr"
10758 #: ../fish/guestfish-actions.pod:2713
10761 " lremovexattr xattr path\n"
10766 #: ../fish/guestfish-actions.pod:2715
10768 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10769 "it removes an extended attribute of the link itself."
10773 #: ../fish/guestfish-actions.pod:2719
10778 #: ../fish/guestfish-actions.pod:2721
10788 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4069
10790 "List the files in C<directory> (relative to the root directory, there is no "
10791 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
10795 #: ../fish/guestfish-actions.pod:2727
10797 "This command is mostly useful for interactive sessions. Programs should "
10798 "probably use L</readdir> instead."
10802 #: ../fish/guestfish-actions.pod:2730
10807 #: ../fish/guestfish-actions.pod:2732
10810 " lsetxattr xattr val vallen path\n"
10815 #: ../fish/guestfish-actions.pod:2734
10817 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10818 "sets an extended attribute of the link itself."
10822 #: ../fish/guestfish-actions.pod:2738
10827 #: ../fish/guestfish-actions.pod:2740
10837 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4552
10838 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:6890
10839 msgid "Returns file information for the given C<path>."
10843 #: ../fish/guestfish-actions.pod:2744
10845 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10846 "the link is stat-ed, not the file it refers to."
10850 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4111
10851 msgid "This is the same as the C<lstat(2)> system call."
10855 #: ../fish/guestfish-actions.pod:2750
10860 #: ../fish/guestfish-actions.pod:2752
10863 " lstatlist path 'names ...'\n"
10868 #: ../fish/guestfish-actions.pod:2754
10870 "This call allows you to perform the L</lstat> operation on multiple files, "
10871 "where all files are in the directory C<path>. C<names> is the list of files "
10872 "from this directory."
10876 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4130
10878 "On return you get a list of stat structs, with a one-to-one correspondence "
10879 "to the C<names> list. If any name did not exist or could not be lstat'd, "
10880 "then the C<ino> field of that structure is set to C<-1>."
10884 #: ../fish/guestfish-actions.pod:2763
10886 "This call is intended for programs that want to efficiently list a directory "
10887 "contents without making many round-trips. See also L</lxattrlist> for a "
10888 "similarly efficient call for getting extended attributes. Very long "
10889 "directory listings might cause the protocol message size to be exceeded, "
10890 "causing this call to fail. The caller must split up such requests into "
10891 "smaller groups of names."
10895 #: ../fish/guestfish-actions.pod:2771
10896 msgid "luks-add-key"
10897 msgstr "luks-add-key"
10900 #: ../fish/guestfish-actions.pod:2773
10903 " luks-add-key device keyslot\n"
10908 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4158
10910 "This command adds a new key on LUKS device C<device>. C<key> is any "
10911 "existing key, and is used to access the device. C<newkey> is the new key to "
10912 "add. C<keyslot> is the key slot that will be replaced."
10916 #: ../fish/guestfish-actions.pod:2780
10918 "Note that if C<keyslot> already contains a key, then this command will "
10919 "fail. You have to use L</luks-kill-slot> first to remove that key."
10923 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806
10924 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833
10925 #: ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
10927 "This command has one or more key or passphrase parameters. Guestfish will "
10928 "prompt for these separately."
10932 #: ../fish/guestfish-actions.pod:2787
10934 msgstr "luks-close"
10937 #: ../fish/guestfish-actions.pod:2789
10940 " luks-close device\n"
10943 " luks-close пристрій\n"
10947 #: ../fish/guestfish-actions.pod:2791
10949 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10950 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
10951 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10956 #: ../fish/guestfish-actions.pod:2797
10957 msgid "luks-format"
10958 msgstr "luks-format"
10961 #: ../fish/guestfish-actions.pod:2799
10964 " luks-format device keyslot\n"
10969 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4199
10971 "This command erases existing data on C<device> and formats the device as a "
10972 "LUKS encrypted device. C<key> is the initial key, which is added to key "
10973 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
10977 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822
10978 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3560
10979 #: ../fish/guestfish-actions.pod:4086 ../fish/guestfish-actions.pod:4423
10980 #: ../fish/guestfish-actions.pod:4446 ../fish/guestfish-actions.pod:4468
10981 #: ../fish/guestfish-actions.pod:5214 ../src/guestfs-actions.pod:4206
10982 #: ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4372
10983 #: ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:6253
10984 #: ../src/guestfs-actions.pod:6704 ../src/guestfs-actions.pod:6734
10985 #: ../src/guestfs-actions.pod:6767 ../src/guestfs-actions.pod:7966
10987 "B<This command is dangerous. Without careful use you can easily destroy all "
10992 #: ../fish/guestfish-actions.pod:2812
10993 msgid "luks-format-cipher"
10994 msgstr "luks-format-cipher"
10997 #: ../fish/guestfish-actions.pod:2814
11000 " luks-format-cipher device keyslot cipher\n"
11005 #: ../fish/guestfish-actions.pod:2816
11007 "This command is the same as L</luks-format> but it also allows you to set "
11008 "the C<cipher> used."
11012 #: ../fish/guestfish-actions.pod:2825
11013 msgid "luks-kill-slot"
11014 msgstr "luks-kill-slot"
11017 #: ../fish/guestfish-actions.pod:2827
11020 " luks-kill-slot device keyslot\n"
11025 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4246
11027 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11028 "device C<device>. C<key> must be one of the I<other> keys."
11032 #: ../fish/guestfish-actions.pod:2836
11037 #: ../fish/guestfish-actions.pod:2838
11040 " luks-open device mapname\n"
11045 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4266
11047 "This command opens a block device which has been encrypted according to the "
11048 "Linux Unified Key Setup (LUKS) standard."
11052 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4269
11053 msgid "C<device> is the encrypted block device or partition."
11057 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4271
11059 "The caller must supply one of the keys associated with the LUKS block "
11060 "device, in the C<key> parameter."
11064 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4274
11066 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
11067 "writes to this block device are decrypted from and encrypted to the "
11068 "underlying C<device> respectively."
11072 #: ../fish/guestfish-actions.pod:2852
11074 "If this block device contains LVM volume groups, then calling L</vgscan> "
11075 "followed by L</vg-activate-all> will make them visible."
11079 #: ../fish/guestfish-actions.pod:2856
11080 msgid "Use L</list-dm-devices> to list all device mapper devices."
11084 #: ../fish/guestfish-actions.pod:2862
11085 msgid "luks-open-ro"
11086 msgstr "luks-open-ro"
11089 #: ../fish/guestfish-actions.pod:2864
11092 " luks-open-ro device mapname\n"
11097 #: ../fish/guestfish-actions.pod:2866
11099 "This is the same as L</luks-open> except that a read-only mapping is created."
11103 #: ../fish/guestfish-actions.pod:2872
11108 #: ../fish/guestfish-actions.pod:2874
11111 " lvcreate logvol volgroup mbytes\n"
11116 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4320
11118 "This creates an LVM logical volume called C<logvol> on the volume group "
11119 "C<volgroup>, with C<size> megabytes."
11123 #: ../fish/guestfish-actions.pod:2879
11124 msgid "lvm-canonical-lv-name"
11125 msgstr "lvm-canonical-lv-name"
11128 #: ../fish/guestfish-actions.pod:2881
11131 " lvm-canonical-lv-name lvname\n"
11136 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4333
11138 "This converts alternative naming schemes for LVs that you might find to the "
11139 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
11144 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4337
11146 "This command returns an error if the C<lvname> parameter does not refer to a "
11151 #: ../fish/guestfish-actions.pod:2890
11152 msgid "See also L</is-lv>."
11153 msgstr "Див. також L</is-lv>."
11156 #: ../fish/guestfish-actions.pod:2892
11157 msgid "lvm-clear-filter"
11158 msgstr "lvm-clear-filter"
11161 #: ../fish/guestfish-actions.pod:2894
11164 " lvm-clear-filter\n"
11167 " lvm-clear-filter\n"
11171 #: ../fish/guestfish-actions.pod:2896
11173 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
11178 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930
11179 #: ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4397
11181 "This command also clears the LVM cache and performs a volume group scan."
11185 #: ../fish/guestfish-actions.pod:2902
11186 msgid "lvm-remove-all"
11187 msgstr "lvm-remove-all"
11190 #: ../fish/guestfish-actions.pod:2904
11193 " lvm-remove-all\n"
11196 " lvm-remove-all\n"
11200 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4367
11202 "This command removes all LVM logical volumes, volume groups and physical "
11207 #: ../fish/guestfish-actions.pod:2912
11208 msgid "lvm-set-filter"
11209 msgstr "lvm-set-filter"
11212 #: ../fish/guestfish-actions.pod:2914
11215 " lvm-set-filter 'devices ...'\n"
11218 " lvm-set-filter 'пристрої...'\n"
11222 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4383
11224 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11225 "block devices in the list C<devices>, and will ignore all other attached "
11230 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4387
11232 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11233 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
11234 "there are two types of duplication possible: either cloned PVs/VGs which "
11235 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11236 "same name. In normal operation you cannot create this situation, but you "
11237 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
11238 "inside the LVM metadata."
11242 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4400
11243 msgid "You can filter whole block devices or individual partitions."
11247 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4402
11249 "You cannot use this if any VG is currently in use (eg. contains a mounted "
11250 "filesystem), even if you are not filtering out that VG."
11254 #: ../fish/guestfish-actions.pod:2939
11259 #: ../fish/guestfish-actions.pod:2941
11262 " lvremove device\n"
11265 " lvremove пристрій\n"
11269 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4416
11271 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11272 "LV, such as C</dev/VG/LV>."
11276 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4419
11278 "You can also remove all LVs in a volume group by specifying the VG name, C</"
11283 #: ../fish/guestfish-actions.pod:2949
11288 #: ../fish/guestfish-actions.pod:2951
11291 " lvrename logvol newlogvol\n"
11296 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4433
11297 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11301 #: ../fish/guestfish-actions.pod:2955
11306 #: ../fish/guestfish-actions.pod:2957
11309 " lvresize device mbytes\n"
11314 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4446
11316 "This resizes (expands or shrinks) an existing LVM logical volume to "
11317 "C<mbytes>. When reducing, data in the reduced part is lost."
11321 #: ../fish/guestfish-actions.pod:2963
11322 msgid "lvresize-free"
11323 msgstr "lvresize-free"
11326 #: ../fish/guestfish-actions.pod:2965
11329 " lvresize-free lv percent\n"
11334 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4461
11336 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11337 "remaining free space in the volume group. Commonly you would call this with "
11338 "pc = 100 which expands the logical volume as much as possible, using all "
11339 "remaining free space in the volume group."
11343 #: ../fish/guestfish-actions.pod:2973
11348 #: ../fish/guestfish-actions.pod:2975
11358 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4476
11360 "List all the logical volumes detected. This is the equivalent of the L<lvs"
11365 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4479
11367 "This returns a list of the logical volume device names (eg. C</dev/"
11368 "VolGroup00/LogVol00>)."
11372 #: ../fish/guestfish-actions.pod:2983
11373 msgid "See also L</lvs-full>, L</list-filesystems>."
11374 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
11377 #: ../fish/guestfish-actions.pod:2985
11382 #: ../fish/guestfish-actions.pod:2987
11392 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4495
11394 "List all the logical volumes detected. This is the equivalent of the L<lvs"
11395 "(8)> command. The \"full\" version includes all fields."
11399 #: ../fish/guestfish-actions.pod:2992
11404 #: ../fish/guestfish-actions.pod:2994
11410 " lvuuid пристрій\n"
11414 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4510
11415 msgid "This command returns the UUID of the LVM LV C<device>."
11419 #: ../fish/guestfish-actions.pod:2998
11421 msgstr "lxattrlist"
11424 #: ../fish/guestfish-actions.pod:3000
11427 " lxattrlist path 'names ...'\n"
11432 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4524
11434 "This call allows you to get the extended attributes of multiple files, where "
11435 "all files are in the directory C<path>. C<names> is the list of files from "
11440 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4528
11442 "On return you get a flat list of xattr structs which must be interpreted "
11443 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
11444 "C<attrval> in this struct is zero-length to indicate there was an error "
11445 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11446 "number (the number of following attributes for this file, which could be C<"
11447 "\"0\">). Then after the first xattr struct are the zero or more attributes "
11448 "for the first named file. This repeats for the second and subsequent files."
11452 #: ../fish/guestfish-actions.pod:3016
11454 "This call is intended for programs that want to efficiently list a directory "
11455 "contents without making many round-trips. See also L</lstatlist> for a "
11456 "similarly efficient call for getting standard stats. Very long directory "
11457 "listings might cause the protocol message size to be exceeded, causing this "
11458 "call to fail. The caller must split up such requests into smaller groups of "
11463 #: ../fish/guestfish-actions.pod:3024
11468 #: ../fish/guestfish-actions.pod:3026
11478 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4558
11479 msgid "Create a directory named C<path>."
11483 #: ../fish/guestfish-actions.pod:3030
11485 msgstr "mkdir-mode"
11488 #: ../fish/guestfish-actions.pod:3032
11491 " mkdir-mode path mode\n"
11494 " mkdir-mode шлях режим\n"
11498 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4571
11500 "This command creates a directory, setting the initial permissions of the "
11501 "directory to C<mode>."
11505 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4574
11507 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11508 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
11513 #: ../fish/guestfish-actions.pod:3041
11514 msgid "See also L</mkdir>, L</umask>"
11515 msgstr "Див. також L</mkdir>, L</umask>"
11518 #: ../fish/guestfish-actions.pod:3043
11523 #: ../fish/guestfish-actions.pod:3045
11533 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4590
11535 "Create a directory named C<path>, creating any parent directories as "
11536 "necessary. This is like the C<mkdir -p> shell command."
11540 #: ../fish/guestfish-actions.pod:3050
11545 #: ../fish/guestfish-actions.pod:3052
11548 " mkdtemp template\n"
11551 " mkdtemp шаблон\n"
11555 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4603
11557 "This command creates a temporary directory. The C<template> parameter "
11558 "should be a full pathname for the temporary directory name with the final "
11559 "six characters being \"XXXXXX\"."
11563 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4608
11565 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11566 "being suitable for Windows filesystems."
11570 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4611
11571 msgid "The name of the temporary directory that was created is returned."
11575 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4614
11576 msgid "The temporary directory is created with mode 0700 and is owned by root."
11580 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4617
11582 "The caller is responsible for deleting the temporary directory and its "
11583 "contents after use."
11587 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4620
11588 msgid "See also: L<mkdtemp(3)>"
11592 #: ../fish/guestfish-actions.pod:3073
11597 #: ../fish/guestfish-actions.pod:3075
11600 " mke2fs-J fstype blocksize device journal\n"
11605 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4636
11607 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11608 "C<journal>. It is equivalent to the command:"
11612 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4640
11615 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11618 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11622 #: ../fish/guestfish-actions.pod:3083
11623 msgid "See also L</mke2journal>."
11624 msgstr "Див. також L</mke2journal>."
11627 #: ../fish/guestfish-actions.pod:3085
11632 #: ../fish/guestfish-actions.pod:3087
11635 " mke2fs-JL fstype blocksize device label\n"
11640 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4657
11642 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11643 "the journal labeled C<label>."
11647 #: ../fish/guestfish-actions.pod:3092
11648 msgid "See also L</mke2journal-L>."
11649 msgstr "Див. також L</mke2journal-L>."
11652 #: ../fish/guestfish-actions.pod:3094
11657 #: ../fish/guestfish-actions.pod:3096
11660 " mke2fs-JU fstype blocksize device uuid\n"
11665 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4675
11667 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11668 "the journal with UUID C<uuid>."
11672 #: ../fish/guestfish-actions.pod:3101
11673 msgid "See also L</mke2journal-U>."
11674 msgstr "Див. також L</mke2journal-U>."
11677 #: ../fish/guestfish-actions.pod:3103
11678 msgid "mke2journal"
11679 msgstr "mke2journal"
11682 #: ../fish/guestfish-actions.pod:3105
11685 " mke2journal blocksize device\n"
11690 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4691
11692 "This creates an ext2 external journal on C<device>. It is equivalent to the "
11697 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4694
11700 " mke2fs -O journal_dev -b blocksize device\n"
11705 #: ../fish/guestfish-actions.pod:3112
11706 msgid "mke2journal-L"
11707 msgstr "mke2journal-L"
11710 #: ../fish/guestfish-actions.pod:3114
11713 " mke2journal-L blocksize label device\n"
11718 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4708
11719 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11723 #: ../fish/guestfish-actions.pod:3118
11724 msgid "mke2journal-U"
11725 msgstr "mke2journal-U"
11728 #: ../fish/guestfish-actions.pod:3120
11731 " mke2journal-U blocksize uuid device\n"
11736 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4722
11737 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11741 #: ../fish/guestfish-actions.pod:3124
11746 #: ../fish/guestfish-actions.pod:3126
11749 " mkfifo mode path\n"
11752 " mkfifo режим шлях\n"
11756 #: ../fish/guestfish-actions.pod:3128
11758 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
11759 "is just a convenient wrapper around L</mknod>."
11763 #: ../fish/guestfish-actions.pod:3134
11768 #: ../fish/guestfish-actions.pod:3136
11771 " mkfs fstype device\n"
11774 " mkfs тип_файлової_системи пристрій\n"
11778 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4752
11780 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11781 "volume). The filesystem type is C<fstype>, for example C<ext3>."
11785 #: ../fish/guestfish-actions.pod:3142
11790 #: ../fish/guestfish-actions.pod:3144
11793 " mkfs-b fstype blocksize device\n"
11798 #: ../fish/guestfish-actions.pod:3146
11800 "This call is similar to L</mkfs>, but it allows you to control the block "
11801 "size of the resulting filesystem. Supported block sizes depend on the "
11802 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11806 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178
11807 #: ../src/guestfs-actions.pod:4780 ../src/guestfs-actions.pod:4818
11809 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11814 #: ../fish/guestfish-actions.pod:3154
11816 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11821 #: ../fish/guestfish-actions.pod:3161
11826 #: ../fish/guestfish-actions.pod:3163
11829 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11834 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4805
11836 "This function creates a filesystem on C<device>. The filesystem type is "
11837 "C<fstype>, for example C<ext3>."
11841 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4812
11842 msgid "C<blocksize>"
11843 msgstr "C<blocksize>"
11846 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4814
11848 "The filesystem block size. Supported block sizes depend on the filesystem "
11849 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11854 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4821
11855 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11859 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4823
11860 msgid "C<features>"
11861 msgstr "C<features>"
11864 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4825
11865 msgid "This passes the I<-O> parameter to the external mkfs program."
11869 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4827
11871 "For certain filesystem types, this allows extra filesystem features to be "
11872 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11876 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4831
11878 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11883 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4834
11888 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4836
11890 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11891 "sets the inode size (only for ext2/3/4 filesystems at present)."
11895 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4839
11896 msgid "C<sectorsize>"
11900 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4841
11902 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11903 "sets sector size for ufs filesystem."
11907 #: ../fish/guestfish-actions.pod:3208
11908 msgid "mkmountpoint"
11909 msgstr "mkmountpoint"
11912 #: ../fish/guestfish-actions.pod:3210
11915 " mkmountpoint exemptpath\n"
11920 #: ../fish/guestfish-actions.pod:3212
11922 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11923 "to create extra mountpoints before mounting the first filesystem."
11927 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4884
11929 "These calls are I<only> necessary in some very limited circumstances, mainly "
11930 "the case where you want to mount a mix of unrelated and/or read-only "
11931 "filesystems together."
11935 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4888
11937 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11938 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11939 "inside that. You can unpack this as follows in guestfish:"
11943 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4893
11946 " add-ro Fedora-11-i686-Live.iso\n"
11948 " mkmountpoint /cd\n"
11949 " mkmountpoint /sqsh\n"
11950 " mkmountpoint /ext3fs\n"
11951 " mount /dev/sda /cd\n"
11952 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11953 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11956 " add-ro Fedora-11-i686-Live.iso\n"
11958 " mkmountpoint /cd\n"
11959 " mkmountpoint /sqsh\n"
11960 " mkmountpoint /ext3fs\n"
11961 " mount /dev/sda /cd\n"
11962 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11963 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11967 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4902
11968 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11972 #: ../fish/guestfish-actions.pod:3236
11974 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
11975 "unexpected errors if you try to mix these calls. It is safest to manually "
11976 "unmount filesystems and remove mountpoints after use."
11980 #: ../fish/guestfish-actions.pod:3240
11982 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11983 "for this to work for manual mountpoints, you must ensure that the innermost "
11984 "mountpoints have the longest pathnames, as in the example code above."
11988 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4913
11990 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11994 #: ../fish/guestfish-actions.pod:3247
11996 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11997 "L</umount-all> to be called when the handle is closed which can also trigger "
12002 #: ../fish/guestfish-actions.pod:3251
12007 #: ../fish/guestfish-actions.pod:3253
12010 " mknod mode devmajor devminor path\n"
12015 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4932
12017 "This call creates block or character special devices, or named pipes (FIFOs)."
12021 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4935
12023 "The C<mode> parameter should be the mode, using the standard constants. "
12024 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12025 "used when creating block and character special devices."
12029 #: ../fish/guestfish-actions.pod:3263
12031 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12032 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12033 "regular file). These constants are available in the standard Linux header "
12034 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12035 "wrappers around this command which bitwise OR in the appropriate constant "
12040 #: ../fish/guestfish-actions.pod:3273
12045 #: ../fish/guestfish-actions.pod:3275
12048 " mknod-b mode devmajor devminor path\n"
12053 #: ../fish/guestfish-actions.pod:3277
12055 "This call creates a block device node called C<path> with mode C<mode> and "
12056 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
12057 "wrapper around L</mknod>."
12061 #: ../fish/guestfish-actions.pod:3283
12066 #: ../fish/guestfish-actions.pod:3285
12069 " mknod-c mode devmajor devminor path\n"
12074 #: ../fish/guestfish-actions.pod:3287
12076 "This call creates a char device node called C<path> with mode C<mode> and "
12077 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
12078 "wrapper around L</mknod>."
12082 #: ../fish/guestfish-actions.pod:3293
12087 #: ../fish/guestfish-actions.pod:3295
12093 " mkswap пристрій\n"
12097 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4998
12098 msgid "Create a swap partition on C<device>."
12102 #: ../fish/guestfish-actions.pod:3299
12107 #: ../fish/guestfish-actions.pod:3301
12110 " mkswap-L label device\n"
12113 " mkswap-L мітка пристрій\n"
12117 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5011
12118 msgid "Create a swap partition on C<device> with label C<label>."
12122 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5013
12124 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
12125 "sda>), just to a partition. This appears to be a limitation of the kernel "
12130 #: ../fish/guestfish-actions.pod:3309
12135 #: ../fish/guestfish-actions.pod:3311
12138 " mkswap-U uuid device\n"
12141 " mkswap-U uuid пристрій\n"
12145 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5028
12146 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12150 #: ../fish/guestfish-actions.pod:3315
12151 msgid "mkswap-file"
12152 msgstr "mkswap-file"
12155 #: ../fish/guestfish-actions.pod:3317
12158 " mkswap-file path\n"
12161 " mkswap-file шлях\n"
12165 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5040
12166 msgid "Create a swap file."
12167 msgstr "Створити файл резервної пам’яті."
12170 #: ../fish/guestfish-actions.pod:3321
12172 "This command just writes a swap file signature to an existing file. To "
12173 "create the file itself, use something like L</fallocate>."
12177 #: ../fish/guestfish-actions.pod:3324
12182 #: ../fish/guestfish-actions.pod:3326
12185 " modprobe modulename\n"
12188 " modprobe назва_модуля\n"
12192 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5055
12193 msgid "This loads a kernel module in the appliance."
12197 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5057
12199 "The kernel module must have been whitelisted when libguestfs was built (see "
12200 "C<appliance/kmod.whitelist.in> in the source)."
12204 #: ../fish/guestfish-actions.pod:3333
12209 #: ../fish/guestfish-actions.pod:3335
12212 " mount device mountpoint\n"
12215 " mount пристрій точка_монтування\n"
12219 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5071
12221 "Mount a guest disk at a position in the filesystem. Block devices are named "
12222 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
12223 "those block devices contain partitions, they will have the usual names (eg. "
12224 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
12228 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5077
12230 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12231 "mounted on C</> before others can be mounted. Other filesystems can only be "
12232 "mounted on directories which already exist."
12236 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5082
12238 "The mounted filesystem is writable, if we have sufficient permissions on the "
12239 "underlying device."
12243 #: ../fish/guestfish-actions.pod:3351
12245 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12246 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
12247 "problems for users. If your program might need to work with older versions "
12248 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12249 "first parameter if you don't want any options)."
12253 #: ../fish/guestfish-actions.pod:3358
12258 #: ../fish/guestfish-actions.pod:3360
12261 " mount-9p mounttag mountpoint [options:..]\n"
12266 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5111
12268 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12273 #: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5114
12275 "If required, C<trans=virtio> will be automatically added to the options. "
12276 "Any other options required can be passed in the optional C<options> "
12281 #: ../fish/guestfish-actions.pod:3371
12283 msgstr "mount-loop"
12286 #: ../fish/guestfish-actions.pod:3373
12289 " mount-loop file mountpoint\n"
12294 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5153
12296 "This command lets you mount C<file> (a filesystem image in a file) on a "
12297 "mount point. It is entirely equivalent to the command C<mount -o loop file "
12302 #: ../fish/guestfish-actions.pod:3379
12303 msgid "mount-options"
12304 msgstr "mount-options"
12307 #: ../fish/guestfish-actions.pod:3381
12310 " mount-options options device mountpoint\n"
12315 #: ../fish/guestfish-actions.pod:3383
12317 "This is the same as the L</mount> command, but it allows you to set the "
12318 "mount options as for the L<mount(8)> I<-o> flag."
12322 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5173
12324 "If the C<options> parameter is an empty string, then no options are passed "
12325 "(all options default to whatever the filesystem uses)."
12329 #: ../fish/guestfish-actions.pod:3391
12334 #: ../fish/guestfish-actions.pod:3393
12337 " mount-ro device mountpoint\n"
12340 " mount-ro пристрій точка_монтування\n"
12344 #: ../fish/guestfish-actions.pod:3395
12346 "This is the same as the L</mount> command, but it mounts the filesystem with "
12347 "the read-only (I<-o ro>) flag."
12351 #: ../fish/guestfish-actions.pod:3398
12356 #: ../fish/guestfish-actions.pod:3400
12359 " mount-vfs options vfstype device mountpoint\n"
12364 #: ../fish/guestfish-actions.pod:3402
12366 "This is the same as the L</mount> command, but it allows you to set both the "
12367 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12371 #: ../fish/guestfish-actions.pod:3406
12372 msgid "mountpoints"
12373 msgstr "mountpoints"
12376 #: ../fish/guestfish-actions.pod:3408
12386 #: ../fish/guestfish-actions.pod:3410
12388 "This call is similar to L</mounts>. That call returns a list of devices. "
12389 "This one returns a hash table (map) of device name to directory where the "
12390 "device is mounted."
12394 #: ../fish/guestfish-actions.pod:3414
12399 #: ../fish/guestfish-actions.pod:3416
12409 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5234
12411 "This returns the list of currently mounted filesystems. It returns the list "
12412 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12416 #: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5237
12417 msgid "Some internal mounts are not shown."
12421 #: ../fish/guestfish-actions.pod:3423
12422 msgid "See also: L</mountpoints>"
12423 msgstr "Див. також L</mountpoints>"
12426 #: ../fish/guestfish-actions.pod:3425
12431 #: ../fish/guestfish-actions.pod:3427
12437 " mv джерело призначення\n"
12441 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5254
12443 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12444 "destination filename or destination directory."
12448 #: ../fish/guestfish-actions.pod:3432
12449 msgid "ntfs-3g-probe"
12450 msgstr "ntfs-3g-probe"
12453 #: ../fish/guestfish-actions.pod:3434
12456 " ntfs-3g-probe true|false device\n"
12461 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5268
12463 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12464 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
12465 "write, and some cannot be mounted at all)."
12469 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5272
12471 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
12472 "can be mounted read-write. Set it to false if you want to test if the "
12473 "volume can be mounted read-only."
12477 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5276
12479 "The return value is an integer which C<0> if the operation would succeed, or "
12480 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12484 #: ../fish/guestfish-actions.pod:3448
12486 msgstr "ntfsresize"
12489 #: ../fish/guestfish-actions.pod:3450
12492 " ntfsresize device\n"
12495 " ntfsresize пристрій\n"
12499 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3476
12500 #: ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5329
12502 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12503 "size of the underlying device."
12507 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5300
12509 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12510 "consistency check (for safety). You have to boot into Windows to perform "
12511 "this check and clear this condition. Furthermore, ntfsresize refuses to "
12512 "resize filesystems which have been marked in this way. So in effect it is "
12513 "not possible to call ntfsresize multiple times on a single filesystem "
12514 "without booting into Windows between each resize."
12518 #: ../fish/guestfish-actions.pod:3463 ../fish/guestfish-actions.pod:3502
12519 #: ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5355
12520 msgid "See also L<ntfsresize(8)>."
12524 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3513
12526 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12531 #: ../fish/guestfish-actions.pod:3472
12532 msgid "ntfsresize-opts"
12536 #: ../fish/guestfish-actions.pod:3474
12539 " ntfsresize-opts device [size:..] [force:..]\n"
12544 #: ../fish/guestfish-actions.pod:3485 ../src/guestfs-actions.pod:5338
12546 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
12547 "resized to fit the container (eg. partition)."
12551 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5341
12556 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5343
12558 "If this option is true, then force the resize of the filesystem even if the "
12559 "filesystem is marked as requiring a consistency check."
12563 #: ../fish/guestfish-actions.pod:3493
12565 "After the resize operation, the filesystem is always marked as requiring a "
12566 "consistency check (for safety). You have to boot into Windows to perform "
12567 "this check and clear this condition. If you I<don't> set the C<force> "
12568 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12569 "a single filesystem without booting into Windows between each resize."
12573 #: ../fish/guestfish-actions.pod:3506
12574 msgid "ntfsresize-size"
12575 msgstr "ntfsresize-size"
12578 #: ../fish/guestfish-actions.pod:3508
12581 " ntfsresize-size device size\n"
12586 #: ../fish/guestfish-actions.pod:3510
12588 "This command is the same as L</ntfsresize> except that it allows you to "
12589 "specify the new size (in bytes) explicitly."
12593 #: ../fish/guestfish-actions.pod:3520
12598 #: ../fish/guestfish-actions.pod:3522
12601 " part-add device prlogex startsect endsect\n"
12606 #: ../fish/guestfish-actions.pod:3524
12608 "This command adds a partition to C<device>. If there is no partition table "
12609 "on the device, call L</part-init> first."
12613 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5416
12615 "The C<prlogex> parameter is the type of partition. Normally you should pass "
12616 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12617 "C<logical>) and C<e> (or C<extended>) partition types."
12621 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5421
12623 "C<startsect> and C<endsect> are the start and end of the partition in "
12624 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
12625 "from the end of the disk (C<-1> is the last sector)."
12629 #: ../fish/guestfish-actions.pod:3536
12631 "Creating a partition which covers the whole disk is not so easy. Use L</"
12632 "part-disk> to do that."
12636 #: ../fish/guestfish-actions.pod:3539
12641 #: ../fish/guestfish-actions.pod:3541
12644 " part-del device partnum\n"
12649 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5439
12650 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12654 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5441
12656 "Note that in the case of MBR partitioning, deleting an extended partition "
12657 "also deletes any logical partitions it contains."
12661 #: ../fish/guestfish-actions.pod:3549
12666 #: ../fish/guestfish-actions.pod:3551
12669 " part-disk device parttype\n"
12672 " part-disk пристрій тип_розділу\n"
12676 #: ../fish/guestfish-actions.pod:3553
12678 "This command is simply a combination of L</part-init> followed by L</part-"
12679 "add> to create a single primary partition covering the whole disk."
12683 #: ../fish/guestfish-actions.pod:3557
12685 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12686 "possible values are described in L</part-init>."
12690 #: ../fish/guestfish-actions.pod:3563
12691 msgid "part-get-bootable"
12692 msgstr "part-get-bootable"
12695 #: ../fish/guestfish-actions.pod:3565
12698 " part-get-bootable device partnum\n"
12703 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5477
12705 "This command returns true if the partition C<partnum> on C<device> has the "
12706 "bootable flag set."
12710 #: ../fish/guestfish-actions.pod:3570
12711 msgid "See also L</part-set-bootable>."
12712 msgstr "Див. також L</part-set-bootable>."
12715 #: ../fish/guestfish-actions.pod:3572
12716 msgid "part-get-mbr-id"
12717 msgstr "part-get-mbr-id"
12720 #: ../fish/guestfish-actions.pod:3574
12723 " part-get-mbr-id device partnum\n"
12728 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5493
12730 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12731 "partition C<partnum>."
12735 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3723
12737 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
12738 "undefined results for other partition table types (see L</part-get-"
12743 #: ../fish/guestfish-actions.pod:3583
12744 msgid "part-get-parttype"
12745 msgstr "part-get-parttype"
12748 #: ../fish/guestfish-actions.pod:3585
12751 " part-get-parttype device\n"
12754 " part-get-parttype пристрій\n"
12758 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5510
12760 "This command examines the partition table on C<device> and returns the "
12761 "partition table type (format) being used."
12765 #: ../fish/guestfish-actions.pod:3590
12767 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12768 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
12769 "possible, although unusual. See L</part-init> for a full list."
12773 #: ../fish/guestfish-actions.pod:3595
12778 #: ../fish/guestfish-actions.pod:3597
12781 " part-init device parttype\n"
12786 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5530
12788 "This creates an empty partition table on C<device> of one of the partition "
12789 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
12790 "(for large disks)."
12794 #: ../fish/guestfish-actions.pod:3603
12796 "Initially there are no partitions. Following this, you should call L</part-"
12797 "add> for each partition required."
12801 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5537
12802 msgid "Possible values for C<parttype> are:"
12806 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5541
12811 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5543
12816 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5545
12817 msgid "Intel EFI / GPT partition table."
12821 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5547
12823 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12824 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
12825 "the C<mbr> format."
12829 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5551
12834 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5553
12839 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5555
12841 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12842 "Windows. This partition type will B<only> work for device sizes up to 2 "
12843 "TB. For large disks we recommend using C<gpt>."
12847 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5562
12849 "Other partition table types that may work but are not supported include:"
12853 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5567
12858 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5569
12859 msgid "AIX disk labels."
12860 msgstr "Мітки дисків AIX."
12863 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5571
12865 #| msgid "B<amiga> | B<rdb>"
12867 msgstr "B<amiga> | B<rdb>"
12870 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5573
12875 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5575
12876 msgid "Amiga \"Rigid Disk Block\" format."
12877 msgstr "Формат \"Rigid Disk Block\" Amiga."
12880 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5577
12885 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5579
12886 msgid "BSD disk labels."
12887 msgstr "Мітки дисків BSD."
12890 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5581
12895 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5583
12896 msgid "DASD, used on IBM mainframes."
12897 msgstr "DASD, використовувалися у мейнфреймах IBM."
12900 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5585
12905 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5587
12906 msgid "MIPS/SGI volumes."
12907 msgstr "Томи MIPS/SGI."
12910 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5589
12915 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5591
12916 msgid "Old Mac partition format. Modern Macs use C<gpt>."
12917 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12920 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5593
12925 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5595
12926 msgid "NEC PC-98 format, common in Japan apparently."
12927 msgstr "Формат NEC PC-98, поширений у Японії."
12930 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5597
12935 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5599
12936 msgid "Sun disk labels."
12937 msgstr "Мітки дисків Sun."
12940 #: ../fish/guestfish-actions.pod:3672
12945 #: ../fish/guestfish-actions.pod:3674
12948 " part-list device\n"
12951 " part-list device\n"
12955 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5613
12957 "This command parses the partition table on C<device> and returns the list of "
12958 "partitions found."
12962 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5616
12963 msgid "The fields in the returned structure are:"
12967 #: ../fish/guestfish-actions.pod:3683 ../src/guestfs-actions.pod:5620
12968 msgid "B<part_num>"
12969 msgstr "B<part_num>"
12972 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5622
12973 msgid "Partition number, counting from 1."
12977 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5624
12978 msgid "B<part_start>"
12979 msgstr "B<part_start>"
12982 #: ../fish/guestfish-actions.pod:3689
12984 "Start of the partition I<in bytes>. To get sectors you have to divide by "
12985 "the device's sector size, see L</blockdev-getss>."
12989 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5629
12990 msgid "B<part_end>"
12991 msgstr "B<part_end>"
12994 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5631
12995 msgid "End of the partition in bytes."
12999 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5633
13000 msgid "B<part_size>"
13001 msgstr "B<part_size>"
13004 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5635
13005 msgid "Size of the partition in bytes."
13009 #: ../fish/guestfish-actions.pod:3702
13010 msgid "part-set-bootable"
13011 msgstr "part-set-bootable"
13014 #: ../fish/guestfish-actions.pod:3704
13017 " part-set-bootable device partnum true|false\n"
13022 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5653
13024 "This sets the bootable flag on partition numbered C<partnum> on device "
13025 "C<device>. Note that partitions are numbered from 1."
13029 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5656
13031 "The bootable flag is used by some operating systems (notably Windows) to "
13032 "determine which partition to boot from. It is by no means universally "
13037 #: ../fish/guestfish-actions.pod:3713
13038 msgid "part-set-mbr-id"
13039 msgstr "part-set-mbr-id"
13042 #: ../fish/guestfish-actions.pod:3715
13045 " part-set-mbr-id device partnum idbyte\n"
13050 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5672
13052 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13053 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
13054 "documentation are in fact hexadecimal numbers, but usually documented "
13055 "without any leading \"0x\" which might be confusing."
13059 #: ../fish/guestfish-actions.pod:3727
13060 msgid "part-set-name"
13061 msgstr "part-set-name"
13064 #: ../fish/guestfish-actions.pod:3729
13067 " part-set-name device partnum name\n"
13072 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5694
13074 "This sets the partition name on partition numbered C<partnum> on device "
13075 "C<device>. Note that partitions are numbered from 1."
13079 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5697
13081 "The partition name can only be set on certain types of partition table. "
13082 "This works on C<gpt> but not on C<mbr> partitions."
13086 #: ../fish/guestfish-actions.pod:3737
13087 msgid "part-to-dev"
13088 msgstr "part-to-dev"
13091 #: ../fish/guestfish-actions.pod:3739
13094 " part-to-dev partition\n"
13097 " part-to-dev розділ\n"
13101 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5710
13103 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13104 "partition number, returning the device name (eg. \"/dev/sdb\")."
13108 #: ../fish/guestfish-actions.pod:3745
13110 "The named partition must exist, for example as a string returned from L</"
13111 "list-partitions>."
13115 #: ../fish/guestfish-actions.pod:3748
13116 msgid "ping-daemon"
13117 msgstr "ping-daemon"
13120 #: ../fish/guestfish-actions.pod:3750
13130 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5727
13132 "This is a test probe into the guestfs daemon running inside the qemu "
13133 "subprocess. Calling this function checks that the daemon responds to the "
13134 "ping message, without affecting the daemon or attached block device(s) in "
13139 #: ../fish/guestfish-actions.pod:3757
13144 #: ../fish/guestfish-actions.pod:3759
13147 " pread path count offset\n"
13152 #: ../fish/guestfish-actions.pod:3761 ../src/guestfs-actions.pod:5745
13154 "This command lets you read part of a file. It reads C<count> bytes of the "
13155 "file, starting at C<offset>, from file C<path>."
13159 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3779
13160 #: ../src/guestfs-actions.pod:5748 ../src/guestfs-actions.pod:5774
13162 "This may read fewer bytes than requested. For further details see the "
13163 "L<pread(2)> system call."
13167 #: ../fish/guestfish-actions.pod:3767
13168 msgid "See also L</pwrite>, L</pread-device>."
13169 msgstr "Див. також L</pwrite>, L</pread-device>."
13172 #: ../fish/guestfish-actions.pod:3772
13173 msgid "pread-device"
13174 msgstr "pread-device"
13177 #: ../fish/guestfish-actions.pod:3774
13180 " pread-device device count offset\n"
13185 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5771
13187 "This command lets you read part of a file. It reads C<count> bytes of "
13188 "C<device>, starting at C<offset>."
13192 #: ../fish/guestfish-actions.pod:3782
13193 msgid "See also L</pread>."
13194 msgstr "Див. також L</pread>."
13197 #: ../fish/guestfish-actions.pod:3787
13202 #: ../fish/guestfish-actions.pod:3789
13205 " pvcreate device\n"
13208 " pvcreate пристрій\n"
13212 #: ../fish/guestfish-actions.pod:3791 ../src/guestfs-actions.pod:5794
13214 "This creates an LVM physical volume on the named C<device>, where C<device> "
13215 "should usually be a partition name such as C</dev/sda1>."
13219 #: ../fish/guestfish-actions.pod:3795
13224 #: ../fish/guestfish-actions.pod:3797
13227 " pvremove device\n"
13230 " pvremove пристрій\n"
13234 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5808
13236 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13241 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5811
13243 "The implementation uses the C<pvremove> command which refuses to wipe "
13244 "physical volumes that contain any volume groups, so you have to remove those "
13249 #: ../fish/guestfish-actions.pod:3806
13254 #: ../fish/guestfish-actions.pod:3808
13257 " pvresize device\n"
13260 " pvresize пристрій\n"
13264 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5825
13266 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13267 "the new size of the underlying device."
13271 #: ../fish/guestfish-actions.pod:3813
13272 msgid "pvresize-size"
13273 msgstr "pvresize-size"
13276 #: ../fish/guestfish-actions.pod:3815
13279 " pvresize-size device size\n"
13284 #: ../fish/guestfish-actions.pod:3817
13286 "This command is the same as L</pvresize> except that it allows you to "
13287 "specify the new size (in bytes) explicitly."
13291 #: ../fish/guestfish-actions.pod:3820
13296 #: ../fish/guestfish-actions.pod:3822
13306 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5851
13308 "List all the physical volumes detected. This is the equivalent of the L<pvs"
13313 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5854
13315 "This returns a list of just the device names that contain PVs (eg. C</dev/"
13320 #: ../fish/guestfish-actions.pod:3830
13321 msgid "See also L</pvs-full>."
13322 msgstr "Див. також L</pvs-full>."
13325 #: ../fish/guestfish-actions.pod:3832
13330 #: ../fish/guestfish-actions.pod:3834
13340 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5870
13342 "List all the physical volumes detected. This is the equivalent of the L<pvs"
13343 "(8)> command. The \"full\" version includes all fields."
13347 #: ../fish/guestfish-actions.pod:3839
13352 #: ../fish/guestfish-actions.pod:3841
13358 " pvuuid пристрій\n"
13362 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:5885
13363 msgid "This command returns the UUID of the LVM PV C<device>."
13367 #: ../fish/guestfish-actions.pod:3845
13372 #: ../fish/guestfish-actions.pod:3847
13375 " pwrite path content offset\n"
13380 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5901
13382 "This command writes to part of a file. It writes the data buffer C<content> "
13383 "to the file C<path> starting at offset C<offset>."
13387 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:5904
13389 "This command implements the L<pwrite(2)> system call, and like that system "
13390 "call it may not write the full data requested. The return value is the "
13391 "number of bytes that were actually written to the file. This could even be "
13392 "0, although short writes are unlikely for regular files in ordinary "
13397 #: ../fish/guestfish-actions.pod:3858
13398 msgid "See also L</pread>, L</pwrite-device>."
13399 msgstr "Див. також L</pread>, L</pwrite-device>."
13402 #: ../fish/guestfish-actions.pod:3863
13403 msgid "pwrite-device"
13404 msgstr "pwrite-device"
13407 #: ../fish/guestfish-actions.pod:3865
13410 " pwrite-device device content offset\n"
13415 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5928
13417 "This command writes to part of a device. It writes the data buffer "
13418 "C<content> to C<device> starting at offset C<offset>."
13422 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5931
13424 "This command implements the L<pwrite(2)> system call, and like that system "
13425 "call it may not write the full data requested (although short writes to disk "
13426 "devices and partitions are probably impossible with standard Linux kernels)."
13430 #: ../fish/guestfish-actions.pod:3875
13431 msgid "See also L</pwrite>."
13432 msgstr "Див. також L</pwrite>."
13435 #: ../fish/guestfish-actions.pod:3880
13440 #: ../fish/guestfish-actions.pod:3882
13443 " read-file path\n"
13446 " read-file шлях\n"
13450 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5952
13451 msgid "This calls returns the contents of the file C<path> as a buffer."
13455 #: ../fish/guestfish-actions.pod:3887
13457 "Unlike L</cat>, this function can correctly handle files that contain "
13458 "embedded ASCII NUL characters. However unlike L</download>, this function "
13459 "is limited in the total size of file that can be handled."
13463 #: ../fish/guestfish-actions.pod:3895
13465 msgstr "read-lines"
13468 #: ../fish/guestfish-actions.pod:3897
13471 " read-lines path\n"
13474 " read-lines шлях\n"
13478 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5977
13480 "The file contents are returned as a list of lines. Trailing C<LF> and "
13481 "C<CRLF> character sequences are I<not> returned."
13485 #: ../fish/guestfish-actions.pod:3904
13487 "Note that this function cannot correctly handle binary files (specifically, "
13488 "files containing C<\\0> character which is treated as end of line). For "
13489 "those you need to use the L</read-file> function which has a more complex "
13494 #: ../fish/guestfish-actions.pod:3909
13499 #: ../fish/guestfish-actions.pod:3911
13505 " readdir каталог\n"
13509 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5997
13510 msgid "This returns the list of directory entries in directory C<dir>."
13514 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5999
13516 "All entries in the directory are returned, including C<.> and C<..>. The "
13517 "entries are I<not> sorted, but returned in the same order as the underlying "
13522 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6003
13524 "Also this call returns basic file type information about each file. The "
13525 "C<ftyp> field will contain one of the following characters:"
13529 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6008
13534 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6010
13535 msgid "Block special"
13536 msgstr "Блоковий особливий"
13539 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6012
13544 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6014
13545 msgid "Char special"
13546 msgstr "Символьний особливий"
13549 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6016
13554 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6018
13559 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6020
13564 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6022
13565 msgid "FIFO (named pipe)"
13566 msgstr "FIFO (іменований канал)"
13569 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6024
13574 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6026
13575 msgid "Symbolic link"
13576 msgstr "Символічне посилання"
13579 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6028
13584 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6030
13585 msgid "Regular file"
13586 msgstr "Звичайний файл"
13589 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6032
13594 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6034
13599 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6036
13604 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6038
13605 msgid "Unknown file type"
13606 msgstr "Невідомий тип файла"
13609 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6040
13614 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6042
13616 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13620 #: ../fish/guestfish-actions.pod:3963
13622 "This function is primarily intended for use by programs. To get a simple "
13623 "list of names, use L</ls>. To get a printable directory for human "
13624 "consumption, use L</ll>."
13628 #: ../fish/guestfish-actions.pod:3967
13633 #: ../fish/guestfish-actions.pod:3969
13643 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6063
13644 msgid "This command reads the target of a symbolic link."
13648 #: ../fish/guestfish-actions.pod:3973
13649 msgid "readlinklist"
13650 msgstr "readlinklist"
13653 #: ../fish/guestfish-actions.pod:3975
13656 " readlinklist path 'names ...'\n"
13661 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6077
13663 "This call allows you to do a C<readlink> operation on multiple files, where "
13664 "all files are in the directory C<path>. C<names> is the list of files from "
13669 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6081
13671 "On return you get a list of strings, with a one-to-one correspondence to the "
13672 "C<names> list. Each string is the value of the symbolic link."
13676 #: ../fish/guestfish-actions.pod:3985 ../src/guestfs-actions.pod:6085
13678 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13679 "result string is the empty string C<\"\">. However the whole operation is "
13680 "completed even if there were C<readlink(2)> errors, and so you can call this "
13681 "function with names where you don't know if they are symbolic links already "
13682 "(albeit slightly less efficient)."
13686 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6092
13688 "This call is intended for programs that want to efficiently list a directory "
13689 "contents without making many round-trips. Very long directory listings "
13690 "might cause the protocol message size to be exceeded, causing this call to "
13691 "fail. The caller must split up such requests into smaller groups of names."
13695 #: ../fish/guestfish-actions.pod:3999
13700 #: ../fish/guestfish-actions.pod:4001
13710 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6111
13712 "Return the canonicalized absolute pathname of C<path>. The returned path "
13713 "has no C<.>, C<..> or symbolic link path elements."
13717 #: ../fish/guestfish-actions.pod:4006
13718 msgid "removexattr"
13719 msgstr "removexattr"
13722 #: ../fish/guestfish-actions.pod:4008
13725 " removexattr xattr path\n"
13730 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6126
13732 "This call removes the extended attribute named C<xattr> of the file C<path>."
13736 #: ../fish/guestfish-actions.pod:4013
13737 msgid "See also: L</lremovexattr>, L<attr(5)>."
13738 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13741 #: ../fish/guestfish-actions.pod:4015
13746 #: ../fish/guestfish-actions.pod:4017
13749 " resize2fs device\n"
13752 " resize2fs пристрій\n"
13756 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6141
13758 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13759 "underlying device."
13763 #: ../fish/guestfish-actions.pod:4022
13765 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13766 "before calling this command. For unknown reasons C<resize2fs> sometimes "
13767 "gives an error about this and sometimes not. In any case, it is always safe "
13768 "to call L</e2fsck-f> before calling this function."
13772 #: ../fish/guestfish-actions.pod:4028
13773 msgid "resize2fs-M"
13774 msgstr "resize2fs-M"
13777 #: ../fish/guestfish-actions.pod:4030
13780 " resize2fs-M device\n"
13783 " resize2fs-M пристрій\n"
13787 #: ../fish/guestfish-actions.pod:4032
13789 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13790 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
13795 #: ../fish/guestfish-actions.pod:4036
13797 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13798 "and read the C<Block size> and C<Block count> values. These two numbers, "
13799 "multiplied together, give the resulting size of the minimal filesystem in "
13804 #: ../fish/guestfish-actions.pod:4041
13805 msgid "resize2fs-size"
13806 msgstr "resize2fs-size"
13809 #: ../fish/guestfish-actions.pod:4043
13812 " resize2fs-size device size\n"
13817 #: ../fish/guestfish-actions.pod:4045
13819 "This command is the same as L</resize2fs> except that it allows you to "
13820 "specify the new size (in bytes) explicitly."
13824 #: ../fish/guestfish-actions.pod:4048
13829 #: ../fish/guestfish-actions.pod:4050
13839 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6193
13840 msgid "Remove the single file C<path>."
13844 #: ../fish/guestfish-actions.pod:4054
13849 #: ../fish/guestfish-actions.pod:4056
13859 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6205
13861 "Remove the file or directory C<path>, recursively removing the contents if "
13862 "its a directory. This is like the C<rm -rf> shell command."
13866 #: ../fish/guestfish-actions.pod:4062
13871 #: ../fish/guestfish-actions.pod:4064
13881 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6219
13882 msgid "Remove the single directory C<path>."
13886 #: ../fish/guestfish-actions.pod:4068
13887 msgid "rmmountpoint"
13888 msgstr "rmmountpoint"
13891 #: ../fish/guestfish-actions.pod:4070
13894 " rmmountpoint exemptpath\n"
13899 #: ../fish/guestfish-actions.pod:4072
13901 "This calls removes a mountpoint that was previously created with L</"
13902 "mkmountpoint>. See L</mkmountpoint> for full details."
13906 #: ../fish/guestfish-actions.pod:4076
13907 msgid "scrub-device"
13908 msgstr "scrub-device"
13911 #: ../fish/guestfish-actions.pod:4078
13914 " scrub-device device\n"
13917 " scrub-device пристрій\n"
13921 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6245
13923 "This command writes patterns over C<device> to make data retrieval more "
13928 #: ../fish/guestfish-actions.pod:4083 ../fish/guestfish-actions.pod:4098
13929 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6248
13930 #: ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6288
13932 "It is an interface to the L<scrub(1)> program. See that manual page for "
13937 #: ../fish/guestfish-actions.pod:4089
13939 msgstr "scrub-file"
13942 #: ../fish/guestfish-actions.pod:4091
13945 " scrub-file file\n"
13948 " scrub-file файл\n"
13952 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6264
13954 "This command writes patterns over a file to make data retrieval more "
13959 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6267
13960 msgid "The file is I<removed> after scrubbing."
13964 #: ../fish/guestfish-actions.pod:4101
13965 msgid "scrub-freespace"
13966 msgstr "scrub-freespace"
13969 #: ../fish/guestfish-actions.pod:4103
13972 " scrub-freespace dir\n"
13975 " scrub-freespace каталог\n"
13979 #: ../fish/guestfish-actions.pod:4105
13981 "This command creates the directory C<dir> and then fills it with files until "
13982 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13983 "deletes them. The intention is to scrub any free space on the partition "
13984 "containing C<dir>."
13988 #: ../fish/guestfish-actions.pod:4114
13990 msgstr "set-append"
13993 #: ../fish/guestfish-actions.pod:4116
13998 #: ../fish/guestfish-actions.pod:4118
14001 " set-append append\n"
14006 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6301
14008 "This function is used to add additional options to the guest kernel command "
14013 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6304
14015 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14016 "environment variable."
14020 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6307
14022 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14023 "(libguestfs always adds a few of its own)."
14027 #: ../fish/guestfish-actions.pod:4129
14028 msgid "set-attach-method"
14029 msgstr "set-attach-method"
14032 #: ../fish/guestfish-actions.pod:4131
14033 msgid "attach-method"
14037 #: ../fish/guestfish-actions.pod:4133
14040 " set-attach-method attachmethod\n"
14045 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6320
14047 "Set the method that libguestfs uses to connect to the back end guestfsd "
14048 "daemon. Possible methods are:"
14052 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6325
14053 #: ../src/guestfs.pod:2826
14054 msgid "C<appliance>"
14055 msgstr "C<appliance>"
14058 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6327
14060 "Launch an appliance and connect to it. This is the ordinary method and the "
14065 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6330
14066 msgid "C<unix:I<path>>"
14067 msgstr "C<unix:I<шлях>>"
14070 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6332
14071 msgid "Connect to the Unix domain socket I<path>."
14072 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
14075 #: ../fish/guestfish-actions.pod:4149 ../src/guestfs-actions.pod:6334
14077 "This method lets you connect to an existing daemon or (using virtio-serial) "
14078 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
14079 "RUNNING DAEMONS>."
14083 #: ../fish/guestfish-actions.pod:4155
14084 msgid "set-autosync"
14085 msgstr "set-autosync"
14088 #: ../fish/guestfish-actions.pod:4157
14093 #: ../fish/guestfish-actions.pod:4159
14096 " set-autosync true|false\n"
14099 " set-autosync true|false\n"
14103 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6350
14105 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
14106 "effort attempt to make filesystems consistent and synchronized when the "
14107 "handle is closed (also if the program exits without closing handles)."
14111 #: ../fish/guestfish-actions.pod:4166 ../src/guestfs-actions.pod:6355
14113 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14114 "disabled by default)."
14118 #: ../fish/guestfish-actions.pod:4169
14120 msgstr "set-direct"
14123 #: ../fish/guestfish-actions.pod:4171
14128 #: ../fish/guestfish-actions.pod:4173
14131 " set-direct true|false\n"
14134 " set-direct true|false\n"
14138 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6368
14140 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14141 "passed directly through to the appliance once it is launched."
14145 #: ../fish/guestfish-actions.pod:4179
14147 "One consequence of this is that log messages aren't caught by the library "
14148 "and handled by L</set-log-message-callback>, but go straight to stdout."
14152 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6376
14153 msgid "You probably don't want to use this unless you know what you are doing."
14157 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6379
14158 msgid "The default is disabled."
14162 #: ../fish/guestfish-actions.pod:4188
14163 msgid "set-e2label"
14164 msgstr "set-e2label"
14167 #: ../fish/guestfish-actions.pod:4190
14170 " set-e2label device label\n"
14175 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6392
14177 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14178 "C<label>. Filesystem labels are limited to 16 characters."
14182 #: ../fish/guestfish-actions.pod:4196
14184 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14185 "label on a filesystem."
14189 #: ../fish/guestfish-actions.pod:4199
14191 msgstr "set-e2uuid"
14194 #: ../fish/guestfish-actions.pod:4201
14197 " set-e2uuid device uuid\n"
14202 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6410
14204 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14205 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
14206 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14210 #: ../fish/guestfish-actions.pod:4208
14212 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14213 "UUID of a filesystem."
14217 #: ../fish/guestfish-actions.pod:4211
14218 msgid "set-memsize"
14219 msgstr "set-memsize"
14222 #: ../fish/guestfish-actions.pod:4213
14227 #: ../fish/guestfish-actions.pod:4215
14230 " set-memsize memsize\n"
14235 #: ../fish/guestfish-actions.pod:4217
14237 "This sets the memory size in megabytes allocated to the qemu subprocess. "
14238 "This only has any effect if called before L</launch>."
14242 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6432
14244 "You can also change this by setting the environment variable "
14245 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14249 #: ../fish/guestfish-actions.pod:4228
14250 msgid "set-network"
14251 msgstr "set-network"
14254 #: ../fish/guestfish-actions.pod:4230
14259 #: ../fish/guestfish-actions.pod:4232
14262 " set-network true|false\n"
14265 " set-network true|false\n"
14269 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6449
14271 "If C<network> is true, then the network is enabled in the libguestfs "
14272 "appliance. The default is false."
14276 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6452
14278 "This affects whether commands are able to access the network (see L<guestfs"
14279 "(3)/RUNNING COMMANDS>)."
14283 #: ../fish/guestfish-actions.pod:4240
14285 "You must call this before calling L</launch>, otherwise it has no effect."
14289 #: ../fish/guestfish-actions.pod:4243
14294 #: ../fish/guestfish-actions.pod:4247
14297 " set-path searchpath\n"
14302 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6468
14303 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14307 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6470
14309 "The default is C<$libdir/guestfs> unless overridden by setting "
14310 "C<LIBGUESTFS_PATH> environment variable."
14314 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6473
14315 msgid "Setting C<path> to C<NULL> restores the default path."
14319 #: ../fish/guestfish-actions.pod:4256
14324 #: ../fish/guestfish-actions.pod:4258
14329 #: ../fish/guestfish-actions.pod:4260
14332 " set-pgroup true|false\n"
14337 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6485
14339 "If C<pgroup> is true, child processes are placed into their own process "
14344 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6488
14346 "The practical upshot of this is that signals like C<SIGINT> (from users "
14347 "pressing C<^C>) won't be received by the child process."
14351 #: ../fish/guestfish-actions.pod:4268 ../src/guestfs-actions.pod:6491
14353 "The default for this flag is false, because usually you want C<^C> to kill "
14358 #: ../fish/guestfish-actions.pod:4271
14363 #: ../fish/guestfish-actions.pod:4273
14368 #: ../fish/guestfish-actions.pod:4275
14378 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6504
14379 msgid "Set the qemu binary that we will use."
14383 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6506
14385 "The default is chosen when the library was compiled by the configure script."
14389 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6509
14391 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14396 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6512
14397 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14401 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6514
14403 "Note that you should call this function as early as possible after creating "
14404 "the handle. This is because some pre-launch operations depend on testing "
14405 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
14406 "don't retest features, and so you might see inconsistent results. Using the "
14407 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14408 "the qemu binary at the same time as the handle is created."
14412 #: ../fish/guestfish-actions.pod:4295
14413 msgid "set-recovery-proc"
14414 msgstr "set-recovery-proc"
14417 #: ../fish/guestfish-actions.pod:4297
14418 msgid "recovery-proc"
14419 msgstr "recovery-proc"
14422 #: ../fish/guestfish-actions.pod:4299
14425 " set-recovery-proc true|false\n"
14428 " set-recovery-proc true|false\n"
14432 #: ../fish/guestfish-actions.pod:4301
14434 "If this is called with the parameter C<false> then L</launch> does not "
14435 "create a recovery process. The purpose of the recovery process is to stop "
14436 "runaway qemu processes in the case where the main program aborts abruptly."
14440 #: ../fish/guestfish-actions.pod:4306
14442 "This only has any effect if called before L</launch>, and the default is "
14447 #: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6540
14449 "About the only time when you would want to disable this is if the main "
14450 "process will fork itself into the background (\"daemonize\" itself). In "
14451 "this case the recovery process thinks that the main program has disappeared "
14452 "and so kills qemu, which is not very helpful."
14456 #: ../fish/guestfish-actions.pod:4315
14457 msgid "set-selinux"
14458 msgstr "set-selinux"
14461 #: ../fish/guestfish-actions.pod:4317
14466 #: ../fish/guestfish-actions.pod:4319
14469 " set-selinux true|false\n"
14472 " set-selinux true|false\n"
14476 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6556
14478 "This sets the selinux flag that is passed to the appliance at boot time. "
14479 "The default is C<selinux=0> (disabled)."
14483 #: ../fish/guestfish-actions.pod:4324 ../src/guestfs-actions.pod:6559
14485 "Note that if SELinux is enabled, it is always in Permissive mode "
14486 "(C<enforcing=0>)."
14490 #: ../fish/guestfish-actions.pod:4330
14492 #| msgid "set-path"
14497 #: ../fish/guestfish-actions.pod:4332
14502 #: ../fish/guestfish-actions.pod:4334
14505 #| " set-qemu qemu\n"
14515 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6575
14517 "Change the number of virtual CPUs assigned to the appliance. The default is "
14518 "C<1>. Increasing this may improve performance, though often it has no "
14523 #: ../fish/guestfish-actions.pod:4340
14524 msgid "This function must be called before L</launch>."
14528 #: ../fish/guestfish-actions.pod:4342
14533 #: ../fish/guestfish-actions.pod:4344
14538 #: ../fish/guestfish-actions.pod:4346
14541 " set-trace true|false\n"
14544 " set-trace true|false\n"
14548 #: ../fish/guestfish-actions.pod:4348 ../src/guestfs-actions.pod:6591
14550 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14551 "return values are traced."
14555 #: ../fish/guestfish-actions.pod:4351 ../src/guestfs-actions.pod:6594
14557 "If you want to trace C API calls into libguestfs (and other libraries) then "
14558 "possibly a better way is to use the external ltrace(1) command."
14562 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6598
14564 "Command traces are disabled unless the environment variable "
14565 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14569 #: ../fish/guestfish-actions.pod:4358
14571 "Trace messages are normally sent to C<stderr>, unless you register a "
14572 "callback to send them somewhere else (see L</set-event-callback>)."
14576 #: ../fish/guestfish-actions.pod:4362
14577 msgid "set-verbose"
14578 msgstr "set-verbose"
14581 #: ../fish/guestfish-actions.pod:4364
14586 #: ../fish/guestfish-actions.pod:4366
14589 " set-verbose true|false\n"
14592 " set-verbose true|false\n"
14596 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6615
14597 msgid "If C<verbose> is true, this turns on verbose messages."
14601 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6617
14603 "Verbose messages are disabled unless the environment variable "
14604 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14608 #: ../fish/guestfish-actions.pod:4373
14610 "Verbose messages are normally sent to C<stderr>, unless you register a "
14611 "callback to send them somewhere else (see L</set-event-callback>)."
14615 #: ../fish/guestfish-actions.pod:4377
14620 #: ../fish/guestfish-actions.pod:4379
14623 " setcon context\n"
14626 " setcon контекст\n"
14630 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6634
14632 "This sets the SELinux security context of the daemon to the string "
14637 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6637
14638 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14642 #: ../fish/guestfish-actions.pod:4386
14647 #: ../fish/guestfish-actions.pod:4388
14650 " setxattr xattr val vallen path\n"
14655 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6652
14657 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14658 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
14662 #: ../fish/guestfish-actions.pod:4394
14663 msgid "See also: L</lsetxattr>, L<attr(5)>."
14664 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14667 #: ../fish/guestfish-actions.pod:4396
14672 #: ../fish/guestfish-actions.pod:4398
14675 " sfdisk device cyls heads sectors 'lines ...'\n"
14680 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6679
14682 "This is a direct interface to the L<sfdisk(8)> program for creating "
14683 "partitions on block devices."
14687 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6682
14688 msgid "C<device> should be a block device, for example C</dev/sda>."
14692 #: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:6684
14694 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14695 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14696 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
14697 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
14698 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14699 "the kernel) cannot work out the right geometry and you will need to tell it."
14703 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6692
14705 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
14706 "refer to the L<sfdisk(8)> manpage."
14710 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6695
14712 "To create a single partition occupying the whole disk, you would pass "
14713 "C<lines> as a single element list, when the single element being the string "
14718 #: ../fish/guestfish-actions.pod:4420
14719 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14720 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14723 #: ../fish/guestfish-actions.pod:4426 ../fish/guestfish-actions.pod:4449
14724 #: ../fish/guestfish-actions.pod:4471
14726 "I<This function is deprecated.> In new code, use the L</part_add> call "
14731 #: ../fish/guestfish-actions.pod:4433
14736 #: ../fish/guestfish-actions.pod:4435
14739 " sfdiskM device 'lines ...'\n"
14744 #: ../fish/guestfish-actions.pod:4437
14746 "This is a simplified interface to the L</sfdisk> command, where partition "
14747 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14748 "you don't need to specify the cyls, heads and sectors parameters which were "
14749 "rarely if ever used anyway."
14753 #: ../fish/guestfish-actions.pod:4443
14754 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14756 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14759 #: ../fish/guestfish-actions.pod:4456
14764 #: ../fish/guestfish-actions.pod:4458
14767 " sfdisk-N device partnum cyls heads sectors line\n"
14772 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6757
14774 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14775 "(note: C<n> counts from 1)."
14779 #: ../fish/guestfish-actions.pod:4463
14781 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
14782 "cyls/heads/sectors parameters."
14786 #: ../fish/guestfish-actions.pod:4466
14787 msgid "See also: L</part-add>"
14788 msgstr "Див. також L</part-add>"
14791 #: ../fish/guestfish-actions.pod:4478
14792 msgid "sfdisk-disk-geometry"
14793 msgstr "sfdisk-disk-geometry"
14796 #: ../fish/guestfish-actions.pod:4480
14799 " sfdisk-disk-geometry device\n"
14802 " sfdisk-disk-geometry пристрій\n"
14806 #: ../fish/guestfish-actions.pod:4482
14808 "This displays the disk geometry of C<device> read from the partition table. "
14809 "Especially in the case where the underlying block device has been resized, "
14810 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14811 "kernel-geometry>)."
14815 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4496
14816 #: ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:6799
14817 msgid "The result is in human-readable format, and not designed to be parsed."
14821 #: ../fish/guestfish-actions.pod:4490
14822 msgid "sfdisk-kernel-geometry"
14823 msgstr "sfdisk-kernel-geometry"
14826 #: ../fish/guestfish-actions.pod:4492
14829 " sfdisk-kernel-geometry device\n"
14832 " sfdisk-kernel-geometry пристрій\n"
14836 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6797
14837 msgid "This displays the kernel's idea of the geometry of C<device>."
14841 #: ../fish/guestfish-actions.pod:4499
14846 #: ../fish/guestfish-actions.pod:4501
14849 " sfdisk-l device\n"
14852 " sfdisk-l пристрій\n"
14856 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6820
14858 "This displays the partition table on C<device>, in the human-readable output "
14859 "of the L<sfdisk(8)> command. It is not intended to be parsed."
14863 #: ../fish/guestfish-actions.pod:4507
14864 msgid "See also: L</part-list>"
14865 msgstr "Див. також L</part-list>"
14868 #: ../fish/guestfish-actions.pod:4509
14870 "I<This function is deprecated.> In new code, use the L</part_list> call "
14875 #: ../fish/guestfish-actions.pod:4516
14880 #: ../fish/guestfish-actions.pod:4518
14890 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6837
14892 "This call runs a command from the guest filesystem via the guest's C</bin/"
14897 #: ../fish/guestfish-actions.pod:4523
14898 msgid "This is like L</command>, but passes the command to:"
14902 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6842
14905 " /bin/sh -c \"command\"\n"
14910 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6844
14912 "Depending on the guest's shell, this usually results in wildcards being "
14913 "expanded, shell expressions being interpolated and so on."
14917 #: ../fish/guestfish-actions.pod:4531
14918 msgid "All the provisos about L</command> apply to this call."
14922 #: ../fish/guestfish-actions.pod:4533
14927 #: ../fish/guestfish-actions.pod:4535
14930 " sh-lines command\n"
14933 " sh-lines команда\n"
14937 #: ../fish/guestfish-actions.pod:4537
14938 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14942 #: ../fish/guestfish-actions.pod:4540
14943 msgid "See also: L</command-lines>"
14944 msgstr "Див. також L</command-lines>"
14947 #: ../fish/guestfish-actions.pod:4542
14952 #: ../fish/guestfish-actions.pod:4544
14958 " sleep час_у_секундах\n"
14962 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6878
14963 msgid "Sleep for C<secs> seconds."
14967 #: ../fish/guestfish-actions.pod:4548
14972 #: ../fish/guestfish-actions.pod:4550
14982 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6892
14983 msgid "This is the same as the C<stat(2)> system call."
14987 #: ../fish/guestfish-actions.pod:4556
14992 #: ../fish/guestfish-actions.pod:4558
15002 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6906
15004 "Returns file system statistics for any mounted file system. C<path> should "
15005 "be a file or directory in the mounted file system (typically it is the mount "
15006 "point itself, but it doesn't need to be)."
15010 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6910
15011 msgid "This is the same as the C<statvfs(2)> system call."
15015 #: ../fish/guestfish-actions.pod:4566
15020 #: ../fish/guestfish-actions.pod:4568
15030 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6924
15032 "This runs the L<strings(1)> command on a file and returns the list of "
15033 "printable strings found."
15037 #: ../fish/guestfish-actions.pod:4576
15042 #: ../fish/guestfish-actions.pod:4578
15045 " strings-e encoding path\n"
15048 " strings-e кодування шлях\n"
15052 #: ../fish/guestfish-actions.pod:4580
15054 "This is like the L</strings> command, but allows you to specify the encoding "
15055 "of strings that are looked for in the source file C<path>."
15059 #: ../fish/guestfish-actions.pod:4584 ../src/guestfs-actions.pod:6947
15060 msgid "Allowed encodings are:"
15061 msgstr "Можливими кодуваннями є:"
15064 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6951
15069 #: ../fish/guestfish-actions.pod:4590
15071 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15072 "ISO-8859-X (this is what L</strings> uses)."
15076 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6956
15081 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:6958
15082 msgid "Single 8-bit-byte characters."
15083 msgstr "Окремі 8-бітові-байтові символи."
15086 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6960
15091 #: ../fish/guestfish-actions.pod:4599 ../src/guestfs-actions.pod:6962
15092 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15096 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6965
15097 msgid "l (lower case letter L)"
15101 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6967
15103 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
15104 "examining binaries in Windows guests."
15108 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6970
15113 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6972
15114 msgid "32-bit big endian such as UCS-4BE."
15118 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6974
15123 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6976
15124 msgid "32-bit little endian such as UCS-4LE."
15128 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6980
15129 msgid "The returned strings are transcoded to UTF-8."
15133 #: ../fish/guestfish-actions.pod:4622
15134 msgid "swapoff-device"
15135 msgstr "swapoff-device"
15138 #: ../fish/guestfish-actions.pod:4624
15141 " swapoff-device device\n"
15144 " swapoff-device пристрій\n"
15148 #: ../fish/guestfish-actions.pod:4626
15150 "This command disables the libguestfs appliance swap device or partition "
15151 "named C<device>. See L</swapon-device>."
15155 #: ../fish/guestfish-actions.pod:4630
15156 msgid "swapoff-file"
15157 msgstr "swapoff-file"
15160 #: ../fish/guestfish-actions.pod:4632
15163 " swapoff-file file\n"
15166 " swapoff-file файл\n"
15170 #: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7011
15171 msgid "This command disables the libguestfs appliance swap on file."
15175 #: ../fish/guestfish-actions.pod:4636
15176 msgid "swapoff-label"
15177 msgstr "swapoff-label"
15180 #: ../fish/guestfish-actions.pod:4638
15183 " swapoff-label label\n"
15186 " swapoff-label мітка\n"
15190 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:7023
15192 "This command disables the libguestfs appliance swap on labeled swap "
15197 #: ../fish/guestfish-actions.pod:4643
15198 msgid "swapoff-uuid"
15199 msgstr "swapoff-uuid"
15202 #: ../fish/guestfish-actions.pod:4645
15205 " swapoff-uuid uuid\n"
15208 " swapoff-uuid uuid\n"
15212 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7036
15214 "This command disables the libguestfs appliance swap partition with the given "
15219 #: ../fish/guestfish-actions.pod:4650
15220 msgid "swapon-device"
15221 msgstr "swapon-device"
15224 #: ../fish/guestfish-actions.pod:4652
15227 " swapon-device device\n"
15230 " swapon-device пристрій\n"
15234 #: ../fish/guestfish-actions.pod:4654
15236 "This command enables the libguestfs appliance to use the swap device or "
15237 "partition named C<device>. The increased memory is made available for all "
15238 "commands, for example those run using L</command> or L</sh>."
15242 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7054
15244 "Note that you should not swap to existing guest swap partitions unless you "
15245 "know what you are doing. They may contain hibernation information, or other "
15246 "information that the guest doesn't want you to trash. You also risk leaking "
15247 "information about the host to the guest this way. Instead, attach a new "
15248 "host device to the guest and swap on that."
15252 #: ../fish/guestfish-actions.pod:4666
15253 msgid "swapon-file"
15254 msgstr "swapon-file"
15257 #: ../fish/guestfish-actions.pod:4668
15260 " swapon-file file\n"
15263 " swapon-file файл\n"
15267 #: ../fish/guestfish-actions.pod:4670
15269 "This command enables swap to a file. See L</swapon-device> for other notes."
15273 #: ../fish/guestfish-actions.pod:4673
15274 msgid "swapon-label"
15275 msgstr "swapon-label"
15278 #: ../fish/guestfish-actions.pod:4675
15281 " swapon-label label\n"
15284 " swapon-label мітка\n"
15288 #: ../fish/guestfish-actions.pod:4677
15290 "This command enables swap to a labeled swap partition. See L</swapon-"
15291 "device> for other notes."
15295 #: ../fish/guestfish-actions.pod:4680
15296 msgid "swapon-uuid"
15297 msgstr "swapon-uuid"
15300 #: ../fish/guestfish-actions.pod:4682
15303 " swapon-uuid uuid\n"
15306 " swapon-uuid uuid\n"
15310 #: ../fish/guestfish-actions.pod:4684
15312 "This command enables swap to a swap partition with the given UUID. See L</"
15313 "swapon-device> for other notes."
15317 #: ../fish/guestfish-actions.pod:4687
15322 #: ../fish/guestfish-actions.pod:4689
15332 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7109
15334 "This syncs the disk, so that any writes are flushed through to the "
15335 "underlying disk image."
15339 #: ../fish/guestfish-actions.pod:4694 ../src/guestfs-actions.pod:7112
15341 "You should always call this if you have modified a disk image, before "
15342 "closing the handle."
15346 #: ../fish/guestfish-actions.pod:4697
15351 #: ../fish/guestfish-actions.pod:4699
15361 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7125
15363 "This command returns up to the last 10 lines of a file as a list of strings."
15367 #: ../fish/guestfish-actions.pod:4707
15372 #: ../fish/guestfish-actions.pod:4709
15375 " tail-n nrlines path\n"
15380 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7144
15382 "If the parameter C<nrlines> is a positive number, this returns the last "
15383 "C<nrlines> lines of the file C<path>."
15387 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7147
15389 "If the parameter C<nrlines> is a negative number, this returns lines from "
15390 "the file C<path>, starting with the C<-nrlines>th line."
15394 #: ../fish/guestfish-actions.pod:4722
15399 #: ../fish/guestfish-actions.pod:4724
15402 " tar-in (tarfile|-) directory\n"
15405 " tar-in (файл_tar|-) каталог\n"
15409 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7168
15411 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15412 "tar file) into C<directory>."
15416 #: ../fish/guestfish-actions.pod:4729
15417 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15421 #: ../fish/guestfish-actions.pod:4734
15426 #: ../fish/guestfish-actions.pod:4736
15429 " tar-out directory (tarfile|-)\n"
15432 " tar-out каталог (файл tar|-)\n"
15436 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7185
15438 "This command packs the contents of C<directory> and downloads it to local "
15443 #: ../fish/guestfish-actions.pod:4741
15444 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15448 #: ../fish/guestfish-actions.pod:4746
15453 #: ../fish/guestfish-actions.pod:4748
15456 " tgz-in (tarball|-) directory\n"
15459 " tgz-in (архів tar|-) каталог\n"
15463 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7202
15465 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15466 "tar file) into C<directory>."
15470 #: ../fish/guestfish-actions.pod:4753
15471 msgid "To upload an uncompressed tarball, use L</tar-in>."
15475 #: ../fish/guestfish-actions.pod:4757
15480 #: ../fish/guestfish-actions.pod:4759
15483 " tgz-out directory (tarball|-)\n"
15486 " tgz-out каталог (архів tar|-)\n"
15490 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7218
15492 "This command packs the contents of C<directory> and downloads it to local "
15497 #: ../fish/guestfish-actions.pod:4764
15498 msgid "To download an uncompressed tarball, use L</tar-out>."
15502 #: ../fish/guestfish-actions.pod:4768
15507 #: ../fish/guestfish-actions.pod:4770
15517 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7233
15519 "Touch acts like the L<touch(1)> command. It can be used to update the "
15520 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15525 #: ../fish/guestfish-actions.pod:4776 ../src/guestfs-actions.pod:7237
15527 "This command only works on regular files, and will fail on other file types "
15528 "such as directories, symbolic links, block special etc."
15532 #: ../fish/guestfish-actions.pod:4779
15537 #: ../fish/guestfish-actions.pod:4781
15547 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7250
15549 "This command truncates C<path> to a zero-length file. The file must exist "
15554 #: ../fish/guestfish-actions.pod:4786
15555 msgid "truncate-size"
15556 msgstr "truncate-size"
15559 #: ../fish/guestfish-actions.pod:4788
15562 " truncate-size path size\n"
15565 " truncate-size шлях розмір\n"
15569 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7264
15571 "This command truncates C<path> to size C<size> bytes. The file must exist "
15576 #: ../fish/guestfish-actions.pod:4793
15578 "If the current file size is less than C<size> then the file is extended to "
15579 "the required size with zero bytes. This creates a sparse file (ie. disk "
15580 "blocks are not allocated for the file until you write to it). To create a "
15581 "non-sparse file of zeroes, use L</fallocate64> instead."
15585 #: ../fish/guestfish-actions.pod:4799
15590 #: ../fish/guestfish-actions.pod:4801
15593 " tune2fs-l device\n"
15596 " tune2fs-l пристрій\n"
15600 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7283
15602 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15607 #: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7286
15609 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
15610 "for more details. The list of fields returned isn't clearly defined, and "
15611 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15612 "and the filesystem itself."
15616 #: ../fish/guestfish-actions.pod:4811
15621 #: ../fish/guestfish-actions.pod:4813
15624 " txz-in (tarball|-) directory\n"
15627 " txz-in (архів tar|-) каталог\n"
15631 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7306
15633 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15634 "tar file) into C<directory>."
15638 #: ../fish/guestfish-actions.pod:4820
15643 #: ../fish/guestfish-actions.pod:4822
15646 " txz-out directory (tarball|-)\n"
15649 " txz-out каталог (архів tar|-)\n"
15653 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7320
15655 "This command packs the contents of C<directory> and downloads it to local "
15656 "file C<tarball> (as an xz compressed tar archive)."
15660 #: ../fish/guestfish-actions.pod:4829
15665 #: ../fish/guestfish-actions.pod:4831
15675 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7333
15677 "This function sets the mask used for creating new files and device nodes to "
15682 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7336
15684 "Typical umask values would be C<022> which creates new files with "
15685 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15686 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15690 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7341
15692 "The default umask is C<022>. This is important because it means that "
15693 "directories and device nodes will be created with C<0644> or C<0755> mode "
15694 "even if you specify C<0777>."
15698 #: ../fish/guestfish-actions.pod:4845
15699 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15700 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15703 #: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7348
15704 msgid "This call returns the previous umask."
15708 #: ../fish/guestfish-actions.pod:4850
15713 #: ../fish/guestfish-actions.pod:4852
15718 #: ../fish/guestfish-actions.pod:4854
15721 " umount pathordevice\n"
15724 " umount шлях_або_пристрій\n"
15728 #: ../fish/guestfish-actions.pod:4856 ../src/guestfs-actions.pod:7360
15730 "This unmounts the given filesystem. The filesystem may be specified either "
15731 "by its mountpoint (path) or the device which contains the filesystem."
15735 #: ../fish/guestfish-actions.pod:4860
15737 msgstr "umount-all"
15740 #: ../fish/guestfish-actions.pod:4862
15741 msgid "unmount-all"
15742 msgstr "unmount-all"
15745 #: ../fish/guestfish-actions.pod:4864
15755 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7373
15756 msgid "This unmounts all mounted filesystems."
15760 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7375
15761 msgid "Some internal mounts are not unmounted by this call."
15765 #: ../fish/guestfish-actions.pod:4870
15770 #: ../fish/guestfish-actions.pod:4872
15773 " upload (filename|-) remotefilename\n"
15776 " upload (назва_файла|-) назва_віддаленого_файла\n"
15780 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4887
15781 #: ../src/guestfs-actions.pod:7388 ../src/guestfs-actions.pod:7412
15782 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15786 #: ../fish/guestfish-actions.pod:4879
15787 msgid "See also L</download>."
15788 msgstr "Див. також L</download>."
15791 #: ../fish/guestfish-actions.pod:4883
15792 msgid "upload-offset"
15793 msgstr "upload-offset"
15796 #: ../fish/guestfish-actions.pod:4885
15799 " upload-offset (filename|-) remotefilename offset\n"
15802 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15806 #: ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:7415
15808 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
15809 "The intention is to overwrite parts of existing files or devices, although "
15810 "if a non-existant file is specified then it is created with a \"hole\" "
15811 "before C<offset>. The size of the data written is implicit in the size of "
15812 "the source C<filename>."
15816 #: ../fish/guestfish-actions.pod:4897
15818 "Note that there is no limit on the amount of data that can be uploaded with "
15819 "this call, unlike with L</pwrite>, and this call always writes the full "
15820 "amount unless an error occurs."
15824 #: ../fish/guestfish-actions.pod:4902
15825 msgid "See also L</upload>, L</pwrite>."
15826 msgstr "Див. також L</upload>, L</pwrite>."
15829 #: ../fish/guestfish-actions.pod:4906
15834 #: ../fish/guestfish-actions.pod:4908
15837 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15842 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7448
15843 msgid "This command sets the timestamps of a file with nanosecond precision."
15847 #: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7451
15849 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15854 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7454
15856 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15857 "nanoseconds from the epoch."
15861 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7457
15863 "If the C<*nsecs> field contains the special value C<-1> then the "
15864 "corresponding timestamp is set to the current time. (The C<*secs> field is "
15865 "ignored in this case)."
15869 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7461
15871 "If the C<*nsecs> field contains the special value C<-2> then the "
15872 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
15877 #: ../fish/guestfish-actions.pod:4927
15882 #: ../fish/guestfish-actions.pod:4929
15892 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7474
15894 "Return the libguestfs version number that the program is linked against."
15898 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7477
15900 "Note that because of dynamic linking this is not necessarily the version of "
15901 "libguestfs that you compiled against. You can compile the program, and then "
15902 "at runtime dynamically link against a completely different C<libguestfs.so> "
15907 #: ../fish/guestfish-actions.pod:4939 ../src/guestfs-actions.pod:7482
15909 "This call was added in version C<1.0.58>. In previous versions of "
15910 "libguestfs there was no way to get the version number. From C code you can "
15911 "use dynamic linker functions to find out if this symbol exists (if it "
15912 "doesn't, then it's an earlier version)."
15916 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7488
15918 "The call returns a structure with four elements. The first three (C<major>, "
15919 "C<minor> and C<release>) are numbers and correspond to the usual version "
15920 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
15921 "but may be used for distro-specific information."
15925 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7494
15927 "To construct the original version string: C<$major.$minor.$release$extra>"
15931 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7497
15932 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15936 #: ../fish/guestfish-actions.pod:4956
15938 "I<Note:> Don't use this call to test for availability of features. In "
15939 "enterprise distributions we backport features from later versions into "
15940 "earlier versions, making this an unreliable way to test for features. Use "
15941 "L</available> instead."
15945 #: ../fish/guestfish-actions.pod:4962
15950 #: ../fish/guestfish-actions.pod:4964
15953 " vfs-label device\n"
15956 " vfs-label пристрій\n"
15960 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7517
15961 msgid "This returns the filesystem label of the filesystem on C<device>."
15965 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7520
15966 msgid "If the filesystem is unlabeled, this returns the empty string."
15970 #: ../fish/guestfish-actions.pod:4971
15971 msgid "To find a filesystem from the label, use L</findfs-label>."
15975 #: ../fish/guestfish-actions.pod:4973
15980 #: ../fish/guestfish-actions.pod:4975
15983 " vfs-type device\n"
15986 " vfs-type пристрій\n"
15990 #: ../fish/guestfish-actions.pod:4977 ../src/guestfs-actions.pod:7535
15992 "This command gets the filesystem type corresponding to the filesystem on "
15997 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7538
15999 "For most filesystems, the result is the name of the Linux VFS module which "
16000 "would be used to mount this filesystem if you mounted it without specifying "
16001 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
16005 #: ../fish/guestfish-actions.pod:4985
16010 #: ../fish/guestfish-actions.pod:4987
16013 " vfs-uuid device\n"
16016 " vfs-uuid пристрій\n"
16020 #: ../fish/guestfish-actions.pod:4989 ../src/guestfs-actions.pod:7554
16021 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16025 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7557
16026 msgid "If the filesystem does not have a UUID, this returns the empty string."
16030 #: ../fish/guestfish-actions.pod:4994
16031 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16035 #: ../fish/guestfish-actions.pod:4996
16036 msgid "vg-activate"
16037 msgstr "vg-activate"
16040 #: ../fish/guestfish-actions.pod:4998
16043 " vg-activate true|false 'volgroups ...'\n"
16048 #: ../fish/guestfish-actions.pod:5000 ../src/guestfs-actions.pod:7573
16050 "This command activates or (if C<activate> is false) deactivates all logical "
16051 "volumes in the listed volume groups C<volgroups>."
16055 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7576
16056 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16060 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7578
16062 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16063 "activated or deactivated."
16067 #: ../fish/guestfish-actions.pod:5008
16068 msgid "vg-activate-all"
16069 msgstr "vg-activate-all"
16072 #: ../fish/guestfish-actions.pod:5010
16075 " vg-activate-all true|false\n"
16078 " vg-activate-all true|false\n"
16082 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7591
16084 "This command activates or (if C<activate> is false) deactivates all logical "
16085 "volumes in all volume groups."
16089 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7594
16090 msgid "This command is the same as running C<vgchange -a y|n>"
16094 #: ../fish/guestfish-actions.pod:5017
16099 #: ../fish/guestfish-actions.pod:5019
16102 " vgcreate volgroup 'physvols ...'\n"
16107 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7607
16109 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16110 "of physical volumes C<physvols>."
16114 #: ../fish/guestfish-actions.pod:5024
16119 #: ../fish/guestfish-actions.pod:5026
16122 " vglvuuids vgname\n"
16127 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7620
16129 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16130 "volumes created in this volume group."
16134 #: ../fish/guestfish-actions.pod:5031
16136 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16137 "logical volumes and volume groups."
16141 #: ../fish/guestfish-actions.pod:5034
16142 msgid "See also L</vgpvuuids>."
16143 msgstr "Див. також L</vgpvuuids>."
16146 #: ../fish/guestfish-actions.pod:5036
16151 #: ../fish/guestfish-actions.pod:5038
16154 " vgpvuuids vgname\n"
16159 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7640
16161 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16162 "volumes that this volume group resides on."
16166 #: ../fish/guestfish-actions.pod:5043
16168 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16169 "physical volumes and volume groups."
16173 #: ../fish/guestfish-actions.pod:5046
16174 msgid "See also L</vglvuuids>."
16175 msgstr "Див. також L</vglvuuids>."
16178 #: ../fish/guestfish-actions.pod:5048
16183 #: ../fish/guestfish-actions.pod:5050
16186 " vgremove vgname\n"
16191 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7660
16192 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16196 #: ../fish/guestfish-actions.pod:5054 ../src/guestfs-actions.pod:7662
16198 "This also forcibly removes all logical volumes in the volume group (if any)."
16202 #: ../fish/guestfish-actions.pod:5057
16207 #: ../fish/guestfish-actions.pod:5059
16210 " vgrename volgroup newvolgroup\n"
16215 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7676
16216 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16220 #: ../fish/guestfish-actions.pod:5063
16225 #: ../fish/guestfish-actions.pod:5065
16235 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7687
16237 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
16242 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7690
16244 "This returns a list of just the volume group names that were detected (eg. "
16249 #: ../fish/guestfish-actions.pod:5073
16250 msgid "See also L</vgs-full>."
16251 msgstr "Див. також L</vgs-full>."
16254 #: ../fish/guestfish-actions.pod:5075
16259 #: ../fish/guestfish-actions.pod:5077
16269 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7706
16271 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
16272 "> command. The \"full\" version includes all fields."
16276 #: ../fish/guestfish-actions.pod:5082
16281 #: ../fish/guestfish-actions.pod:5084
16291 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7720
16293 "This rescans all block devices and rebuilds the list of LVM physical "
16294 "volumes, volume groups and logical volumes."
16298 #: ../fish/guestfish-actions.pod:5089
16303 #: ../fish/guestfish-actions.pod:5091
16311 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7733
16312 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16316 #: ../fish/guestfish-actions.pod:5095
16321 #: ../fish/guestfish-actions.pod:5097
16331 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7773
16333 "This command counts the characters in a file, using the C<wc -c> external "
16338 #: ../fish/guestfish-actions.pod:5102
16343 #: ../fish/guestfish-actions.pod:5104
16353 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7786
16355 "This command counts the lines in a file, using the C<wc -l> external command."
16359 #: ../fish/guestfish-actions.pod:5109
16364 #: ../fish/guestfish-actions.pod:5111
16374 #: ../fish/guestfish-actions.pod:5113 ../src/guestfs-actions.pod:7799
16376 "This command counts the words in a file, using the C<wc -w> external command."
16380 #: ../fish/guestfish-actions.pod:5116
16385 #: ../fish/guestfish-actions.pod:5118
16388 " write path content\n"
16391 " write шлях дані\n"
16395 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7814
16397 "This call creates a file called C<path>. The content of the file is the "
16398 "string C<content> (which can contain any 8 bit data)."
16402 #: ../fish/guestfish-actions.pod:5123
16403 msgid "See also L</write-append>."
16407 #: ../fish/guestfish-actions.pod:5128
16408 msgid "write-append"
16412 #: ../fish/guestfish-actions.pod:5130
16415 " write-append path content\n"
16420 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7834
16422 "This call appends C<content> to the end of file C<path>. If C<path> does "
16423 "not exist, then a new file is created."
16427 #: ../fish/guestfish-actions.pod:5135
16428 msgid "See also L</write>."
16432 #: ../fish/guestfish-actions.pod:5140
16434 msgstr "write-file"
16437 #: ../fish/guestfish-actions.pod:5142
16440 " write-file path content size\n"
16445 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7861
16447 "This call creates a file called C<path>. The contents of the file is the "
16448 "string C<content> (which can contain any 8 bit data), with length C<size>."
16452 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7865
16454 "As a special case, if C<size> is C<0> then the length is calculated using "
16455 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16459 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7869
16461 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16462 "I<not> work, even if the length is specified."
16466 #: ../fish/guestfish-actions.pod:5158
16468 "I<This function is deprecated.> In new code, use the L</write> call instead."
16472 #: ../fish/guestfish-actions.pod:5165
16477 #: ../fish/guestfish-actions.pod:5167
16480 " zegrep regex path\n"
16483 " zegrep формальний_вираз шлях\n"
16487 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7886
16489 "This calls the external C<zegrep> program and returns the matching lines."
16493 #: ../fish/guestfish-actions.pod:5175
16498 #: ../fish/guestfish-actions.pod:5177
16501 " zegrepi regex path\n"
16506 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7905
16508 "This calls the external C<zegrep -i> program and returns the matching lines."
16512 #: ../fish/guestfish-actions.pod:5185
16517 #: ../fish/guestfish-actions.pod:5187
16527 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7923
16528 msgid "This command writes zeroes over the first few blocks of C<device>."
16532 #: ../fish/guestfish-actions.pod:5191 ../src/guestfs-actions.pod:7925
16534 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16535 "securely wipe the device). It should be sufficient to remove any partition "
16536 "tables, filesystem superblocks and so on."
16540 #: ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5210
16541 #: ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:7955
16543 "If blocks are already zero, then this command avoids writing zeroes. This "
16544 "prevents the underlying device from becoming non-sparse or growing "
16549 #: ../fish/guestfish-actions.pod:5199
16550 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16554 #: ../fish/guestfish-actions.pod:5202
16555 msgid "zero-device"
16556 msgstr "zero-device"
16559 #: ../fish/guestfish-actions.pod:5204
16562 " zero-device device\n"
16565 " zero-device пристрій\n"
16569 #: ../fish/guestfish-actions.pod:5206
16571 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
16572 "which just zeroes the first few blocks of a device."
16576 #: ../fish/guestfish-actions.pod:5217
16581 #: ../fish/guestfish-actions.pod:5219
16584 " zerofree device\n"
16587 " zerofree пристрій\n"
16591 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:7977
16593 "This runs the I<zerofree> program on C<device>. This program claims to zero "
16594 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16595 "possible to compress the filesystem more effectively."
16599 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:7982
16600 msgid "You should B<not> run this program if the filesystem is mounted."
16604 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:7985
16606 "It is possible that using this program can damage the filesystem or data on "
16611 #: ../fish/guestfish-actions.pod:5232
16616 #: ../fish/guestfish-actions.pod:5234
16619 " zfgrep pattern path\n"
16622 " zfgrep шаблон шлях\n"
16626 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7999
16628 "This calls the external C<zfgrep> program and returns the matching lines."
16632 #: ../fish/guestfish-actions.pod:5242
16637 #: ../fish/guestfish-actions.pod:5244
16640 " zfgrepi pattern path\n"
16643 " zfgrepi шаблон шлях\n"
16647 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8018
16649 "This calls the external C<zfgrep -i> program and returns the matching lines."
16653 #: ../fish/guestfish-actions.pod:5252
16658 #: ../fish/guestfish-actions.pod:5254
16661 " zfile meth path\n"
16664 " zfile метод шлях\n"
16668 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8044
16670 "This command runs C<file> after first decompressing C<path> using C<method>."
16674 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8047
16675 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16679 #: ../fish/guestfish-actions.pod:5261
16681 "Since 1.0.63, use L</file> instead which can now process compressed files."
16685 #: ../fish/guestfish-actions.pod:5264
16687 "I<This function is deprecated.> In new code, use the L</file> call instead."
16691 #: ../fish/guestfish-actions.pod:5271
16696 #: ../fish/guestfish-actions.pod:5273
16699 " zgrep regex path\n"
16702 " zgrep формальний_вираз шлях\n"
16706 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8064
16708 "This calls the external C<zgrep> program and returns the matching lines."
16712 #: ../fish/guestfish-actions.pod:5281
16717 #: ../fish/guestfish-actions.pod:5283
16720 " zgrepi regex path\n"
16723 " zgrepi формальний_вираз шлях\n"
16727 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8083
16729 "This calls the external C<zgrep -i> program and returns the matching lines."
16733 #: ../fish/guestfish-commands.pod:1
16738 #: ../fish/guestfish-commands.pod:3
16743 #: ../fish/guestfish-commands.pod:5
16746 " alloc filename size\n"
16751 #: ../fish/guestfish-commands.pod:7
16753 "This creates an empty (zeroed) file of the given size, and then adds so it "
16754 "can be further examined."
16758 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16759 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16763 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16764 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16768 #: ../fish/guestfish-commands.pod:14
16770 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
16771 "image, see L</PREPARED DISK IMAGES>."
16775 #: ../fish/guestfish-commands.pod:17
16780 #: ../fish/guestfish-commands.pod:19
16783 " copy-in local [local ...] /remotedir\n"
16788 #: ../fish/guestfish-commands.pod:21
16790 "C<copy-in> copies local files or directories recursively into the disk "
16791 "image, placing them in the directory called C</remotedir> (which must "
16792 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
16793 "other commands as necessary."
16797 #: ../fish/guestfish-commands.pod:26
16799 "Multiple local files and directories can be specified, but the last "
16800 "parameter must always be a remote directory. Wildcards cannot be used."
16804 #: ../fish/guestfish-commands.pod:30
16809 #: ../fish/guestfish-commands.pod:32
16812 " copy-out remote [remote ...] localdir\n"
16817 #: ../fish/guestfish-commands.pod:34
16819 "C<copy-out> copies remote files or directories recursively out of the disk "
16820 "image, placing them on the host disk in a local directory called C<localdir> "
16821 "(which must exist). This guestfish meta-command turns into a sequence of L</"
16822 "download>, L</tar-out> and other commands as necessary."
16826 #: ../fish/guestfish-commands.pod:40
16828 "Multiple remote files and directories can be specified, but the last "
16829 "parameter must always be a local directory. To download to the current "
16830 "directory, use C<.> as in:"
16834 #: ../fish/guestfish-commands.pod:44
16837 " copy-out /home .\n"
16840 " copy-out /home .\n"
16844 #: ../fish/guestfish-commands.pod:46
16846 "Wildcards cannot be used in the ordinary command, but you can use them with "
16847 "the help of L</glob> like this:"
16851 #: ../fish/guestfish-commands.pod:49
16854 " glob copy-out /home/* .\n"
16857 " glob copy-out /home/* .\n"
16861 #: ../fish/guestfish-commands.pod:51
16866 #: ../fish/guestfish-commands.pod:53
16869 " display filename\n"
16874 #: ../fish/guestfish-commands.pod:55
16876 "Use C<display> (a graphical display program) to display an image file. It "
16877 "downloads the file, and runs C<display> on it."
16881 #: ../fish/guestfish-commands.pod:58
16883 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16884 "environment variable. For example to use the GNOME display program:"
16888 #: ../fish/guestfish-commands.pod:61
16891 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16896 #: ../fish/guestfish-commands.pod:63
16897 msgid "See also L<display(1)>."
16901 #: ../fish/guestfish-commands.pod:65
16906 #: ../fish/guestfish-commands.pod:67
16909 " echo [params ...]\n"
16912 " echo [параметри...]\n"
16916 #: ../fish/guestfish-commands.pod:69
16917 msgid "This echos the parameters to the terminal."
16921 #: ../fish/guestfish-commands.pod:71
16926 #: ../fish/guestfish-commands.pod:73
16931 #: ../fish/guestfish-commands.pod:75
16936 #: ../fish/guestfish-commands.pod:77
16942 " edit назва_файла\n"
16946 #: ../fish/guestfish-commands.pod:79
16948 "This is used to edit a file. It downloads the file, edits it locally using "
16949 "your editor, then uploads the result."
16953 #: ../fish/guestfish-commands.pod:82
16955 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
16956 "or C<emacs> you will get those corresponding editors."
16960 #: ../fish/guestfish-commands.pod:86
16965 #: ../fish/guestfish-commands.pod:88
16968 " glob command args...\n"
16971 " glob команда параметри...\n"
16975 #: ../fish/guestfish-commands.pod:90
16977 "Expand wildcards in any paths in the args list, and run C<command> "
16978 "repeatedly on each matching path."
16982 #: ../fish/guestfish-commands.pod:93
16983 msgid "See L</WILDCARDS AND GLOBBING>."
16984 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16987 #: ../fish/guestfish-commands.pod:95
16992 #: ../fish/guestfish-commands.pod:97
16995 " hexedit <filename|device>\n"
16996 " hexedit <filename|device> <max>\n"
16997 " hexedit <filename|device> <start> <max>\n"
17002 #: ../fish/guestfish-commands.pod:101
17004 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17009 #: ../fish/guestfish-commands.pod:104
17011 "This command works by downloading potentially the whole file or device, "
17012 "editing it locally, then uploading it. If the file or device is large, you "
17013 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17014 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
17015 "usual modifiers allowed such as C<1M> (1 megabyte)."
17019 #: ../fish/guestfish-commands.pod:111
17020 msgid "For example to edit the first few sectors of a disk you might do:"
17024 #: ../fish/guestfish-commands.pod:114
17027 " hexedit /dev/sda 1M\n"
17030 " hexedit /dev/sda 1M\n"
17034 #: ../fish/guestfish-commands.pod:116
17036 "which would allow you to edit anywhere within the first megabyte of the disk."
17040 #: ../fish/guestfish-commands.pod:119
17041 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17045 #: ../fish/guestfish-commands.pod:121
17048 " hexedit /dev/sda1 0x400 0x400\n"
17051 " hexedit /dev/sda1 0x400 0x400\n"
17055 #: ../fish/guestfish-commands.pod:123
17056 msgid "(assuming the superblock is in the standard location)."
17060 #: ../fish/guestfish-commands.pod:125
17062 "This command requires the external L<hexedit(1)> program. You can specify "
17063 "another program to use by setting the C<HEXEDITOR> environment variable."
17067 #: ../fish/guestfish-commands.pod:129
17068 msgid "See also L</hexdump>."
17069 msgstr "Див. також L</hexdump>."
17072 #: ../fish/guestfish-commands.pod:131
17077 #: ../fish/guestfish-commands.pod:133
17085 #: ../fish/guestfish-commands.pod:135
17087 "Change the local directory, ie. the current directory of guestfish itself."
17091 #: ../fish/guestfish-commands.pod:138
17092 msgid "Note that C<!cd> won't do what you might expect."
17096 #: ../fish/guestfish-commands.pod:140
17101 #: ../fish/guestfish-commands.pod:142
17106 #: ../fish/guestfish-commands.pod:144
17116 #: ../fish/guestfish-commands.pod:146
17117 msgid "Opens the manual page for guestfish."
17121 #: ../fish/guestfish-commands.pod:148
17126 #: ../fish/guestfish-commands.pod:150
17131 #: ../fish/guestfish-commands.pod:152
17139 #: ../fish/guestfish-commands.pod:154
17147 #: ../fish/guestfish-commands.pod:156
17148 msgid "This is used to view a file."
17152 #: ../fish/guestfish-commands.pod:158
17154 "The default viewer is C<$PAGER>. However if you use the alternate command "
17155 "C<less> you will get the C<less> command specifically."
17159 #: ../fish/guestfish-commands.pod:161
17164 #: ../fish/guestfish-commands.pod:163
17172 #: ../fish/guestfish-commands.pod:165
17174 "Close and reopen the libguestfs handle. It is not necessary to use this "
17175 "normally, because the handle is closed properly when guestfish exits. "
17176 "However this is occasionally useful for testing."
17180 #: ../fish/guestfish-commands.pod:169
17185 #: ../fish/guestfish-commands.pod:171
17188 " setenv VAR value\n"
17193 #: ../fish/guestfish-commands.pod:173
17194 msgid "Set the environment variable C<VAR> to the string C<value>."
17198 #: ../fish/guestfish-commands.pod:175
17200 "To print the value of an environment variable use a shell command such as:"
17204 #: ../fish/guestfish-commands.pod:178
17212 #: ../fish/guestfish-commands.pod:180
17217 #: ../fish/guestfish-commands.pod:182
17220 " sparse filename size\n"
17225 #: ../fish/guestfish-commands.pod:184
17227 "This creates an empty sparse file of the given size, and then adds so it can "
17228 "be further examined."
17232 #: ../fish/guestfish-commands.pod:187
17234 "In all respects it works the same as the L</alloc> command, except that the "
17235 "image file is allocated sparsely, which means that disk blocks are not "
17236 "assigned to the file until they are needed. Sparse disk files only use "
17237 "space when written to, but they are slower and there is a danger you could "
17238 "run out of real disk space during a write operation."
17242 #: ../fish/guestfish-commands.pod:197
17247 #: ../fish/guestfish-commands.pod:199
17257 #: ../fish/guestfish-commands.pod:201
17259 "This command returns a list of the optional groups known to the daemon, and "
17260 "indicates which ones are supported by this build of the libguestfs appliance."
17264 #: ../fish/guestfish-commands.pod:205
17265 msgid "See also L<guestfs(3)/AVAILABILITY>."
17269 #: ../fish/guestfish-commands.pod:207
17274 #: ../fish/guestfish-commands.pod:209
17277 " time command args...\n"
17282 #: ../fish/guestfish-commands.pod:211
17284 "Run the command as usual, but print the elapsed time afterwards. This can "
17285 "be useful for benchmarking operations."
17289 #: ../fish/guestfish-commands.pod:214
17294 #: ../fish/guestfish-commands.pod:216
17302 #: ../fish/guestfish-commands.pod:218
17303 msgid "Remove C<VAR> from the environment."
17307 #: ../fish/guestfish.pod:5
17308 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17312 #: ../fish/guestfish.pod:9
17315 " guestfish [--options] [commands]\n"
17320 #: ../fish/guestfish.pod:11
17328 #: ../fish/guestfish.pod:13
17331 " guestfish [--ro|--rw] -a disk.img\n"
17336 #: ../fish/guestfish.pod:15
17339 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17344 #: ../fish/guestfish.pod:17
17347 " guestfish -d libvirt-domain\n"
17352 #: ../fish/guestfish.pod:19
17355 " guestfish [--ro|--rw] -a disk.img -i\n"
17360 #: ../fish/guestfish.pod:21
17363 " guestfish -d libvirt-domain -i\n"
17368 #: ../fish/guestfish.pod:25
17370 "Using guestfish in read/write mode on live virtual machines can be "
17371 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
17372 "option to use guestfish safely if the disk image or virtual machine might be "
17377 #: ../fish/guestfish.pod:32
17379 "Guestfish is a shell and command-line tool for examining and modifying "
17380 "virtual machine filesystems. It uses libguestfs and exposes all of the "
17381 "functionality of the guestfs API, see L<guestfs(3)>."
17385 #: ../fish/guestfish.pod:36
17387 "Guestfish gives you structured access to the libguestfs API, from shell "
17388 "scripts or the command line or interactively. If you want to rescue a "
17389 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17394 #: ../fish/guestfish.pod:43
17395 msgid "As an interactive shell"
17399 #: ../fish/guestfish.pod:45
17407 #: ../fish/guestfish.pod:47
17410 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17411 " editing virtual machine filesystems.\n"
17416 #: ../fish/guestfish.pod:50
17419 " Type: 'help' for a list of commands\n"
17420 " 'man' to read the manual\n"
17421 " 'quit' to quit the shell\n"
17426 #: ../fish/guestfish.pod:54
17429 " ><fs> add-ro disk.img\n"
17431 " ><fs> list-filesystems\n"
17432 " /dev/sda1: ext4\n"
17433 " /dev/vg_guest/lv_root: ext4\n"
17434 " /dev/vg_guest/lv_swap: swap\n"
17435 " ><fs> mount /dev/vg_guest/lv_root /\n"
17436 " ><fs> cat /etc/fstab\n"
17438 " # Created by anaconda\n"
17445 #: ../fish/guestfish.pod:67
17446 msgid "From shell scripts"
17450 #: ../fish/guestfish.pod:69
17451 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17455 #: ../fish/guestfish.pod:71
17458 " guestfish <<_EOF_\n"
17461 " mount /dev/vg_guest/lv_root /\n"
17462 " write /etc/motd \"Welcome, new users\"\n"
17468 #: ../fish/guestfish.pod:78
17469 msgid "List the LVM logical volumes in a disk image:"
17473 #: ../fish/guestfish.pod:80
17476 " guestfish -a disk.img --ro <<_EOF_\n"
17484 #: ../fish/guestfish.pod:85
17485 msgid "List all the filesystems in a disk image:"
17489 #: ../fish/guestfish.pod:87
17492 " guestfish -a disk.img --ro <<_EOF_\n"
17494 " list-filesystems\n"
17500 #: ../fish/guestfish.pod:92
17501 msgid "On one command line"
17505 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17506 msgid "Update C</etc/resolv.conf> in a guest:"
17510 #: ../fish/guestfish.pod:96
17514 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17515 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17520 #: ../fish/guestfish.pod:100
17521 msgid "Edit C</boot/grub/grub.conf> interactively:"
17525 #: ../fish/guestfish.pod:102
17528 " guestfish --rw --add disk.img \\\n"
17529 " --mount /dev/vg_guest/lv_root \\\n"
17530 " --mount /dev/sda1:/boot \\\n"
17531 " edit /boot/grub/grub.conf\n"
17536 #: ../fish/guestfish.pod:107
17537 msgid "Mount disks automatically"
17541 #: ../fish/guestfish.pod:109
17543 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17547 #: ../fish/guestfish.pod:112
17550 " guestfish --ro -a disk.img -i cat /etc/group\n"
17555 #: ../fish/guestfish.pod:114
17558 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17563 #: ../fish/guestfish.pod:116
17564 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17568 #: ../fish/guestfish.pod:118
17571 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17576 #: ../fish/guestfish.pod:120
17577 msgid "As a script interpreter"
17581 #: ../fish/guestfish.pod:122
17582 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17586 #: ../fish/guestfish.pod:124
17589 " #!/usr/bin/guestfish -f\n"
17590 " sparse test1.img 100M\n"
17592 " part-disk /dev/sda mbr\n"
17593 " mkfs ext2 /dev/sda1\n"
17598 #: ../fish/guestfish.pod:130
17599 msgid "Start with a prepared disk"
17603 #: ../fish/guestfish.pod:132
17605 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17606 "single ext2-formatted partition:"
17610 #: ../fish/guestfish.pod:135
17613 " guestfish -N fs\n"
17618 #: ../fish/guestfish.pod:137
17619 msgid "To list what is available do:"
17623 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17626 " guestfish -N help | less\n"
17631 #: ../fish/guestfish.pod:141
17632 msgid "Remote control"
17633 msgstr "Дистанційне керування"
17636 #: ../fish/guestfish.pod:143
17639 " eval \"`guestfish --listen`\"\n"
17640 " guestfish --remote add-ro disk.img\n"
17641 " guestfish --remote run\n"
17642 " guestfish --remote lvs\n"
17645 " eval \"`guestfish --listen`\"\n"
17646 " guestfish --remote add-ro disk.img\n"
17647 " guestfish --remote run\n"
17648 " guestfish --remote lvs\n"
17652 #: ../fish/guestfish.pod:154
17653 msgid "Displays general help on options."
17657 #: ../fish/guestfish.pod:158
17658 msgid "B<--cmd-help>"
17659 msgstr "B<--cmd-help>"
17662 #: ../fish/guestfish.pod:160
17663 msgid "Lists all available guestfish commands."
17667 #: ../fish/guestfish.pod:162
17669 msgstr "B<-h команда>"
17672 #: ../fish/guestfish.pod:164
17673 msgid "B<--cmd-help cmd>"
17674 msgstr "B<--cmd-help команда>"
17677 #: ../fish/guestfish.pod:166
17678 msgid "Displays detailed help on a single command C<cmd>."
17682 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17683 msgid "B<-a image>"
17684 msgstr "B<-a образ>"
17687 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17688 msgid "B<--add image>"
17689 msgstr "B<--add образ>"
17692 #: ../fish/guestfish.pod:172
17693 msgid "Add a block device or virtual machine image to the shell."
17697 #: ../fish/guestfish.pod:177
17699 "Using this flag is mostly equivalent to using the C<add> command, with "
17700 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17701 "the I<--format=...> flag was given."
17705 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17707 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17708 "URI to use. The default is to use the default libvirt connection."
17712 #: ../fish/guestfish.pod:189
17717 #: ../fish/guestfish.pod:191
17719 "If using the I<--listen> option and a csh-like shell, use this option. See "
17720 "section L</REMOTE CONTROL AND CSH> below."
17724 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17725 msgid "B<-d libvirt-domain>"
17726 msgstr "B<-d домен-libvirt>"
17729 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17730 msgid "B<--domain libvirt-domain>"
17731 msgstr "B<--domain домен-libvirt>"
17734 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17736 "Add disks from the named libvirt domain. If the I<--ro> option is also "
17737 "used, then any libvirt domain can be used. However in write mode, only "
17738 "libvirt domains which are shut down can be named here."
17742 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17743 msgid "Domain UUIDs can be used instead of names."
17747 #: ../fish/guestfish.pod:204
17749 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17750 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17751 "if the I<--format:...> flag was given."
17755 #: ../fish/guestfish.pod:208
17760 #: ../fish/guestfish.pod:210
17761 msgid "B<--no-dest-paths>"
17762 msgstr "B<--no-dest-paths>"
17765 #: ../fish/guestfish.pod:212
17767 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
17768 "to hit the tab key to complete paths on the guest filesystem, but this "
17769 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17770 "allow this feature to be disabled."
17774 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17776 "When prompting for keys and passphrases, guestfish normally turns echoing "
17777 "off so you cannot see what you are typing. If you are not worried about "
17778 "Tempest attacks and there is no one else in the room you can specify this "
17779 "flag to see what you are typing."
17783 #: ../fish/guestfish.pod:224
17785 msgstr "B<-f файл>"
17788 #: ../fish/guestfish.pod:226
17789 msgid "B<--file file>"
17790 msgstr "B<--file файл>"
17793 #: ../fish/guestfish.pod:228
17794 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
17798 #: ../fish/guestfish.pod:231
17801 " #!/usr/bin/guestfish -f\n"
17804 " #!/usr/bin/guestfish -f\n"
17808 #: ../fish/guestfish.pod:244
17811 " guestfish --format=raw -a disk.img\n"
17814 " guestfish --format=raw -a disk.img\n"
17818 #: ../fish/guestfish.pod:248
17821 " guestfish --format=raw -a disk.img --format -a another.img\n"
17824 " guestfish --format=raw -a disk.img --format -a another.img\n"
17828 #: ../fish/guestfish.pod:253
17830 "If you have untrusted raw-format guest disk images, you should use this "
17831 "option to specify the disk format. This avoids a possible security problem "
17832 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
17836 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17837 msgid "B<--inspector>"
17838 msgstr "B<--inspector>"
17841 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17843 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17844 "system and mount filesystems as they would be mounted on the real virtual "
17849 #: ../fish/guestfish.pod:266
17850 msgid "Typical usage is either:"
17854 #: ../fish/guestfish.pod:268
17857 " guestfish -d myguest -i\n"
17860 " guestfish -d myguest -i\n"
17864 #: ../fish/guestfish.pod:270
17865 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17869 #: ../fish/guestfish.pod:272
17872 " guestfish --ro -d myguest -i\n"
17875 " guestfish --ro -d myguest -i\n"
17879 #: ../fish/guestfish.pod:274
17880 msgid "(for active domains, readonly), or specify the block device directly:"
17884 #: ../fish/guestfish.pod:276
17887 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17890 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17894 #: ../fish/guestfish.pod:278
17896 "Note that the command line syntax changed slightly over older versions of "
17897 "guestfish. You can still use the old syntax:"
17901 #: ../fish/guestfish.pod:281
17904 " guestfish [--ro] -i disk.img\n"
17907 " guestfish [--ro] -i disk.img\n"
17911 #: ../fish/guestfish.pod:283
17914 " guestfish [--ro] -i libvirt-domain\n"
17919 #: ../fish/guestfish.pod:285
17921 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17922 "then using other commands to mount the filesystems that were found."
17926 #: ../fish/guestfish.pod:294
17927 msgid "B<--listen>"
17928 msgstr "B<--listen>"
17931 #: ../fish/guestfish.pod:296
17933 "Fork into the background and listen for remote commands. See section L</"
17934 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17938 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17943 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17945 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
17946 "ATTACHING TO RUNNING DAEMONS>)."
17950 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17951 msgid "B<-m dev[:mountpoint[:options]]>"
17955 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17956 msgid "B<--mount dev[:mountpoint[:options]]>"
17960 #: ../fish/guestfish.pod:308
17961 msgid "Mount the named partition or logical volume on the given mountpoint."
17965 #: ../fish/guestfish.pod:310
17966 msgid "If the mountpoint is omitted, it defaults to C</>."
17970 #: ../fish/guestfish.pod:312
17971 msgid "You have to mount something on C</> before most commands will work."
17975 #: ../fish/guestfish.pod:314
17977 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17982 #: ../fish/guestfish.pod:317
17984 "If you don't know what filesystems a disk image contains, you can either run "
17985 "guestfish without this option, then list the partitions, filesystems and LVs "
17986 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17987 "commands), or you can use the L<virt-filesystems(1)> program."
17991 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17993 "The third (and rarely used) part of the mount parameter is the list of mount "
17994 "options used to mount the underlying filesystem. If this is not given, then "
17995 "the mount options are either the empty string or C<ro> (the latter if the "
17996 "I<--ro> flag is used). By specifying the mount options, you override this "
17997 "default choice. Probably the only time you would use this is to enable ACLs "
17998 "and/or extended attributes if the filesystem can support them:"
18002 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
18005 " -m /dev/sda1:/:acl,user_xattr\n"
18010 #: ../fish/guestfish.pod:333
18011 msgid "Using this flag is equivalent to using the C<mount-options> command."
18015 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
18016 #: ../resize/virt-resize.pod:358
18021 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
18022 msgid "B<--no-sync>"
18023 msgstr "B<--no-sync>"
18026 #: ../fish/guestfish.pod:339
18028 "Disable autosync. This is enabled by default. See the discussion of "
18029 "autosync in the L<guestfs(3)> manpage."
18033 #: ../fish/guestfish.pod:342
18038 #: ../fish/guestfish.pod:344
18039 msgid "B<--new type>"
18040 msgstr "B<--new тип>"
18043 #: ../fish/guestfish.pod:346
18045 msgstr "B<-N help>"
18048 #: ../fish/guestfish.pod:348
18050 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
18051 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18052 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
18057 #: ../fish/guestfish.pod:353
18058 msgid "B<--progress-bars>"
18059 msgstr "B<--progress-bars>"
18062 #: ../fish/guestfish.pod:355
18063 msgid "Enable progress bars, even when guestfish is used non-interactively."
18067 #: ../fish/guestfish.pod:357
18069 "Progress bars are enabled by default when guestfish is used as an "
18070 "interactive shell."
18074 #: ../fish/guestfish.pod:360
18075 msgid "B<--no-progress-bars>"
18076 msgstr "B<--no-progress-bars>"
18079 #: ../fish/guestfish.pod:362
18080 msgid "Disable progress bars."
18084 #: ../fish/guestfish.pod:364
18085 msgid "B<--remote[=pid]>"
18086 msgstr "B<--remote[=pid]>"
18089 #: ../fish/guestfish.pod:366
18091 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
18092 "CONTROL GUESTFISH OVER A SOCKET> below."
18096 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
18097 #: ../rescue/virt-rescue.pod:161
18102 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
18103 #: ../rescue/virt-rescue.pod:163
18108 #: ../fish/guestfish.pod:373
18110 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18111 "mounts are done read-only."
18115 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18117 "The option must always be used if the disk image or virtual machine might be "
18118 "running, and is generally recommended in cases where you don't need write "
18119 "access to the disk."
18123 #: ../fish/guestfish.pod:380
18125 "Note that prepared disk images created with I<-N> are not affected by this "
18126 "option. Also commands like C<add> are not affected - you have to specify "
18127 "the C<readonly:true> option explicitly if you need it."
18131 #: ../fish/guestfish.pod:384
18132 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18136 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
18137 #: ../rescue/virt-rescue.pod:173
18138 msgid "B<--selinux>"
18139 msgstr "B<--selinux>"
18142 #: ../fish/guestfish.pod:388
18143 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
18147 #: ../fish/guestfish.pod:394
18149 "Enable very verbose messages. This is particularly useful if you find a bug."
18153 #: ../fish/guestfish.pod:401
18154 msgid "Display the guestfish / libguestfs version number and exit."
18158 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
18159 #: ../rescue/virt-rescue.pod:194
18164 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
18165 #: ../rescue/virt-rescue.pod:196
18170 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
18172 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18173 "mounts are done read-write."
18177 #: ../fish/guestfish.pod:410
18178 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18182 #: ../fish/guestfish.pod:414
18183 msgid "Echo each command before executing it."
18187 #: ../fish/guestfish.pod:418
18188 msgid "COMMANDS ON COMMAND LINE"
18192 #: ../fish/guestfish.pod:420
18194 "Any additional (non-option) arguments are treated as commands to execute."
18198 #: ../fish/guestfish.pod:423
18200 "Commands to execute should be separated by a colon (C<:>), where the colon "
18201 "is a separate parameter. Thus:"
18205 #: ../fish/guestfish.pod:426
18208 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18213 #: ../fish/guestfish.pod:428
18215 "If there are no additional arguments, then we enter a shell, either an "
18216 "interactive shell with a prompt (if the input is a terminal) or a non-"
18217 "interactive shell."
18221 #: ../fish/guestfish.pod:432
18223 "In either command line mode or non-interactive shell, the first command that "
18224 "gives an error causes the whole shell to exit. In interactive mode (with a "
18225 "prompt) if a command fails, you can continue to enter commands."
18229 #: ../fish/guestfish.pod:437
18230 msgid "USING launch (OR run)"
18234 #: ../fish/guestfish.pod:439
18236 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18237 "then launch it, then mount any disks you need, and finally issue actions/"
18238 "commands. So the general order of the day is:"
18242 #: ../fish/guestfish.pod:447
18243 msgid "add or -a/--add"
18247 #: ../fish/guestfish.pod:451
18248 msgid "launch (aka run)"
18252 #: ../fish/guestfish.pod:455
18253 msgid "mount or -m/--mount"
18257 #: ../fish/guestfish.pod:459
18258 msgid "any other commands"
18262 #: ../fish/guestfish.pod:463
18264 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
18265 "guest before mounting or performing any other commands."
18269 #: ../fish/guestfish.pod:466
18271 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18272 "I<--new> options were given then C<run> is done automatically, simply "
18273 "because guestfish can't perform the action you asked for without doing this."
18277 #: ../fish/guestfish.pod:471
18278 msgid "OPENING DISKS FOR READ AND WRITE"
18282 #: ../fish/guestfish.pod:473
18284 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18285 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18286 "I<-i> and I<-m> open disk images read-only or for writing."
18290 #: ../fish/guestfish.pod:478
18292 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18293 "opening disk images supplied on the command line for write. To open a disk "
18294 "image read-only you have to do I<-a image --ro>."
18298 #: ../fish/guestfish.pod:482
18300 "This matters: If you accidentally open a live VM disk image writable then "
18301 "you will cause irreversible disk corruption."
18305 #: ../fish/guestfish.pod:485
18307 "In a future libguestfs we intend to change the default the other way. Disk "
18308 "images will be opened read-only. You will have to either specify "
18309 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18310 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18311 "access for disk images specified by those other command line options."
18315 #: ../fish/guestfish.pod:492
18317 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18318 "which does nothing (it is already the default). However it is highly "
18319 "recommended that you use this option to indicate that you need write access, "
18320 "and prepare your scripts for the day when this option will be required for "
18325 #: ../fish/guestfish.pod:498
18327 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18328 "other libguestfs program apart from guestfish and guestmount."
18332 #: ../fish/guestfish.pod:501
18337 #: ../fish/guestfish.pod:503
18339 "You can quote ordinary parameters using either single or double quotes. For "
18344 #: ../fish/guestfish.pod:506
18347 " add \"file with a space.img\"\n"
18352 #: ../fish/guestfish.pod:508
18355 " rm '/file name'\n"
18360 #: ../fish/guestfish.pod:510
18368 #: ../fish/guestfish.pod:512
18370 "A few commands require a list of strings to be passed. For these, use a "
18371 "whitespace-separated list, enclosed in quotes. Strings containing "
18372 "whitespace to be passed through must be enclosed in single quotes. A "
18373 "literal single quote must be escaped with a backslash."
18377 #: ../fish/guestfish.pod:517
18380 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18381 " command \"/bin/echo 'foo bar'\"\n"
18382 " command \"/bin/echo \\'foo\\'\"\n"
18387 #: ../fish/guestfish.pod:521
18388 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18392 #: ../fish/guestfish.pod:523
18394 "In double-quoted arguments (only) use backslash to insert special characters:"
18398 #: ../fish/guestfish.pod:528
18403 #: ../fish/guestfish.pod:530
18404 msgid "Alert (bell) character."
18408 #: ../fish/guestfish.pod:532
18413 #: ../fish/guestfish.pod:534
18414 msgid "Backspace character."
18418 #: ../fish/guestfish.pod:536
18423 #: ../fish/guestfish.pod:538
18424 msgid "Form feed character."
18428 #: ../fish/guestfish.pod:540
18433 #: ../fish/guestfish.pod:542
18434 msgid "Newline character."
18438 #: ../fish/guestfish.pod:544
18443 #: ../fish/guestfish.pod:546
18444 msgid "Carriage return character."
18448 #: ../fish/guestfish.pod:548
18453 #: ../fish/guestfish.pod:550
18454 msgid "Horizontal tab character."
18458 #: ../fish/guestfish.pod:552
18463 #: ../fish/guestfish.pod:554
18464 msgid "Vertical tab character."
18468 #: ../fish/guestfish.pod:556
18473 #: ../fish/guestfish.pod:558
18474 msgid "A literal double quote character."
18478 #: ../fish/guestfish.pod:560
18483 #: ../fish/guestfish.pod:562
18485 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
18490 #: ../fish/guestfish.pod:565
18495 #: ../fish/guestfish.pod:567
18497 "A character with hex value I<hh>. There must be precisely 2 hex digits."
18501 #: ../fish/guestfish.pod:570
18503 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18508 #: ../fish/guestfish.pod:573
18513 #: ../fish/guestfish.pod:575
18514 msgid "A literal backslash character."
18518 #: ../fish/guestfish.pod:579
18519 msgid "OPTIONAL ARGUMENTS"
18523 #: ../fish/guestfish.pod:581
18525 "Some commands take optional arguments. These arguments appear in this "
18526 "documentation as C<[argname:..]>. You can use them as in these examples:"
18530 #: ../fish/guestfish.pod:585
18533 " add-drive-opts filename\n"
18538 #: ../fish/guestfish.pod:587
18541 " add-drive-opts filename readonly:true\n"
18546 #: ../fish/guestfish.pod:589
18549 " add-drive-opts filename format:qcow2 readonly:false\n"
18554 #: ../fish/guestfish.pod:591
18556 "Each optional argument can appear at most once. All optional arguments must "
18557 "appear after the required ones."
18561 #: ../fish/guestfish.pod:594
18566 #: ../fish/guestfish.pod:596
18568 "This section applies to all commands which can take integers as parameters."
18572 #: ../fish/guestfish.pod:599
18573 msgid "SIZE SUFFIX"
18577 #: ../fish/guestfish.pod:601
18579 "When the command takes a parameter measured in bytes, you can use one of the "
18580 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18584 #: ../fish/guestfish.pod:607
18585 msgid "B<k> or B<K> or B<KiB>"
18586 msgstr "B<k>, B<K> або B<KiB>"
18589 #: ../fish/guestfish.pod:609
18590 msgid "The size in kilobytes (multiplied by 1024)."
18594 #: ../fish/guestfish.pod:611
18599 #: ../fish/guestfish.pod:613
18600 msgid "The size in SI 1000 byte units."
18604 #: ../fish/guestfish.pod:615
18605 msgid "B<M> or B<MiB>"
18606 msgstr "B<M> або B<MiB>"
18609 #: ../fish/guestfish.pod:617
18610 msgid "The size in megabytes (multiplied by 1048576)."
18614 #: ../fish/guestfish.pod:619
18619 #: ../fish/guestfish.pod:621
18620 msgid "The size in SI 1000000 byte units."
18624 #: ../fish/guestfish.pod:623
18625 msgid "B<G> or B<GiB>"
18626 msgstr "B<G> або B<GiB>"
18629 #: ../fish/guestfish.pod:625
18630 msgid "The size in gigabytes (multiplied by 2**30)."
18631 msgstr "Розмір у гігабайтах (з множником 2**30)."
18634 #: ../fish/guestfish.pod:627
18639 #: ../fish/guestfish.pod:629
18640 msgid "The size in SI 10**9 byte units."
18641 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18644 #: ../fish/guestfish.pod:631
18645 msgid "B<T> or B<TiB>"
18646 msgstr "B<T> або B<TiB>"
18649 #: ../fish/guestfish.pod:633
18650 msgid "The size in terabytes (multiplied by 2**40)."
18651 msgstr "Розмір у терабайтах (з множником 2**40)."
18654 #: ../fish/guestfish.pod:635
18659 #: ../fish/guestfish.pod:637
18660 msgid "The size in SI 10**12 byte units."
18664 #: ../fish/guestfish.pod:639
18665 msgid "B<P> or B<PiB>"
18666 msgstr "B<P> або B<PiB>"
18669 #: ../fish/guestfish.pod:641
18670 msgid "The size in petabytes (multiplied by 2**50)."
18674 #: ../fish/guestfish.pod:643
18679 #: ../fish/guestfish.pod:645
18680 msgid "The size in SI 10**15 byte units."
18684 #: ../fish/guestfish.pod:647
18685 msgid "B<E> or B<EiB>"
18686 msgstr "B<E> або B<EiB>"
18689 #: ../fish/guestfish.pod:649
18690 msgid "The size in exabytes (multiplied by 2**60)."
18694 #: ../fish/guestfish.pod:651
18699 #: ../fish/guestfish.pod:653
18700 msgid "The size in SI 10**18 byte units."
18704 #: ../fish/guestfish.pod:655
18705 msgid "B<Z> or B<ZiB>"
18706 msgstr "B<Z> або B<ZiB>"
18709 #: ../fish/guestfish.pod:657
18710 msgid "The size in zettabytes (multiplied by 2**70)."
18714 #: ../fish/guestfish.pod:659
18719 #: ../fish/guestfish.pod:661
18720 msgid "The size in SI 10**21 byte units."
18724 #: ../fish/guestfish.pod:663
18725 msgid "B<Y> or B<YiB>"
18726 msgstr "B<Y> або B<YiB>"
18729 #: ../fish/guestfish.pod:665
18730 msgid "The size in yottabytes (multiplied by 2**80)."
18734 #: ../fish/guestfish.pod:667
18739 #: ../fish/guestfish.pod:669
18740 msgid "The size in SI 10**24 byte units."
18744 #: ../fish/guestfish.pod:675
18747 " truncate-size /file 1G\n"
18752 #: ../fish/guestfish.pod:677
18753 msgid "would truncate the file to 1 gigabyte."
18757 #: ../fish/guestfish.pod:679
18759 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18760 "the parameter to L</memsize> is specified in megabytes already). Adding a "
18761 "suffix will probably not do what you expect."
18765 #: ../fish/guestfish.pod:683
18766 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18770 #: ../fish/guestfish.pod:685
18772 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18773 "octal number or C<0x> to prefix a hexadecimal number. For example:"
18777 #: ../fish/guestfish.pod:688
18780 " 1234 decimal number 1234\n"
18781 " 02322 octal number, equivalent to decimal 1234\n"
18782 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
18787 #: ../fish/guestfish.pod:692
18789 "When using the C<chmod> command, you almost always want to specify an octal "
18790 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18791 "L<chmod(1)> program):"
18795 #: ../fish/guestfish.pod:696
18798 " chmod 0777 /public # OK\n"
18799 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
18804 #: ../fish/guestfish.pod:699
18806 "Commands that return numbers usually print them in decimal, but some "
18807 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18808 "octal, preceeded by C<0>)."
18812 #: ../fish/guestfish.pod:703
18813 msgid "WILDCARDS AND GLOBBING"
18817 #: ../fish/guestfish.pod:705
18819 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18820 "(globbing) by default. So for example the following will not do what you "
18825 #: ../fish/guestfish.pod:709
18833 #: ../fish/guestfish.pod:711
18835 "Assuming you don't have a directory called literally C</home/*> then the "
18836 "above command will return an error."
18840 #: ../fish/guestfish.pod:714
18841 msgid "To perform wildcard expansion, use the C<glob> command."
18845 #: ../fish/guestfish.pod:716
18848 " glob rm-rf /home/*\n"
18853 #: ../fish/guestfish.pod:718
18855 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18856 "many times), equivalent to:"
18860 #: ../fish/guestfish.pod:721
18863 " rm-rf /home/jim\n"
18864 " rm-rf /home/joe\n"
18865 " rm-rf /home/mary\n"
18870 #: ../fish/guestfish.pod:725
18871 msgid "C<glob> only works on simple guest paths and not on device names."
18875 #: ../fish/guestfish.pod:727
18877 "If you have several parameters, each containing a wildcard, then glob will "
18878 "perform a Cartesian product."
18882 #: ../fish/guestfish.pod:730
18887 #: ../fish/guestfish.pod:732
18889 "Any line which starts with a I<#> character is treated as a comment and "
18890 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
18891 "a command. For example:"
18895 #: ../fish/guestfish.pod:736
18898 " # this is a comment\n"
18899 " # this is a comment\n"
18900 " foo # NOT a comment\n"
18905 #: ../fish/guestfish.pod:740
18906 msgid "Blank lines are also ignored."
18910 #: ../fish/guestfish.pod:742
18911 msgid "RUNNING COMMANDS LOCALLY"
18915 #: ../fish/guestfish.pod:744
18917 "Any line which starts with a I<!> character is treated as a command sent to "
18918 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
18922 #: ../fish/guestfish.pod:748
18926 " tgz-out /remote local/remote-data.tar.gz\n"
18931 #: ../fish/guestfish.pod:751
18933 "will create a directory C<local> on the host, and then export the contents "
18934 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
18935 "(See C<tgz-out>)."
18939 #: ../fish/guestfish.pod:755
18941 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
18942 "effect, due to the way that subprocesses work in Unix."
18946 #: ../fish/guestfish.pod:758
18947 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18951 #: ../fish/guestfish.pod:760
18953 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18954 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18955 "and executed as guestfish commands."
18959 #: ../fish/guestfish.pod:764
18961 "Thus you can use shell script to construct arbitrary guestfish commands "
18962 "which are then parsed by guestfish."
18966 #: ../fish/guestfish.pod:767
18968 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18969 "through C</foo.100>) using guestfish commands alone. However this is simple "
18970 "if we use a shell script to create the guestfish commands for us:"
18974 #: ../fish/guestfish.pod:772
18977 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18982 #: ../fish/guestfish.pod:774
18983 msgid "or with names like C</foo.001>:"
18987 #: ../fish/guestfish.pod:776
18990 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18995 #: ../fish/guestfish.pod:778
18997 "When using guestfish interactively it can be helpful to just run the shell "
18998 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18999 "ordinary I<!> local command), see what guestfish commands it would run, and "
19000 "when you are happy with those prepend the C<E<lt>> character to run the "
19001 "guestfish commands for real."
19005 #: ../fish/guestfish.pod:784
19010 #: ../fish/guestfish.pod:786
19012 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19013 "command (a guestfish command) to the second command (any host command). For "
19018 #: ../fish/guestfish.pod:790
19021 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19026 #: ../fish/guestfish.pod:792
19028 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19029 "program). The above command would list all accounts in the guest filesystem "
19030 "which have UID 0, ie. root accounts including backdoors. Other examples:"
19034 #: ../fish/guestfish.pod:797
19037 " hexdump /bin/ls | head\n"
19038 " list-devices | tail -1\n"
19039 " tgz-out / - | tar ztf -\n"
19044 #: ../fish/guestfish.pod:801
19046 "The space before the pipe symbol is required, any space after the pipe "
19047 "symbol is optional. Everything after the pipe symbol is just passed "
19048 "straight to the host shell, so it can contain redirections, globs and "
19049 "anything else that makes sense on the host side."
19053 #: ../fish/guestfish.pod:806
19055 "To use a literal argument which begins with a pipe symbol, you have to quote "
19060 #: ../fish/guestfish.pod:809
19068 #: ../fish/guestfish.pod:811
19069 msgid "HOME DIRECTORIES"
19073 #: ../fish/guestfish.pod:813
19075 "If a parameter starts with the character C<~> then the tilde may be expanded "
19076 "as a home directory path (either C<~> for the current user's home directory, "
19077 "or C<~user> for another user)."
19081 #: ../fish/guestfish.pod:817
19083 "Note that home directory expansion happens for users known I<on the host>, "
19084 "not in the guest filesystem."
19088 #: ../fish/guestfish.pod:820
19090 "To use a literal argument which begins with a tilde, you have to quote it, "
19095 #: ../fish/guestfish.pod:823
19103 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
19104 msgid "ENCRYPTED DISKS"
19105 msgstr "ЗАШИФРОВАНІ ДИСКИ"
19108 #: ../fish/guestfish.pod:827
19110 "Libguestfs has some support for Linux guests encrypted according to the "
19111 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19112 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
19113 "LUKS is supported."
19117 #: ../fish/guestfish.pod:832
19118 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19122 #: ../fish/guestfish.pod:834
19125 " ><fs> vfs-type /dev/sda2\n"
19131 #: ../fish/guestfish.pod:837
19133 "Then open those devices using L</luks-open>. This creates a device-mapper "
19134 "device called C</dev/mapper/luksdev>."
19138 #: ../fish/guestfish.pod:840
19141 " ><fs> luks-open /dev/sda2 luksdev\n"
19142 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19147 #: ../fish/guestfish.pod:843
19149 "Finally you have to tell LVM to scan for volume groups on the newly created "
19154 #: ../fish/guestfish.pod:846
19158 " vg-activate-all true\n"
19163 #: ../fish/guestfish.pod:849
19164 msgid "The logical volume(s) can now be mounted in the usual way."
19168 #: ../fish/guestfish.pod:851
19170 "Before closing a LUKS device you must unmount any logical volumes on it and "
19171 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19172 "one. Then you can close the mapper device:"
19176 #: ../fish/guestfish.pod:855
19179 " vg-activate false /dev/VG\n"
19180 " luks-close /dev/mapper/luksdev\n"
19185 #: ../fish/guestfish.pod:860
19187 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19188 "letters and paths (with some limitations). The following commands are "
19193 #: ../fish/guestfish.pod:864
19196 " file /WINDOWS/system32/config/system.LOG\n"
19201 #: ../fish/guestfish.pod:866
19204 " file win:\\windows\\system32\\config\\system.log\n"
19209 #: ../fish/guestfish.pod:868
19212 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19217 #: ../fish/guestfish.pod:870
19219 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19220 "where the drive is mounted, prepending that to the path, changing all "
19221 "backslash characters to forward slash, then resolving the result using L</"
19222 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
19223 "the parameter might be rewritten like this:"
19227 #: ../fish/guestfish.pod:876
19230 " win:e:\\foo\\bar => /e/FOO/bar\n"
19235 #: ../fish/guestfish.pod:878
19236 msgid "This only works in argument positions that expect a path."
19240 #: ../fish/guestfish.pod:880
19241 msgid "UPLOADING AND DOWNLOADING FILES"
19245 #: ../fish/guestfish.pod:882
19247 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19248 "others which upload from or download to a local file, you can use the "
19249 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
19253 #: ../fish/guestfish.pod:886
19261 #: ../fish/guestfish.pod:888
19263 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19267 #: ../fish/guestfish.pod:891
19270 " tar-out /etc - | tar tf -\n"
19275 #: ../fish/guestfish.pod:893
19277 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19278 "command (see L</PIPES>)."
19282 #: ../fish/guestfish.pod:896
19284 "When using C<-> to read from stdin, the input is read up to the end of "
19285 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
19286 "some arbitrary end marker:"
19290 #: ../fish/guestfish.pod:900
19293 " upload -<<END /foo\n"
19302 #: ../fish/guestfish.pod:906
19304 "Any string of characters can be used instead of C<END>. The end marker must "
19305 "appear on a line of its own, without any preceeding or following characters "
19306 "(not even spaces)."
19310 #: ../fish/guestfish.pod:910
19312 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19313 "upload local files (so-called \"FileIn\" parameters in the generator)."
19317 #: ../fish/guestfish.pod:913
19318 msgid "EXIT ON ERROR BEHAVIOUR"
19322 #: ../fish/guestfish.pod:915
19324 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19325 "taking commands from a human over a tty), and will exit on the first error "
19326 "in non-interactive mode (scripts, commands given on the command line)."
19330 #: ../fish/guestfish.pod:920
19332 "If you prefix a command with a I<-> character, then that command will not "
19333 "cause guestfish to exit, even if that (one) command returns an error."
19337 #: ../fish/guestfish.pod:924
19338 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19342 #: ../fish/guestfish.pod:926
19344 "Guestfish can be remote-controlled over a socket. This is useful "
19345 "particularly in shell scripts where you want to make several different "
19346 "changes to a filesystem, but you don't want the overhead of starting up a "
19347 "guestfish process each time."
19351 #: ../fish/guestfish.pod:931
19352 msgid "Start a guestfish server process using:"
19356 #: ../fish/guestfish.pod:933
19359 " eval \"`guestfish --listen`\"\n"
19364 #: ../fish/guestfish.pod:935
19365 msgid "and then send it commands by doing:"
19369 #: ../fish/guestfish.pod:937
19372 " guestfish --remote cmd [...]\n"
19377 #: ../fish/guestfish.pod:939
19378 msgid "To cause the server to exit, send it the exit command:"
19382 #: ../fish/guestfish.pod:943
19384 "Note that the server will normally exit if there is an error in a command. "
19385 "You can change this in the usual way. See section L</EXIT ON ERROR "
19390 #: ../fish/guestfish.pod:947
19391 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19395 #: ../fish/guestfish.pod:949
19397 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19398 "is how the I<--remote> option knows where to send the commands. You can "
19399 "have several guestfish listener processes running using:"
19403 #: ../fish/guestfish.pod:953
19406 " eval \"`guestfish --listen`\"\n"
19407 " pid1=$GUESTFISH_PID\n"
19408 " eval \"`guestfish --listen`\"\n"
19409 " pid2=$GUESTFISH_PID\n"
19411 " guestfish --remote=$pid1 cmd\n"
19412 " guestfish --remote=$pid2 cmd\n"
19417 #: ../fish/guestfish.pod:961
19418 msgid "REMOTE CONTROL AND CSH"
19422 #: ../fish/guestfish.pod:963
19424 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19429 #: ../fish/guestfish.pod:966
19432 " eval \"`guestfish --listen --csh`\"\n"
19437 #: ../fish/guestfish.pod:968
19438 msgid "REMOTE CONTROL DETAILS"
19442 #: ../fish/guestfish.pod:970
19444 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19445 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19446 "and C<$PID> is the process ID of the server."
19450 #: ../fish/guestfish.pod:974
19451 msgid "Guestfish client and server versions must match exactly."
19455 #: ../fish/guestfish.pod:976
19456 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19460 #: ../fish/guestfish.pod:978
19462 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19463 "context hangs, ie. don't do (note the backquotes):"
19467 #: ../fish/guestfish.pod:981
19470 #| " guestfish --ro -d myguest -i\n"
19473 " a=`guestfish --remote run`\n"
19476 " guestfish --ro -d myguest -i\n"
19480 #: ../fish/guestfish.pod:983
19482 "Since the C<run> command produces no output on stdout, this is not useful "
19483 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
19488 #: ../fish/guestfish.pod:987
19489 msgid "PREPARED DISK IMAGES"
19493 #: ../fish/guestfish.pod:989
19495 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19496 "preformatted disk images that guestfish can make for you to save typing. "
19497 "This is particularly useful for testing purposes. This option is used "
19498 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19499 "can be mixed with I<-a>)."
19503 #: ../fish/guestfish.pod:995
19505 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19506 "the second and so on. Existing files in the current directory are "
19511 #: ../fish/guestfish.pod:999
19513 "The type briefly describes how the disk should be sized, partitioned, how "
19514 "filesystem(s) should be created, and how content should be added. "
19515 "Optionally the type can be followed by extra parameters, separated by C<:> "
19516 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
19517 "allocated disk, containing a single partition, with the partition formatted "
19518 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19523 #: ../fish/guestfish.pod:1007
19524 msgid "To list the available types and any extra parameters they take, run:"
19528 #: ../fish/guestfish.pod:1011
19530 "Note that the prepared filesystem is not mounted. You would usually have to "
19531 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19535 #: ../fish/guestfish.pod:1015
19537 "If any I<-N> or I<--new> options are given, the guest is automatically "
19542 #: ../fish/guestfish.pod:1020
19543 msgid "Create a 100MB disk with an ext4-formatted partition:"
19547 #: ../fish/guestfish.pod:1022
19550 " guestfish -N fs:ext4\n"
19555 #: ../fish/guestfish.pod:1024
19556 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19560 #: ../fish/guestfish.pod:1026
19563 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19568 #: ../fish/guestfish.pod:1028
19569 msgid "Create a blank 200MB disk:"
19573 #: ../fish/guestfish.pod:1030
19576 " guestfish -N disk:200M\n"
19581 #: ../fish/guestfish.pod:1032
19582 msgid "PROGRESS BARS"
19586 #: ../fish/guestfish.pod:1034
19588 "Some (not all) long-running commands send progress notification messages as "
19589 "they are running. Guestfish turns these messages into progress bars."
19593 #: ../fish/guestfish.pod:1038
19595 "When a command that supports progress bars takes longer than two seconds to "
19596 "run, and if progress bars are enabled, then you will see one appearing below "
19601 #: ../fish/guestfish.pod:1042
19604 " ><fs> copy-size /large-file /another-file 2048M\n"
19605 " / 10% [#####-----------------------------------------] 00:30\n"
19610 #: ../fish/guestfish.pod:1045
19612 "The spinner on the left hand side moves round once for every progress "
19613 "notification received from the backend. This is a (reasonably) golden "
19614 "assurance that the command is \"doing something\" even if the progress bar "
19615 "is not moving, because the command is able to send the progress "
19616 "notifications. When the bar reaches 100% and the command finishes, the "
19617 "spinner disappears."
19621 #: ../fish/guestfish.pod:1052
19623 "Progress bars are enabled by default when guestfish is used interactively. "
19624 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19625 "and you can disable them completely using I<--no-progress-bars>."
19629 #: ../fish/guestfish.pod:1057
19630 msgid "GUESTFISH COMMANDS"
19634 #: ../fish/guestfish.pod:1059
19636 "The commands in this section are guestfish convenience commands, in other "
19637 "words, they are not part of the L<guestfs(3)> API."
19641 #: ../fish/guestfish.pod:1062
19646 #: ../fish/guestfish.pod:1064
19658 #: ../fish/guestfish.pod:1067
19659 msgid "Without any parameter, this provides general help."
19660 msgstr "Без параметра показує загальну довідкову інформацію."
19663 #: ../fish/guestfish.pod:1069
19664 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19668 #: ../fish/guestfish.pod:1071
19669 msgid "quit | exit"
19673 #: ../fish/guestfish.pod:1073
19674 msgid "This exits guestfish. You can also use C<^D> key."
19678 #: ../fish/guestfish.pod:1075
19679 msgid "@FISH_COMMANDS@"
19683 #: ../fish/guestfish.pod:1077
19688 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1505
19693 #: ../fish/guestfish.pod:1083
19695 "guestfish returns 0 if the commands completed without error, or 1 if there "
19700 #: ../fish/guestfish.pod:1090
19705 #: ../fish/guestfish.pod:1092
19707 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
19712 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3110
19713 msgid "FEBOOTSTRAP_KERNEL"
19717 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3112
19718 msgid "FEBOOTSTRAP_MODULES"
19722 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3114
19724 "These two environment variables allow the kernel that libguestfs uses in the "
19725 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19726 "most recent host kernel is chosen. For more information about kernel "
19727 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
19728 "available in febootstrap E<ge> 3.8."
19732 #: ../fish/guestfish.pod:1105
19733 msgid "GUESTFISH_DISPLAY_IMAGE"
19737 #: ../fish/guestfish.pod:1107
19739 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
19740 "If not set, it uses L<display(1)>."
19744 #: ../fish/guestfish.pod:1110
19745 msgid "GUESTFISH_PID"
19749 #: ../fish/guestfish.pod:1112
19751 "Used with the I<--remote> option to specify the remote guestfish process to "
19752 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19756 #: ../fish/guestfish.pod:1116
19761 #: ../fish/guestfish.pod:1118
19763 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
19764 "not specified, the external L<hexedit(1)> program is used."
19768 #: ../fish/guestfish.pod:1122
19773 #: ../fish/guestfish.pod:1124
19775 "If compiled with GNU readline support, various files in the home directory "
19776 "can be used. See L</FILES>."
19780 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3120
19781 msgid "LIBGUESTFS_APPEND"
19785 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3122
19786 msgid "Pass additional options to the guest kernel."
19790 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3124
19791 msgid "LIBGUESTFS_DEBUG"
19792 msgstr "LIBGUESTFS_DEBUG"
19795 #: ../fish/guestfish.pod:1133
19797 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
19798 "effect as using the B<-v> option."
19802 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3129
19803 msgid "LIBGUESTFS_MEMSIZE"
19804 msgstr "LIBGUESTFS_MEMSIZE"
19807 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3131
19809 "Set the memory allocated to the qemu process, in megabytes. For example:"
19813 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3134
19816 " LIBGUESTFS_MEMSIZE=700\n"
19819 " LIBGUESTFS_MEMSIZE=700\n"
19823 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3136
19824 msgid "LIBGUESTFS_PATH"
19828 #: ../fish/guestfish.pod:1145
19830 "Set the path that guestfish uses to search for kernel and initrd.img. See "
19831 "the discussion of paths in L<guestfs(3)>."
19835 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3141
19836 msgid "LIBGUESTFS_QEMU"
19840 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3143
19842 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
19843 "which was found at compile time by the configure script is used."
19847 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3149
19848 msgid "LIBGUESTFS_TRACE"
19852 #: ../fish/guestfish.pod:1156
19853 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19857 #: ../fish/guestfish.pod:1158
19859 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19862 #: ../fish/guestfish.pod:1160
19864 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
19869 #: ../fish/guestfish.pod:1163 ../sparsify/virt-sparsify.pod:236
19870 #: ../src/guestfs.pod:3154
19875 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3156
19877 "Location of temporary directory, defaults to C</tmp> except for the cached "
19878 "supermin appliance which defaults to C</var/tmp>."
19882 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3159
19884 "If libguestfs was compiled to use the supermin appliance then the real "
19885 "appliance is cached in this directory, shared between all handles belonging "
19886 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
19887 "use in case C</var/tmp> is not large enough."
19891 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19892 #: ../rescue/virt-rescue.pod:273
19897 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19898 #: ../rescue/virt-rescue.pod:277
19899 msgid "$HOME/.libguestfs-tools.rc"
19903 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19904 #: ../rescue/virt-rescue.pod:279
19905 msgid "/etc/libguestfs-tools.conf"
19909 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19910 #: ../rescue/virt-rescue.pod:281
19912 "This configuration file controls the default read-only or read-write mode "
19913 "(I<--ro> or I<--rw>)."
19917 #: ../fish/guestfish.pod:1187
19918 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19922 #: ../fish/guestfish.pod:1189
19923 msgid "$HOME/.guestfish"
19927 #: ../fish/guestfish.pod:1191
19929 "If compiled with GNU readline support, then the command history is saved in "
19934 #: ../fish/guestfish.pod:1194
19935 msgid "$HOME/.inputrc"
19939 #: ../fish/guestfish.pod:1196
19940 msgid "/etc/inputrc"
19944 #: ../fish/guestfish.pod:1198
19946 "If compiled with GNU readline support, then these files can be used to "
19947 "configure readline. For further information, please see L<readline(3)/"
19948 "INITIALIZATION FILE>."
19952 #: ../fish/guestfish.pod:1202
19953 msgid "To write rules which only apply to guestfish, use:"
19957 #: ../fish/guestfish.pod:1204
19967 #: ../fish/guestfish.pod:1208
19969 "Variables that you can set in inputrc that change the behaviour of guestfish "
19970 "in useful ways include:"
19974 #: ../fish/guestfish.pod:1213
19975 msgid "completion-ignore-case (default: on)"
19979 #: ../fish/guestfish.pod:1215
19981 "By default, guestfish will ignore case when tab-completing paths on the "
19986 #: ../fish/guestfish.pod:1218
19989 " set completion-ignore-case off\n"
19994 #: ../fish/guestfish.pod:1220
19995 msgid "to make guestfish case sensitive."
19999 #: ../fish/guestfish.pod:1224
20004 #: ../fish/guestfish.pod:1226
20005 msgid "test2.img (etc)"
20009 #: ../fish/guestfish.pod:1228
20011 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20012 "will be created in the file C<test1.img> in the current directory. The "
20013 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
20014 "the same name will be overwritten."
20018 #: ../fish/guestfish.pod:1237
20020 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
20021 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
20022 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
20023 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
20024 ">, L<virt-sparsify(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)"
20025 ">, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-"
20030 #: ../fish/guestfish.pod:1267 ../src/guestfs.pod:3248
20031 #: ../test-tool/libguestfs-test-tool.pod:112
20032 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
20036 #: ../fish/virt-copy-in.pod:5
20038 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20042 #: ../fish/virt-copy-in.pod:9
20045 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20050 #: ../fish/virt-copy-in.pod:11
20053 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20058 #: ../fish/virt-copy-in.pod:15
20060 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20061 "causing disk corruption. The virtual machine must be shut down before you "
20062 "use this command."
20066 #: ../fish/virt-copy-in.pod:21
20068 "C<virt-copy-in> copies files and directories from the local disk into a "
20069 "virtual machine disk image or named libvirt domain."
20073 #: ../fish/virt-copy-in.pod:24
20075 "You can give one of more filenames and directories on the command line. "
20076 "Directories are copied in recursively. The final parameter must be the "
20077 "destination directory in the disk image which must be an absolute path "
20078 "starting with a C</> character."
20082 #: ../fish/virt-copy-in.pod:33
20085 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20090 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20091 msgid "Upload a home directory to a guest:"
20095 #: ../fish/virt-copy-in.pod:37
20098 " virt-copy-in -d MyGuest skel /home\n"
20103 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20104 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20105 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20109 #: ../fish/virt-copy-in.pod:41
20111 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20112 "> C<copy-in> command. For anything more complex than a trivial copy, you "
20113 "are probably better off using guestfish directly."
20117 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20118 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20120 "Since the shell script just passes options straight to guestfish, read "
20121 "L<guestfish(1)> to see the full list of options."
20125 #: ../fish/virt-copy-in.pod:52
20128 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20129 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20130 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20131 #| "libguestfs.org/>."
20133 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20134 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20136 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20137 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20138 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20142 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20143 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20145 #| msgid "Copyright (C) 2009 Red Hat Inc."
20146 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
20147 msgstr "© Red Hat Inc., 2009"
20150 #: ../fish/virt-copy-out.pod:5
20152 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20157 #: ../fish/virt-copy-out.pod:9
20160 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20165 #: ../fish/virt-copy-out.pod:11
20168 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20173 #: ../fish/virt-copy-out.pod:15
20175 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20176 "image or named libvirt domain."
20180 #: ../fish/virt-copy-out.pod:18
20182 "You can give one of more filenames and directories on the command line. "
20183 "Directories are copied out recursively."
20187 #: ../fish/virt-copy-out.pod:23
20188 msgid "Download the home directories from a virtual machine:"
20192 #: ../fish/virt-copy-out.pod:25
20196 " virt-copy-out -d MyGuest /home homes\n"
20201 #: ../fish/virt-copy-out.pod:30
20203 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20204 "> C<copy-out> command. For anything more complex than a trivial copy, you "
20205 "are probably better off using guestfish directly."
20209 #: ../fish/virt-copy-out.pod:41
20212 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20213 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20214 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20215 #| "libguestfs.org/>."
20217 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
20218 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20220 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20221 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20222 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20226 #: ../fish/virt-tar-in.pod:5
20227 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20231 #: ../fish/virt-tar-in.pod:9
20234 " virt-tar-in -a disk.img data.tar /destination\n"
20239 #: ../fish/virt-tar-in.pod:11
20242 " virt-tar-in -d domain data.tar /destination\n"
20247 #: ../fish/virt-tar-in.pod:13
20250 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20255 #: ../fish/virt-tar-in.pod:17
20257 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20258 "causing disk corruption. The virtual machine must be shut down before you "
20259 "use this command."
20263 #: ../fish/virt-tar-in.pod:23
20265 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20266 "image or named libvirt domain."
20270 #: ../fish/virt-tar-in.pod:26
20272 "The first parameter is the tar file. Use C<-> to read the tar file from "
20273 "standard input. The second parameter is the absolute target directory to "
20278 #: ../fish/virt-tar-in.pod:34
20281 " virt-tar-in -d MyGuest homes.tar /home\n"
20286 #: ../fish/virt-tar-in.pod:38
20288 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20289 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
20290 "probably better off using guestfish directly."
20294 #: ../fish/virt-tar-in.pod:49
20297 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20298 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20299 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20300 #| "libguestfs.org/>."
20302 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20303 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
20306 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20307 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20308 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20312 #: ../fish/virt-tar-out.pod:5
20314 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20318 #: ../fish/virt-tar-out.pod:9
20321 " virt-tar-out -a disk.img /dir files.tar\n"
20326 #: ../fish/virt-tar-out.pod:11
20329 " virt-tar-out -d domain /dir files.tar\n"
20334 #: ../fish/virt-tar-out.pod:13
20337 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20342 #: ../fish/virt-tar-out.pod:17
20344 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20348 #: ../fish/virt-tar-out.pod:20
20350 "The first parameter is the absolute path of the virtual machine directory. "
20351 "The second parameter is the tar file to write. Use C<-> to write to "
20356 #: ../fish/virt-tar-out.pod:26
20357 msgid "Download the home directories from a guest:"
20361 #: ../fish/virt-tar-out.pod:28
20364 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20369 #: ../fish/virt-tar-out.pod:32
20371 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20372 "> C<tar-out> command. For anything more complex than a trivial copy, you "
20373 "are probably better off using guestfish directly."
20377 #: ../fish/virt-tar-out.pod:43
20380 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20381 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20382 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20383 #| "libguestfs.org/>."
20385 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20386 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20388 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20389 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20390 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20394 #: ../fuse/guestmount.pod:5
20396 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20400 #: ../fuse/guestmount.pod:9
20403 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20408 #: ../fuse/guestmount.pod:11
20411 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20416 #: ../fuse/guestmount.pod:13
20419 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20424 #: ../fuse/guestmount.pod:17
20426 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20427 "machines. If you do this, you risk disk corruption in the VM."
20431 #: ../fuse/guestmount.pod:22
20433 "The guestmount program can be used to mount virtual machine filesystems and "
20434 "other disk images on the host. It uses libguestfs for access to the guest "
20435 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20436 "a mountable device."
20440 #: ../fuse/guestmount.pod:27
20442 "Along with other options, you have to give at least one device (I<-a> "
20443 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20444 "option) or use the I<-i> inspection option. How this works is better "
20445 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20450 #: ../fuse/guestmount.pod:33
20452 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
20453 "by you, and the filesystem will not be visible to any other users unless you "
20454 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
20455 "the filesystem, use the C<fusermount -u> command."
20459 #: ../fuse/guestmount.pod:41
20461 "For a typical Windows guest which has its main filesystem on the first "
20466 #: ../fuse/guestmount.pod:44
20469 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20474 #: ../fuse/guestmount.pod:46
20476 "For a typical Linux guest which has a /boot filesystem on the first "
20477 "partition, and the root filesystem on a logical volume:"
20481 #: ../fuse/guestmount.pod:49
20484 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20489 #: ../fuse/guestmount.pod:51
20490 msgid "To get libguestfs to detect guest mountpoints for you:"
20494 #: ../fuse/guestmount.pod:53
20497 " guestmount -a guest.img -i --ro /mnt\n"
20502 #: ../fuse/guestmount.pod:55
20503 msgid "For a libvirt guest called \"Guest\" you could do:"
20507 #: ../fuse/guestmount.pod:57
20510 " guestmount -d Guest -i --ro /mnt\n"
20515 #: ../fuse/guestmount.pod:59
20517 "If you don't know what filesystems are contained in a guest or disk image, "
20518 "use L<virt-filesystems(1)> first:"
20522 #: ../fuse/guestmount.pod:62
20525 " virt-filesystems MyGuest\n"
20530 #: ../fuse/guestmount.pod:64
20532 "If you want to trace the libguestfs calls but without excessive debugging "
20533 "information, we recommend:"
20537 #: ../fuse/guestmount.pod:67
20540 " guestmount [...] --trace /mnt\n"
20545 #: ../fuse/guestmount.pod:69
20546 msgid "If you want to debug the program, we recommend:"
20550 #: ../fuse/guestmount.pod:71
20553 " guestmount [...] --trace --verbose /mnt\n"
20558 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20559 #: ../resize/virt-resize.pod:544
20564 #: ../fuse/guestmount.pod:75
20565 msgid "Other users cannot see the filesystem by default"
20569 #: ../fuse/guestmount.pod:77
20571 "If you mount a filesystem as one user (eg. root), then other users will not "
20572 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
20573 "option when mounting:"
20577 #: ../fuse/guestmount.pod:81
20580 " sudo guestmount [...] -o allow_other /mnt\n"
20585 #: ../fuse/guestmount.pod:91
20586 msgid "Add a block device or virtual machine image."
20590 #: ../fuse/guestmount.pod:114
20591 msgid "B<--dir-cache-timeout N>"
20592 msgstr "B<--dir-cache-timeout N>"
20595 #: ../fuse/guestmount.pod:116
20597 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20598 "seconds. The readdir cache [actually, there are several semi-independent "
20599 "caches] is populated after a readdir(2) call with the stat and extended "
20600 "attributes of the files in the directory, in anticipation that they will be "
20601 "requested soon after."
20605 #: ../fuse/guestmount.pod:122
20607 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20608 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20609 "requests, only cache existing ones."
20613 #: ../fuse/guestmount.pod:142
20615 "If you have untrusted raw-format guest disk images, you should use this "
20616 "option to specify the disk format. This avoids a possible security problem "
20617 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
20618 "guestfs_add_drive_opts>."
20622 #: ../fuse/guestmount.pod:147
20623 msgid "B<--fuse-help>"
20624 msgstr "B<--fuse-help>"
20627 #: ../fuse/guestmount.pod:149
20628 msgid "Display help on special FUSE options (see I<-o> below)."
20632 #: ../fuse/guestmount.pod:153
20633 msgid "Display brief help and exit."
20637 #: ../fuse/guestmount.pod:177
20639 "Mount the named partition or logical volume on the given mountpoint B<in the "
20640 "guest> (this has nothing to do with mountpoints in the host)."
20644 #: ../fuse/guestmount.pod:180
20646 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
20647 "something on C</>."
20651 #: ../fuse/guestmount.pod:197
20653 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20654 "unmounted. If you specify this option, then we don't attempt to sync the "
20655 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
20659 #: ../fuse/guestmount.pod:202
20661 #| msgid "B<--partition>"
20662 msgid "B<-o option>"
20663 msgstr "B<--partition>"
20666 #: ../fuse/guestmount.pod:204
20668 #| msgid "B<--partition>"
20669 msgid "B<--option option>"
20670 msgstr "B<--partition>"
20673 #: ../fuse/guestmount.pod:206
20674 msgid "Pass extra options to FUSE."
20678 #: ../fuse/guestmount.pod:208
20680 "To get a list of all the extra options supported by FUSE, use the command "
20681 "below. Note that only the FUSE I<-o> options can be passed, and only some "
20682 "of them are a good idea."
20686 #: ../fuse/guestmount.pod:212
20689 " guestmount --fuse-help\n"
20694 #: ../fuse/guestmount.pod:214
20695 msgid "Some potentially useful FUSE options:"
20699 #: ../fuse/guestmount.pod:218
20700 msgid "B<-o allow_other>"
20704 #: ../fuse/guestmount.pod:220
20705 msgid "Allow other users to see the filesystem."
20709 #: ../fuse/guestmount.pod:222
20710 msgid "B<-o attr_timeout=N>"
20711 msgstr "B<-o attr_timeout=N>"
20714 #: ../fuse/guestmount.pod:224
20715 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20719 #: ../fuse/guestmount.pod:226
20720 msgid "B<-o kernel_cache>"
20724 #: ../fuse/guestmount.pod:228
20726 "Allow the kernel to cache files (reduces the number of reads that have to go "
20727 "through the L<guestfs(3)> API). This is generally a good idea if you can "
20728 "afford the extra memory usage."
20732 #: ../fuse/guestmount.pod:232
20733 msgid "B<-o uid=N> B<-o gid=N>"
20737 #: ../fuse/guestmount.pod:234
20739 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20740 "the chosen values."
20744 #: ../fuse/guestmount.pod:243
20746 "Add devices and mount everything read-only. Also disallow writes and make "
20747 "the disk appear read-only to FUSE."
20751 #: ../fuse/guestmount.pod:246
20753 "This is highly recommended if you are not going to edit the guest disk. If "
20754 "the guest is running and this option is I<not> supplied, then there is a "
20755 "strong risk of disk corruption in the guest. We try to prevent this from "
20756 "happening, but it is not always possible."
20760 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20761 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20765 #: ../fuse/guestmount.pod:255
20766 msgid "Enable SELinux support for the guest."
20770 #: ../fuse/guestmount.pod:261
20771 msgid "Enable verbose messages from underlying libguestfs."
20775 #: ../fuse/guestmount.pod:267
20776 msgid "Display the program version and exit."
20780 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20781 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
20782 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20786 #: ../fuse/guestmount.pod:280
20793 #: ../fuse/guestmount.pod:282
20794 msgid "Trace libguestfs calls and entry into each FUSE function."
20798 #: ../fuse/guestmount.pod:284
20799 msgid "This also stops the daemon from forking into the background."
20803 #: ../fuse/guestmount.pod:310
20805 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20806 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20811 #: ../fuse/guestmount.pod:325
20812 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
20816 #: ../inspector/virt-inspector.pod:5
20818 "virt-inspector - Display operating system version and other information "
20819 "about a virtual machine"
20823 #: ../inspector/virt-inspector.pod:9
20826 #| " virt-list-partitions [--options] domname\n"
20829 " virt-inspector [--options] -d domname\n"
20832 " virt-list-partitions [--параметри] назва_домену\n"
20836 #: ../inspector/virt-inspector.pod:11
20839 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20842 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20845 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20849 #: ../inspector/virt-inspector.pod:15
20852 #| " virt-list-partitions [--options] domname\n"
20855 " virt-inspector domname\n"
20858 " virt-list-partitions [--параметри] назва_домену\n"
20862 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20865 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20868 " virt-inspector disk.img [disk.img ...]\n"
20871 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20875 #: ../inspector/virt-inspector.pod:21
20877 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20878 "determine the version of the operating system and other information about "
20879 "the virtual machine."
20883 #: ../inspector/virt-inspector.pod:25
20884 msgid "Virt-inspector produces XML output for feeding into other programs."
20888 #: ../inspector/virt-inspector.pod:27
20890 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20891 "the libvirt domain (see: C<virsh list --all>)."
20895 #: ../inspector/virt-inspector.pod:30
20897 "You can also run virt-inspector directly on disk images from a single "
20898 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
20899 "has several block devices, in which case you should list several I<-a> "
20900 "options one after another, with the first corresponding to the guest's C</"
20901 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20905 #: ../inspector/virt-inspector.pod:37
20907 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20908 "keys and similar."
20912 #: ../inspector/virt-inspector.pod:40
20914 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
20915 "inspect several virtual machines, you have to run virt-inspector several "
20916 "times (for example, from a shell script for-loop)."
20920 #: ../inspector/virt-inspector.pod:45
20922 "Because virt-inspector needs direct access to guest images, it won't "
20923 "normally work over remote libvirt connections."
20927 #: ../inspector/virt-inspector.pod:48
20929 "All of the information available from virt-inspector is also available "
20930 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
20931 "The same information can also be fetched using guestfish or via libguestfs "
20932 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20933 "WITH OTHER PROGRAMMING LANGUAGES>)."
20937 #: ../inspector/virt-inspector.pod:81
20939 "Libvirt is only used if you specify a C<domname> on the command line. If "
20940 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20945 #: ../inspector/virt-inspector.pod:94
20947 "When prompting for keys and passphrases, virt-inspector normally turns "
20948 "echoing off so you cannot see what you are typing. If you are not worried "
20949 "about Tempest attacks and there is no one else in the room you can specify "
20950 "this flag to see what you are typing."
20954 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20955 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20956 #: ../tools/virt-win-reg.pl:144
20958 "Specify the format of disk images given on the command line. If this is "
20959 "omitted then the format is autodetected from the content of the disk image."
20963 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20964 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20965 #: ../tools/virt-win-reg.pl:148
20967 "If disk images are requested from libvirt, then this program asks libvirt "
20968 "for this information. In this case, the value of the format parameter is "
20973 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20974 #: ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132
20975 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
20976 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
20978 "If working with untrusted raw-format guest disk images, you should ensure "
20979 "the format is always specified."
20983 #: ../inspector/virt-inspector.pod:139
20984 msgid "Previous versions of virt-inspector allowed you to write either:"
20988 #: ../inspector/virt-inspector.pod:145
20991 #| " inspect-get-hostname root\n"
20994 " virt-inspector guestname\n"
20997 " inspect-get-hostname корінь\n"
21001 #: ../inspector/virt-inspector.pod:153
21006 #: ../inspector/virt-inspector.pod:155
21008 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21009 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
21010 "just an overview."
21014 #: ../inspector/virt-inspector.pod:159
21016 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21017 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
21018 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21019 "which is vanishingly rare in real world VMs."
21023 #: ../inspector/virt-inspector.pod:164
21024 msgid "E<lt>operatingsystemE<gt>"
21028 #: ../inspector/virt-inspector.pod:166
21030 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21031 "describe the operating system, its architecture, the descriptive \"product "
21032 "name\" string, the type of OS and so on, as in this example:"
21036 #: ../inspector/virt-inspector.pod:170
21039 " <operatingsystems>\n"
21040 " <operatingsystem>\n"
21041 " <root>/dev/sda2</root>\n"
21042 " <name>windows</name>\n"
21043 " <arch>i386</arch>\n"
21044 " <distro>windows</distro>\n"
21045 " <product_name>Windows 7 Enterprise</product_name>\n"
21046 " <product_variant>Client</product_variant>\n"
21047 " <major_version>6</major_version>\n"
21048 " <minor_version>1</minor_version>\n"
21049 " <windows_systemroot>/Windows</windows_systemroot>\n"
21050 " <format>installed</format>\n"
21055 #: ../inspector/virt-inspector.pod:183
21057 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21058 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21059 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21060 "architecture. The other fields are fairly self-explanatory, but because "
21061 "these fields are taken directly from the libguestfs inspection API you can "
21062 "find precise information from L<guestfs(3)/INSPECTION>."
21066 #: ../inspector/virt-inspector.pod:191
21068 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21069 "of view of libguestfs (block devices may have completely different names "
21070 "inside the VM itself)."
21074 #: ../inspector/virt-inspector.pod:195
21076 #| msgid "mountpoints"
21077 msgid "E<lt>mountpointsE<gt>"
21078 msgstr "mountpoints"
21081 #: ../inspector/virt-inspector.pod:197
21083 "Un*x-like guests typically have multiple filesystems which are mounted at "
21084 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21085 "element which looks like this:"
21089 #: ../inspector/virt-inspector.pod:201
21092 " <operatingsystems>\n"
21093 " <operatingsystem>\n"
21096 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21097 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21098 " </mountpoints>\n"
21103 #: ../inspector/virt-inspector.pod:209
21105 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21106 "and may have completely different names inside the guest. Only mountable "
21107 "filesystems appear in this list, not things like swap devices."
21111 #: ../inspector/virt-inspector.pod:214
21113 #| msgid "list-filesystems"
21114 msgid "E<lt>filesystemsE<gt>"
21115 msgstr "list-filesystems"
21118 #: ../inspector/virt-inspector.pod:216
21120 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21121 "filesystems belonging to the guest, including swap and empty partitions. "
21122 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21123 "this OS or shared with this OS and other OSes)."
21127 #: ../inspector/virt-inspector.pod:222
21128 msgid "You might see something like this:"
21132 #: ../inspector/virt-inspector.pod:224
21135 " <operatingsystems>\n"
21136 " <operatingsystem>\n"
21139 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21140 " <type>ext4</type>\n"
21141 " <label>Fedora-13-x86_64</label>\n"
21142 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21148 #: ../inspector/virt-inspector.pod:234
21150 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21151 "the label, and the UUID."
21155 #: ../inspector/virt-inspector.pod:237
21156 msgid "E<lt>applicationsE<gt>"
21160 #: ../inspector/virt-inspector.pod:239
21162 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21163 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21168 #: ../inspector/virt-inspector.pod:243
21170 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
21171 "Typical values would be C<rpm> and C<deb>."
21175 #: ../inspector/virt-inspector.pod:246
21177 "E<lt>package_managementE<gt>, if present, describes the package manager. "
21178 "Typical values include C<yum>, C<up2date> and C<apt>"
21182 #: ../inspector/virt-inspector.pod:249
21183 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21187 #: ../inspector/virt-inspector.pod:252
21190 " <operatingsystems>\n"
21191 " <operatingsystem>\n"
21193 " <applications>\n"
21195 " <name>coreutils</name>\n"
21196 " <version>8.5</version>\n"
21197 " <release>1</release>\n"
21198 " </application>\n"
21203 #: ../inspector/virt-inspector.pod:262
21205 "The version and release fields may not be available for some types guests. "
21206 "Other fields are possible, see L<guestfs(3)/"
21207 "guestfs_inspect_list_applications>."
21211 #: ../inspector/virt-inspector.pod:266
21212 msgid "E<lt>drive_mappingsE<gt>"
21216 #: ../inspector/virt-inspector.pod:268
21218 "For operating systems like Windows which use drive letters, virt-inspector "
21219 "is able to find out how drive letters map to filesystems."
21223 #: ../inspector/virt-inspector.pod:272
21226 " <operatingsystems>\n"
21227 " <operatingsystem>\n"
21229 " <drive_mappings>\n"
21230 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21231 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21232 " </drive_mappings>\n"
21237 #: ../inspector/virt-inspector.pod:280
21239 "In the example above, drive C maps to the filesystem on the second partition "
21240 "on the first disk, and drive E maps to the filesystem on the first partition "
21241 "on the second disk."
21245 #: ../inspector/virt-inspector.pod:284
21247 "Note that this only covers permanent local filesystem mappings, not things "
21248 "like network shares. Furthermore NTFS volume mount points may not be listed "
21253 #: ../inspector/virt-inspector.pod:288
21255 #| msgid "B<-s E<lt>NE<gt>>"
21256 msgid "E<lt>iconE<gt>"
21257 msgstr "B<-s E<lt>NE<gt>>"
21260 #: ../inspector/virt-inspector.pod:290
21262 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
21263 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
21264 "very large and high quality."
21268 #: ../inspector/virt-inspector.pod:294
21271 " <operatingsystems>\n"
21272 " <operatingsystem>\n"
21275 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21276 " [... many lines of base64 data ...]\n"
21282 #: ../inspector/virt-inspector.pod:302
21284 "To display the icon, you have to extract it and convert the base64 data back "
21285 "to a binary file. Use an XPath query or simply an editor to extract the "
21286 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21291 #: ../inspector/virt-inspector.pod:307
21294 " base64 -i -d < icon.data > icon.png\n"
21299 #: ../inspector/virt-inspector.pod:309
21300 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21304 #: ../inspector/virt-inspector.pod:311
21306 "Virt-inspector can detect some operating system installers on install disks, "
21307 "live CDs, bootable USB keys and more."
21311 #: ../inspector/virt-inspector.pod:314
21313 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21314 "fields may be present to indicate a live CD, network installer, or one part "
21315 "of a multipart CD. For example:"
21319 #: ../inspector/virt-inspector.pod:318
21322 " <operatingsystems>\n"
21323 " <operatingsystem>\n"
21324 " <root>/dev/sda</root>\n"
21325 " <name>linux</name>\n"
21326 " <arch>i386</arch>\n"
21327 " <distro>ubuntu</distro>\n"
21328 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
21329 " <major_version>10</major_version>\n"
21330 " <minor_version>10</minor_version>\n"
21331 " <format>installer</format>\n"
21337 #: ../inspector/virt-inspector.pod:330
21338 msgid "USING XPATH"
21342 #: ../inspector/virt-inspector.pod:332
21344 "You can use the XPath query language to select parts of the XML. We "
21345 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
21349 #: ../inspector/virt-inspector.pod:338
21352 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21354 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21355 " <type>ext4</type>\n"
21361 #: ../inspector/virt-inspector.pod:344
21364 " $ virt-inspector -d Guest | \\\n"
21365 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21371 #: ../inspector/virt-inspector.pod:348
21374 " $ virt-inspector -d Guest | \\\n"
21375 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21376 " [displays the guest icon, if there is one]\n"
21381 #: ../inspector/virt-inspector.pod:359
21382 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21386 #: ../inspector/virt-inspector.pod:361
21388 "Early versions of libguestfs shipped with a different virt-inspector program "
21389 "written in Perl (the current version is written in C). The XML output of "
21390 "the Perl virt-inspector was different and it could also output in other "
21391 "formats like text."
21395 #: ../inspector/virt-inspector.pod:366
21397 "The old virt-inspector is no longer supported or shipped with libguestfs."
21401 #: ../inspector/virt-inspector.pod:369
21403 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21404 "versions of virt-inspector with different names:"
21408 #: ../inspector/virt-inspector.pod:372
21411 " virt-inspector Old Perl version.\n"
21412 " virt-inspector2 New C version.\n"
21417 #: ../inspector/virt-inspector.pod:382
21420 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21421 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21422 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21424 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21425 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21427 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21428 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21429 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21432 #: ../inspector/virt-inspector.pod:399
21433 msgid "Matthew Booth L<mbooth@redhat.com>"
21437 #: ../java/examples/guestfs-java.pod:5
21438 msgid "guestfs-java - How to use libguestfs from Java"
21442 #: ../java/examples/guestfs-java.pod:9
21445 " import com.redhat.et.libguestfs.*;\n"
21450 #: ../java/examples/guestfs-java.pod:11
21453 " GuestFS g = new GuestFS ();\n"
21454 " g.add_drive_opts (\"disk.img\", null);\n"
21460 #: ../java/examples/guestfs-java.pod:17
21462 "This manual page documents how to call libguestfs from the Java programming "
21463 "language. This page just documents the differences from the C API and gives "
21464 "some examples. If you are not familiar with using libguestfs, you also need "
21465 "to read L<guestfs(3)>."
21469 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21470 msgid "CLOSING THE HANDLE"
21474 #: ../java/examples/guestfs-java.pod:24
21476 "The handle is closed when it is reaped by the garbage collector. Because "
21477 "libguestfs handles include a lot of state, it is also possible to close (and "
21478 "hence free) them explicitly by calling the C<close> method."
21482 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21483 #: ../python/examples/guestfs-python.pod:21
21484 #: ../ruby/examples/guestfs-ruby.pod:22
21491 #: ../java/examples/guestfs-java.pod:31
21493 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21494 "exception. This has a single parameter which is the error message (a "
21499 #: ../java/examples/guestfs-java.pod:35
21500 msgid "Calling any method on a closed handle raises the same exception."
21504 #: ../java/examples/guestfs-java.pod:47
21507 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21508 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21509 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21511 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
21512 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21513 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21515 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21516 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21517 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21520 #: ../ocaml/examples/guestfs-ocaml.pod:5
21521 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21525 #: ../ocaml/examples/guestfs-ocaml.pod:9
21526 msgid "Module style:"
21530 #: ../ocaml/examples/guestfs-ocaml.pod:11
21533 " let g = Guestfs.create () in\n"
21534 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21535 " Guestfs.launch g;\n"
21540 #: ../ocaml/examples/guestfs-ocaml.pod:15
21541 msgid "Object-oriented style:"
21545 #: ../ocaml/examples/guestfs-ocaml.pod:17
21548 " let g = new Guestfs.guestfs () in\n"
21549 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21555 #: ../ocaml/examples/guestfs-ocaml.pod:21
21558 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21560 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21565 #: ../ocaml/examples/guestfs-ocaml.pod:27
21567 "This manual page documents how to call libguestfs from the OCaml programming "
21568 "language. This page just documents the differences from the C API and gives "
21569 "some examples. If you are not familiar with using libguestfs, you also need "
21570 "to read L<guestfs(3)>."
21574 #: ../ocaml/examples/guestfs-ocaml.pod:32
21575 msgid "PROGRAMMING STYLES"
21579 #: ../ocaml/examples/guestfs-ocaml.pod:34
21581 "There are two different programming styles supported by the OCaml bindings. "
21582 "You can use a module style, with each C function mapped to an OCaml function:"
21586 #: ../ocaml/examples/guestfs-ocaml.pod:38
21589 #| " int guestfs_last_errno (guestfs_h *g);\n"
21592 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21595 " int guestfs_last_errno (guestfs_h *g);\n"
21599 #: ../ocaml/examples/guestfs-ocaml.pod:40
21604 #: ../ocaml/examples/guestfs-ocaml.pod:42
21607 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21612 #: ../ocaml/examples/guestfs-ocaml.pod:44
21614 "Alternately you can use an object-oriented style, calling methods on the "
21615 "class C<Guestfs.guestfs>:"
21619 #: ../ocaml/examples/guestfs-ocaml.pod:47
21622 " method set_verbose : bool -> unit\n"
21627 #: ../ocaml/examples/guestfs-ocaml.pod:49
21629 "The object-oriented style is usually briefer, and the minor performance "
21630 "penalty isn't noticable in the general overhead of performing libguestfs "
21635 #: ../ocaml/examples/guestfs-ocaml.pod:55
21637 "The handle is closed when it is reaped by the garbage collector. Because "
21638 "libguestfs handles include a lot of state, it is also possible to close (and "
21639 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21644 #: ../ocaml/examples/guestfs-ocaml.pod:62
21646 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21647 "exception. This has a single parameter which is the error message (a "
21652 #: ../ocaml/examples/guestfs-ocaml.pod:66
21654 "Calling any function/method on a closed handle raises C<Guestfs."
21655 "Handle_closed>. The single parameter is the name of the function that you "
21660 #: ../ocaml/examples/guestfs-ocaml.pod:80
21663 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21664 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21665 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21667 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21668 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21669 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21671 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21672 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21673 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21676 #: ../perl/examples/guestfs-perl.pod:5
21677 msgid "guestfs-perl - How to use libguestfs from Perl"
21681 #: ../perl/examples/guestfs-perl.pod:9
21684 " use Sys::Guestfs;\n"
21689 #: ../perl/examples/guestfs-perl.pod:11
21692 " my $h = Sys::Guestfs->new ();\n"
21693 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21694 " $h->launch ();\n"
21695 " $h->mount_options ('', '/dev/sda1', '/');\n"
21696 " $h->touch ('/hello');\n"
21702 #: ../perl/examples/guestfs-perl.pod:20
21704 "This manual page documents how to call libguestfs from the Perl programming "
21705 "language. This page just documents the differences from the C API and gives "
21706 "some examples. If you are not familiar with using libguestfs, you also need "
21707 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
21711 #: ../perl/examples/guestfs-perl.pod:26
21716 #: ../perl/examples/guestfs-perl.pod:28
21718 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21723 #: ../perl/examples/guestfs-perl.pod:41
21726 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21727 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21728 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21730 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
21731 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
21732 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21734 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21735 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21736 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21739 #: ../python/examples/guestfs-python.pod:5
21740 msgid "guestfs-python - How to use libguestfs from Python"
21744 #: ../python/examples/guestfs-python.pod:9
21747 " import guestfs\n"
21748 " g = guestfs.GuestFS ()\n"
21749 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21755 #: ../python/examples/guestfs-python.pod:16
21757 "This manual page documents how to call libguestfs from the Python "
21758 "programming language. This page just documents the differences from the C "
21759 "API and gives some examples. If you are not familiar with using libguestfs, "
21760 "you also need to read L<guestfs(3)>."
21764 #: ../python/examples/guestfs-python.pod:23
21766 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21767 "single string argument which is the error message."
21771 #: ../python/examples/guestfs-python.pod:26
21772 msgid "MORE DOCUMENTATION"
21776 #: ../python/examples/guestfs-python.pod:28
21781 #: ../python/examples/guestfs-python.pod:30
21785 " >>> import guestfs\n"
21786 " >>> help (guestfs)\n"
21791 #: ../python/examples/guestfs-python.pod:44
21794 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21795 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21796 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21798 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21799 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
21800 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21802 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21803 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21804 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21807 #: ../rescue/virt-rescue.pod:5
21808 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21812 #: ../rescue/virt-rescue.pod:9
21815 #| " virt-list-partitions [--options] domname\n"
21818 " virt-rescue [--options] -d domname\n"
21821 " virt-list-partitions [--параметри] назва_домену\n"
21825 #: ../rescue/virt-rescue.pod:11
21828 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21831 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21834 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21838 #: ../rescue/virt-rescue.pod:15
21841 #| " virt-list-partitions [--options] domname\n"
21844 " virt-rescue [--options] domname\n"
21847 " virt-list-partitions [--параметри] назва_домену\n"
21851 #: ../rescue/virt-rescue.pod:17
21854 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21857 " virt-rescue [--options] disk.img [disk.img ...]\n"
21860 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21864 #: ../rescue/virt-rescue.pod:21
21866 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
21867 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
21868 "you from doing this, but doesn't catch all cases."
21872 #: ../rescue/virt-rescue.pod:25
21874 "However if you use the I<--ro> (read only) option, then you can attach a "
21875 "shell to a live virtual machine. The results might be strange or "
21876 "inconsistent at times but you won't get disk corruption."
21880 #: ../rescue/virt-rescue.pod:31
21882 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21883 "need for a CD. virt-rescue gives you a rescue shell and some simple "
21884 "recovery tools which you can use to examine or rescue a virtual machine or "
21889 #: ../rescue/virt-rescue.pod:36
21891 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21892 "on disk image(s):"
21896 #: ../rescue/virt-rescue.pod:39
21899 " virt-rescue -d GuestName\n"
21904 #: ../rescue/virt-rescue.pod:41
21907 " virt-rescue --ro -a /path/to/disk.img\n"
21912 #: ../rescue/virt-rescue.pod:43
21915 " virt-rescue -a /dev/sdc\n"
21920 #: ../rescue/virt-rescue.pod:45
21921 msgid "For live VMs you I<must> use the --ro option."
21925 #: ../rescue/virt-rescue.pod:47
21927 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21928 "in an interactive bash shell where you can use many ordinary Linux "
21929 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21930 "appliance. You must mount the virtual machine's filesystems by hand. There "
21931 "is an empty directory called C</sysroot> where you can mount filesystems."
21935 #: ../rescue/virt-rescue.pod:54
21937 "In the example below, we list logical volumes, then choose one to mount "
21938 "under C</sysroot>:"
21942 #: ../rescue/virt-rescue.pod:57
21946 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
21947 " lv_root vg_f11x64 -wi-a- 8.83G\n"
21948 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21949 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21950 " ><rescue> ls /sysroot\n"
21955 #: ../rescue/virt-rescue.pod:64
21957 "If you don't know what filesystems are available on the virtual machine then "
21958 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21962 #: ../rescue/virt-rescue.pod:70
21964 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21965 "virtual machine. For example you can use it on a blank file if you want to "
21966 "partition that file (although we would recommend using L<guestfish(1)> "
21967 "instead as it is more suitable for this purpose). You can even use virt-"
21968 "rescue on things like SD cards."
21972 #: ../rescue/virt-rescue.pod:76
21974 "Virt-rescue does not require root. You only need to run it as root if you "
21975 "need root to open the disk image."
21979 #: ../rescue/virt-rescue.pod:79
21981 "This tool is just designed for quick interactive hacking on a virtual "
21982 "machine. For more structured access to a virtual machine disk image, you "
21983 "should use L<guestfs(3)>. To get a structured shell that you can use to "
21984 "make scripted changes to guests, use L<guestfish(1)>."
21988 #: ../rescue/virt-rescue.pod:103
21989 msgid "B<--append kernelopts>"
21993 #: ../rescue/virt-rescue.pod:105
21994 msgid "Pass additional options to the rescue kernel."
21998 #: ../rescue/virt-rescue.pod:135
22001 #| " guestfish --format=raw -a disk.img\n"
22004 " virt-rescue --format=raw -a disk.img\n"
22007 " guestfish --format=raw -a disk.img\n"
22011 #: ../rescue/virt-rescue.pod:139
22014 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
22017 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22020 " guestfish --format=raw -a disk.img --format -a another.img\n"
22024 #: ../rescue/virt-rescue.pod:148
22029 #: ../rescue/virt-rescue.pod:150
22031 #| msgid "B<--merge>"
22032 msgid "B<--memsize MB>"
22033 msgstr "B<--merge>"
22036 #: ../rescue/virt-rescue.pod:152
22038 "Change the amount of memory allocated to the rescue system. The default is "
22039 "set by libguestfs and is small but adequate for running system tools. The "
22040 "occasional program might need more memory. The parameter is specified in "
22045 #: ../rescue/virt-rescue.pod:157
22047 #| msgid "B<--inspector>"
22048 msgid "B<--network>"
22049 msgstr "B<--inspector>"
22052 #: ../rescue/virt-rescue.pod:159
22053 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
22057 #: ../rescue/virt-rescue.pod:165
22058 msgid "Open the image read-only."
22062 #: ../rescue/virt-rescue.pod:175
22064 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
22065 "SELINUX> before using this option."
22069 #: ../rescue/virt-rescue.pod:178
22071 #| msgid "B<--csh>"
22076 #: ../rescue/virt-rescue.pod:180
22077 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22081 #: ../rescue/virt-rescue.pod:198
22083 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22084 "are done read-write."
22088 #: ../rescue/virt-rescue.pod:211
22089 msgid "Previous versions of virt-rescue allowed you to write either:"
22093 #: ../rescue/virt-rescue.pod:213
22096 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22099 " virt-rescue disk.img [disk.img ...]\n"
22102 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22106 #: ../rescue/virt-rescue.pod:217
22109 #| " file-architecture filename\n"
22112 " virt-rescue guestname\n"
22115 " file-architecture назва_файла\n"
22119 #: ../rescue/virt-rescue.pod:225
22124 #: ../rescue/virt-rescue.pod:227
22126 "Adding the I<--network> option enables QEMU user networking in the rescue "
22127 "appliance. There are some differences between user networking and ordinary "
22132 #: ../rescue/virt-rescue.pod:233
22133 msgid "ping does not work"
22137 #: ../rescue/virt-rescue.pod:235
22139 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22140 "send the ping packets, and because virt-rescue must be able to run as non-"
22141 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
22142 "The ping command will appear to resolve addresses but will not be able to "
22143 "send or receive any packets. This does not mean that the network is not "
22148 #: ../rescue/virt-rescue.pod:242
22149 msgid "cannot receive connections"
22153 #: ../rescue/virt-rescue.pod:244
22154 msgid "QEMU user networking cannot receive incoming connections."
22158 #: ../rescue/virt-rescue.pod:246
22159 msgid "making TCP connections"
22163 #: ../rescue/virt-rescue.pod:248
22165 "The virt-rescue appliance needs to be small and so does not include many "
22166 "network tools. In particular there is no L<telnet(1)> command. You can "
22167 "make TCP connections from the shell using the magical C</dev/tcp/"
22168 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22172 #: ../rescue/virt-rescue.pod:253
22175 " exec 3<>/dev/tcp/redhat.com/80\n"
22176 " echo \"GET /\" >&3\n"
22182 #: ../rescue/virt-rescue.pod:257
22183 msgid "See L<bash(1)> for more details."
22187 #: ../rescue/virt-rescue.pod:263
22189 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
22190 "ENVIRONMENT VARIABLES> for the complete list."
22194 #: ../rescue/virt-rescue.pod:290
22197 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22198 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22199 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22201 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22202 "libguestfs.org/>."
22204 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22205 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22206 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22209 #: ../resize/virt-resize.pod:5
22210 msgid "virt-resize - Resize a virtual machine disk"
22214 #: ../resize/virt-resize.pod:9
22217 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22218 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22219 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22224 #: ../resize/virt-resize.pod:15
22226 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22227 "larger or smaller overall, and resizing or deleting any partitions contained "
22232 #: ../resize/virt-resize.pod:19
22234 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
22235 "not> be used on live virtual machines - for consistent results, shut the "
22236 "virtual machine down before resizing it."
22240 #: ../resize/virt-resize.pod:23
22242 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22243 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22247 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
22248 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
22249 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2604
22254 #: ../resize/virt-resize.pod:33
22256 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22257 "fill the extra 5GB of space."
22261 #: ../resize/virt-resize.pod:36
22264 " virt-filesystems --long -h --all -a olddisk\n"
22269 #: ../resize/virt-resize.pod:38
22272 " truncate -r olddisk newdisk\n"
22273 " truncate -s +5G newdisk\n"
22278 #: ../resize/virt-resize.pod:41
22281 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22282 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22287 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
22288 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
22289 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2629
22294 #: ../resize/virt-resize.pod:46
22296 "As above, but make the /boot partition 200MB bigger, while giving the "
22297 "remaining space to /dev/sda2:"
22301 #: ../resize/virt-resize.pod:49
22304 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22305 " olddisk newdisk\n"
22310 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
22311 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
22312 #: ../src/guestfs.pod:1436
22317 #: ../resize/virt-resize.pod:54
22319 "As in the first example, but expand a logical volume as the final step. "
22320 "This is what you would typically use for Linux guests that use LVM:"
22324 #: ../resize/virt-resize.pod:58
22327 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22328 " olddisk newdisk\n"
22333 #: ../resize/virt-resize.pod:61
22338 #: ../resize/virt-resize.pod:63
22340 "As in the first example, but the output format will be qcow2 instead of a "
22345 #: ../resize/virt-resize.pod:66
22348 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22349 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22354 #: ../resize/virt-resize.pod:71
22355 msgid "DETAILED USAGE"
22359 #: ../resize/virt-resize.pod:73
22360 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22364 #: ../resize/virt-resize.pod:77
22365 msgid "1. Shut down the virtual machine"
22369 #: ../resize/virt-resize.pod:79
22370 msgid "2. Locate input disk image"
22374 #: ../resize/virt-resize.pod:81
22376 "Locate the input disk image (ie. the file or device on the host containing "
22377 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
22378 "dumpxml> like this to find the disk image name:"
22382 #: ../resize/virt-resize.pod:85
22385 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22386 " Found 1 nodes:\n"
22388 " <source dev=\"/dev/vg/lv_guest\" />\n"
22393 #: ../resize/virt-resize.pod:90
22394 msgid "3. Look at current sizing"
22398 #: ../resize/virt-resize.pod:92
22399 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22403 #: ../resize/virt-resize.pod:95
22406 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22407 " Name Type Size Parent\n"
22408 " /dev/sda1 partition 101M /dev/sda\n"
22409 " /dev/sda2 partition 7.9G /dev/sda\n"
22410 " /dev/sda device 8.0G -\n"
22415 #: ../resize/virt-resize.pod:101
22417 "(This example is a virtual machine with an 8 GB disk which we would like to "
22418 "expand up to 10 GB)."
22422 #: ../resize/virt-resize.pod:104
22423 msgid "4. Create output disk"
22427 #: ../resize/virt-resize.pod:106
22429 "Virt-resize cannot do in-place disk modifications. You have to have space "
22430 "to store the resized output disk."
22434 #: ../resize/virt-resize.pod:109
22436 "To store the resized disk image in a file, create a file of a suitable size:"
22440 #: ../resize/virt-resize.pod:112
22443 " # rm -f outdisk\n"
22444 " # truncate -s 10G outdisk\n"
22449 #: ../resize/virt-resize.pod:115
22450 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22454 #: ../resize/virt-resize.pod:117
22457 " # lvcreate -L 10G -n lv_name vg_name\n"
22462 #: ../resize/virt-resize.pod:119
22463 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22467 #: ../resize/virt-resize.pod:121
22470 " # virsh pool-list\n"
22471 " # virsh vol-create-as poolname newvol 10G\n"
22476 #: ../resize/virt-resize.pod:124
22481 #: ../resize/virt-resize.pod:126
22483 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22484 "file) and the output disk. The output disk is the one created in the "
22489 #: ../resize/virt-resize.pod:130
22492 " # virt-resize indisk outdisk\n"
22497 #: ../resize/virt-resize.pod:132
22499 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22500 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
22501 "larger, then an extra, empty partition is created at the end of the disk "
22502 "covering the extra space. If C<outdisk> is smaller, then it will give an "
22507 #: ../resize/virt-resize.pod:138
22509 "More realistically you'd want to expand existing partitions in the disk "
22510 "image by passing extra options (for the full list see the L</OPTIONS> "
22515 #: ../resize/virt-resize.pod:142
22517 "L</--expand> is the most useful option. It expands the named partition "
22518 "within the disk to fill any extra space:"
22522 #: ../resize/virt-resize.pod:145
22525 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22530 #: ../resize/virt-resize.pod:147
22532 "(In this case, an extra partition is I<not> created at the end of the disk, "
22533 "because there will be no unused space)."
22537 #: ../resize/virt-resize.pod:150
22539 "L</--resize> is the other commonly used option. The following would "
22540 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22541 "rest of the available space:"
22545 #: ../resize/virt-resize.pod:154
22548 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22549 " indisk outdisk\n"
22554 #: ../resize/virt-resize.pod:157
22556 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22557 "if virt-resize knows how, it will resize the contents, the equivalent of "
22558 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22559 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
22560 "filesystems, so you would have to online resize them after booting the guest."
22564 #: ../resize/virt-resize.pod:164
22565 msgid "Other options are covered below."
22569 #: ../resize/virt-resize.pod:166
22574 #: ../resize/virt-resize.pod:168
22575 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22579 #: ../resize/virt-resize.pod:170
22580 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22584 #: ../resize/virt-resize.pod:172
22587 #| " edit filename\n"
22590 " # virsh edit guestname\n"
22593 " edit назва_файла\n"
22597 #: ../resize/virt-resize.pod:174
22599 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22600 "html#elementsDisks>"
22604 #: ../resize/virt-resize.pod:177
22605 msgid "Then start up the domain with the new, resized disk:"
22609 #: ../resize/virt-resize.pod:179
22612 #| " ln-s target linkname\n"
22615 " # virsh start guestname\n"
22618 " ln-s призначення назва_посилання\n"
22622 #: ../resize/virt-resize.pod:181
22624 "and check that it still works. See also the L</NOTES> section below for "
22625 "additional information."
22629 #: ../resize/virt-resize.pod:184
22630 msgid "7. Resize LVs etc inside the guest"
22634 #: ../resize/virt-resize.pod:186
22635 msgid "(This can also be done offline using L<guestfish(1)>)"
22639 #: ../resize/virt-resize.pod:188
22641 "Once the guest has booted you should see the new space available, at least "
22642 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
22643 "may need to resize LVs inside PVs, and also resize filesystem types that "
22644 "virt-resize does not know how to expand."
22648 #: ../resize/virt-resize.pod:195
22649 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22653 #: ../resize/virt-resize.pod:197
22655 "Shrinking is somewhat more complex than expanding, and only an overview is "
22660 #: ../resize/virt-resize.pod:200
22662 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22663 "filesystems). The user has to shrink content before passing the disk image "
22664 "to virt-resize, and virt-resize will check that the content has been shrunk "
22669 #: ../resize/virt-resize.pod:205
22670 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22674 #: ../resize/virt-resize.pod:207
22676 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22677 "steps 3 and 4 above to allocate a new disk image."
22681 #: ../resize/virt-resize.pod:210
22683 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22687 #: ../resize/virt-resize.pod:213
22688 msgid "IGNORING OR DELETING PARTITIONS"
22692 #: ../resize/virt-resize.pod:215
22694 "virt-resize also gives a convenient way to ignore or delete partitions when "
22695 "copying from the input disk to the output disk. Ignoring a partition speeds "
22696 "up the copy where you don't care about the existing contents of a "
22697 "partition. Deleting a partition removes it completely, but note that it "
22698 "also renumbers any partitions after the one which is deleted, which can "
22699 "leave some guests unbootable."
22703 #: ../resize/virt-resize.pod:222
22704 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22708 #: ../resize/virt-resize.pod:224
22710 "If the input disk is in qcow2 format, then you may prefer that the output is "
22711 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
22712 "the fly. The output format is simply determined by the format of the empty "
22713 "output container that you provide. Thus to create qcow2 output, use:"
22717 #: ../resize/virt-resize.pod:230
22720 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22725 #: ../resize/virt-resize.pod:232
22726 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22730 #: ../resize/virt-resize.pod:234
22731 msgid "Similarly, to get non-sparse raw output use:"
22735 #: ../resize/virt-resize.pod:236
22738 #| " fallocate path len\n"
22741 " fallocate -l size outdisk\n"
22744 " fallocate шлях довжина\n"
22748 #: ../resize/virt-resize.pod:238
22750 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22751 "dev/zero of=outdisk bs=1M count=..>)"
22755 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
22756 msgid "Display help."
22760 #: ../resize/virt-resize.pod:249
22765 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22766 #: ../tools/virt-win-reg.pl:120
22768 msgstr "B<--debug>"
22771 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22772 msgid "Enable debugging messages."
22776 #: ../resize/virt-resize.pod:255
22778 #| msgid "B<--no-dest-paths>"
22779 msgid "B<--delete part>"
22780 msgstr "B<--no-dest-paths>"
22783 #: ../resize/virt-resize.pod:257
22785 "Delete the named partition. It would be more accurate to describe this as "
22786 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22787 "the original disk image is left intact."
22791 #: ../resize/virt-resize.pod:261
22793 "Note that when you delete a partition, then anything contained in the "
22794 "partition is also deleted. Furthermore, this causes any partitions that "
22795 "come after to be I<renumbered>, which can easily make your guest unbootable."
22799 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22800 #: ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
22801 msgid "You can give this option multiple times."
22805 #: ../resize/virt-resize.pod:268
22807 #| msgid "B<--partition>"
22808 msgid "B<--expand part>"
22809 msgstr "B<--partition>"
22812 #: ../resize/virt-resize.pod:270
22814 "Expand the named partition so it uses up all extra space (space left over "
22815 "after any other resize changes that you request have been done)."
22819 #: ../resize/virt-resize.pod:273
22821 "If virt-resize knows how, it will expand the direct content of the "
22822 "partition. For example, if the partition is an LVM PV, it will expand the "
22823 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
22824 "content it doesn't know about alone."
22828 #: ../resize/virt-resize.pod:278
22829 msgid "Currently virt-resize can resize:"
22833 #: ../resize/virt-resize.pod:284
22834 msgid "ext2, ext3 and ext4 filesystems."
22838 #: ../resize/virt-resize.pod:288
22839 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22843 #: ../resize/virt-resize.pod:290
22845 "The filesystem must have been shut down consistently last time it was used. "
22846 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22847 "consistency check, so at the first boot after resizing Windows will check "
22852 #: ../resize/virt-resize.pod:297
22854 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
22855 "inside the PV, but see the I<--LV-expand> option. The user could also "
22856 "resize LVs as desired after boot."
22860 #: ../resize/virt-resize.pod:303
22861 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22865 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22866 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22870 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125
22871 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
22872 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
22873 msgid "B<--format> raw"
22877 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
22879 "Specify the format of the input disk image. If this flag is not given then "
22880 "it is auto-detected from the image itself."
22884 #: ../resize/virt-resize.pod:317
22886 "Note that this option I<does not> affect the output format. See L</QCOW2 "
22887 "AND NON-SPARSE RAW FORMATS>."
22891 #: ../resize/virt-resize.pod:320
22893 #| msgid "B<--format>"
22894 msgid "B<--ignore part>"
22895 msgstr "B<--format>"
22898 #: ../resize/virt-resize.pod:322
22900 "Ignore the named partition. Effectively this means the partition is "
22901 "allocated on the destination disk, but the content is not copied across from "
22902 "the source disk. The content of the partition will be blank (all zero "
22907 #: ../resize/virt-resize.pod:329
22908 msgid "B<--LV-expand logvol>"
22912 #: ../resize/virt-resize.pod:331
22914 "This takes the logical volume and, as a final step, expands it to fill all "
22915 "the space available in its volume group. A typical usage, assuming a Linux "
22916 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22917 "lv_root> would be:"
22921 #: ../resize/virt-resize.pod:336
22924 " virt-resize indisk outdisk \\\n"
22925 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22930 #: ../resize/virt-resize.pod:339
22932 "This would first expand the partition (and PV), and then expand the root "
22933 "device to fill the extra space in the PV."
22937 #: ../resize/virt-resize.pod:342
22939 "The contents of the LV are also resized if virt-resize knows how to do "
22940 "that. You can stop virt-resize from trying to expand the content by using "
22941 "the option I<--no-expand-content>."
22945 #: ../resize/virt-resize.pod:346
22946 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22950 #: ../resize/virt-resize.pod:348
22952 "You can give this option multiple times, I<but> it doesn't make sense to do "
22953 "this unless the logical volumes you specify are all in different volume "
22958 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
22960 #| msgid "B<-h> | B<--human-readable>"
22961 msgid "B<--machine-readable>"
22962 msgstr "B<-h> | B<--human-readable>"
22965 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
22967 "This option is used to make the output more machine friendly when being "
22968 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
22972 #: ../resize/virt-resize.pod:360
22974 #| msgid "B<--debug>"
22975 msgid "B<--dryrun>"
22976 msgstr "B<--debug>"
22979 #: ../resize/virt-resize.pod:362
22980 msgid "Print a summary of what would be done, but don't do anything."
22984 #: ../resize/virt-resize.pod:364
22985 msgid "B<--no-copy-boot-loader>"
22989 #: ../resize/virt-resize.pod:366
22991 "By default, virt-resize copies over some sectors at the start of the disk "
22992 "(up to the beginning of the first partition). Commonly these sectors "
22993 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22994 "in order for the guest to boot correctly."
22998 #: ../resize/virt-resize.pod:371
23000 "If you specify this flag, then this initial copy is not done. You may need "
23001 "to reinstall the boot loader in this case."
23005 #: ../resize/virt-resize.pod:374
23007 #| msgid "B<--partition>"
23008 msgid "B<--no-extra-partition>"
23009 msgstr "B<--partition>"
23012 #: ../resize/virt-resize.pod:376
23014 "By default, virt-resize creates an extra partition if there is any extra, "
23015 "unused space after all resizing has happened. Use this option to prevent "
23016 "the extra partition from being created. If you do this then the extra space "
23017 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23018 "tool in the guest."
23022 #: ../resize/virt-resize.pod:382
23024 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23029 #: ../resize/virt-resize.pod:385
23031 #| msgid "B<--no-dest-paths>"
23032 msgid "B<--no-expand-content>"
23033 msgstr "B<--no-dest-paths>"
23036 #: ../resize/virt-resize.pod:387
23038 "By default, virt-resize will try to expand the direct contents of "
23039 "partitions, if it knows how (see I<--expand> option above)."
23043 #: ../resize/virt-resize.pod:390
23045 "If you give the I<--no-expand-content> option then virt-resize will not "
23050 #: ../resize/virt-resize.pod:393
23052 #| msgid "ntfsresize-size"
23053 msgid "B<--ntfsresize-force>"
23054 msgstr "ntfsresize-size"
23057 #: ../resize/virt-resize.pod:395
23059 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23060 "the NTFS disk is marked as needing a consistency check. You have to use "
23061 "this option if you want to resize a Windows guest multiple times without "
23062 "booting into Windows between each resize."
23066 #: ../resize/virt-resize.pod:401
23068 #| msgid "B<--format>"
23069 msgid "B<--output-format> raw"
23070 msgstr "B<--format>"
23073 #: ../resize/virt-resize.pod:403
23075 "Specify the format of the output disk image. If this flag is not given then "
23076 "it is auto-detected from the image itself."
23080 #: ../resize/virt-resize.pod:409
23082 "Note that this option I<does not create> the output format. This option "
23083 "just tells libguestfs what it is so it doesn't try to guess it. You still "
23084 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
23085 "SPARSE RAW FORMATS>."
23089 #: ../resize/virt-resize.pod:414 ../sparsify/virt-sparsify.pod:153
23094 #: ../resize/virt-resize.pod:416 ../sparsify/virt-sparsify.pod:155
23096 #| msgid "B<--live>"
23101 #: ../resize/virt-resize.pod:418
23102 msgid "Don't print the summary."
23106 #: ../resize/virt-resize.pod:420
23108 #| msgid "B<part_size>"
23109 msgid "B<--resize part=size>"
23110 msgstr "B<part_size>"
23113 #: ../resize/virt-resize.pod:422
23115 "Resize the named partition (expanding or shrinking it) so that it has the "
23120 #: ../resize/virt-resize.pod:425
23122 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23123 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23124 "size; or as a relative number or percentage. For example:"
23128 #: ../resize/virt-resize.pod:431
23131 #| " hexedit /dev/sda 1M\n"
23134 " --resize /dev/sda2=10G\n"
23137 " hexedit /dev/sda 1M\n"
23141 #: ../resize/virt-resize.pod:433
23144 #| " pvresize device\n"
23147 " --resize /dev/sda4=90%\n"
23150 " pvresize пристрій\n"
23154 #: ../resize/virt-resize.pod:435
23157 #| " hexedit /dev/sda 1M\n"
23160 " --resize /dev/sda2=+1G\n"
23163 " hexedit /dev/sda 1M\n"
23167 #: ../resize/virt-resize.pod:437
23170 #| " hexedit /dev/sda 1M\n"
23173 " --resize /dev/sda2=-200M\n"
23176 " hexedit /dev/sda 1M\n"
23180 #: ../resize/virt-resize.pod:439
23183 #| " hexedit /dev/sda 1M\n"
23186 " --resize /dev/sda1=+128K\n"
23189 " hexedit /dev/sda 1M\n"
23193 #: ../resize/virt-resize.pod:441
23196 #| " hexedit /dev/sda 1M\n"
23199 " --resize /dev/sda1=+10%\n"
23202 " hexedit /dev/sda 1M\n"
23206 #: ../resize/virt-resize.pod:443
23209 #| " hexedit /dev/sda 1M\n"
23212 " --resize /dev/sda1=-10%\n"
23215 " hexedit /dev/sda 1M\n"
23219 #: ../resize/virt-resize.pod:445
23221 "You can increase the size of any partition. Virt-resize will expand the "
23222 "direct content of the partition if it knows how (see I<--expand> below)."
23226 #: ../resize/virt-resize.pod:449
23228 "You can only I<decrease> the size of partitions that contain filesystems or "
23229 "PVs which have already been shrunk. Virt-resize will check this has been "
23230 "done before proceeding, or else will print an error (see also I<--resize-"
23235 #: ../resize/virt-resize.pod:456
23236 msgid "B<--resize-force part=size>"
23240 #: ../resize/virt-resize.pod:458
23242 "This is the same as I<--resize> except that it will let you decrease the "
23243 "size of any partition. Generally this means you will lose any data which "
23244 "was at the end of the partition you shrink, but you may not care about that "
23245 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23246 "as a swap partition)."
23250 #: ../resize/virt-resize.pod:464
23251 msgid "See also the I<--ignore> option."
23255 #: ../resize/virt-resize.pod:466
23257 #| msgid "B<--partition>"
23258 msgid "B<--shrink part>"
23259 msgstr "B<--partition>"
23262 #: ../resize/virt-resize.pod:468
23264 "Shrink the named partition until the overall disk image fits in the "
23265 "destination. The named partition B<must> contain a filesystem or PV which "
23266 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23267 "online tools). Virt-resize will check this and give an error if it has not "
23272 #: ../resize/virt-resize.pod:474
23274 "The amount by which the overall disk must be shrunk (after carrying out all "
23275 "other operations requested by the user) is called the \"deficit\". For "
23276 "example, a straight copy (assume no other operations) from a 5GB disk image "
23277 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
23278 "would give an error unless the user specified a partition to shrink and that "
23279 "partition had more than a gigabyte of free space."
23283 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
23284 msgid "MACHINE READABLE OUTPUT"
23288 #: ../resize/virt-resize.pod:494
23290 "The I<--machine-readable> option can be used to make the output more machine "
23291 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23296 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
23297 msgid "There are two ways to use this option."
23301 #: ../resize/virt-resize.pod:500
23303 "Firstly use the option on its own to query the capabilities of the virt-"
23304 "resize binary. Typical output looks like this:"
23308 #: ../resize/virt-resize.pod:503
23311 " $ virt-resize --machine-readable\n"
23313 " ntfsresize-force\n"
23321 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
23323 "A list of features is printed, one per line, and the program exits with "
23328 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
23330 "Secondly use the option in conjunction with other options to make the "
23331 "regular program output more machine friendly."
23335 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
23336 msgid "At the moment this means:"
23340 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
23342 "Progress bar messages can be parsed from stdout by looking for this regular "
23347 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
23350 " ^[0-9]+/[0-9]+$\n"
23355 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
23357 "The calling program should treat messages sent to stdout (except for "
23358 "progress bar messages) as status messages. They can be logged and/or "
23359 "displayed to the user."
23363 #: ../resize/virt-resize.pod:535
23365 "The calling program should treat messages sent to stderr as error messages. "
23366 "In addition, virt-resize exits with a non-zero status code if there was a "
23371 #: ../resize/virt-resize.pod:541
23373 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
23374 "readable> option and will return an error."
23378 #: ../resize/virt-resize.pod:546
23379 msgid "\"Partition 1 does not end on cylinder boundary.\""
23383 #: ../resize/virt-resize.pod:548
23385 "Virt-resize aligns partitions to multiples of 64 sectors. Usually this "
23386 "means the partitions will not be aligned to the ancient CHS geometry. "
23387 "However CHS geometry is meaningless for disks manufactured since the early "
23388 "1990s, and doubly so for virtual hard drives. Alignment of partitions to "
23389 "cylinders is not required by any modern operating system."
23393 #: ../resize/virt-resize.pod:555
23394 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23398 #: ../resize/virt-resize.pod:557
23400 "In Windows Vista and later versions, Microsoft switched to using a separate "
23401 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
23402 "and C</dev/sda2> is the main (C:) drive. We have not had any luck resizing "
23403 "the boot partition. Doing so seems to break the guest completely. However "
23404 "expanding the second partition (ie. C: drive) should work."
23408 #: ../resize/virt-resize.pod:564
23410 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23411 "NTFS partitions have been expanded. This is just a safety check and (unless "
23412 "it find errors) is nothing to worry about."
23416 #: ../resize/virt-resize.pod:568
23417 msgid "GUEST BOOT STUCK AT \"GRUB\""
23421 #: ../resize/virt-resize.pod:570
23423 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23424 "printing C<GRUB> on the console, try reinstalling grub. This sometimes "
23425 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23426 "although we think is to do with partition alignment."
23430 #: ../resize/virt-resize.pod:575
23433 " guestfish -i -a newdisk\n"
23434 " ><fs> cat /boot/grub/device.map\n"
23435 " # check the contents of this file are sensible or\n"
23436 " # edit the file if necessary\n"
23437 " ><fs> grub-install / /dev/vda\n"
23443 #: ../resize/virt-resize.pod:582
23445 "For more flexible guest reconfiguration, including if you need to specify "
23446 "other parameters to grub-install, use L<virt-rescue(1)>."
23450 #: ../resize/virt-resize.pod:585
23451 msgid "ALTERNATIVE TOOLS"
23455 #: ../resize/virt-resize.pod:587
23457 "There are several proprietary tools for resizing partitions. We won't "
23458 "mention any here."
23462 #: ../resize/virt-resize.pod:590
23464 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23465 "operations on disk images. They can resize and move partitions, but I don't "
23466 "think they can do anything with the contents, and they certainly don't "
23471 #: ../resize/virt-resize.pod:595
23473 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23474 "but at a much lower level. You will probably end up hand-calculating sector "
23475 "offsets, which is something that virt-resize was designed to avoid. If you "
23476 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23481 #: ../resize/virt-resize.pod:615
23483 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23484 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23485 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23486 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
23487 "L<http://libguestfs.org/>."
23491 #: ../ruby/examples/guestfs-ruby.pod:5
23492 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23496 #: ../ruby/examples/guestfs-ruby.pod:9
23499 " require 'guestfs'\n"
23500 " g = Guestfs::Guestfs.new()\n"
23501 " g.add_drive_opts(\"disk.img\",\n"
23502 " :readonly => 1, :format => \"raw\")\n"
23508 #: ../ruby/examples/guestfs-ruby.pod:17
23510 "This manual page documents how to call libguestfs from the Ruby programming "
23511 "language. This page just documents the differences from the C API and gives "
23512 "some examples. If you are not familiar with using libguestfs, you also need "
23513 "to read L<guestfs(3)>."
23517 #: ../ruby/examples/guestfs-ruby.pod:24
23519 "Errors from libguestfs functions are mapped into the C<Error> exception. "
23520 "This has a single parameter which is the error message (a string)."
23524 #: ../ruby/examples/guestfs-ruby.pod:38
23527 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23528 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23529 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23531 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23532 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
23533 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23535 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23536 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23537 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23540 #: ../sparsify/virt-sparsify.pod:5
23541 msgid "virt-sparsify - Make a virtual machine disk sparse"
23545 #: ../sparsify/virt-sparsify.pod:9
23548 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23551 " virt-sparsify [--options] indisk outdisk\n"
23554 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23558 #: ../sparsify/virt-sparsify.pod:13
23560 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
23561 "image) sparse a.k.a. thin-provisioned. This means that free space within "
23562 "the disk image can be converted back to free space on the host."
23566 #: ../sparsify/virt-sparsify.pod:18
23568 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
23569 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
23573 #: ../sparsify/virt-sparsify.pod:21
23575 "Virt-sparsify can also convert between some disk formats, for example "
23576 "converting a raw disk image to a thin-provisioned qcow2 image."
23580 #: ../sparsify/virt-sparsify.pod:24
23582 "Virt-sparsify can operate on any disk image, not just ones from virtual "
23583 "machines. If a virtual machine has multiple disk images, then you must "
23584 "sparsify each one separately."
23588 #: ../sparsify/virt-sparsify.pod:28
23589 msgid "IMPORTANT LIMITATIONS"
23593 #: ../sparsify/virt-sparsify.pod:34
23595 "Virt-sparsify does not do in-place modifications. It copies from a source "
23596 "image to a destination image, leaving the source unchanged. I<Check that "
23597 "the sparsification was successful before deleting the source image>."
23601 #: ../sparsify/virt-sparsify.pod:41
23602 msgid "The virtual machine I<must be shut down> before using this tool."
23606 #: ../sparsify/virt-sparsify.pod:45
23608 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
23609 "(1 temporary copy + 1 destination image). This is in the worst case and "
23610 "usually much less space is required."
23614 #: ../sparsify/virt-sparsify.pod:51
23616 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
23620 #: ../sparsify/virt-sparsify.pod:56
23621 msgid "Virt-sparsify cannot handle encrypted disks."
23625 #: ../sparsify/virt-sparsify.pod:60
23627 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
23628 "this space is often used for critical items like bootloaders so it's not "
23633 #: ../sparsify/virt-sparsify.pod:66
23635 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
23636 "to do this unless we can be sure there is no hibernation data, so at the "
23637 "moment swap partitions are ignored."
23641 #: ../sparsify/virt-sparsify.pod:72
23643 "You may also want to read the manual pages for the associated tools L<virt-"
23644 "filesystems(1)> and L<virt-df(1)> before starting."
23648 #: ../sparsify/virt-sparsify.pod:77
23649 msgid "Typical usage is:"
23653 #: ../sparsify/virt-sparsify.pod:79
23656 " virt-sparsify indisk outdisk\n"
23661 #: ../sparsify/virt-sparsify.pod:81
23663 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
23664 "is created, or overwritten if it already exists. The format of the input "
23665 "disk is detected (eg. qcow2) and the same format is used for the output disk."
23669 #: ../sparsify/virt-sparsify.pod:86
23670 msgid "To convert between formats, use the I<--convert> option:"
23674 #: ../sparsify/virt-sparsify.pod:88
23677 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
23682 #: ../sparsify/virt-sparsify.pod:90
23684 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
23685 "can find within the source disk image. You can get it to ignore (don't zero "
23686 "free space on) certain filesystems by doing:"
23690 #: ../sparsify/virt-sparsify.pod:94
23693 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
23698 #: ../sparsify/virt-sparsify.pod:96
23700 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
23704 #: ../sparsify/virt-sparsify.pod:107
23706 #| msgid "B<--connect URI>"
23707 msgid "B<--convert> raw"
23708 msgstr "B<--connect адреса>"
23711 #: ../sparsify/virt-sparsify.pod:109
23713 #| msgid "B<--format=raw|qcow2|..>"
23714 msgid "B<--convert> qcow2"
23715 msgstr "B<--format=raw|qcow2|..>"
23718 #: ../sparsify/virt-sparsify.pod:111
23719 msgid "B<--convert> [other formats]"
23723 #: ../sparsify/virt-sparsify.pod:113
23725 "Use C<output-format> as the format for the destination image. If this is "
23726 "not specified, then the input format is used."
23730 #: ../sparsify/virt-sparsify.pod:116
23731 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
23735 #: ../sparsify/virt-sparsify.pod:118
23737 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
23738 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
23742 #: ../sparsify/virt-sparsify.pod:122
23744 "Specifying the I<--convert> option is usually a good idea, because then virt-"
23745 "sparsify doesn't need to try to guess the input format."
23749 #: ../sparsify/virt-sparsify.pod:127
23751 #| msgid "B<--format=raw|qcow2|..>"
23752 msgid "B<--format> qcow2"
23753 msgstr "B<--format=raw|qcow2|..>"
23756 #: ../sparsify/virt-sparsify.pod:135
23758 #| msgid "list-filesystems"
23759 msgid "B<--ignore> filesystem"
23760 msgstr "list-filesystems"
23763 #: ../sparsify/virt-sparsify.pod:137
23765 #| msgid "B<--verbose>"
23766 msgid "B<--ignore> volgroup"
23767 msgstr "B<--verbose>"
23770 #: ../sparsify/virt-sparsify.pod:139
23772 "Ignore the named filesystem. Free space on the filesystem will not be "
23773 "zeroed, but existing blocks of zeroes will still be sparsified."
23777 #: ../sparsify/virt-sparsify.pod:142
23779 "In the second form, this ignores the named volume group. Use the volume "
23780 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
23784 #: ../sparsify/virt-sparsify.pod:157
23785 msgid "This disables progress bars and other unnecessary output."
23789 #: ../sparsify/virt-sparsify.pod:179
23791 "The I<--machine-readable> option can be used to make the output more machine "
23792 "friendly, which is useful when calling virt-sparsify from other programs, "
23797 #: ../sparsify/virt-sparsify.pod:185
23799 "Firstly use the option on its own to query the capabilities of the virt-"
23800 "sparsify binary. Typical output looks like this:"
23804 #: ../sparsify/virt-sparsify.pod:188
23807 " $ virt-sparsify --machine-readable\n"
23815 #: ../sparsify/virt-sparsify.pod:218
23817 "The calling program should treat messages sent to stderr as error messages. "
23818 "In addition, virt-sparsify exits with a non-zero status code if there was a "
23823 #: ../sparsify/virt-sparsify.pod:224
23825 "All versions of virt-sparsify have supported the I<--machine-readable> "
23830 #: ../sparsify/virt-sparsify.pod:238
23832 "Location of the temporary directory used for the potentially large temporary "
23837 #: ../sparsify/virt-sparsify.pod:241
23839 "You should ensure there is enough free space in the worst case for a full "
23840 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
23841 "to another directory that has enough space."
23845 #: ../sparsify/virt-sparsify.pod:245
23847 #| msgid "The default is C<ext2>."
23848 msgid "This defaults to C</tmp>."
23849 msgstr "Типовим значенням є C<ext2>."
23852 #: ../sparsify/virt-sparsify.pod:249
23854 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
23858 #: ../sparsify/virt-sparsify.pod:253
23861 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
23862 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
23863 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
23864 #| "libguestfs.org/>."
23866 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
23867 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
23868 "(1)>, L<http://libguestfs.org/>."
23870 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
23871 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
23872 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
23876 #: ../sparsify/virt-sparsify.pod:270
23878 #| msgid "Copyright (C) 2009 Red Hat Inc."
23879 msgid "Copyright (C) 2011 Red Hat Inc."
23880 msgstr "© Red Hat Inc., 2009"
23883 #: ../src/guestfs-actions.pod:1
23884 msgid "guestfs_add_cdrom"
23888 #: ../src/guestfs-actions.pod:3
23892 " guestfs_add_cdrom (guestfs_h *g,\n"
23893 " const char *filename);\n"
23898 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
23899 #: ../src/guestfs-actions.pod:270
23901 "I<This function is deprecated.> In new code, use the L</"
23902 "guestfs_add_drive_opts> call instead."
23906 #: ../src/guestfs-actions.pod:24
23908 "This call checks for the existence of C<filename>. This stops you from "
23909 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23910 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
23915 #: ../src/guestfs-actions.pod:31
23917 "If you just want to add an ISO file (often you use this as an efficient way "
23918 "to transfer large files into the guest), then you should probably use "
23919 "C<guestfs_add_drive_ro> instead."
23923 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
23924 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23925 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
23926 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23927 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23928 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23929 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23930 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23931 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23932 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23933 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23934 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23935 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23936 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1233
23937 #: ../src/guestfs-actions.pod:1279 ../src/guestfs-actions.pod:1297
23938 #: ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:1330
23939 #: ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1420
23940 #: ../src/guestfs-actions.pod:1451 ../src/guestfs-actions.pod:1476
23941 #: ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:1631
23942 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1873
23943 #: ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:1982
23944 #: ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2634
23945 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2730
23946 #: ../src/guestfs-actions.pod:3774 ../src/guestfs-actions.pod:3789
23947 #: ../src/guestfs-actions.pod:3814 ../src/guestfs-actions.pod:4003
23948 #: ../src/guestfs-actions.pod:4017 ../src/guestfs-actions.pod:4030
23949 #: ../src/guestfs-actions.pod:4044 ../src/guestfs-actions.pod:4059
23950 #: ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4167
23951 #: ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4204
23952 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4250
23953 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4304
23954 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4358
23955 #: ../src/guestfs-actions.pod:4370 ../src/guestfs-actions.pod:4406
23956 #: ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:4435
23957 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4467
23958 #: ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4580
23959 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4644
23960 #: ../src/guestfs-actions.pod:4662 ../src/guestfs-actions.pod:4680
23961 #: ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:4710
23962 #: ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4741
23963 #: ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4783
23964 #: ../src/guestfs-actions.pod:4846 ../src/guestfs-actions.pod:4919
23965 #: ../src/guestfs-actions.pod:4950 ../src/guestfs-actions.pod:4969
23966 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5000
23967 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5030
23968 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5060
23969 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5118
23970 #: ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5177
23971 #: ../src/guestfs-actions.pod:5191 ../src/guestfs-actions.pod:5208
23972 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5310
23973 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5400
23974 #: ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5445
23975 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5603
23976 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5682
23977 #: ../src/guestfs-actions.pod:5700 ../src/guestfs-actions.pod:5732
23978 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5815
23979 #: ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5842
23980 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
23981 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6183
23982 #: ../src/guestfs-actions.pod:6195 ../src/guestfs-actions.pod:6209
23983 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6235
23984 #: ../src/guestfs-actions.pod:6251 ../src/guestfs-actions.pod:6272
23985 #: ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6310
23986 #: ../src/guestfs-actions.pod:6340 ../src/guestfs-actions.pod:6358
23987 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6399
23988 #: ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6439
23989 #: ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6475
23990 #: ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6522
23991 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6565
23992 #: ../src/guestfs-actions.pod:6581 ../src/guestfs-actions.pod:6605
23993 #: ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6639
23994 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6702
23995 #: ../src/guestfs-actions.pod:6732 ../src/guestfs-actions.pod:6765
23996 #: ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:7001
23997 #: ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7026
23998 #: ../src/guestfs-actions.pod:7039 ../src/guestfs-actions.pod:7061
23999 #: ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7087
24000 #: ../src/guestfs-actions.pod:7100 ../src/guestfs-actions.pod:7115
24001 #: ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7191
24002 #: ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7223
24003 #: ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7253
24004 #: ../src/guestfs-actions.pod:7273 ../src/guestfs-actions.pod:7309
24005 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7364
24006 #: ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7395
24007 #: ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7465
24008 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7596
24009 #: ../src/guestfs-actions.pod:7610 ../src/guestfs-actions.pod:7665
24010 #: ../src/guestfs-actions.pod:7678 ../src/guestfs-actions.pod:7723
24011 #: ../src/guestfs-actions.pod:7763 ../src/guestfs-actions.pod:7819
24012 #: ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7872
24013 #: ../src/guestfs-actions.pod:7936 ../src/guestfs-actions.pod:7959
24014 #: ../src/guestfs-actions.pod:7988
24015 msgid "This function returns 0 on success or -1 on error."
24019 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
24020 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:2096
24021 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2319
24022 #: ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:3796
24023 #: ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:6360
24024 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6626
24025 #: ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7242
24026 #: ../src/guestfs-actions.pod:7765
24027 msgid "(Added in 0.3)"
24031 #: ../src/guestfs-actions.pod:41
24032 msgid "guestfs_add_domain"
24036 #: ../src/guestfs-actions.pod:43
24040 " guestfs_add_domain (guestfs_h *g,\n"
24041 " const char *dom,\n"
24047 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
24048 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
24049 #: ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:2979
24050 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5104
24051 #: ../src/guestfs-actions.pod:5321
24053 "You may supply a list of optional arguments to this call. Use zero or more "
24054 "of the following pairs of parameters, and terminate the list with C<-1> on "
24055 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
24059 #: ../src/guestfs-actions.pod:53
24062 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24063 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24064 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24065 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24066 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24071 #: ../src/guestfs-actions.pod:59
24073 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
24074 "It works by connecting to libvirt, requesting the domain and domain XML from "
24075 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24080 #: ../src/guestfs-actions.pod:94
24082 "The other optional parameters are passed directly through to "
24083 "C<guestfs_add_drive_opts>."
24087 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
24088 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
24089 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
24090 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1496
24091 #: ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:2055
24092 #: ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2217
24093 #: ../src/guestfs-actions.pod:2269 ../src/guestfs-actions.pod:2283
24094 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2621
24095 #: ../src/guestfs-actions.pod:3097 ../src/guestfs-actions.pod:3115
24096 #: ../src/guestfs-actions.pod:5280 ../src/guestfs-actions.pod:5500
24097 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:5938
24098 #: ../src/guestfs-actions.pod:7350 ../src/guestfs-actions.pod:7776
24099 #: ../src/guestfs-actions.pod:7789 ../src/guestfs-actions.pod:7802
24100 msgid "On error this function returns -1."
24104 #: ../src/guestfs-actions.pod:99
24105 msgid "(Added in 1.7.4)"
24109 #: ../src/guestfs-actions.pod:101
24110 msgid "guestfs_add_domain_va"
24114 #: ../src/guestfs-actions.pod:103
24118 " guestfs_add_domain_va (guestfs_h *g,\n"
24119 " const char *dom,\n"
24120 " va_list args);\n"
24125 #: ../src/guestfs-actions.pod:108
24126 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24130 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
24131 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
24132 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
24133 #: ../src/guestfs-actions.pod:1189 ../src/guestfs-actions.pod:1202
24134 #: ../src/guestfs-actions.pod:1248 ../src/guestfs-actions.pod:1261
24135 #: ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3075
24136 #: ../src/guestfs-actions.pod:4860 ../src/guestfs-actions.pod:4872
24137 #: ../src/guestfs-actions.pod:5132 ../src/guestfs-actions.pod:5144
24138 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5381
24139 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24140 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
24143 #: ../src/guestfs-actions.pod:112
24144 msgid "guestfs_add_domain_argv"
24145 msgstr "guestfs_add_domain_argv"
24148 #: ../src/guestfs-actions.pod:114
24152 " guestfs_add_domain_argv (guestfs_h *g,\n"
24153 " const char *dom,\n"
24154 " const struct guestfs_add_domain_argv *optargs);\n"
24159 #: ../src/guestfs-actions.pod:119
24160 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24164 #: ../src/guestfs-actions.pod:123
24165 msgid "guestfs_add_drive"
24169 #: ../src/guestfs-actions.pod:125
24173 " guestfs_add_drive (guestfs_h *g,\n"
24174 " const char *filename);\n"
24179 #: ../src/guestfs-actions.pod:129
24181 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24182 "optional parameters, so the disk is added writable, with the format being "
24183 "detected automatically."
24187 #: ../src/guestfs-actions.pod:133
24189 "Automatic detection of the format opens you up to a potential security hole "
24190 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
24191 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
24192 "you should think about replacing calls to this function with calls to "
24193 "C<guestfs_add_drive_opts>, and specifying the format."
24197 #: ../src/guestfs-actions.pod:144
24198 msgid "guestfs_add_drive_opts"
24202 #: ../src/guestfs-actions.pod:146
24206 " guestfs_add_drive_opts (guestfs_h *g,\n"
24207 " const char *filename,\n"
24213 #: ../src/guestfs-actions.pod:156
24216 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24217 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24218 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24223 #: ../src/guestfs-actions.pod:185
24225 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
24226 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
24227 "Possible formats include C<raw> and C<qcow2>."
24231 #: ../src/guestfs-actions.pod:196
24233 "This rarely-used option lets you emulate the behaviour of the deprecated "
24234 "C<guestfs_add_drive_with_if> call (q.v.)"
24238 #: ../src/guestfs-actions.pod:203
24239 msgid "(Added in 1.5.23)"
24243 #: ../src/guestfs-actions.pod:205
24244 msgid "guestfs_add_drive_opts_va"
24248 #: ../src/guestfs-actions.pod:207
24252 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24253 " const char *filename,\n"
24254 " va_list args);\n"
24259 #: ../src/guestfs-actions.pod:212
24260 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24264 #: ../src/guestfs-actions.pod:216
24265 msgid "guestfs_add_drive_opts_argv"
24269 #: ../src/guestfs-actions.pod:218
24273 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24274 " const char *filename,\n"
24275 " const struct guestfs_add_drive_opts_argv *optargs);\n"
24280 #: ../src/guestfs-actions.pod:223
24281 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
24285 #: ../src/guestfs-actions.pod:227
24286 msgid "guestfs_add_drive_ro"
24290 #: ../src/guestfs-actions.pod:229
24294 " guestfs_add_drive_ro (guestfs_h *g,\n"
24295 " const char *filename);\n"
24300 #: ../src/guestfs-actions.pod:233
24302 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
24303 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
24304 "disk is added read-only, with the format being detected automatically."
24308 #: ../src/guestfs-actions.pod:240
24309 msgid "(Added in 1.0.38)"
24313 #: ../src/guestfs-actions.pod:242
24314 msgid "guestfs_add_drive_ro_with_if"
24318 #: ../src/guestfs-actions.pod:244
24322 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
24323 " const char *filename,\n"
24324 " const char *iface);\n"
24329 #: ../src/guestfs-actions.pod:256
24331 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
24332 "QEMU interface emulation to use at run time."
24336 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
24337 #: ../src/guestfs-actions.pod:2580
24338 msgid "(Added in 1.0.84)"
24342 #: ../src/guestfs-actions.pod:263
24343 msgid "guestfs_add_drive_with_if"
24347 #: ../src/guestfs-actions.pod:265
24351 " guestfs_add_drive_with_if (guestfs_h *g,\n"
24352 " const char *filename,\n"
24353 " const char *iface);\n"
24358 #: ../src/guestfs-actions.pod:277
24360 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
24361 "QEMU interface emulation to use at run time."
24365 #: ../src/guestfs-actions.pod:284
24366 msgid "guestfs_aug_clear"
24370 #: ../src/guestfs-actions.pod:286
24374 " guestfs_aug_clear (guestfs_h *g,\n"
24375 " const char *augpath);\n"
24380 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2308
24381 msgid "(Added in 1.3.4)"
24385 #: ../src/guestfs-actions.pod:297
24386 msgid "guestfs_aug_close"
24390 #: ../src/guestfs-actions.pod:299
24394 " guestfs_aug_close (guestfs_h *g);\n"
24399 #: ../src/guestfs-actions.pod:302
24401 "Close the current Augeas handle and free up any resources used by it. After "
24402 "calling this, you have to call C<guestfs_aug_init> again before you can use "
24403 "any other Augeas functions."
24407 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
24408 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
24409 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
24410 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
24411 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
24412 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
24413 #: ../src/guestfs-actions.pod:5989
24414 msgid "(Added in 0.7)"
24418 #: ../src/guestfs-actions.pod:311
24419 msgid "guestfs_aug_defnode"
24423 #: ../src/guestfs-actions.pod:313
24426 " struct guestfs_int_bool *\n"
24427 " guestfs_aug_defnode (guestfs_h *g,\n"
24428 " const char *name,\n"
24429 " const char *expr,\n"
24430 " const char *val);\n"
24435 #: ../src/guestfs-actions.pod:322
24437 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24438 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
24439 "containing that single node."
24443 #: ../src/guestfs-actions.pod:330
24445 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
24446 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
24450 #: ../src/guestfs-actions.pod:336
24451 msgid "guestfs_aug_defvar"
24455 #: ../src/guestfs-actions.pod:338
24459 " guestfs_aug_defvar (guestfs_h *g,\n"
24460 " const char *name,\n"
24461 " const char *expr);\n"
24466 #: ../src/guestfs-actions.pod:354
24467 msgid "guestfs_aug_get"
24471 #: ../src/guestfs-actions.pod:356
24475 " guestfs_aug_get (guestfs_h *g,\n"
24476 " const char *augpath);\n"
24481 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
24482 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
24483 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
24484 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1382
24485 #: ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1535
24486 #: ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1835
24487 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2015
24488 #: ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:2125
24489 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2331
24490 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:2749
24491 #: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2947
24492 #: ../src/guestfs-actions.pod:2966 ../src/guestfs-actions.pod:3180
24493 #: ../src/guestfs-actions.pod:3208 ../src/guestfs-actions.pod:3229
24494 #: ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3322
24495 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3362
24496 #: ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4342
24497 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4622
24498 #: ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5717
24499 #: ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:6065
24500 #: ../src/guestfs-actions.pod:6114 ../src/guestfs-actions.pod:6786
24501 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6826
24502 #: ../src/guestfs-actions.pod:6850 ../src/guestfs-actions.pod:7524
24503 #: ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7561
24504 #: ../src/guestfs-actions.pod:7735 ../src/guestfs-actions.pod:8052
24506 "This function returns a string, or NULL on error. I<The caller must free "
24507 "the returned string after use>."
24511 #: ../src/guestfs-actions.pod:368
24512 msgid "guestfs_aug_init"
24516 #: ../src/guestfs-actions.pod:370
24520 " guestfs_aug_init (guestfs_h *g,\n"
24521 " const char *root,\n"
24527 #: ../src/guestfs-actions.pod:379
24528 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24532 #: ../src/guestfs-actions.pod:404
24534 "This option is only useful when debugging Augeas lenses. Use of this option "
24535 "may require additional memory for the libguestfs appliance. You may need to "
24536 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24537 "C<guestfs_set_memsize>."
24541 #: ../src/guestfs-actions.pod:419
24542 msgid "Do not load the tree in C<guestfs_aug_init>."
24546 #: ../src/guestfs-actions.pod:423
24547 msgid "To close the handle, you can call C<guestfs_aug_close>."
24551 #: ../src/guestfs-actions.pod:431
24552 msgid "guestfs_aug_insert"
24556 #: ../src/guestfs-actions.pod:433
24560 " guestfs_aug_insert (guestfs_h *g,\n"
24561 " const char *augpath,\n"
24562 " const char *label,\n"
24568 #: ../src/guestfs-actions.pod:451
24569 msgid "guestfs_aug_load"
24573 #: ../src/guestfs-actions.pod:453
24577 " guestfs_aug_load (guestfs_h *g);\n"
24582 #: ../src/guestfs-actions.pod:465
24583 msgid "guestfs_aug_ls"
24587 #: ../src/guestfs-actions.pod:467
24591 " guestfs_aug_ls (guestfs_h *g,\n"
24592 " const char *augpath);\n"
24597 #: ../src/guestfs-actions.pod:471
24599 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24600 "sorting the resulting nodes into alphabetical order."
24604 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
24605 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
24606 #: ../src/guestfs-actions.pod:1550 ../src/guestfs-actions.pod:1569
24607 #: ../src/guestfs-actions.pod:1672 ../src/guestfs-actions.pod:1691
24608 #: ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:2403
24609 #: ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2438
24610 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2527
24611 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2647
24612 #: ../src/guestfs-actions.pod:2908 ../src/guestfs-actions.pod:3282
24613 #: ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3872
24614 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3909
24615 #: ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:4076
24616 #: ../src/guestfs-actions.pod:4484 ../src/guestfs-actions.pod:5241
24617 #: ../src/guestfs-actions.pod:5859 ../src/guestfs-actions.pod:5985
24618 #: ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6866
24619 #: ../src/guestfs-actions.pod:6927 ../src/guestfs-actions.pod:6982
24620 #: ../src/guestfs-actions.pod:7128 ../src/guestfs-actions.pod:7152
24621 #: ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:7648
24622 #: ../src/guestfs-actions.pod:7695 ../src/guestfs-actions.pod:7889
24623 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8002
24624 #: ../src/guestfs-actions.pod:8021 ../src/guestfs-actions.pod:8067
24625 #: ../src/guestfs-actions.pod:8086
24627 "This function returns a NULL-terminated array of strings (like L<environ(3)"
24628 ">), or NULL if there was an error. I<The caller must free the strings and "
24629 "the array after use>."
24633 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
24634 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1607
24635 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3667
24636 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4375
24637 #: ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4595
24638 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:5245
24639 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:6197
24640 #: ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6223
24641 #: ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:7366
24642 #: ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7612
24643 #: ../src/guestfs-actions.pod:7877
24644 msgid "(Added in 0.8)"
24648 #: ../src/guestfs-actions.pod:480
24649 msgid "guestfs_aug_match"
24653 #: ../src/guestfs-actions.pod:482
24657 " guestfs_aug_match (guestfs_h *g,\n"
24658 " const char *augpath);\n"
24663 #: ../src/guestfs-actions.pod:496
24664 msgid "guestfs_aug_mv"
24668 #: ../src/guestfs-actions.pod:498
24672 " guestfs_aug_mv (guestfs_h *g,\n"
24673 " const char *src,\n"
24674 " const char *dest);\n"
24679 #: ../src/guestfs-actions.pod:510
24680 msgid "guestfs_aug_rm"
24684 #: ../src/guestfs-actions.pod:512
24688 " guestfs_aug_rm (guestfs_h *g,\n"
24689 " const char *augpath);\n"
24694 #: ../src/guestfs-actions.pod:524
24695 msgid "guestfs_aug_save"
24699 #: ../src/guestfs-actions.pod:526
24703 " guestfs_aug_save (guestfs_h *g);\n"
24708 #: ../src/guestfs-actions.pod:531
24710 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
24715 #: ../src/guestfs-actions.pod:538
24716 msgid "guestfs_aug_set"
24720 #: ../src/guestfs-actions.pod:540
24724 " guestfs_aug_set (guestfs_h *g,\n"
24725 " const char *augpath,\n"
24726 " const char *val);\n"
24731 #: ../src/guestfs-actions.pod:547
24733 "In the Augeas API, it is possible to clear a node by setting the value to "
24734 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
24735 "this call. Instead you must use the C<guestfs_aug_clear> call."
24739 #: ../src/guestfs-actions.pod:556
24740 msgid "guestfs_available"
24744 #: ../src/guestfs-actions.pod:558
24748 " guestfs_available (guestfs_h *g,\n"
24749 " char *const *groups);\n"
24754 #: ../src/guestfs-actions.pod:566
24756 "The libguestfs groups, and the functions that those groups correspond to, "
24757 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
24758 "runtime by calling C<guestfs_available_all_groups>."
24762 #: ../src/guestfs-actions.pod:590
24763 msgid "You must call C<guestfs_launch> before calling this function."
24767 #: ../src/guestfs-actions.pod:612
24769 "This call was added in version C<1.0.80>. In previous versions of "
24770 "libguestfs all you could do would be to speculatively execute a command to "
24771 "find out if the daemon implemented it. See also C<guestfs_version>."
24775 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1352
24776 msgid "(Added in 1.0.80)"
24780 #: ../src/guestfs-actions.pod:623
24781 msgid "guestfs_available_all_groups"
24785 #: ../src/guestfs-actions.pod:625
24789 " guestfs_available_all_groups (guestfs_h *g);\n"
24794 #: ../src/guestfs-actions.pod:628
24796 "This command returns a list of all optional groups that this daemon knows "
24797 "about. Note this returns both supported and unsupported groups. To find "
24798 "out which ones the daemon can actually support you have to call "
24799 "C<guestfs_available> on each member of the returned list."
24803 #: ../src/guestfs-actions.pod:634
24804 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24808 #: ../src/guestfs-actions.pod:640
24809 msgid "(Added in 1.3.15)"
24813 #: ../src/guestfs-actions.pod:642
24814 msgid "guestfs_base64_in"
24818 #: ../src/guestfs-actions.pod:644
24822 " guestfs_base64_in (guestfs_h *g,\n"
24823 " const char *base64file,\n"
24824 " const char *filename);\n"
24829 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24830 msgid "(Added in 1.3.5)"
24834 #: ../src/guestfs-actions.pod:656
24835 msgid "guestfs_base64_out"
24839 #: ../src/guestfs-actions.pod:658
24843 " guestfs_base64_out (guestfs_h *g,\n"
24844 " const char *filename,\n"
24845 " const char *base64file);\n"
24850 #: ../src/guestfs-actions.pod:670
24851 msgid "guestfs_blockdev_flushbufs"
24855 #: ../src/guestfs-actions.pod:672
24859 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24860 " const char *device);\n"
24865 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
24866 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
24867 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
24868 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24869 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24870 msgid "(Added in 0.9.3)"
24874 #: ../src/guestfs-actions.pod:685
24875 msgid "guestfs_blockdev_getbsz"
24879 #: ../src/guestfs-actions.pod:687
24883 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24884 " const char *device);\n"
24889 #: ../src/guestfs-actions.pod:702
24890 msgid "guestfs_blockdev_getro"
24894 #: ../src/guestfs-actions.pod:704
24898 " guestfs_blockdev_getro (guestfs_h *g,\n"
24899 " const char *device);\n"
24904 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1590
24905 #: ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:2094
24906 #: ../src/guestfs-actions.pod:2105 ../src/guestfs-actions.pod:2177
24907 #: ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2243
24908 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:2294
24909 #: ../src/guestfs-actions.pod:2317 ../src/guestfs-actions.pod:3379
24910 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3413
24911 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3589
24912 #: ../src/guestfs-actions.pod:3604 ../src/guestfs-actions.pod:3618
24913 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3649
24914 #: ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:3679
24915 #: ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3706
24916 #: ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:3736
24917 #: ../src/guestfs-actions.pod:3749 ../src/guestfs-actions.pod:3763
24918 #: ../src/guestfs-actions.pod:5482
24919 msgid "This function returns a C truth value on success or -1 on error."
24923 #: ../src/guestfs-actions.pod:717
24924 msgid "guestfs_blockdev_getsize64"
24928 #: ../src/guestfs-actions.pod:719
24932 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24933 " const char *device);\n"
24938 #: ../src/guestfs-actions.pod:725
24939 msgid "See also C<guestfs_blockdev_getsz>."
24943 #: ../src/guestfs-actions.pod:733
24944 msgid "guestfs_blockdev_getss"
24948 #: ../src/guestfs-actions.pod:735
24952 " guestfs_blockdev_getss (guestfs_h *g,\n"
24953 " const char *device);\n"
24958 #: ../src/guestfs-actions.pod:742
24960 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24965 #: ../src/guestfs-actions.pod:751
24966 msgid "guestfs_blockdev_getsz"
24970 #: ../src/guestfs-actions.pod:753
24974 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24975 " const char *device);\n"
24980 #: ../src/guestfs-actions.pod:760
24982 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24983 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24987 #: ../src/guestfs-actions.pod:770
24988 msgid "guestfs_blockdev_rereadpt"
24992 #: ../src/guestfs-actions.pod:772
24996 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24997 " const char *device);\n"
25002 #: ../src/guestfs-actions.pod:784
25003 msgid "guestfs_blockdev_setbsz"
25007 #: ../src/guestfs-actions.pod:786
25011 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25012 " const char *device,\n"
25013 " int blocksize);\n"
25018 #: ../src/guestfs-actions.pod:802
25019 msgid "guestfs_blockdev_setro"
25023 #: ../src/guestfs-actions.pod:804
25027 " guestfs_blockdev_setro (guestfs_h *g,\n"
25028 " const char *device);\n"
25033 #: ../src/guestfs-actions.pod:816
25034 msgid "guestfs_blockdev_setrw"
25038 #: ../src/guestfs-actions.pod:818
25042 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25043 " const char *device);\n"
25048 #: ../src/guestfs-actions.pod:830
25049 msgid "guestfs_btrfs_filesystem_resize"
25053 #: ../src/guestfs-actions.pod:832
25057 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25058 " const char *mountpoint,\n"
25064 #: ../src/guestfs-actions.pod:842
25067 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25072 #: ../src/guestfs-actions.pod:865
25073 msgid "(Added in 1.11.17)"
25077 #: ../src/guestfs-actions.pod:867
25078 msgid "guestfs_btrfs_filesystem_resize_va"
25082 #: ../src/guestfs-actions.pod:869
25086 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25087 " const char *mountpoint,\n"
25088 " va_list args);\n"
25093 #: ../src/guestfs-actions.pod:874
25094 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25098 #: ../src/guestfs-actions.pod:878
25099 msgid "guestfs_btrfs_filesystem_resize_argv"
25103 #: ../src/guestfs-actions.pod:880
25107 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25108 " const char *mountpoint,\n"
25109 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25114 #: ../src/guestfs-actions.pod:885
25115 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25119 #: ../src/guestfs-actions.pod:889
25120 msgid "guestfs_case_sensitive_path"
25124 #: ../src/guestfs-actions.pod:891
25128 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25129 " const char *path);\n"
25134 #: ../src/guestfs-actions.pod:917
25136 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
25137 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25138 "how the directories were originally created under Windows)."
25142 #: ../src/guestfs-actions.pod:925
25143 msgid "See also C<guestfs_realpath>."
25147 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7546
25148 msgid "(Added in 1.0.75)"
25152 #: ../src/guestfs-actions.pod:932
25153 msgid "guestfs_cat"
25157 #: ../src/guestfs-actions.pod:934
25161 " guestfs_cat (guestfs_h *g,\n"
25162 " const char *path);\n"
25167 #: ../src/guestfs-actions.pod:940
25169 "Note that this function cannot correctly handle binary files (specifically, "
25170 "files containing C<\\0> character which is treated as end of string). For "
25171 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25172 "functions which have a more complex interface."
25176 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3893
25177 #: ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:3992
25178 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4488
25179 #: ../src/guestfs-actions.pod:4502 ../src/guestfs-actions.pod:5863
25180 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:7699
25181 #: ../src/guestfs-actions.pod:7713
25182 msgid "(Added in 0.4)"
25186 #: ../src/guestfs-actions.pod:953
25187 msgid "guestfs_checksum"
25191 #: ../src/guestfs-actions.pod:955
25195 " guestfs_checksum (guestfs_h *g,\n"
25196 " const char *csumtype,\n"
25197 " const char *path);\n"
25202 #: ../src/guestfs-actions.pod:1001
25203 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25207 #: ../src/guestfs-actions.pod:1003
25208 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25212 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1427
25213 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:3591
25214 #: ../src/guestfs-actions.pod:3620 ../src/guestfs-actions.pod:3681
25215 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:7402
25216 msgid "(Added in 1.0.2)"
25220 #: ../src/guestfs-actions.pod:1010
25221 msgid "guestfs_checksum_device"
25225 #: ../src/guestfs-actions.pod:1012
25229 " guestfs_checksum_device (guestfs_h *g,\n"
25230 " const char *csumtype,\n"
25231 " const char *device);\n"
25236 #: ../src/guestfs-actions.pod:1017
25238 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25239 "device named C<device>. For the types of checksums supported see the "
25240 "C<guestfs_checksum> command."
25244 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5312
25245 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5484
25246 #: ../src/guestfs-actions.pod:5502 ../src/guestfs-actions.pod:5684
25247 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7325
25248 #: ../src/guestfs-actions.pod:7725
25249 msgid "(Added in 1.3.2)"
25253 #: ../src/guestfs-actions.pod:1026
25254 msgid "guestfs_checksums_out"
25258 #: ../src/guestfs-actions.pod:1028
25262 " guestfs_checksums_out (guestfs_h *g,\n"
25263 " const char *csumtype,\n"
25264 " const char *directory,\n"
25265 " const char *sumsfile);\n"
25270 #: ../src/guestfs-actions.pod:1048
25271 msgid "(Added in 1.3.7)"
25275 #: ../src/guestfs-actions.pod:1050
25276 msgid "guestfs_chmod"
25280 #: ../src/guestfs-actions.pod:1052
25284 " guestfs_chmod (guestfs_h *g,\n"
25286 " const char *path);\n"
25291 #: ../src/guestfs-actions.pod:1070
25292 msgid "guestfs_chown"
25296 #: ../src/guestfs-actions.pod:1072
25300 " guestfs_chown (guestfs_h *g,\n"
25303 " const char *path);\n"
25308 #: ../src/guestfs-actions.pod:1088
25309 msgid "guestfs_command"
25313 #: ../src/guestfs-actions.pod:1090
25317 " guestfs_command (guestfs_h *g,\n"
25318 " char *const *arguments);\n"
25323 #: ../src/guestfs-actions.pod:1099
25325 "The single parameter is an argv-style list of arguments. The first element "
25326 "is the name of the program to run. Subsequent elements are parameters. The "
25327 "list must be non-empty (ie. must contain a program name). Note that the "
25328 "command runs directly, and is I<not> invoked via the shell (see "
25333 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
25334 #: ../src/guestfs-actions.pod:1726
25335 msgid "(Added in 0.9.1)"
25339 #: ../src/guestfs-actions.pod:1132
25340 msgid "guestfs_command_lines"
25344 #: ../src/guestfs-actions.pod:1134
25348 " guestfs_command_lines (guestfs_h *g,\n"
25349 " char *const *arguments);\n"
25354 #: ../src/guestfs-actions.pod:1138
25356 "This is the same as C<guestfs_command>, but splits the result into a list of "
25361 #: ../src/guestfs-actions.pod:1141
25362 msgid "See also: C<guestfs_sh_lines>"
25366 #: ../src/guestfs-actions.pod:1152
25368 #| msgid "guestfs_zero_device"
25369 msgid "guestfs_compress_device_out"
25370 msgstr "guestfs_zero_device"
25373 #: ../src/guestfs-actions.pod:1154
25377 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25378 #| " const char *device,\n"
25379 #| " const char *key,\n"
25380 #| " int keyslot,\n"
25381 #| " const char *cipher);\n"
25385 " guestfs_compress_device_out (guestfs_h *g,\n"
25386 " const char *ctype,\n"
25387 " const char *device,\n"
25388 " const char *zdevice,\n"
25393 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25394 " const char *device,\n"
25395 " const char *key,\n"
25397 " const char *cipher);\n"
25401 #: ../src/guestfs-actions.pod:1166
25404 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25409 #: ../src/guestfs-actions.pod:1171
25411 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25412 "C<guestfs_compress_out>."
25416 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1235
25417 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:6583
25419 #| msgid "(Added in 1.3.1)"
25420 msgid "(Added in 1.13.15)"
25421 msgstr "(Додано у 1.3.1)"
25424 #: ../src/guestfs-actions.pod:1178
25426 #| msgid "guestfs_zero_device"
25427 msgid "guestfs_compress_device_out_va"
25428 msgstr "guestfs_zero_device"
25431 #: ../src/guestfs-actions.pod:1180
25435 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25436 #| " const char *device,\n"
25437 #| " const char *key,\n"
25438 #| " int keyslot,\n"
25439 #| " const char *cipher);\n"
25443 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25444 " const char *ctype,\n"
25445 " const char *device,\n"
25446 " const char *zdevice,\n"
25447 " va_list args);\n"
25451 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25452 " const char *device,\n"
25453 " const char *key,\n"
25455 " const char *cipher);\n"
25459 #: ../src/guestfs-actions.pod:1187
25460 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25464 #: ../src/guestfs-actions.pod:1191
25466 #| msgid "guestfs_mkfs_opts_argv"
25467 msgid "guestfs_compress_device_out_argv"
25468 msgstr "guestfs_mkfs_opts_argv"
25471 #: ../src/guestfs-actions.pod:1193
25475 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25476 #| " const char *fstype,\n"
25477 #| " const char *device,\n"
25478 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
25482 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25483 " const char *ctype,\n"
25484 " const char *device,\n"
25485 " const char *zdevice,\n"
25486 " const struct guestfs_compress_device_out_argv *optargs);\n"
25490 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25491 " const char *fstype,\n"
25492 " const char *device,\n"
25493 " const struct guestfs_mkfs_opts_argv *optargs);\n"
25497 #: ../src/guestfs-actions.pod:1200
25498 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25502 #: ../src/guestfs-actions.pod:1204
25504 #| msgid "guestfs_create"
25505 msgid "guestfs_compress_out"
25506 msgstr "guestfs_create"
25509 #: ../src/guestfs-actions.pod:1206
25513 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25514 #| " const char *device,\n"
25515 #| " const char *key,\n"
25516 #| " const char *newkey,\n"
25517 #| " int keyslot);\n"
25521 " guestfs_compress_out (guestfs_h *g,\n"
25522 " const char *ctype,\n"
25523 " const char *file,\n"
25524 " const char *zfile,\n"
25529 " guestfs_luks_add_key (guestfs_h *g,\n"
25530 " const char *device,\n"
25531 " const char *key,\n"
25532 " const char *newkey,\n"
25537 #: ../src/guestfs-actions.pod:1218
25540 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
25545 #: ../src/guestfs-actions.pod:1237
25547 #| msgid "guestfs_mkfs_opts_va"
25548 msgid "guestfs_compress_out_va"
25549 msgstr "guestfs_mkfs_opts_va"
25552 #: ../src/guestfs-actions.pod:1239
25556 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25557 #| " const char *device,\n"
25558 #| " const char *key,\n"
25559 #| " const char *newkey,\n"
25560 #| " int keyslot);\n"
25564 " guestfs_compress_out_va (guestfs_h *g,\n"
25565 " const char *ctype,\n"
25566 " const char *file,\n"
25567 " const char *zfile,\n"
25568 " va_list args);\n"
25572 " guestfs_luks_add_key (guestfs_h *g,\n"
25573 " const char *device,\n"
25574 " const char *key,\n"
25575 " const char *newkey,\n"
25580 #: ../src/guestfs-actions.pod:1246
25581 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
25585 #: ../src/guestfs-actions.pod:1250
25587 #| msgid "guestfs_mkfs_opts_argv"
25588 msgid "guestfs_compress_out_argv"
25589 msgstr "guestfs_mkfs_opts_argv"
25592 #: ../src/guestfs-actions.pod:1252
25596 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25597 #| " const char *fstype,\n"
25598 #| " const char *device,\n"
25599 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
25603 " guestfs_compress_out_argv (guestfs_h *g,\n"
25604 " const char *ctype,\n"
25605 " const char *file,\n"
25606 " const char *zfile,\n"
25607 " const struct guestfs_compress_out_argv *optargs);\n"
25611 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25612 " const char *fstype,\n"
25613 " const char *device,\n"
25614 " const struct guestfs_mkfs_opts_argv *optargs);\n"
25618 #: ../src/guestfs-actions.pod:1259
25619 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
25623 #: ../src/guestfs-actions.pod:1263
25624 msgid "guestfs_config"
25628 #: ../src/guestfs-actions.pod:1265
25632 " guestfs_config (guestfs_h *g,\n"
25633 " const char *qemuparam,\n"
25634 " const char *qemuvalue);\n"
25639 #: ../src/guestfs-actions.pod:1283
25640 msgid "guestfs_copy_size"
25644 #: ../src/guestfs-actions.pod:1285
25648 " guestfs_copy_size (guestfs_h *g,\n"
25649 " const char *src,\n"
25650 " const char *dest,\n"
25651 " int64_t size);\n"
25656 #: ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1422
25657 #: ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1498
25658 #: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:1897
25659 #: ../src/guestfs-actions.pod:3791 ../src/guestfs-actions.pod:7397
25660 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7938
25661 #: ../src/guestfs-actions.pod:7961
25663 "This long-running command can generate progress notification messages so "
25664 "that the caller can display a progress bar or indicator. To receive these "
25665 "messages, the caller must register a progress event callback. See L<guestfs"
25666 "(3)/GUESTFS_EVENT_PROGRESS>."
25670 #: ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:4515
25671 #: ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:7632
25672 #: ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7738
25673 msgid "(Added in 1.0.87)"
25677 #: ../src/guestfs-actions.pod:1306
25682 #: ../src/guestfs-actions.pod:1308
25686 " guestfs_cp (guestfs_h *g,\n"
25687 " const char *src,\n"
25688 " const char *dest);\n"
25693 #: ../src/guestfs-actions.pod:1318 ../src/guestfs-actions.pod:1332
25694 #: ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1478
25695 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:5259
25696 #: ../src/guestfs-actions.pod:5734
25697 msgid "(Added in 1.0.18)"
25701 #: ../src/guestfs-actions.pod:1320
25702 msgid "guestfs_cp_a"
25706 #: ../src/guestfs-actions.pod:1322
25710 " guestfs_cp_a (guestfs_h *g,\n"
25711 " const char *src,\n"
25712 " const char *dest);\n"
25717 #: ../src/guestfs-actions.pod:1334
25722 #: ../src/guestfs-actions.pod:1336
25726 " guestfs_dd (guestfs_h *g,\n"
25727 " const char *src,\n"
25728 " const char *dest);\n"
25733 #: ../src/guestfs-actions.pod:1346
25735 "If the destination is a device, it must be as large or larger than the "
25736 "source file or device, otherwise the copy will fail. This command cannot do "
25737 "partial copies (see C<guestfs_copy_size>)."
25741 #: ../src/guestfs-actions.pod:1354
25746 #: ../src/guestfs-actions.pod:1356
25750 " guestfs_df (guestfs_h *g);\n"
25755 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
25757 "This command is mostly useful for interactive sessions. It is I<not> "
25758 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
25763 #: ../src/guestfs-actions.pod:1368 ../src/guestfs-actions.pod:1385
25764 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:2510
25765 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2602
25766 #: ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:5159
25767 #: ../src/guestfs-actions.pod:7135 ../src/guestfs-actions.pod:7159
25768 #: ../src/guestfs-actions.pod:7778 ../src/guestfs-actions.pod:7791
25769 #: ../src/guestfs-actions.pod:7804
25770 msgid "(Added in 1.0.54)"
25774 #: ../src/guestfs-actions.pod:1370
25775 msgid "guestfs_df_h"
25779 #: ../src/guestfs-actions.pod:1372
25783 " guestfs_df_h (guestfs_h *g);\n"
25788 #: ../src/guestfs-actions.pod:1387
25789 msgid "guestfs_dmesg"
25793 #: ../src/guestfs-actions.pod:1389
25797 " guestfs_dmesg (guestfs_h *g);\n"
25802 #: ../src/guestfs-actions.pod:1396
25804 "Another way to get the same information is to enable verbose messages with "
25805 "C<guestfs_set_verbose> or by setting the environment variable "
25806 "C<LIBGUESTFS_DEBUG=1> before running the program."
25810 #: ../src/guestfs-actions.pod:1406
25811 msgid "guestfs_download"
25815 #: ../src/guestfs-actions.pod:1408
25819 " guestfs_download (guestfs_h *g,\n"
25820 " const char *remotefilename,\n"
25821 " const char *filename);\n"
25826 #: ../src/guestfs-actions.pod:1418
25827 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
25831 #: ../src/guestfs-actions.pod:1429
25832 msgid "guestfs_download_offset"
25836 #: ../src/guestfs-actions.pod:1431
25840 " guestfs_download_offset (guestfs_h *g,\n"
25841 " const char *remotefilename,\n"
25842 " const char *filename,\n"
25843 " int64_t offset,\n"
25844 " int64_t size);\n"
25849 #: ../src/guestfs-actions.pod:1444
25851 "Note that there is no limit on the amount of data that can be downloaded "
25852 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
25853 "full amount unless an error occurs."
25857 #: ../src/guestfs-actions.pod:1449
25858 msgid "See also C<guestfs_download>, C<guestfs_pread>."
25862 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:7436
25863 msgid "(Added in 1.5.17)"
25867 #: ../src/guestfs-actions.pod:1460
25868 msgid "guestfs_drop_caches"
25872 #: ../src/guestfs-actions.pod:1462
25876 " guestfs_drop_caches (guestfs_h *g,\n"
25877 " int whattodrop);\n"
25882 #: ../src/guestfs-actions.pod:1480
25887 #: ../src/guestfs-actions.pod:1482
25891 " guestfs_du (guestfs_h *g,\n"
25892 " const char *path);\n"
25897 #: ../src/guestfs-actions.pod:1505
25898 msgid "guestfs_e2fsck_f"
25902 #: ../src/guestfs-actions.pod:1507
25906 " guestfs_e2fsck_f (guestfs_h *g,\n"
25907 " const char *device);\n"
25912 #: ../src/guestfs-actions.pod:1515
25914 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
25915 "Normally you should use C<guestfs_fsck>."
25919 #: ../src/guestfs-actions.pod:1520
25920 msgid "(Added in 1.0.29)"
25924 #: ../src/guestfs-actions.pod:1522
25925 msgid "guestfs_echo_daemon"
25929 #: ../src/guestfs-actions.pod:1524
25933 " guestfs_echo_daemon (guestfs_h *g,\n"
25934 " char *const *words);\n"
25939 #: ../src/guestfs-actions.pod:1533
25940 msgid "See also C<guestfs_ping_daemon>."
25944 #: ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:2296
25945 #: ../src/guestfs-actions.pod:6607
25946 msgid "(Added in 1.0.69)"
25950 #: ../src/guestfs-actions.pod:1540
25951 msgid "guestfs_egrep"
25955 #: ../src/guestfs-actions.pod:1542
25959 " guestfs_egrep (guestfs_h *g,\n"
25960 " const char *regex,\n"
25961 " const char *path);\n"
25966 #: ../src/guestfs-actions.pod:1557 ../src/guestfs-actions.pod:1576
25967 #: ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1679
25968 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:2426
25969 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2623
25970 #: ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2651
25971 #: ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2719
25972 #: ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:4005
25973 #: ../src/guestfs-actions.pod:4019 ../src/guestfs-actions.pod:4032
25974 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:5047
25975 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6117
25976 #: ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7015
25977 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7041
25978 #: ../src/guestfs-actions.pod:7063 ../src/guestfs-actions.pod:7076
25979 #: ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7102
25980 #: ../src/guestfs-actions.pod:7896 ../src/guestfs-actions.pod:7915
25981 #: ../src/guestfs-actions.pod:8009 ../src/guestfs-actions.pod:8028
25982 #: ../src/guestfs-actions.pod:8074 ../src/guestfs-actions.pod:8093
25983 msgid "(Added in 1.0.66)"
25987 #: ../src/guestfs-actions.pod:1559
25988 msgid "guestfs_egrepi"
25992 #: ../src/guestfs-actions.pod:1561
25996 " guestfs_egrepi (guestfs_h *g,\n"
25997 " const char *regex,\n"
25998 " const char *path);\n"
26003 #: ../src/guestfs-actions.pod:1578
26004 msgid "guestfs_equal"
26008 #: ../src/guestfs-actions.pod:1580
26012 " guestfs_equal (guestfs_h *g,\n"
26013 " const char *file1,\n"
26014 " const char *file2);\n"
26019 #: ../src/guestfs-actions.pod:1594
26020 msgid "guestfs_exists"
26024 #: ../src/guestfs-actions.pod:1596
26028 " guestfs_exists (guestfs_h *g,\n"
26029 " const char *path);\n"
26034 #: ../src/guestfs-actions.pod:1603
26035 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26039 #: ../src/guestfs-actions.pod:1609
26040 msgid "guestfs_fallocate"
26044 #: ../src/guestfs-actions.pod:1611
26048 " guestfs_fallocate (guestfs_h *g,\n"
26049 " const char *path,\n"
26055 #: ../src/guestfs-actions.pod:1616
26057 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
26062 #: ../src/guestfs-actions.pod:1635
26063 msgid "guestfs_fallocate64"
26067 #: ../src/guestfs-actions.pod:1637
26071 " guestfs_fallocate64 (guestfs_h *g,\n"
26072 " const char *path,\n"
26078 #: ../src/guestfs-actions.pod:1646
26080 "Note that this call allocates disk blocks for the file. To create a sparse "
26081 "file use C<guestfs_truncate_size> instead."
26085 #: ../src/guestfs-actions.pod:1649
26087 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
26088 "oversight it only allowed 30 bit lengths to be specified, effectively "
26089 "limiting the maximum size of files created through that call to 1GB."
26093 #: ../src/guestfs-actions.pod:1660
26094 msgid "(Added in 1.3.17)"
26098 #: ../src/guestfs-actions.pod:1662
26099 msgid "guestfs_fgrep"
26103 #: ../src/guestfs-actions.pod:1664
26107 " guestfs_fgrep (guestfs_h *g,\n"
26108 " const char *pattern,\n"
26109 " const char *path);\n"
26114 #: ../src/guestfs-actions.pod:1681
26115 msgid "guestfs_fgrepi"
26119 #: ../src/guestfs-actions.pod:1683
26123 " guestfs_fgrepi (guestfs_h *g,\n"
26124 " const char *pattern,\n"
26125 " const char *path);\n"
26130 #: ../src/guestfs-actions.pod:1700
26131 msgid "guestfs_file"
26135 #: ../src/guestfs-actions.pod:1702
26139 " guestfs_file (guestfs_h *g,\n"
26140 " const char *path);\n"
26145 #: ../src/guestfs-actions.pod:1720
26147 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
26148 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
26152 #: ../src/guestfs-actions.pod:1728
26153 msgid "guestfs_file_architecture"
26157 #: ../src/guestfs-actions.pod:1730
26161 " guestfs_file_architecture (guestfs_h *g,\n"
26162 " const char *filename);\n"
26167 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2001
26168 #: ../src/guestfs-actions.pod:2018 ../src/guestfs-actions.pod:2752
26169 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2912
26170 #: ../src/guestfs-actions.pod:3099 ../src/guestfs-actions.pod:3117
26171 #: ../src/guestfs-actions.pod:3157 ../src/guestfs-actions.pod:3232
26172 #: ../src/guestfs-actions.pod:3325 ../src/guestfs-actions.pod:3562
26173 #: ../src/guestfs-actions.pod:3694
26174 msgid "(Added in 1.5.3)"
26178 #: ../src/guestfs-actions.pod:1840
26179 msgid "guestfs_filesize"
26183 #: ../src/guestfs-actions.pod:1842
26187 " guestfs_filesize (guestfs_h *g,\n"
26188 " const char *file);\n"
26193 #: ../src/guestfs-actions.pod:1848
26195 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
26196 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
26197 "devices, use C<guestfs_blockdev_getsize64>."
26201 #: ../src/guestfs-actions.pod:1854
26202 msgid "(Added in 1.0.82)"
26206 #: ../src/guestfs-actions.pod:1856
26207 msgid "guestfs_fill"
26211 #: ../src/guestfs-actions.pod:1858
26215 " guestfs_fill (guestfs_h *g,\n"
26218 " const char *path);\n"
26223 #: ../src/guestfs-actions.pod:1868
26225 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26226 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
26227 "bytes use C<guestfs_fill_pattern>."
26231 #: ../src/guestfs-actions.pod:1880
26232 msgid "(Added in 1.0.79)"
26236 #: ../src/guestfs-actions.pod:1882
26237 msgid "guestfs_fill_pattern"
26241 #: ../src/guestfs-actions.pod:1884
26245 " guestfs_fill_pattern (guestfs_h *g,\n"
26246 " const char *pattern,\n"
26248 " const char *path);\n"
26253 #: ../src/guestfs-actions.pod:1890
26255 "This function is like C<guestfs_fill> except that it creates a new file of "
26256 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
26257 "pattern is truncated if necessary to ensure the length of the file is "
26258 "exactly C<len> bytes."
26262 #: ../src/guestfs-actions.pod:1902
26263 msgid "(Added in 1.3.12)"
26267 #: ../src/guestfs-actions.pod:1904
26268 msgid "guestfs_find"
26272 #: ../src/guestfs-actions.pod:1906
26276 " guestfs_find (guestfs_h *g,\n"
26277 " const char *directory);\n"
26282 #: ../src/guestfs-actions.pod:1922
26284 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
26288 #: ../src/guestfs-actions.pod:1935
26289 msgid "See also C<guestfs_find0>."
26293 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:4452
26294 #: ../src/guestfs-actions.pod:6152
26295 msgid "(Added in 1.0.27)"
26299 #: ../src/guestfs-actions.pod:1946
26300 msgid "guestfs_find0"
26304 #: ../src/guestfs-actions.pod:1948
26308 " guestfs_find0 (guestfs_h *g,\n"
26309 " const char *directory,\n"
26310 " const char *files);\n"
26315 #: ../src/guestfs-actions.pod:1957
26317 "This command works the same way as C<guestfs_find> with the following "
26322 #: ../src/guestfs-actions.pod:1984
26323 msgid "(Added in 1.0.74)"
26327 #: ../src/guestfs-actions.pod:1986
26328 msgid "guestfs_findfs_label"
26332 #: ../src/guestfs-actions.pod:1988
26336 " guestfs_findfs_label (guestfs_h *g,\n"
26337 " const char *label);\n"
26342 #: ../src/guestfs-actions.pod:1996
26343 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
26347 #: ../src/guestfs-actions.pod:2003
26348 msgid "guestfs_findfs_uuid"
26352 #: ../src/guestfs-actions.pod:2005
26356 " guestfs_findfs_uuid (guestfs_h *g,\n"
26357 " const char *uuid);\n"
26362 #: ../src/guestfs-actions.pod:2013
26363 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
26367 #: ../src/guestfs-actions.pod:2020
26368 msgid "guestfs_fsck"
26372 #: ../src/guestfs-actions.pod:2022
26376 " guestfs_fsck (guestfs_h *g,\n"
26377 " const char *fstype,\n"
26378 " const char *device);\n"
26383 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:7943
26384 msgid "(Added in 1.0.16)"
26388 #: ../src/guestfs-actions.pod:2059
26389 msgid "guestfs_get_append"
26393 #: ../src/guestfs-actions.pod:2061
26397 " guestfs_get_append (guestfs_h *g);\n"
26402 #: ../src/guestfs-actions.pod:2069
26404 "This function returns a string which may be NULL. There is no way to return "
26405 "an error from this function. The string is owned by the guest handle and "
26406 "must I<not> be freed."
26410 #: ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5830
26411 #: ../src/guestfs-actions.pod:6312 ../src/guestfs-actions.pod:6770
26412 #: ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6805
26413 #: ../src/guestfs-actions.pod:6829 ../src/guestfs-actions.pod:7583
26414 #: ../src/guestfs-actions.pod:7598 ../src/guestfs-actions.pod:7990
26415 msgid "(Added in 1.0.26)"
26419 #: ../src/guestfs-actions.pod:2075
26420 msgid "guestfs_get_attach_method"
26424 #: ../src/guestfs-actions.pod:2077
26428 " guestfs_get_attach_method (guestfs_h *g);\n"
26433 #: ../src/guestfs-actions.pod:2080
26434 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
26438 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:6342
26439 msgid "(Added in 1.9.8)"
26443 #: ../src/guestfs-actions.pod:2087
26444 msgid "guestfs_get_autosync"
26448 #: ../src/guestfs-actions.pod:2089
26452 " guestfs_get_autosync (guestfs_h *g);\n"
26457 #: ../src/guestfs-actions.pod:2098
26458 msgid "guestfs_get_direct"
26462 #: ../src/guestfs-actions.pod:2100
26466 " guestfs_get_direct (guestfs_h *g);\n"
26471 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:6383
26472 msgid "(Added in 1.0.72)"
26476 #: ../src/guestfs-actions.pod:2109
26477 msgid "guestfs_get_e2label"
26481 #: ../src/guestfs-actions.pod:2111
26485 " guestfs_get_e2label (guestfs_h *g,\n"
26486 " const char *device);\n"
26491 #: ../src/guestfs-actions.pod:2115
26493 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
26498 #: ../src/guestfs-actions.pod:2128 ../src/guestfs-actions.pod:2149
26499 #: ../src/guestfs-actions.pod:6401 ../src/guestfs-actions.pod:6420
26500 msgid "(Added in 1.0.15)"
26504 #: ../src/guestfs-actions.pod:2130
26505 msgid "guestfs_get_e2uuid"
26509 #: ../src/guestfs-actions.pod:2132
26513 " guestfs_get_e2uuid (guestfs_h *g,\n"
26514 " const char *device);\n"
26519 #: ../src/guestfs-actions.pod:2136
26521 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
26526 #: ../src/guestfs-actions.pod:2151
26527 msgid "guestfs_get_memsize"
26531 #: ../src/guestfs-actions.pod:2153
26535 " guestfs_get_memsize (guestfs_h *g);\n"
26540 #: ../src/guestfs-actions.pod:2159
26542 "If C<guestfs_set_memsize> was not called on this handle, and if "
26543 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26544 "value for memsize."
26548 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:4743
26549 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4971
26550 #: ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5002
26551 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5032
26552 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6441
26553 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:7352
26554 msgid "(Added in 1.0.55)"
26558 #: ../src/guestfs-actions.pod:2170
26559 msgid "guestfs_get_network"
26563 #: ../src/guestfs-actions.pod:2172
26567 " guestfs_get_network (guestfs_h *g);\n"
26572 #: ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:6460
26573 msgid "(Added in 1.5.4)"
26577 #: ../src/guestfs-actions.pod:2181
26578 msgid "guestfs_get_path"
26582 #: ../src/guestfs-actions.pod:2183
26586 " guestfs_get_path (guestfs_h *g);\n"
26591 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2231
26593 "This function returns a string, or NULL on error. The string is owned by "
26594 "the guest handle and must I<not> be freed."
26598 #: ../src/guestfs-actions.pod:2196
26599 msgid "guestfs_get_pgroup"
26603 #: ../src/guestfs-actions.pod:2198
26607 " guestfs_get_pgroup (guestfs_h *g);\n"
26612 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6496
26613 #: ../src/guestfs-actions.pod:7844
26615 #| msgid "(Added in 1.5.1)"
26616 msgid "(Added in 1.11.18)"
26617 msgstr "(Додано у 1.5.1)"
26620 #: ../src/guestfs-actions.pod:2207
26621 msgid "guestfs_get_pid"
26625 #: ../src/guestfs-actions.pod:2209
26629 " guestfs_get_pid (guestfs_h *g);\n"
26634 #: ../src/guestfs-actions.pod:2219
26635 msgid "(Added in 1.0.56)"
26639 #: ../src/guestfs-actions.pod:2221
26640 msgid "guestfs_get_qemu"
26644 #: ../src/guestfs-actions.pod:2223
26648 " guestfs_get_qemu (guestfs_h *g);\n"
26653 #: ../src/guestfs-actions.pod:2234 ../src/guestfs-actions.pod:6524
26654 msgid "(Added in 1.0.6)"
26658 #: ../src/guestfs-actions.pod:2236
26659 msgid "guestfs_get_recovery_proc"
26663 #: ../src/guestfs-actions.pod:2238
26667 " guestfs_get_recovery_proc (guestfs_h *g);\n"
26672 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:3816
26673 #: ../src/guestfs-actions.pod:4147 ../src/guestfs-actions.pod:4550
26674 #: ../src/guestfs-actions.pod:4582 ../src/guestfs-actions.pod:5760
26675 #: ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6548
26676 #: ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7275
26677 #: ../src/guestfs-actions.pod:7467
26678 msgid "(Added in 1.0.77)"
26682 #: ../src/guestfs-actions.pod:2247
26683 msgid "guestfs_get_selinux"
26687 #: ../src/guestfs-actions.pod:2249
26691 " guestfs_get_selinux (guestfs_h *g);\n"
26696 #: ../src/guestfs-actions.pod:2252
26698 "This returns the current setting of the selinux flag which is passed to the "
26699 "appliance at boot time. See C<guestfs_set_selinux>."
26703 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2334
26704 #: ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6641
26705 msgid "(Added in 1.0.67)"
26709 #: ../src/guestfs-actions.pod:2262
26711 #| msgid "guestfs_zgrep"
26712 msgid "guestfs_get_smp"
26713 msgstr "guestfs_zgrep"
26716 #: ../src/guestfs-actions.pod:2264
26719 #| " int guestfs_last_errno (guestfs_h *g);\n"
26723 " guestfs_get_smp (guestfs_h *g);\n"
26726 " int guestfs_last_errno (guestfs_h *g);\n"
26730 #: ../src/guestfs-actions.pod:2273
26731 msgid "guestfs_get_state"
26735 #: ../src/guestfs-actions.pod:2275
26739 " guestfs_get_state (guestfs_h *g);\n"
26744 #: ../src/guestfs-actions.pod:2287
26745 msgid "guestfs_get_trace"
26749 #: ../src/guestfs-actions.pod:2289
26753 " guestfs_get_trace (guestfs_h *g);\n"
26758 #: ../src/guestfs-actions.pod:2298
26759 msgid "guestfs_get_umask"
26763 #: ../src/guestfs-actions.pod:2300
26767 " guestfs_get_umask (guestfs_h *g);\n"
26772 #: ../src/guestfs-actions.pod:2303
26774 "Return the current umask. By default the umask is C<022> unless it has been "
26775 "set by calling C<guestfs_umask>."
26779 #: ../src/guestfs-actions.pod:2310
26780 msgid "guestfs_get_verbose"
26784 #: ../src/guestfs-actions.pod:2312
26788 " guestfs_get_verbose (guestfs_h *g);\n"
26793 #: ../src/guestfs-actions.pod:2321
26794 msgid "guestfs_getcon"
26798 #: ../src/guestfs-actions.pod:2323
26802 " guestfs_getcon (guestfs_h *g);\n"
26807 #: ../src/guestfs-actions.pod:2328
26809 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
26813 #: ../src/guestfs-actions.pod:2336
26814 msgid "guestfs_getxattr"
26818 #: ../src/guestfs-actions.pod:2338
26822 " guestfs_getxattr (guestfs_h *g,\n"
26823 " const char *path,\n"
26824 " const char *name,\n"
26825 " size_t *size_r);\n"
26830 #: ../src/guestfs-actions.pod:2344
26832 "Get a single extended attribute from file C<path> named C<name>. This call "
26833 "follows symlinks. If you want to lookup an extended attribute for the "
26834 "symlink itself, use C<guestfs_lgetxattr>."
26838 #: ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:3830
26840 "Normally it is better to get all extended attributes from a file in one go "
26841 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
26842 "implementations are buggy and do not provide a way to list out attributes. "
26843 "For these filesystems (notably ntfs-3g) you have to know the names of the "
26844 "extended attributes you want in advance and call this function."
26848 #: ../src/guestfs-actions.pod:2358
26849 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
26853 #: ../src/guestfs-actions.pod:2360 ../src/guestfs-actions.pod:2573
26854 #: ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3842
26855 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5779
26856 #: ../src/guestfs-actions.pod:5960
26858 "This function returns a buffer, or NULL on error. The size of the returned "
26859 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
26864 #: ../src/guestfs-actions.pod:2364 ../src/guestfs-actions.pod:3846
26865 msgid "(Added in 1.7.24)"
26869 #: ../src/guestfs-actions.pod:2366
26870 msgid "guestfs_getxattrs"
26874 #: ../src/guestfs-actions.pod:2368
26877 " struct guestfs_xattr_list *\n"
26878 " guestfs_getxattrs (guestfs_h *g,\n"
26879 " const char *path);\n"
26884 #: ../src/guestfs-actions.pod:2378
26885 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
26889 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:3858
26890 #: ../src/guestfs-actions.pod:4546
26892 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
26893 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
26897 #: ../src/guestfs-actions.pod:2384 ../src/guestfs-actions.pod:3862
26898 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4097
26899 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6660
26900 #: ../src/guestfs-actions.pod:8055
26901 msgid "(Added in 1.0.59)"
26905 #: ../src/guestfs-actions.pod:2386
26906 msgid "guestfs_glob_expand"
26910 #: ../src/guestfs-actions.pod:2388
26914 " guestfs_glob_expand (guestfs_h *g,\n"
26915 " const char *pattern);\n"
26920 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6853
26921 #: ../src/guestfs-actions.pod:6870
26922 msgid "(Added in 1.0.50)"
26926 #: ../src/guestfs-actions.pod:2409
26927 msgid "guestfs_grep"
26931 #: ../src/guestfs-actions.pod:2411
26935 " guestfs_grep (guestfs_h *g,\n"
26936 " const char *regex,\n"
26937 " const char *path);\n"
26942 #: ../src/guestfs-actions.pod:2428
26943 msgid "guestfs_grepi"
26947 #: ../src/guestfs-actions.pod:2430
26951 " guestfs_grepi (guestfs_h *g,\n"
26952 " const char *regex,\n"
26953 " const char *path);\n"
26958 #: ../src/guestfs-actions.pod:2447
26959 msgid "guestfs_grub_install"
26963 #: ../src/guestfs-actions.pod:2449
26967 " guestfs_grub_install (guestfs_h *g,\n"
26968 " const char *root,\n"
26969 " const char *device);\n"
26974 #: ../src/guestfs-actions.pod:2492
26975 msgid "(Added in 1.0.17)"
26979 #: ../src/guestfs-actions.pod:2494
26980 msgid "guestfs_head"
26984 #: ../src/guestfs-actions.pod:2496
26988 " guestfs_head (guestfs_h *g,\n"
26989 " const char *path);\n"
26994 #: ../src/guestfs-actions.pod:2512
26995 msgid "guestfs_head_n"
26999 #: ../src/guestfs-actions.pod:2514
27003 " guestfs_head_n (guestfs_h *g,\n"
27005 " const char *path);\n"
27010 #: ../src/guestfs-actions.pod:2536
27011 msgid "guestfs_hexdump"
27015 #: ../src/guestfs-actions.pod:2538
27019 " guestfs_hexdump (guestfs_h *g,\n"
27020 " const char *path);\n"
27025 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:6934
27026 #: ../src/guestfs-actions.pod:6989
27027 msgid "(Added in 1.0.22)"
27031 #: ../src/guestfs-actions.pod:2553
27032 msgid "guestfs_initrd_cat"
27036 #: ../src/guestfs-actions.pod:2555
27040 " guestfs_initrd_cat (guestfs_h *g,\n"
27041 " const char *initrdpath,\n"
27042 " const char *filename,\n"
27043 " size_t *size_r);\n"
27048 #: ../src/guestfs-actions.pod:2571
27049 msgid "See also C<guestfs_initrd_list>."
27053 #: ../src/guestfs-actions.pod:2582
27054 msgid "guestfs_initrd_list"
27058 #: ../src/guestfs-actions.pod:2584
27062 " guestfs_initrd_list (guestfs_h *g,\n"
27063 " const char *path);\n"
27068 #: ../src/guestfs-actions.pod:2604
27069 msgid "guestfs_inotify_add_watch"
27073 #: ../src/guestfs-actions.pod:2606
27077 " guestfs_inotify_add_watch (guestfs_h *g,\n"
27078 " const char *path,\n"
27084 #: ../src/guestfs-actions.pod:2625
27085 msgid "guestfs_inotify_close"
27089 #: ../src/guestfs-actions.pod:2627
27093 " guestfs_inotify_close (guestfs_h *g);\n"
27098 #: ../src/guestfs-actions.pod:2638
27099 msgid "guestfs_inotify_files"
27103 #: ../src/guestfs-actions.pod:2640
27107 " guestfs_inotify_files (guestfs_h *g);\n"
27112 #: ../src/guestfs-actions.pod:2643
27114 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
27115 "returns a list of pathnames of objects that were touched. The returned "
27116 "pathnames are sorted and deduplicated."
27120 #: ../src/guestfs-actions.pod:2653
27121 msgid "guestfs_inotify_init"
27125 #: ../src/guestfs-actions.pod:2655
27129 " guestfs_inotify_init (guestfs_h *g,\n"
27130 " int maxevents);\n"
27135 #: ../src/guestfs-actions.pod:2663
27137 "C<maxevents> is the maximum number of events which will be queued up between "
27138 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
27139 "passed as C<0>, then the kernel (or previously set) default is used. For "
27140 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
27141 "throws away events, but records the fact that it threw them away by setting "
27142 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
27143 "C<guestfs_inotify_read>)."
27147 #: ../src/guestfs-actions.pod:2673
27149 "Before any events are generated, you have to add some watches to the "
27150 "internal watch list. See: C<guestfs_inotify_add_watch>, "
27151 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
27155 #: ../src/guestfs-actions.pod:2679
27157 "Queued up events should be read periodically by calling "
27158 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
27159 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
27160 "often enough then you risk the internal queue overflowing."
27164 #: ../src/guestfs-actions.pod:2686
27166 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
27167 "This also removes any watches automatically."
27171 #: ../src/guestfs-actions.pod:2699
27172 msgid "guestfs_inotify_read"
27176 #: ../src/guestfs-actions.pod:2701
27179 " struct guestfs_inotify_event_list *\n"
27180 " guestfs_inotify_read (guestfs_h *g);\n"
27185 #: ../src/guestfs-actions.pod:2715
27187 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
27188 "there was an error. I<The caller must call "
27189 "C<guestfs_free_inotify_event_list> after use>."
27193 #: ../src/guestfs-actions.pod:2721
27194 msgid "guestfs_inotify_rm_watch"
27198 #: ../src/guestfs-actions.pod:2723
27202 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
27208 #: ../src/guestfs-actions.pod:2727
27210 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
27214 #: ../src/guestfs-actions.pod:2734
27215 msgid "guestfs_inspect_get_arch"
27219 #: ../src/guestfs-actions.pod:2736
27223 " guestfs_inspect_get_arch (guestfs_h *g,\n"
27224 " const char *root);\n"
27229 #: ../src/guestfs-actions.pod:2740
27231 "This returns the architecture of the inspected operating system. The "
27232 "possible return values are listed under C<guestfs_file_architecture>."
27236 #: ../src/guestfs-actions.pod:2754
27237 msgid "guestfs_inspect_get_distro"
27241 #: ../src/guestfs-actions.pod:2756
27245 " guestfs_inspect_get_distro (guestfs_h *g,\n"
27246 " const char *root);\n"
27251 #: ../src/guestfs-actions.pod:2848
27252 msgid "guestfs_inspect_get_drive_mappings"
27256 #: ../src/guestfs-actions.pod:2850
27260 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
27261 " const char *root);\n"
27266 #: ../src/guestfs-actions.pod:2879
27268 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27269 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
27273 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3151
27274 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5221
27275 #: ../src/guestfs-actions.pod:7291
27277 "This function returns a NULL-terminated array of strings, or NULL if there "
27278 "was an error. The array of strings will always have length C<2n+1>, where "
27279 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
27280 "caller must free the strings and the array after use>."
27284 #: ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:3345
27285 msgid "(Added in 1.9.17)"
27289 #: ../src/guestfs-actions.pod:2891
27290 msgid "guestfs_inspect_get_filesystems"
27294 #: ../src/guestfs-actions.pod:2893
27298 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
27299 " const char *root);\n"
27304 #: ../src/guestfs-actions.pod:2905
27306 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27307 "C<guestfs_inspect_get_mountpoints>."
27311 #: ../src/guestfs-actions.pod:2914
27312 msgid "guestfs_inspect_get_format"
27316 #: ../src/guestfs-actions.pod:2916
27320 " guestfs_inspect_get_format (guestfs_h *g,\n"
27321 " const char *root);\n"
27326 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3381
27327 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3415
27328 #: ../src/guestfs-actions.pod:6171
27329 msgid "(Added in 1.9.4)"
27333 #: ../src/guestfs-actions.pod:2952
27334 msgid "guestfs_inspect_get_hostname"
27338 #: ../src/guestfs-actions.pod:2954
27342 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
27343 " const char *root);\n"
27348 #: ../src/guestfs-actions.pod:2969
27349 msgid "(Added in 1.7.9)"
27353 #: ../src/guestfs-actions.pod:2971
27354 msgid "guestfs_inspect_get_icon"
27358 #: ../src/guestfs-actions.pod:2973
27362 " guestfs_inspect_get_icon (guestfs_h *g,\n"
27363 " const char *root,\n"
27364 " size_t *size_r,\n"
27370 #: ../src/guestfs-actions.pod:2984
27373 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
27374 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
27379 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3876
27380 #: ../src/guestfs-actions.pod:5120
27381 msgid "(Added in 1.11.12)"
27385 #: ../src/guestfs-actions.pod:3053
27386 msgid "guestfs_inspect_get_icon_va"
27390 #: ../src/guestfs-actions.pod:3055
27394 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
27395 " const char *root,\n"
27396 " size_t *size_r,\n"
27397 " va_list args);\n"
27402 #: ../src/guestfs-actions.pod:3061
27403 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
27407 #: ../src/guestfs-actions.pod:3065
27408 msgid "guestfs_inspect_get_icon_argv"
27412 #: ../src/guestfs-actions.pod:3067
27416 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
27417 " const char *root,\n"
27418 " size_t *size_r,\n"
27419 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
27424 #: ../src/guestfs-actions.pod:3073
27425 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
27429 #: ../src/guestfs-actions.pod:3077
27430 msgid "guestfs_inspect_get_major_version"
27434 #: ../src/guestfs-actions.pod:3079
27438 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
27439 " const char *root);\n"
27444 #: ../src/guestfs-actions.pod:3101
27445 msgid "guestfs_inspect_get_minor_version"
27449 #: ../src/guestfs-actions.pod:3103
27453 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
27454 " const char *root);\n"
27459 #: ../src/guestfs-actions.pod:3112
27461 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27462 "C<guestfs_inspect_get_major_version>."
27466 #: ../src/guestfs-actions.pod:3119
27467 msgid "guestfs_inspect_get_mountpoints"
27471 #: ../src/guestfs-actions.pod:3121
27475 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
27476 " const char *root);\n"
27481 #: ../src/guestfs-actions.pod:3142
27483 "For operating systems like Windows which still use drive letters, this call "
27484 "will only return an entry for the first drive \"mounted on\" C</>. For "
27485 "information about the mapping of drive letters to partitions, see "
27486 "C<guestfs_inspect_get_drive_mappings>."
27490 #: ../src/guestfs-actions.pod:3148
27492 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27493 "C<guestfs_inspect_get_filesystems>."
27497 #: ../src/guestfs-actions.pod:3159
27498 msgid "guestfs_inspect_get_package_format"
27502 #: ../src/guestfs-actions.pod:3161
27506 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
27507 " const char *root);\n"
27512 #: ../src/guestfs-actions.pod:3165
27514 "This function and C<guestfs_inspect_get_package_management> return the "
27515 "package format and package management tool used by the inspected operating "
27516 "system. For example for Fedora these functions would return C<rpm> (package "
27517 "format) and C<yum> (package management)."
27521 #: ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:3211
27522 msgid "(Added in 1.7.5)"
27526 #: ../src/guestfs-actions.pod:3185
27527 msgid "guestfs_inspect_get_package_management"
27531 #: ../src/guestfs-actions.pod:3187
27535 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
27536 " const char *root);\n"
27541 #: ../src/guestfs-actions.pod:3191
27543 "C<guestfs_inspect_get_package_format> and this function return the package "
27544 "format and package management tool used by the inspected operating system. "
27545 "For example for Fedora these functions would return C<rpm> (package format) "
27546 "and C<yum> (package management)."
27550 #: ../src/guestfs-actions.pod:3213
27551 msgid "guestfs_inspect_get_product_name"
27555 #: ../src/guestfs-actions.pod:3215
27559 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
27560 " const char *root);\n"
27565 #: ../src/guestfs-actions.pod:3234
27566 msgid "guestfs_inspect_get_product_variant"
27570 #: ../src/guestfs-actions.pod:3236
27574 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
27575 " const char *root);\n"
27580 #: ../src/guestfs-actions.pod:3259
27582 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27583 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
27587 #: ../src/guestfs-actions.pod:3266
27588 msgid "(Added in 1.9.13)"
27592 #: ../src/guestfs-actions.pod:3268
27593 msgid "guestfs_inspect_get_roots"
27597 #: ../src/guestfs-actions.pod:3270
27601 " guestfs_inspect_get_roots (guestfs_h *g);\n"
27606 #: ../src/guestfs-actions.pod:3273
27608 "This function is a convenient way to get the list of root devices, as "
27609 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
27610 "the whole inspection process."
27614 #: ../src/guestfs-actions.pod:3277
27616 "This returns an empty list if either no root devices were found or the "
27617 "caller has not called C<guestfs_inspect_os>."
27621 #: ../src/guestfs-actions.pod:3286
27622 msgid "(Added in 1.7.3)"
27626 #: ../src/guestfs-actions.pod:3288
27627 msgid "guestfs_inspect_get_type"
27631 #: ../src/guestfs-actions.pod:3290
27635 " guestfs_inspect_get_type (guestfs_h *g,\n"
27636 " const char *root);\n"
27641 #: ../src/guestfs-actions.pod:3327
27642 msgid "guestfs_inspect_get_windows_current_control_set"
27646 #: ../src/guestfs-actions.pod:3329
27650 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
27651 " const char *root);\n"
27656 #: ../src/guestfs-actions.pod:3347
27657 msgid "guestfs_inspect_get_windows_systemroot"
27661 #: ../src/guestfs-actions.pod:3349
27665 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
27666 " const char *root);\n"
27671 #: ../src/guestfs-actions.pod:3365
27672 msgid "(Added in 1.5.25)"
27676 #: ../src/guestfs-actions.pod:3367
27677 msgid "guestfs_inspect_is_live"
27681 #: ../src/guestfs-actions.pod:3369
27685 " guestfs_inspect_is_live (guestfs_h *g,\n"
27686 " const char *root);\n"
27691 #: ../src/guestfs-actions.pod:3373
27693 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27694 "disk), then this returns true if a live image was detected on the disk."
27698 #: ../src/guestfs-actions.pod:3383
27699 msgid "guestfs_inspect_is_multipart"
27703 #: ../src/guestfs-actions.pod:3385
27707 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
27708 " const char *root);\n"
27713 #: ../src/guestfs-actions.pod:3389
27715 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27716 "disk), then this returns true if the disk is part of a set."
27720 #: ../src/guestfs-actions.pod:3399
27721 msgid "guestfs_inspect_is_netinst"
27725 #: ../src/guestfs-actions.pod:3401
27729 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
27730 " const char *root);\n"
27735 #: ../src/guestfs-actions.pod:3405
27737 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27738 "disk), then this returns true if the disk is a network installer, ie. not a "
27739 "self-contained install CD but one which is likely to require network access "
27740 "to complete the install."
27744 #: ../src/guestfs-actions.pod:3417
27745 msgid "guestfs_inspect_list_applications"
27749 #: ../src/guestfs-actions.pod:3419
27752 " struct guestfs_application_list *\n"
27753 " guestfs_inspect_list_applications (guestfs_h *g,\n"
27754 " const char *root);\n"
27759 #: ../src/guestfs-actions.pod:3425
27761 "I<Note:> This call works differently from other parts of the inspection "
27762 "API. You have to call C<guestfs_inspect_os>, then "
27763 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
27764 "this. Listing applications is a significantly more difficult operation "
27765 "which requires access to the full filesystem. Also note that unlike the "
27766 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
27767 "the libguestfs handle, this call actually reads parts of the mounted "
27768 "filesystems during the call."
27772 #: ../src/guestfs-actions.pod:3515
27774 "This function returns a C<struct guestfs_application_list *>, or NULL if "
27775 "there was an error. I<The caller must call C<guestfs_free_application_list> "
27780 #: ../src/guestfs-actions.pod:3519
27781 msgid "(Added in 1.7.8)"
27785 #: ../src/guestfs-actions.pod:3521
27786 msgid "guestfs_inspect_os"
27790 #: ../src/guestfs-actions.pod:3523
27794 " guestfs_inspect_os (guestfs_h *g);\n"
27799 #: ../src/guestfs-actions.pod:3539
27801 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
27802 "functions in order to query further information about each operating system, "
27803 "such as the name and version."
27807 #: ../src/guestfs-actions.pod:3544
27809 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
27810 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
27811 "the contents. This should be called with no disks currently mounted. The "
27812 "function may also use Augeas, so any existing Augeas handle will be closed."
27816 #: ../src/guestfs-actions.pod:3556 ../src/guestfs-actions.pod:3887
27817 #: ../src/guestfs-actions.pod:3969
27818 msgid "See also C<guestfs_list_filesystems>."
27822 #: ../src/guestfs-actions.pod:3564
27823 msgid "guestfs_is_blockdev"
27827 #: ../src/guestfs-actions.pod:3566
27831 " guestfs_is_blockdev (guestfs_h *g,\n"
27832 " const char *path);\n"
27837 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3602
27838 #: ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3647
27839 #: ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3719
27840 #: ../src/guestfs-actions.pod:3734
27841 msgid "See also C<guestfs_stat>."
27845 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3606
27846 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3723
27847 #: ../src/guestfs-actions.pod:3738
27848 msgid "(Added in 1.5.10)"
27852 #: ../src/guestfs-actions.pod:3579
27853 msgid "guestfs_is_busy"
27857 #: ../src/guestfs-actions.pod:3581
27861 " guestfs_is_busy (guestfs_h *g);\n"
27866 #: ../src/guestfs-actions.pod:3593
27867 msgid "guestfs_is_chardev"
27871 #: ../src/guestfs-actions.pod:3595
27875 " guestfs_is_chardev (guestfs_h *g,\n"
27876 " const char *path);\n"
27881 #: ../src/guestfs-actions.pod:3608
27882 msgid "guestfs_is_config"
27886 #: ../src/guestfs-actions.pod:3610
27890 " guestfs_is_config (guestfs_h *g);\n"
27895 #: ../src/guestfs-actions.pod:3622
27896 msgid "guestfs_is_dir"
27900 #: ../src/guestfs-actions.pod:3624
27904 " guestfs_is_dir (guestfs_h *g,\n"
27905 " const char *path);\n"
27910 #: ../src/guestfs-actions.pod:3638
27911 msgid "guestfs_is_fifo"
27915 #: ../src/guestfs-actions.pod:3640
27919 " guestfs_is_fifo (guestfs_h *g,\n"
27920 " const char *path);\n"
27925 #: ../src/guestfs-actions.pod:3653
27926 msgid "guestfs_is_file"
27930 #: ../src/guestfs-actions.pod:3655
27934 " guestfs_is_file (guestfs_h *g,\n"
27935 " const char *path);\n"
27940 #: ../src/guestfs-actions.pod:3669
27941 msgid "guestfs_is_launching"
27945 #: ../src/guestfs-actions.pod:3671
27949 " guestfs_is_launching (guestfs_h *g);\n"
27954 #: ../src/guestfs-actions.pod:3683
27955 msgid "guestfs_is_lv"
27959 #: ../src/guestfs-actions.pod:3685
27963 " guestfs_is_lv (guestfs_h *g,\n"
27964 " const char *device);\n"
27969 #: ../src/guestfs-actions.pod:3696
27970 msgid "guestfs_is_ready"
27974 #: ../src/guestfs-actions.pod:3698
27978 " guestfs_is_ready (guestfs_h *g);\n"
27983 #: ../src/guestfs-actions.pod:3710
27984 msgid "guestfs_is_socket"
27988 #: ../src/guestfs-actions.pod:3712
27992 " guestfs_is_socket (guestfs_h *g,\n"
27993 " const char *path);\n"
27998 #: ../src/guestfs-actions.pod:3725
27999 msgid "guestfs_is_symlink"
28003 #: ../src/guestfs-actions.pod:3727
28007 " guestfs_is_symlink (guestfs_h *g,\n"
28008 " const char *path);\n"
28013 #: ../src/guestfs-actions.pod:3740
28014 msgid "guestfs_is_zero"
28018 #: ../src/guestfs-actions.pod:3742
28022 " guestfs_is_zero (guestfs_h *g,\n"
28023 " const char *path);\n"
28028 #: ../src/guestfs-actions.pod:3751 ../src/guestfs-actions.pod:3765
28029 msgid "(Added in 1.11.8)"
28033 #: ../src/guestfs-actions.pod:3753
28034 msgid "guestfs_is_zero_device"
28038 #: ../src/guestfs-actions.pod:3755
28042 " guestfs_is_zero_device (guestfs_h *g,\n"
28043 " const char *device);\n"
28048 #: ../src/guestfs-actions.pod:3767
28049 msgid "guestfs_kill_subprocess"
28053 #: ../src/guestfs-actions.pod:3769
28057 " guestfs_kill_subprocess (guestfs_h *g);\n"
28062 #: ../src/guestfs-actions.pod:3778
28063 msgid "guestfs_launch"
28067 #: ../src/guestfs-actions.pod:3780
28071 " guestfs_launch (guestfs_h *g);\n"
28076 #: ../src/guestfs-actions.pod:3798
28077 msgid "guestfs_lchown"
28081 #: ../src/guestfs-actions.pod:3800
28085 " guestfs_lchown (guestfs_h *g,\n"
28088 " const char *path);\n"
28093 #: ../src/guestfs-actions.pod:3806
28095 "Change the file owner to C<owner> and group to C<group>. This is like "
28096 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
28097 "changed, not the target."
28101 #: ../src/guestfs-actions.pod:3818
28102 msgid "guestfs_lgetxattr"
28106 #: ../src/guestfs-actions.pod:3820
28110 " guestfs_lgetxattr (guestfs_h *g,\n"
28111 " const char *path,\n"
28112 " const char *name,\n"
28113 " size_t *size_r);\n"
28118 #: ../src/guestfs-actions.pod:3840
28119 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
28123 #: ../src/guestfs-actions.pod:3848
28124 msgid "guestfs_lgetxattrs"
28128 #: ../src/guestfs-actions.pod:3850
28131 " struct guestfs_xattr_list *\n"
28132 " guestfs_lgetxattrs (guestfs_h *g,\n"
28133 " const char *path);\n"
28138 #: ../src/guestfs-actions.pod:3854
28140 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
28141 "then it returns the extended attributes of the link itself."
28145 #: ../src/guestfs-actions.pod:3864
28146 msgid "guestfs_list_9p"
28150 #: ../src/guestfs-actions.pod:3866
28154 " guestfs_list_9p (guestfs_h *g);\n"
28159 #: ../src/guestfs-actions.pod:3878
28160 msgid "guestfs_list_devices"
28164 #: ../src/guestfs-actions.pod:3880
28168 " guestfs_list_devices (guestfs_h *g);\n"
28173 #: ../src/guestfs-actions.pod:3895
28174 msgid "guestfs_list_dm_devices"
28178 #: ../src/guestfs-actions.pod:3897
28182 " guestfs_list_dm_devices (guestfs_h *g);\n"
28187 #: ../src/guestfs-actions.pod:3902
28189 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
28190 "previous call to C<guestfs_luks_open>."
28194 #: ../src/guestfs-actions.pod:3905
28196 "Device mapper devices which correspond to logical volumes are I<not> "
28197 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
28202 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:5359
28203 msgid "(Added in 1.11.15)"
28207 #: ../src/guestfs-actions.pod:3915
28208 msgid "guestfs_list_filesystems"
28212 #: ../src/guestfs-actions.pod:3917
28216 " guestfs_list_filesystems (guestfs_h *g);\n"
28221 #: ../src/guestfs-actions.pod:3937
28223 "This command runs other libguestfs commands, which might include "
28224 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
28225 "soon after launch and only when nothing is mounted."
28229 #: ../src/guestfs-actions.pod:3941
28231 "Not all of the filesystems returned will be mountable. In particular, swap "
28232 "partitions are returned in the list. Also this command does not check that "
28233 "each filesystem found is valid and mountable, and some filesystems might be "
28234 "mountable but require special options. Filesystems may not all belong to a "
28235 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
28239 #: ../src/guestfs-actions.pod:3955 ../src/guestfs-actions.pod:5720
28240 msgid "(Added in 1.5.15)"
28244 #: ../src/guestfs-actions.pod:3957
28245 msgid "guestfs_list_partitions"
28246 msgstr "guestfs_list_partitions"
28249 #: ../src/guestfs-actions.pod:3959
28253 " guestfs_list_partitions (guestfs_h *g);\n"
28257 " guestfs_list_partitions (guestfs_h *g);\n"
28261 #: ../src/guestfs-actions.pod:3966
28263 "This does not return logical volumes. For that you will need to call "
28268 #: ../src/guestfs-actions.pod:3977
28270 msgstr "guestfs_ll"
28273 #: ../src/guestfs-actions.pod:3979
28277 " guestfs_ll (guestfs_h *g,\n"
28278 " const char *directory);\n"
28282 " guestfs_ll (guestfs_h *g,\n"
28283 " const char *directory);\n"
28287 #: ../src/guestfs-actions.pod:3994
28289 msgstr "guestfs_ln"
28292 #: ../src/guestfs-actions.pod:3996
28296 " guestfs_ln (guestfs_h *g,\n"
28297 " const char *target,\n"
28298 " const char *linkname);\n"
28302 " guestfs_ln (guestfs_h *g,\n"
28303 " const char *target,\n"
28304 " const char *linkname);\n"
28308 #: ../src/guestfs-actions.pod:4007
28309 msgid "guestfs_ln_f"
28310 msgstr "guestfs_ln_f"
28313 #: ../src/guestfs-actions.pod:4009
28317 " guestfs_ln_f (guestfs_h *g,\n"
28318 " const char *target,\n"
28319 " const char *linkname);\n"
28323 " guestfs_ln_f (guestfs_h *g,\n"
28324 " const char *target,\n"
28325 " const char *linkname);\n"
28329 #: ../src/guestfs-actions.pod:4021
28330 msgid "guestfs_ln_s"
28331 msgstr "guestfs_ln_s"
28334 #: ../src/guestfs-actions.pod:4023
28338 " guestfs_ln_s (guestfs_h *g,\n"
28339 " const char *target,\n"
28340 " const char *linkname);\n"
28344 " guestfs_ln_s (guestfs_h *g,\n"
28345 " const char *target,\n"
28346 " const char *linkname);\n"
28350 #: ../src/guestfs-actions.pod:4034
28351 msgid "guestfs_ln_sf"
28352 msgstr "guestfs_ln_sf"
28355 #: ../src/guestfs-actions.pod:4036
28359 " guestfs_ln_sf (guestfs_h *g,\n"
28360 " const char *target,\n"
28361 " const char *linkname);\n"
28365 " guestfs_ln_sf (guestfs_h *g,\n"
28366 " const char *target,\n"
28367 " const char *linkname);\n"
28371 #: ../src/guestfs-actions.pod:4048
28372 msgid "guestfs_lremovexattr"
28373 msgstr "guestfs_lremovexattr"
28376 #: ../src/guestfs-actions.pod:4050
28380 " guestfs_lremovexattr (guestfs_h *g,\n"
28381 " const char *xattr,\n"
28382 " const char *path);\n"
28386 " guestfs_lremovexattr (guestfs_h *g,\n"
28387 " const char *xattr,\n"
28388 " const char *path);\n"
28392 #: ../src/guestfs-actions.pod:4055
28394 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
28395 "link, then it removes an extended attribute of the link itself."
28399 #: ../src/guestfs-actions.pod:4063
28401 msgstr "guestfs_ls"
28404 #: ../src/guestfs-actions.pod:4065
28408 " guestfs_ls (guestfs_h *g,\n"
28409 " const char *directory);\n"
28413 " guestfs_ls (guestfs_h *g,\n"
28414 " const char *directory);\n"
28418 #: ../src/guestfs-actions.pod:4073
28420 "This command is mostly useful for interactive sessions. Programs should "
28421 "probably use C<guestfs_readdir> instead."
28425 #: ../src/guestfs-actions.pod:4082
28426 msgid "guestfs_lsetxattr"
28427 msgstr "guestfs_lsetxattr"
28430 #: ../src/guestfs-actions.pod:4084
28434 " guestfs_lsetxattr (guestfs_h *g,\n"
28435 " const char *xattr,\n"
28436 " const char *val,\n"
28438 " const char *path);\n"
28442 " guestfs_lsetxattr (guestfs_h *g,\n"
28443 " const char *xattr,\n"
28444 " const char *val,\n"
28446 " const char *path);\n"
28450 #: ../src/guestfs-actions.pod:4091
28452 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
28453 "then it sets an extended attribute of the link itself."
28457 #: ../src/guestfs-actions.pod:4099
28458 msgid "guestfs_lstat"
28459 msgstr "guestfs_lstat"
28462 #: ../src/guestfs-actions.pod:4101
28465 " struct guestfs_stat *\n"
28466 " guestfs_lstat (guestfs_h *g,\n"
28467 " const char *path);\n"
28470 " struct guestfs_stat *\n"
28471 " guestfs_lstat (guestfs_h *g,\n"
28472 " const char *path);\n"
28476 #: ../src/guestfs-actions.pod:4107
28478 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
28479 "link, then the link is stat-ed, not the file it refers to."
28483 #: ../src/guestfs-actions.pod:4113 ../src/guestfs-actions.pod:6894
28485 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
28486 "error. I<The caller must call C<guestfs_free_stat> after use>."
28490 #: ../src/guestfs-actions.pod:4117 ../src/guestfs-actions.pod:6898
28491 #: ../src/guestfs-actions.pod:6916 ../src/guestfs-actions.pod:7297
28492 msgid "(Added in 0.9.2)"
28493 msgstr "(Додано у 0.9.2)"
28496 #: ../src/guestfs-actions.pod:4119
28497 msgid "guestfs_lstatlist"
28498 msgstr "guestfs_lstatlist"
28501 #: ../src/guestfs-actions.pod:4121
28504 " struct guestfs_stat_list *\n"
28505 " guestfs_lstatlist (guestfs_h *g,\n"
28506 " const char *path,\n"
28507 " char *const *names);\n"
28510 " struct guestfs_stat_list *\n"
28511 " guestfs_lstatlist (guestfs_h *g,\n"
28512 " const char *path,\n"
28513 " char *const *names);\n"
28517 #: ../src/guestfs-actions.pod:4126
28519 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
28520 "files, where all files are in the directory C<path>. C<names> is the list "
28521 "of files from this directory."
28525 #: ../src/guestfs-actions.pod:4135
28527 "This call is intended for programs that want to efficiently list a directory "
28528 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
28529 "for a similarly efficient call for getting extended attributes. Very long "
28530 "directory listings might cause the protocol message size to be exceeded, "
28531 "causing this call to fail. The caller must split up such requests into "
28532 "smaller groups of names."
28536 #: ../src/guestfs-actions.pod:4143
28538 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
28539 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
28543 #: ../src/guestfs-actions.pod:4149
28544 msgid "guestfs_luks_add_key"
28545 msgstr "guestfs_luks_add_key"
28548 #: ../src/guestfs-actions.pod:4151
28552 " guestfs_luks_add_key (guestfs_h *g,\n"
28553 " const char *device,\n"
28554 " const char *key,\n"
28555 " const char *newkey,\n"
28560 " guestfs_luks_add_key (guestfs_h *g,\n"
28561 " const char *device,\n"
28562 " const char *key,\n"
28563 " const char *newkey,\n"
28568 #: ../src/guestfs-actions.pod:4163
28570 "Note that if C<keyslot> already contains a key, then this command will "
28571 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
28575 #: ../src/guestfs-actions.pod:4169 ../src/guestfs-actions.pod:4209
28576 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4252
28577 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4306
28579 "This function takes a key or passphrase parameter which could contain "
28580 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
28585 #: ../src/guestfs-actions.pod:4173 ../src/guestfs-actions.pod:4213
28586 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4256
28587 msgid "(Added in 1.5.2)"
28588 msgstr "(Додано у 1.5.2)"
28591 #: ../src/guestfs-actions.pod:4175
28592 msgid "guestfs_luks_close"
28593 msgstr "guestfs_luks_close"
28596 #: ../src/guestfs-actions.pod:4177
28600 " guestfs_luks_close (guestfs_h *g,\n"
28601 " const char *device);\n"
28605 " guestfs_luks_close (guestfs_h *g,\n"
28606 " const char *device);\n"
28610 #: ../src/guestfs-actions.pod:4181
28612 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
28613 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
28614 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
28615 "underlying block device."
28619 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4291
28620 #: ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4360
28621 #: ../src/guestfs-actions.pod:4408
28622 msgid "(Added in 1.5.1)"
28623 msgstr "(Додано у 1.5.1)"
28626 #: ../src/guestfs-actions.pod:4191
28627 msgid "guestfs_luks_format"
28628 msgstr "guestfs_luks_format"
28631 #: ../src/guestfs-actions.pod:4193
28635 " guestfs_luks_format (guestfs_h *g,\n"
28636 " const char *device,\n"
28637 " const char *key,\n"
28642 " guestfs_luks_format (guestfs_h *g,\n"
28643 " const char *device,\n"
28644 " const char *key,\n"
28649 #: ../src/guestfs-actions.pod:4215
28650 msgid "guestfs_luks_format_cipher"
28651 msgstr "guestfs_luks_format_cipher"
28654 #: ../src/guestfs-actions.pod:4217
28658 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28659 " const char *device,\n"
28660 " const char *key,\n"
28662 " const char *cipher);\n"
28666 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28667 " const char *device,\n"
28668 " const char *key,\n"
28670 " const char *cipher);\n"
28674 #: ../src/guestfs-actions.pod:4224
28676 "This command is the same as C<guestfs_luks_format> but it also allows you to "
28677 "set the C<cipher> used."
28681 #: ../src/guestfs-actions.pod:4238
28682 msgid "guestfs_luks_kill_slot"
28683 msgstr "guestfs_luks_kill_slot"
28686 #: ../src/guestfs-actions.pod:4240
28690 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28691 " const char *device,\n"
28692 " const char *key,\n"
28697 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28698 " const char *device,\n"
28699 " const char *key,\n"
28704 #: ../src/guestfs-actions.pod:4258
28705 msgid "guestfs_luks_open"
28706 msgstr "guestfs_luks_open"
28709 #: ../src/guestfs-actions.pod:4260
28713 " guestfs_luks_open (guestfs_h *g,\n"
28714 " const char *device,\n"
28715 " const char *key,\n"
28716 " const char *mapname);\n"
28720 " guestfs_luks_open (guestfs_h *g,\n"
28721 " const char *device,\n"
28722 " const char *key,\n"
28723 " const char *mapname);\n"
28727 #: ../src/guestfs-actions.pod:4278
28729 "If this block device contains LVM volume groups, then calling "
28730 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
28735 #: ../src/guestfs-actions.pod:4282
28736 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
28740 #: ../src/guestfs-actions.pod:4293
28741 msgid "guestfs_luks_open_ro"
28742 msgstr "guestfs_luks_open_ro"
28745 #: ../src/guestfs-actions.pod:4295
28749 " guestfs_luks_open_ro (guestfs_h *g,\n"
28750 " const char *device,\n"
28751 " const char *key,\n"
28752 " const char *mapname);\n"
28756 " guestfs_luks_open_ro (guestfs_h *g,\n"
28757 " const char *device,\n"
28758 " const char *key,\n"
28759 " const char *mapname);\n"
28763 #: ../src/guestfs-actions.pod:4301
28765 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
28770 #: ../src/guestfs-actions.pod:4312
28771 msgid "guestfs_lvcreate"
28772 msgstr "guestfs_lvcreate"
28775 #: ../src/guestfs-actions.pod:4314
28779 " guestfs_lvcreate (guestfs_h *g,\n"
28780 " const char *logvol,\n"
28781 " const char *volgroup,\n"
28786 " guestfs_lvcreate (guestfs_h *g,\n"
28787 " const char *logvol,\n"
28788 " const char *volgroup,\n"
28793 #: ../src/guestfs-actions.pod:4327
28794 msgid "guestfs_lvm_canonical_lv_name"
28795 msgstr "guestfs_lvm_canonical_lv_name"
28798 #: ../src/guestfs-actions.pod:4329
28802 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28803 " const char *lvname);\n"
28807 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28808 " const char *lvname);\n"
28812 #: ../src/guestfs-actions.pod:4340
28813 msgid "See also C<guestfs_is_lv>."
28817 #: ../src/guestfs-actions.pod:4345
28818 msgid "(Added in 1.5.24)"
28819 msgstr "(Додано у 1.5.24)"
28822 #: ../src/guestfs-actions.pod:4347
28823 msgid "guestfs_lvm_clear_filter"
28824 msgstr "guestfs_lvm_clear_filter"
28827 #: ../src/guestfs-actions.pod:4349
28831 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28835 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28839 #: ../src/guestfs-actions.pod:4352
28841 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
28842 "see every block device."
28846 #: ../src/guestfs-actions.pod:4362
28847 msgid "guestfs_lvm_remove_all"
28848 msgstr "guestfs_lvm_remove_all"
28851 #: ../src/guestfs-actions.pod:4364
28855 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28859 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28863 #: ../src/guestfs-actions.pod:4377
28864 msgid "guestfs_lvm_set_filter"
28865 msgstr "guestfs_lvm_set_filter"
28868 #: ../src/guestfs-actions.pod:4379
28872 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28873 " char *const *devices);\n"
28877 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28878 " char *const *devices);\n"
28882 #: ../src/guestfs-actions.pod:4410
28883 msgid "guestfs_lvremove"
28884 msgstr "guestfs_lvremove"
28887 #: ../src/guestfs-actions.pod:4412
28891 " guestfs_lvremove (guestfs_h *g,\n"
28892 " const char *device);\n"
28896 " guestfs_lvremove (guestfs_h *g,\n"
28897 " const char *device);\n"
28901 #: ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:5817
28902 #: ../src/guestfs-actions.pod:7667
28903 msgid "(Added in 1.0.13)"
28904 msgstr "(Додано у 1.0.13)"
28907 #: ../src/guestfs-actions.pod:4426
28908 msgid "guestfs_lvrename"
28909 msgstr "guestfs_lvrename"
28912 #: ../src/guestfs-actions.pod:4428
28916 " guestfs_lvrename (guestfs_h *g,\n"
28917 " const char *logvol,\n"
28918 " const char *newlogvol);\n"
28922 " guestfs_lvrename (guestfs_h *g,\n"
28923 " const char *logvol,\n"
28924 " const char *newlogvol);\n"
28928 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:7680
28929 msgid "(Added in 1.0.83)"
28930 msgstr "(Додано у 1.0.83)"
28933 #: ../src/guestfs-actions.pod:4439
28934 msgid "guestfs_lvresize"
28935 msgstr "guestfs_lvresize"
28938 #: ../src/guestfs-actions.pod:4441
28942 " guestfs_lvresize (guestfs_h *g,\n"
28943 " const char *device,\n"
28948 " guestfs_lvresize (guestfs_h *g,\n"
28949 " const char *device,\n"
28954 #: ../src/guestfs-actions.pod:4454
28955 msgid "guestfs_lvresize_free"
28956 msgstr "guestfs_lvresize_free"
28959 #: ../src/guestfs-actions.pod:4456
28963 " guestfs_lvresize_free (guestfs_h *g,\n"
28964 " const char *lv,\n"
28969 " guestfs_lvresize_free (guestfs_h *g,\n"
28970 " const char *lv,\n"
28975 #: ../src/guestfs-actions.pod:4469
28976 msgid "(Added in 1.3.3)"
28977 msgstr "(Додано у 1.3.3)"
28980 #: ../src/guestfs-actions.pod:4471
28981 msgid "guestfs_lvs"
28982 msgstr "guestfs_lvs"
28985 #: ../src/guestfs-actions.pod:4473
28989 " guestfs_lvs (guestfs_h *g);\n"
28993 " guestfs_lvs (guestfs_h *g);\n"
28997 #: ../src/guestfs-actions.pod:4482
28998 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29002 #: ../src/guestfs-actions.pod:4490
29003 msgid "guestfs_lvs_full"
29004 msgstr "guestfs_lvs_full"
29007 #: ../src/guestfs-actions.pod:4492
29010 " struct guestfs_lvm_lv_list *\n"
29011 " guestfs_lvs_full (guestfs_h *g);\n"
29014 " struct guestfs_lvm_lv_list *\n"
29015 " guestfs_lvs_full (guestfs_h *g);\n"
29019 #: ../src/guestfs-actions.pod:4498
29021 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29022 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
29026 #: ../src/guestfs-actions.pod:4504
29027 msgid "guestfs_lvuuid"
29028 msgstr "guestfs_lvuuid"
29031 #: ../src/guestfs-actions.pod:4506
29035 " guestfs_lvuuid (guestfs_h *g,\n"
29036 " const char *device);\n"
29040 " guestfs_lvuuid (guestfs_h *g,\n"
29041 " const char *device);\n"
29045 #: ../src/guestfs-actions.pod:4517
29046 msgid "guestfs_lxattrlist"
29047 msgstr "guestfs_lxattrlist"
29050 #: ../src/guestfs-actions.pod:4519
29053 " struct guestfs_xattr_list *\n"
29054 " guestfs_lxattrlist (guestfs_h *g,\n"
29055 " const char *path,\n"
29056 " char *const *names);\n"
29059 " struct guestfs_xattr_list *\n"
29060 " guestfs_lxattrlist (guestfs_h *g,\n"
29061 " const char *path,\n"
29062 " char *const *names);\n"
29066 #: ../src/guestfs-actions.pod:4538
29068 "This call is intended for programs that want to efficiently list a directory "
29069 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
29070 "a similarly efficient call for getting standard stats. Very long directory "
29071 "listings might cause the protocol message size to be exceeded, causing this "
29072 "call to fail. The caller must split up such requests into smaller groups of "
29077 #: ../src/guestfs-actions.pod:4552
29078 msgid "guestfs_mkdir"
29079 msgstr "guestfs_mkdir"
29082 #: ../src/guestfs-actions.pod:4554
29086 " guestfs_mkdir (guestfs_h *g,\n"
29087 " const char *path);\n"
29091 " guestfs_mkdir (guestfs_h *g,\n"
29092 " const char *path);\n"
29096 #: ../src/guestfs-actions.pod:4564
29097 msgid "guestfs_mkdir_mode"
29098 msgstr "guestfs_mkdir_mode"
29101 #: ../src/guestfs-actions.pod:4566
29105 " guestfs_mkdir_mode (guestfs_h *g,\n"
29106 " const char *path,\n"
29111 " guestfs_mkdir_mode (guestfs_h *g,\n"
29112 " const char *path,\n"
29117 #: ../src/guestfs-actions.pod:4578
29118 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29122 #: ../src/guestfs-actions.pod:4584
29123 msgid "guestfs_mkdir_p"
29124 msgstr "guestfs_mkdir_p"
29127 #: ../src/guestfs-actions.pod:4586
29131 " guestfs_mkdir_p (guestfs_h *g,\n"
29132 " const char *path);\n"
29136 " guestfs_mkdir_p (guestfs_h *g,\n"
29137 " const char *path);\n"
29141 #: ../src/guestfs-actions.pod:4597
29142 msgid "guestfs_mkdtemp"
29143 msgstr "guestfs_mkdtemp"
29146 #: ../src/guestfs-actions.pod:4599
29150 " guestfs_mkdtemp (guestfs_h *g,\n"
29151 " const char *template);\n"
29155 " guestfs_mkdtemp (guestfs_h *g,\n"
29156 " const char *template);\n"
29160 #: ../src/guestfs-actions.pod:4627
29161 msgid "guestfs_mke2fs_J"
29162 msgstr "guestfs_mke2fs_J"
29165 #: ../src/guestfs-actions.pod:4629
29169 " guestfs_mke2fs_J (guestfs_h *g,\n"
29170 " const char *fstype,\n"
29171 " int blocksize,\n"
29172 " const char *device,\n"
29173 " const char *journal);\n"
29177 " guestfs_mke2fs_J (guestfs_h *g,\n"
29178 " const char *fstype,\n"
29179 " int blocksize,\n"
29180 " const char *device,\n"
29181 " const char *journal);\n"
29185 #: ../src/guestfs-actions.pod:4642
29186 msgid "See also C<guestfs_mke2journal>."
29190 #: ../src/guestfs-actions.pod:4646 ../src/guestfs-actions.pod:4664
29191 #: ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4698
29192 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4726
29193 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:5062
29194 msgid "(Added in 1.0.68)"
29195 msgstr "(Додано у 1.0.68)"
29198 #: ../src/guestfs-actions.pod:4648
29199 msgid "guestfs_mke2fs_JL"
29200 msgstr "guestfs_mke2fs_JL"
29203 #: ../src/guestfs-actions.pod:4650
29207 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29208 " const char *fstype,\n"
29209 " int blocksize,\n"
29210 " const char *device,\n"
29211 " const char *label);\n"
29215 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29216 " const char *fstype,\n"
29217 " int blocksize,\n"
29218 " const char *device,\n"
29219 " const char *label);\n"
29223 #: ../src/guestfs-actions.pod:4660
29224 msgid "See also C<guestfs_mke2journal_L>."
29228 #: ../src/guestfs-actions.pod:4666
29229 msgid "guestfs_mke2fs_JU"
29230 msgstr "guestfs_mke2fs_JU"
29233 #: ../src/guestfs-actions.pod:4668
29237 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29238 " const char *fstype,\n"
29239 " int blocksize,\n"
29240 " const char *device,\n"
29241 " const char *uuid);\n"
29245 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29246 " const char *fstype,\n"
29247 " int blocksize,\n"
29248 " const char *device,\n"
29249 " const char *uuid);\n"
29253 #: ../src/guestfs-actions.pod:4678
29254 msgid "See also C<guestfs_mke2journal_U>."
29258 #: ../src/guestfs-actions.pod:4684
29259 msgid "guestfs_mke2journal"
29260 msgstr "guestfs_mke2journal"
29263 #: ../src/guestfs-actions.pod:4686
29267 " guestfs_mke2journal (guestfs_h *g,\n"
29268 " int blocksize,\n"
29269 " const char *device);\n"
29273 " guestfs_mke2journal (guestfs_h *g,\n"
29274 " int blocksize,\n"
29275 " const char *device);\n"
29279 #: ../src/guestfs-actions.pod:4700
29280 msgid "guestfs_mke2journal_L"
29281 msgstr "guestfs_mke2journal_L"
29284 #: ../src/guestfs-actions.pod:4702
29288 " guestfs_mke2journal_L (guestfs_h *g,\n"
29289 " int blocksize,\n"
29290 " const char *label,\n"
29291 " const char *device);\n"
29295 " guestfs_mke2journal_L (guestfs_h *g,\n"
29296 " int blocksize,\n"
29297 " const char *label,\n"
29298 " const char *device);\n"
29302 #: ../src/guestfs-actions.pod:4714
29303 msgid "guestfs_mke2journal_U"
29304 msgstr "guestfs_mke2journal_U"
29307 #: ../src/guestfs-actions.pod:4716
29311 " guestfs_mke2journal_U (guestfs_h *g,\n"
29312 " int blocksize,\n"
29313 " const char *uuid,\n"
29314 " const char *device);\n"
29318 " guestfs_mke2journal_U (guestfs_h *g,\n"
29319 " int blocksize,\n"
29320 " const char *uuid,\n"
29321 " const char *device);\n"
29325 #: ../src/guestfs-actions.pod:4728
29326 msgid "guestfs_mkfifo"
29327 msgstr "guestfs_mkfifo"
29330 #: ../src/guestfs-actions.pod:4730
29334 " guestfs_mkfifo (guestfs_h *g,\n"
29336 " const char *path);\n"
29340 " guestfs_mkfifo (guestfs_h *g,\n"
29342 " const char *path);\n"
29346 #: ../src/guestfs-actions.pod:4735
29348 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
29349 "is just a convenient wrapper around C<guestfs_mknod>."
29353 #: ../src/guestfs-actions.pod:4745
29354 msgid "guestfs_mkfs"
29355 msgstr "guestfs_mkfs"
29358 #: ../src/guestfs-actions.pod:4747
29362 " guestfs_mkfs (guestfs_h *g,\n"
29363 " const char *fstype,\n"
29364 " const char *device);\n"
29368 " guestfs_mkfs (guestfs_h *g,\n"
29369 " const char *fstype,\n"
29370 " const char *device);\n"
29374 #: ../src/guestfs-actions.pod:4760
29375 msgid "guestfs_mkfs_b"
29376 msgstr "guestfs_mkfs_b"
29379 #: ../src/guestfs-actions.pod:4762
29383 " guestfs_mkfs_b (guestfs_h *g,\n"
29384 " const char *fstype,\n"
29385 " int blocksize,\n"
29386 " const char *device);\n"
29390 " guestfs_mkfs_b (guestfs_h *g,\n"
29391 " const char *fstype,\n"
29392 " int blocksize,\n"
29393 " const char *device);\n"
29397 #: ../src/guestfs-actions.pod:4768
29399 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29404 #: ../src/guestfs-actions.pod:4775
29406 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29407 "block size of the resulting filesystem. Supported block sizes depend on the "
29408 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29412 #: ../src/guestfs-actions.pod:4787
29413 msgid "guestfs_mkfs_opts"
29414 msgstr "guestfs_mkfs_opts"
29417 #: ../src/guestfs-actions.pod:4789
29421 " guestfs_mkfs_opts (guestfs_h *g,\n"
29422 " const char *fstype,\n"
29423 " const char *device,\n"
29428 " guestfs_mkfs_opts (guestfs_h *g,\n"
29429 " const char *fstype,\n"
29430 " const char *device,\n"
29435 #: ../src/guestfs-actions.pod:4800
29438 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29439 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29440 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29441 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29446 #: ../src/guestfs-actions.pod:4848
29447 msgid "(Added in 1.7.19)"
29448 msgstr "(Додано у 1.7.19)"
29451 #: ../src/guestfs-actions.pod:4850
29452 msgid "guestfs_mkfs_opts_va"
29453 msgstr "guestfs_mkfs_opts_va"
29456 #: ../src/guestfs-actions.pod:4852
29460 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29461 " const char *fstype,\n"
29462 " const char *device,\n"
29463 " va_list args);\n"
29467 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29468 " const char *fstype,\n"
29469 " const char *device,\n"
29470 " va_list args);\n"
29474 #: ../src/guestfs-actions.pod:4858
29475 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29479 #: ../src/guestfs-actions.pod:4862
29480 msgid "guestfs_mkfs_opts_argv"
29481 msgstr "guestfs_mkfs_opts_argv"
29484 #: ../src/guestfs-actions.pod:4864
29488 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29489 " const char *fstype,\n"
29490 " const char *device,\n"
29491 " const struct guestfs_mkfs_opts_argv *optargs);\n"
29495 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29496 " const char *fstype,\n"
29497 " const char *device,\n"
29498 " const struct guestfs_mkfs_opts_argv *optargs);\n"
29502 #: ../src/guestfs-actions.pod:4870
29503 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29507 #: ../src/guestfs-actions.pod:4874
29508 msgid "guestfs_mkmountpoint"
29509 msgstr "guestfs_mkmountpoint"
29512 #: ../src/guestfs-actions.pod:4876
29516 " guestfs_mkmountpoint (guestfs_h *g,\n"
29517 " const char *exemptpath);\n"
29521 " guestfs_mkmountpoint (guestfs_h *g,\n"
29522 " const char *exemptpath);\n"
29526 #: ../src/guestfs-actions.pod:4880
29528 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29529 "that can be used to create extra mountpoints before mounting the first "
29534 #: ../src/guestfs-actions.pod:4904
29536 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
29537 "may get unexpected errors if you try to mix these calls. It is safest to "
29538 "manually unmount filesystems and remove mountpoints after use."
29542 #: ../src/guestfs-actions.pod:4908
29544 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29545 "first, so for this to work for manual mountpoints, you must ensure that the "
29546 "innermost mountpoints have the longest pathnames, as in the example code "
29551 #: ../src/guestfs-actions.pod:4915
29553 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29554 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29555 "can also trigger these issues."
29559 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5227
29560 #: ../src/guestfs-actions.pod:6237
29561 msgid "(Added in 1.0.62)"
29562 msgstr "(Додано у 1.0.62)"
29565 #: ../src/guestfs-actions.pod:4923
29566 msgid "guestfs_mknod"
29570 #: ../src/guestfs-actions.pod:4925
29574 " guestfs_mknod (guestfs_h *g,\n"
29578 " const char *path);\n"
29583 #: ../src/guestfs-actions.pod:4940
29585 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29586 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29587 "regular file). These constants are available in the standard Linux header "
29588 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
29589 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
29590 "the appropriate constant for you."
29594 #: ../src/guestfs-actions.pod:4954
29595 msgid "guestfs_mknod_b"
29599 #: ../src/guestfs-actions.pod:4956
29603 " guestfs_mknod_b (guestfs_h *g,\n"
29607 " const char *path);\n"
29612 #: ../src/guestfs-actions.pod:4963
29614 "This call creates a block device node called C<path> with mode C<mode> and "
29615 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
29616 "wrapper around C<guestfs_mknod>."
29620 #: ../src/guestfs-actions.pod:4973
29621 msgid "guestfs_mknod_c"
29625 #: ../src/guestfs-actions.pod:4975
29629 " guestfs_mknod_c (guestfs_h *g,\n"
29633 " const char *path);\n"
29638 #: ../src/guestfs-actions.pod:4982
29640 "This call creates a char device node called C<path> with mode C<mode> and "
29641 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
29642 "wrapper around C<guestfs_mknod>."
29646 #: ../src/guestfs-actions.pod:4992
29647 msgid "guestfs_mkswap"
29651 #: ../src/guestfs-actions.pod:4994
29655 " guestfs_mkswap (guestfs_h *g,\n"
29656 " const char *device);\n"
29661 #: ../src/guestfs-actions.pod:5004
29662 msgid "guestfs_mkswap_L"
29666 #: ../src/guestfs-actions.pod:5006
29670 " guestfs_mkswap_L (guestfs_h *g,\n"
29671 " const char *label,\n"
29672 " const char *device);\n"
29677 #: ../src/guestfs-actions.pod:5021
29678 msgid "guestfs_mkswap_U"
29682 #: ../src/guestfs-actions.pod:5023
29686 " guestfs_mkswap_U (guestfs_h *g,\n"
29687 " const char *uuid,\n"
29688 " const char *device);\n"
29693 #: ../src/guestfs-actions.pod:5034
29694 msgid "guestfs_mkswap_file"
29698 #: ../src/guestfs-actions.pod:5036
29702 " guestfs_mkswap_file (guestfs_h *g,\n"
29703 " const char *path);\n"
29708 #: ../src/guestfs-actions.pod:5042
29710 "This command just writes a swap file signature to an existing file. To "
29711 "create the file itself, use something like C<guestfs_fallocate>."
29715 #: ../src/guestfs-actions.pod:5049
29716 msgid "guestfs_modprobe"
29720 #: ../src/guestfs-actions.pod:5051
29724 " guestfs_modprobe (guestfs_h *g,\n"
29725 " const char *modulename);\n"
29730 #: ../src/guestfs-actions.pod:5064
29731 msgid "guestfs_mount"
29735 #: ../src/guestfs-actions.pod:5066
29739 " guestfs_mount (guestfs_h *g,\n"
29740 " const char *device,\n"
29741 " const char *mountpoint);\n"
29746 #: ../src/guestfs-actions.pod:5085
29748 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
29749 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
29750 "problems for users. If your program might need to work with older versions "
29751 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
29752 "for the first parameter if you don't want any options)."
29756 #: ../src/guestfs-actions.pod:5096
29757 msgid "guestfs_mount_9p"
29761 #: ../src/guestfs-actions.pod:5098
29765 " guestfs_mount_9p (guestfs_h *g,\n"
29766 " const char *mounttag,\n"
29767 " const char *mountpoint,\n"
29773 #: ../src/guestfs-actions.pod:5109
29776 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
29781 #: ../src/guestfs-actions.pod:5122
29782 msgid "guestfs_mount_9p_va"
29786 #: ../src/guestfs-actions.pod:5124
29790 " guestfs_mount_9p_va (guestfs_h *g,\n"
29791 " const char *mounttag,\n"
29792 " const char *mountpoint,\n"
29793 " va_list args);\n"
29798 #: ../src/guestfs-actions.pod:5130
29799 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
29803 #: ../src/guestfs-actions.pod:5134
29804 msgid "guestfs_mount_9p_argv"
29808 #: ../src/guestfs-actions.pod:5136
29812 " guestfs_mount_9p_argv (guestfs_h *g,\n"
29813 " const char *mounttag,\n"
29814 " const char *mountpoint,\n"
29815 " const struct guestfs_mount_9p_argv *optargs);\n"
29820 #: ../src/guestfs-actions.pod:5142
29821 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
29825 #: ../src/guestfs-actions.pod:5146
29826 msgid "guestfs_mount_loop"
29830 #: ../src/guestfs-actions.pod:5148
29834 " guestfs_mount_loop (guestfs_h *g,\n"
29835 " const char *file,\n"
29836 " const char *mountpoint);\n"
29841 #: ../src/guestfs-actions.pod:5161
29842 msgid "guestfs_mount_options"
29846 #: ../src/guestfs-actions.pod:5163
29850 " guestfs_mount_options (guestfs_h *g,\n"
29851 " const char *options,\n"
29852 " const char *device,\n"
29853 " const char *mountpoint);\n"
29858 #: ../src/guestfs-actions.pod:5169
29860 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29861 "the mount options as for the L<mount(8)> I<-o> flag."
29865 #: ../src/guestfs-actions.pod:5179 ../src/guestfs-actions.pod:5193
29866 #: ../src/guestfs-actions.pod:5210
29867 msgid "(Added in 1.0.10)"
29871 #: ../src/guestfs-actions.pod:5181
29872 msgid "guestfs_mount_ro"
29876 #: ../src/guestfs-actions.pod:5183
29880 " guestfs_mount_ro (guestfs_h *g,\n"
29881 " const char *device,\n"
29882 " const char *mountpoint);\n"
29887 #: ../src/guestfs-actions.pod:5188
29889 "This is the same as the C<guestfs_mount> command, but it mounts the "
29890 "filesystem with the read-only (I<-o ro>) flag."
29894 #: ../src/guestfs-actions.pod:5195
29895 msgid "guestfs_mount_vfs"
29899 #: ../src/guestfs-actions.pod:5197
29903 " guestfs_mount_vfs (guestfs_h *g,\n"
29904 " const char *options,\n"
29905 " const char *vfstype,\n"
29906 " const char *device,\n"
29907 " const char *mountpoint);\n"
29912 #: ../src/guestfs-actions.pod:5204
29914 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29915 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
29920 #: ../src/guestfs-actions.pod:5212
29921 msgid "guestfs_mountpoints"
29925 #: ../src/guestfs-actions.pod:5214
29929 " guestfs_mountpoints (guestfs_h *g);\n"
29934 #: ../src/guestfs-actions.pod:5217
29936 "This call is similar to C<guestfs_mounts>. That call returns a list of "
29937 "devices. This one returns a hash table (map) of device name to directory "
29938 "where the device is mounted."
29942 #: ../src/guestfs-actions.pod:5229
29943 msgid "guestfs_mounts"
29947 #: ../src/guestfs-actions.pod:5231
29951 " guestfs_mounts (guestfs_h *g);\n"
29956 #: ../src/guestfs-actions.pod:5239
29957 msgid "See also: C<guestfs_mountpoints>"
29961 #: ../src/guestfs-actions.pod:5247
29966 #: ../src/guestfs-actions.pod:5249
29970 " guestfs_mv (guestfs_h *g,\n"
29971 " const char *src,\n"
29972 " const char *dest);\n"
29977 #: ../src/guestfs-actions.pod:5261
29978 msgid "guestfs_ntfs_3g_probe"
29982 #: ../src/guestfs-actions.pod:5263
29986 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
29988 " const char *device);\n"
29993 #: ../src/guestfs-actions.pod:5282
29994 msgid "(Added in 1.0.43)"
29998 #: ../src/guestfs-actions.pod:5284
29999 msgid "guestfs_ntfsresize"
30003 #: ../src/guestfs-actions.pod:5286
30007 " guestfs_ntfsresize (guestfs_h *g,\n"
30008 " const char *device);\n"
30013 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5390
30015 "I<This function is deprecated.> In new code, use the L</"
30016 "guestfs_ntfsresize_opts> call instead."
30020 #: ../src/guestfs-actions.pod:5314
30021 msgid "guestfs_ntfsresize_opts"
30025 #: ../src/guestfs-actions.pod:5316
30029 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30030 " const char *device,\n"
30036 #: ../src/guestfs-actions.pod:5326
30039 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30040 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30045 #: ../src/guestfs-actions.pod:5346
30047 "After the resize operation, the filesystem is always marked as requiring a "
30048 "consistency check (for safety). You have to boot into Windows to perform "
30049 "this check and clear this condition. If you I<don't> set the C<force> "
30050 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30051 "times on a single filesystem without booting into Windows between each "
30056 #: ../src/guestfs-actions.pod:5361
30057 msgid "guestfs_ntfsresize_opts_va"
30061 #: ../src/guestfs-actions.pod:5363
30065 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30066 " const char *device,\n"
30067 " va_list args);\n"
30072 #: ../src/guestfs-actions.pod:5368
30073 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30077 #: ../src/guestfs-actions.pod:5372
30078 msgid "guestfs_ntfsresize_opts_argv"
30082 #: ../src/guestfs-actions.pod:5374
30086 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30087 " const char *device,\n"
30088 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
30093 #: ../src/guestfs-actions.pod:5379
30094 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30098 #: ../src/guestfs-actions.pod:5383
30099 msgid "guestfs_ntfsresize_size"
30103 #: ../src/guestfs-actions.pod:5385
30107 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30108 " const char *device,\n"
30109 " int64_t size);\n"
30114 #: ../src/guestfs-actions.pod:5397
30116 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30117 "to specify the new size (in bytes) explicitly."
30121 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5844
30122 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6185
30123 #: ../src/guestfs-actions.pod:7824
30124 msgid "(Added in 1.3.14)"
30128 #: ../src/guestfs-actions.pod:5404
30129 msgid "guestfs_part_add"
30133 #: ../src/guestfs-actions.pod:5406
30137 " guestfs_part_add (guestfs_h *g,\n"
30138 " const char *device,\n"
30139 " const char *prlogex,\n"
30140 " int64_t startsect,\n"
30141 " int64_t endsect);\n"
30146 #: ../src/guestfs-actions.pod:5413
30148 "This command adds a partition to C<device>. If there is no partition table "
30149 "on the device, call C<guestfs_part_init> first."
30153 #: ../src/guestfs-actions.pod:5425
30155 "Creating a partition which covers the whole disk is not so easy. Use "
30156 "C<guestfs_part_disk> to do that."
30160 #: ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:5468
30161 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5605
30162 #: ../src/guestfs-actions.pod:5643 ../src/guestfs-actions.pod:5662
30163 #: ../src/guestfs-actions.pod:5702
30164 msgid "(Added in 1.0.78)"
30168 #: ../src/guestfs-actions.pod:5432
30169 msgid "guestfs_part_del"
30173 #: ../src/guestfs-actions.pod:5434
30177 " guestfs_part_del (guestfs_h *g,\n"
30178 " const char *device,\n"
30184 #: ../src/guestfs-actions.pod:5449
30185 msgid "guestfs_part_disk"
30189 #: ../src/guestfs-actions.pod:5451
30193 " guestfs_part_disk (guestfs_h *g,\n"
30194 " const char *device,\n"
30195 " const char *parttype);\n"
30200 #: ../src/guestfs-actions.pod:5456
30202 "This command is simply a combination of C<guestfs_part_init> followed by "
30203 "C<guestfs_part_add> to create a single primary partition covering the whole "
30208 #: ../src/guestfs-actions.pod:5460
30210 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
30211 "possible values are described in C<guestfs_part_init>."
30215 #: ../src/guestfs-actions.pod:5470
30216 msgid "guestfs_part_get_bootable"
30220 #: ../src/guestfs-actions.pod:5472
30224 " guestfs_part_get_bootable (guestfs_h *g,\n"
30225 " const char *device,\n"
30231 #: ../src/guestfs-actions.pod:5480
30232 msgid "See also C<guestfs_part_set_bootable>."
30236 #: ../src/guestfs-actions.pod:5486
30237 msgid "guestfs_part_get_mbr_id"
30241 #: ../src/guestfs-actions.pod:5488
30245 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
30246 " const char *device,\n"
30252 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5678
30254 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
30255 "undefined results for other partition table types (see "
30256 "C<guestfs_part_get_parttype>)."
30260 #: ../src/guestfs-actions.pod:5504
30261 msgid "guestfs_part_get_parttype"
30265 #: ../src/guestfs-actions.pod:5506
30269 " guestfs_part_get_parttype (guestfs_h *g,\n"
30270 " const char *device);\n"
30275 #: ../src/guestfs-actions.pod:5513
30277 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30278 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
30279 "possible, although unusual. See C<guestfs_part_init> for a full list."
30283 #: ../src/guestfs-actions.pod:5523
30284 msgid "guestfs_part_init"
30288 #: ../src/guestfs-actions.pod:5525
30292 " guestfs_part_init (guestfs_h *g,\n"
30293 " const char *device,\n"
30294 " const char *parttype);\n"
30299 #: ../src/guestfs-actions.pod:5534
30301 "Initially there are no partitions. Following this, you should call "
30302 "C<guestfs_part_add> for each partition required."
30306 #: ../src/guestfs-actions.pod:5607
30307 msgid "guestfs_part_list"
30308 msgstr "guestfs_part_list"
30311 #: ../src/guestfs-actions.pod:5609
30314 " struct guestfs_partition_list *\n"
30315 " guestfs_part_list (guestfs_h *g,\n"
30316 " const char *device);\n"
30319 " struct guestfs_partition_list *\n"
30320 " guestfs_part_list (guestfs_h *g,\n"
30321 " const char *device);\n"
30325 #: ../src/guestfs-actions.pod:5626
30327 "Start of the partition I<in bytes>. To get sectors you have to divide by "
30328 "the device's sector size, see C<guestfs_blockdev_getss>."
30332 #: ../src/guestfs-actions.pod:5639
30334 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
30335 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
30340 #: ../src/guestfs-actions.pod:5645
30341 msgid "guestfs_part_set_bootable"
30345 #: ../src/guestfs-actions.pod:5647
30349 " guestfs_part_set_bootable (guestfs_h *g,\n"
30350 " const char *device,\n"
30352 " int bootable);\n"
30357 #: ../src/guestfs-actions.pod:5664
30358 msgid "guestfs_part_set_mbr_id"
30362 #: ../src/guestfs-actions.pod:5666
30366 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
30367 " const char *device,\n"
30374 #: ../src/guestfs-actions.pod:5686
30375 msgid "guestfs_part_set_name"
30379 #: ../src/guestfs-actions.pod:5688
30383 " guestfs_part_set_name (guestfs_h *g,\n"
30384 " const char *device,\n"
30386 " const char *name);\n"
30391 #: ../src/guestfs-actions.pod:5704
30392 msgid "guestfs_part_to_dev"
30396 #: ../src/guestfs-actions.pod:5706
30400 " guestfs_part_to_dev (guestfs_h *g,\n"
30401 " const char *partition);\n"
30406 #: ../src/guestfs-actions.pod:5714
30408 "The named partition must exist, for example as a string returned from "
30409 "C<guestfs_list_partitions>."
30413 #: ../src/guestfs-actions.pod:5722
30414 msgid "guestfs_ping_daemon"
30418 #: ../src/guestfs-actions.pod:5724
30422 " guestfs_ping_daemon (guestfs_h *g);\n"
30427 #: ../src/guestfs-actions.pod:5736
30428 msgid "guestfs_pread"
30432 #: ../src/guestfs-actions.pod:5738
30436 " guestfs_pread (guestfs_h *g,\n"
30437 " const char *path,\n"
30439 " int64_t offset,\n"
30440 " size_t *size_r);\n"
30445 #: ../src/guestfs-actions.pod:5751
30446 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30450 #: ../src/guestfs-actions.pod:5762
30451 msgid "guestfs_pread_device"
30455 #: ../src/guestfs-actions.pod:5764
30459 " guestfs_pread_device (guestfs_h *g,\n"
30460 " const char *device,\n"
30462 " int64_t offset,\n"
30463 " size_t *size_r);\n"
30468 #: ../src/guestfs-actions.pod:5777
30469 msgid "See also C<guestfs_pread>."
30473 #: ../src/guestfs-actions.pod:5786
30474 msgid "(Added in 1.5.21)"
30478 #: ../src/guestfs-actions.pod:5788
30479 msgid "guestfs_pvcreate"
30483 #: ../src/guestfs-actions.pod:5790
30487 " guestfs_pvcreate (guestfs_h *g,\n"
30488 " const char *device);\n"
30493 #: ../src/guestfs-actions.pod:5802
30494 msgid "guestfs_pvremove"
30498 #: ../src/guestfs-actions.pod:5804
30502 " guestfs_pvremove (guestfs_h *g,\n"
30503 " const char *device);\n"
30508 #: ../src/guestfs-actions.pod:5819
30509 msgid "guestfs_pvresize"
30513 #: ../src/guestfs-actions.pod:5821
30517 " guestfs_pvresize (guestfs_h *g,\n"
30518 " const char *device);\n"
30523 #: ../src/guestfs-actions.pod:5832
30524 msgid "guestfs_pvresize_size"
30528 #: ../src/guestfs-actions.pod:5834
30532 " guestfs_pvresize_size (guestfs_h *g,\n"
30533 " const char *device,\n"
30534 " int64_t size);\n"
30539 #: ../src/guestfs-actions.pod:5839
30541 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30542 "specify the new size (in bytes) explicitly."
30546 #: ../src/guestfs-actions.pod:5846
30547 msgid "guestfs_pvs"
30551 #: ../src/guestfs-actions.pod:5848
30555 " guestfs_pvs (guestfs_h *g);\n"
30560 #: ../src/guestfs-actions.pod:5857
30561 msgid "See also C<guestfs_pvs_full>."
30565 #: ../src/guestfs-actions.pod:5865
30566 msgid "guestfs_pvs_full"
30570 #: ../src/guestfs-actions.pod:5867
30573 " struct guestfs_lvm_pv_list *\n"
30574 " guestfs_pvs_full (guestfs_h *g);\n"
30579 #: ../src/guestfs-actions.pod:5873
30581 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
30582 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
30586 #: ../src/guestfs-actions.pod:5879
30587 msgid "guestfs_pvuuid"
30591 #: ../src/guestfs-actions.pod:5881
30595 " guestfs_pvuuid (guestfs_h *g,\n"
30596 " const char *device);\n"
30601 #: ../src/guestfs-actions.pod:5892
30602 msgid "guestfs_pwrite"
30606 #: ../src/guestfs-actions.pod:5894
30610 " guestfs_pwrite (guestfs_h *g,\n"
30611 " const char *path,\n"
30612 " const char *content,\n"
30613 " size_t content_size,\n"
30614 " int64_t offset);\n"
30619 #: ../src/guestfs-actions.pod:5910
30620 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
30624 #: ../src/guestfs-actions.pod:5919
30625 msgid "guestfs_pwrite_device"
30629 #: ../src/guestfs-actions.pod:5921
30633 " guestfs_pwrite_device (guestfs_h *g,\n"
30634 " const char *device,\n"
30635 " const char *content,\n"
30636 " size_t content_size,\n"
30637 " int64_t offset);\n"
30642 #: ../src/guestfs-actions.pod:5936
30643 msgid "See also C<guestfs_pwrite>."
30647 #: ../src/guestfs-actions.pod:5943
30648 msgid "(Added in 1.5.20)"
30652 #: ../src/guestfs-actions.pod:5945
30653 msgid "guestfs_read_file"
30657 #: ../src/guestfs-actions.pod:5947
30661 " guestfs_read_file (guestfs_h *g,\n"
30662 " const char *path,\n"
30663 " size_t *size_r);\n"
30668 #: ../src/guestfs-actions.pod:5955
30670 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
30671 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
30672 "function is limited in the total size of file that can be handled."
30676 #: ../src/guestfs-actions.pod:5967
30677 msgid "(Added in 1.0.63)"
30681 #: ../src/guestfs-actions.pod:5969
30682 msgid "guestfs_read_lines"
30686 #: ../src/guestfs-actions.pod:5971
30690 " guestfs_read_lines (guestfs_h *g,\n"
30691 " const char *path);\n"
30696 #: ../src/guestfs-actions.pod:5980
30698 "Note that this function cannot correctly handle binary files (specifically, "
30699 "files containing C<\\0> character which is treated as end of line). For "
30700 "those you need to use the C<guestfs_read_file> function which has a more "
30701 "complex interface."
30705 #: ../src/guestfs-actions.pod:5991
30706 msgid "guestfs_readdir"
30710 #: ../src/guestfs-actions.pod:5993
30713 " struct guestfs_dirent_list *\n"
30714 " guestfs_readdir (guestfs_h *g,\n"
30715 " const char *dir);\n"
30720 #: ../src/guestfs-actions.pod:6047
30722 "This function is primarily intended for use by programs. To get a simple "
30723 "list of names, use C<guestfs_ls>. To get a printable directory for human "
30724 "consumption, use C<guestfs_ll>."
30728 #: ../src/guestfs-actions.pod:6051
30730 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
30731 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
30735 #: ../src/guestfs-actions.pod:6057
30736 msgid "guestfs_readlink"
30740 #: ../src/guestfs-actions.pod:6059
30744 " guestfs_readlink (guestfs_h *g,\n"
30745 " const char *path);\n"
30750 #: ../src/guestfs-actions.pod:6070
30751 msgid "guestfs_readlinklist"
30755 #: ../src/guestfs-actions.pod:6072
30759 " guestfs_readlinklist (guestfs_h *g,\n"
30760 " const char *path,\n"
30761 " char *const *names);\n"
30766 #: ../src/guestfs-actions.pod:6105
30767 msgid "guestfs_realpath"
30771 #: ../src/guestfs-actions.pod:6107
30775 " guestfs_realpath (guestfs_h *g,\n"
30776 " const char *path);\n"
30781 #: ../src/guestfs-actions.pod:6119
30782 msgid "guestfs_removexattr"
30786 #: ../src/guestfs-actions.pod:6121
30790 " guestfs_removexattr (guestfs_h *g,\n"
30791 " const char *xattr,\n"
30792 " const char *path);\n"
30797 #: ../src/guestfs-actions.pod:6129
30798 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
30802 #: ../src/guestfs-actions.pod:6135
30803 msgid "guestfs_resize2fs"
30807 #: ../src/guestfs-actions.pod:6137
30811 " guestfs_resize2fs (guestfs_h *g,\n"
30812 " const char *device);\n"
30817 #: ../src/guestfs-actions.pod:6144
30819 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
30820 "C<device> before calling this command. For unknown reasons C<resize2fs> "
30821 "sometimes gives an error about this and sometimes not. In any case, it is "
30822 "always safe to call C<guestfs_e2fsck_f> before calling this function."
30826 #: ../src/guestfs-actions.pod:6154
30827 msgid "guestfs_resize2fs_M"
30831 #: ../src/guestfs-actions.pod:6156
30835 " guestfs_resize2fs_M (guestfs_h *g,\n"
30836 " const char *device);\n"
30841 #: ../src/guestfs-actions.pod:6160
30843 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
30844 "resized to its minimum size. This works like the I<-M> option to the "
30845 "C<resize2fs> command."
30849 #: ../src/guestfs-actions.pod:6164
30851 "To get the resulting size of the filesystem you should call "
30852 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
30853 "These two numbers, multiplied together, give the resulting size of the "
30854 "minimal filesystem in bytes."
30858 #: ../src/guestfs-actions.pod:6173
30859 msgid "guestfs_resize2fs_size"
30863 #: ../src/guestfs-actions.pod:6175
30867 " guestfs_resize2fs_size (guestfs_h *g,\n"
30868 " const char *device,\n"
30869 " int64_t size);\n"
30874 #: ../src/guestfs-actions.pod:6180
30876 "This command is the same as C<guestfs_resize2fs> except that it allows you "
30877 "to specify the new size (in bytes) explicitly."
30881 #: ../src/guestfs-actions.pod:6187
30886 #: ../src/guestfs-actions.pod:6189
30890 " guestfs_rm (guestfs_h *g,\n"
30891 " const char *path);\n"
30896 #: ../src/guestfs-actions.pod:6199
30897 msgid "guestfs_rm_rf"
30901 #: ../src/guestfs-actions.pod:6201
30905 " guestfs_rm_rf (guestfs_h *g,\n"
30906 " const char *path);\n"
30911 #: ../src/guestfs-actions.pod:6213
30912 msgid "guestfs_rmdir"
30916 #: ../src/guestfs-actions.pod:6215
30920 " guestfs_rmdir (guestfs_h *g,\n"
30921 " const char *path);\n"
30926 #: ../src/guestfs-actions.pod:6225
30927 msgid "guestfs_rmmountpoint"
30931 #: ../src/guestfs-actions.pod:6227
30935 " guestfs_rmmountpoint (guestfs_h *g,\n"
30936 " const char *exemptpath);\n"
30941 #: ../src/guestfs-actions.pod:6231
30943 "This calls removes a mountpoint that was previously created with "
30944 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
30948 #: ../src/guestfs-actions.pod:6239
30949 msgid "guestfs_scrub_device"
30953 #: ../src/guestfs-actions.pod:6241
30957 " guestfs_scrub_device (guestfs_h *g,\n"
30958 " const char *device);\n"
30963 #: ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6274
30964 #: ../src/guestfs-actions.pod:6293
30965 msgid "(Added in 1.0.52)"
30969 #: ../src/guestfs-actions.pod:6258
30970 msgid "guestfs_scrub_file"
30974 #: ../src/guestfs-actions.pod:6260
30978 " guestfs_scrub_file (guestfs_h *g,\n"
30979 " const char *file);\n"
30984 #: ../src/guestfs-actions.pod:6276
30985 msgid "guestfs_scrub_freespace"
30989 #: ../src/guestfs-actions.pod:6278
30993 " guestfs_scrub_freespace (guestfs_h *g,\n"
30994 " const char *dir);\n"
30999 #: ../src/guestfs-actions.pod:6282
31001 "This command creates the directory C<dir> and then fills it with files until "
31002 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31003 "and deletes them. The intention is to scrub any free space on the partition "
31004 "containing C<dir>."
31008 #: ../src/guestfs-actions.pod:6295
31009 msgid "guestfs_set_append"
31013 #: ../src/guestfs-actions.pod:6297
31017 " guestfs_set_append (guestfs_h *g,\n"
31018 " const char *append);\n"
31023 #: ../src/guestfs-actions.pod:6314
31024 msgid "guestfs_set_attach_method"
31028 #: ../src/guestfs-actions.pod:6316
31032 " guestfs_set_attach_method (guestfs_h *g,\n"
31033 " const char *attachmethod);\n"
31038 #: ../src/guestfs-actions.pod:6344
31039 msgid "guestfs_set_autosync"
31043 #: ../src/guestfs-actions.pod:6346
31047 " guestfs_set_autosync (guestfs_h *g,\n"
31048 " int autosync);\n"
31053 #: ../src/guestfs-actions.pod:6362
31054 msgid "guestfs_set_direct"
31058 #: ../src/guestfs-actions.pod:6364
31062 " guestfs_set_direct (guestfs_h *g,\n"
31068 #: ../src/guestfs-actions.pod:6372
31070 "One consequence of this is that log messages aren't caught by the library "
31071 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31076 #: ../src/guestfs-actions.pod:6385
31077 msgid "guestfs_set_e2label"
31081 #: ../src/guestfs-actions.pod:6387
31085 " guestfs_set_e2label (guestfs_h *g,\n"
31086 " const char *device,\n"
31087 " const char *label);\n"
31092 #: ../src/guestfs-actions.pod:6396
31094 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31095 "the existing label on a filesystem."
31099 #: ../src/guestfs-actions.pod:6403
31100 msgid "guestfs_set_e2uuid"
31104 #: ../src/guestfs-actions.pod:6405
31108 " guestfs_set_e2uuid (guestfs_h *g,\n"
31109 " const char *device,\n"
31110 " const char *uuid);\n"
31115 #: ../src/guestfs-actions.pod:6415
31117 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31118 "the existing UUID of a filesystem."
31122 #: ../src/guestfs-actions.pod:6422
31123 msgid "guestfs_set_memsize"
31127 #: ../src/guestfs-actions.pod:6424
31131 " guestfs_set_memsize (guestfs_h *g,\n"
31137 #: ../src/guestfs-actions.pod:6428
31139 "This sets the memory size in megabytes allocated to the qemu subprocess. "
31140 "This only has any effect if called before C<guestfs_launch>."
31144 #: ../src/guestfs-actions.pod:6443
31145 msgid "guestfs_set_network"
31149 #: ../src/guestfs-actions.pod:6445
31153 " guestfs_set_network (guestfs_h *g,\n"
31159 #: ../src/guestfs-actions.pod:6455
31161 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31166 #: ../src/guestfs-actions.pod:6462
31167 msgid "guestfs_set_path"
31171 #: ../src/guestfs-actions.pod:6464
31175 " guestfs_set_path (guestfs_h *g,\n"
31176 " const char *searchpath);\n"
31181 #: ../src/guestfs-actions.pod:6479
31182 msgid "guestfs_set_pgroup"
31186 #: ../src/guestfs-actions.pod:6481
31190 " guestfs_set_pgroup (guestfs_h *g,\n"
31196 #: ../src/guestfs-actions.pod:6498
31197 msgid "guestfs_set_qemu"
31201 #: ../src/guestfs-actions.pod:6500
31205 " guestfs_set_qemu (guestfs_h *g,\n"
31206 " const char *qemu);\n"
31211 #: ../src/guestfs-actions.pod:6526
31212 msgid "guestfs_set_recovery_proc"
31216 #: ../src/guestfs-actions.pod:6528
31220 " guestfs_set_recovery_proc (guestfs_h *g,\n"
31221 " int recoveryproc);\n"
31226 #: ../src/guestfs-actions.pod:6532
31228 "If this is called with the parameter C<false> then C<guestfs_launch> does "
31229 "not create a recovery process. The purpose of the recovery process is to "
31230 "stop runaway qemu processes in the case where the main program aborts "
31235 #: ../src/guestfs-actions.pod:6537
31237 "This only has any effect if called before C<guestfs_launch>, and the default "
31242 #: ../src/guestfs-actions.pod:6550
31243 msgid "guestfs_set_selinux"
31247 #: ../src/guestfs-actions.pod:6552
31251 " guestfs_set_selinux (guestfs_h *g,\n"
31257 #: ../src/guestfs-actions.pod:6569
31259 #| msgid "guestfs_ln_s"
31260 msgid "guestfs_set_smp"
31261 msgstr "guestfs_ln_s"
31264 #: ../src/guestfs-actions.pod:6571
31268 #| " guestfs_mkdir_p (guestfs_h *g,\n"
31269 #| " const char *path);\n"
31273 " guestfs_set_smp (guestfs_h *g,\n"
31278 " guestfs_mkdir_p (guestfs_h *g,\n"
31279 " const char *path);\n"
31283 #: ../src/guestfs-actions.pod:6579
31284 msgid "This function must be called before C<guestfs_launch>."
31288 #: ../src/guestfs-actions.pod:6585
31289 msgid "guestfs_set_trace"
31293 #: ../src/guestfs-actions.pod:6587
31297 " guestfs_set_trace (guestfs_h *g,\n"
31303 #: ../src/guestfs-actions.pod:6601
31305 "Trace messages are normally sent to C<stderr>, unless you register a "
31306 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31310 #: ../src/guestfs-actions.pod:6609
31311 msgid "guestfs_set_verbose"
31315 #: ../src/guestfs-actions.pod:6611
31319 " guestfs_set_verbose (guestfs_h *g,\n"
31325 #: ../src/guestfs-actions.pod:6620
31327 "Verbose messages are normally sent to C<stderr>, unless you register a "
31328 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31332 #: ../src/guestfs-actions.pod:6628
31333 msgid "guestfs_setcon"
31337 #: ../src/guestfs-actions.pod:6630
31341 " guestfs_setcon (guestfs_h *g,\n"
31342 " const char *context);\n"
31347 #: ../src/guestfs-actions.pod:6643
31348 msgid "guestfs_setxattr"
31352 #: ../src/guestfs-actions.pod:6645
31356 " guestfs_setxattr (guestfs_h *g,\n"
31357 " const char *xattr,\n"
31358 " const char *val,\n"
31360 " const char *path);\n"
31365 #: ../src/guestfs-actions.pod:6656
31366 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
31370 #: ../src/guestfs-actions.pod:6662
31371 msgid "guestfs_sfdisk"
31375 #: ../src/guestfs-actions.pod:6664
31379 " guestfs_sfdisk (guestfs_h *g,\n"
31380 " const char *device,\n"
31384 " char *const *lines);\n"
31389 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6716
31390 #: ../src/guestfs-actions.pod:6750
31392 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31397 #: ../src/guestfs-actions.pod:6699
31399 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31403 #: ../src/guestfs-actions.pod:6709
31404 msgid "guestfs_sfdiskM"
31408 #: ../src/guestfs-actions.pod:6711
31412 " guestfs_sfdiskM (guestfs_h *g,\n"
31413 " const char *device,\n"
31414 " char *const *lines);\n"
31419 #: ../src/guestfs-actions.pod:6723
31421 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31422 "partition sizes are specified in megabytes only (rounded to the nearest "
31423 "cylinder) and you don't need to specify the cyls, heads and sectors "
31424 "parameters which were rarely if ever used anyway."
31428 #: ../src/guestfs-actions.pod:6729
31430 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31431 "C<guestfs_part_disk>"
31435 #: ../src/guestfs-actions.pod:6739
31436 msgid "guestfs_sfdisk_N"
31440 #: ../src/guestfs-actions.pod:6741
31444 " guestfs_sfdisk_N (guestfs_h *g,\n"
31445 " const char *device,\n"
31450 " const char *line);\n"
31455 #: ../src/guestfs-actions.pod:6760
31457 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
31458 "for the cyls/heads/sectors parameters."
31462 #: ../src/guestfs-actions.pod:6763
31463 msgid "See also: C<guestfs_part_add>"
31467 #: ../src/guestfs-actions.pod:6772
31468 msgid "guestfs_sfdisk_disk_geometry"
31472 #: ../src/guestfs-actions.pod:6774
31476 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31477 " const char *device);\n"
31482 #: ../src/guestfs-actions.pod:6778
31484 "This displays the disk geometry of C<device> read from the partition table. "
31485 "Especially in the case where the underlying block device has been resized, "
31486 "this can be different from the kernel's idea of the geometry (see "
31487 "C<guestfs_sfdisk_kernel_geometry>)."
31491 #: ../src/guestfs-actions.pod:6791
31492 msgid "guestfs_sfdisk_kernel_geometry"
31496 #: ../src/guestfs-actions.pod:6793
31500 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31501 " const char *device);\n"
31506 #: ../src/guestfs-actions.pod:6807
31507 msgid "guestfs_sfdisk_l"
31511 #: ../src/guestfs-actions.pod:6809
31515 " guestfs_sfdisk_l (guestfs_h *g,\n"
31516 " const char *device);\n"
31521 #: ../src/guestfs-actions.pod:6813
31523 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31528 #: ../src/guestfs-actions.pod:6824
31529 msgid "See also: C<guestfs_part_list>"
31533 #: ../src/guestfs-actions.pod:6831
31538 #: ../src/guestfs-actions.pod:6833
31542 " guestfs_sh (guestfs_h *g,\n"
31543 " const char *command);\n"
31548 #: ../src/guestfs-actions.pod:6840
31549 msgid "This is like C<guestfs_command>, but passes the command to:"
31553 #: ../src/guestfs-actions.pod:6848
31554 msgid "All the provisos about C<guestfs_command> apply to this call."
31558 #: ../src/guestfs-actions.pod:6855
31559 msgid "guestfs_sh_lines"
31563 #: ../src/guestfs-actions.pod:6857
31567 " guestfs_sh_lines (guestfs_h *g,\n"
31568 " const char *command);\n"
31573 #: ../src/guestfs-actions.pod:6861
31575 "This is the same as C<guestfs_sh>, but splits the result into a list of "
31580 #: ../src/guestfs-actions.pod:6864
31581 msgid "See also: C<guestfs_command_lines>"
31585 #: ../src/guestfs-actions.pod:6872
31586 msgid "guestfs_sleep"
31590 #: ../src/guestfs-actions.pod:6874
31594 " guestfs_sleep (guestfs_h *g,\n"
31600 #: ../src/guestfs-actions.pod:6882
31601 msgid "(Added in 1.0.41)"
31605 #: ../src/guestfs-actions.pod:6884 ../src/guestfs-structs.pod:109
31606 msgid "guestfs_stat"
31610 #: ../src/guestfs-actions.pod:6886
31613 " struct guestfs_stat *\n"
31614 " guestfs_stat (guestfs_h *g,\n"
31615 " const char *path);\n"
31620 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-structs.pod:135
31621 msgid "guestfs_statvfs"
31625 #: ../src/guestfs-actions.pod:6902
31628 " struct guestfs_statvfs *\n"
31629 " guestfs_statvfs (guestfs_h *g,\n"
31630 " const char *path);\n"
31635 #: ../src/guestfs-actions.pod:6912
31637 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
31638 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
31642 #: ../src/guestfs-actions.pod:6918
31643 msgid "guestfs_strings"
31647 #: ../src/guestfs-actions.pod:6920
31651 " guestfs_strings (guestfs_h *g,\n"
31652 " const char *path);\n"
31657 #: ../src/guestfs-actions.pod:6936
31658 msgid "guestfs_strings_e"
31662 #: ../src/guestfs-actions.pod:6938
31666 " guestfs_strings_e (guestfs_h *g,\n"
31667 " const char *encoding,\n"
31668 " const char *path);\n"
31673 #: ../src/guestfs-actions.pod:6943
31675 "This is like the C<guestfs_strings> command, but allows you to specify the "
31676 "encoding of strings that are looked for in the source file C<path>."
31680 #: ../src/guestfs-actions.pod:6953
31682 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
31683 "ISO-8859-X (this is what C<guestfs_strings> uses)."
31687 #: ../src/guestfs-actions.pod:6991
31688 msgid "guestfs_swapoff_device"
31692 #: ../src/guestfs-actions.pod:6993
31696 " guestfs_swapoff_device (guestfs_h *g,\n"
31697 " const char *device);\n"
31702 #: ../src/guestfs-actions.pod:6997
31704 "This command disables the libguestfs appliance swap device or partition "
31705 "named C<device>. See C<guestfs_swapon_device>."
31709 #: ../src/guestfs-actions.pod:7005
31710 msgid "guestfs_swapoff_file"
31714 #: ../src/guestfs-actions.pod:7007
31718 " guestfs_swapoff_file (guestfs_h *g,\n"
31719 " const char *file);\n"
31724 #: ../src/guestfs-actions.pod:7017
31725 msgid "guestfs_swapoff_label"
31729 #: ../src/guestfs-actions.pod:7019
31733 " guestfs_swapoff_label (guestfs_h *g,\n"
31734 " const char *label);\n"
31739 #: ../src/guestfs-actions.pod:7030
31740 msgid "guestfs_swapoff_uuid"
31744 #: ../src/guestfs-actions.pod:7032
31748 " guestfs_swapoff_uuid (guestfs_h *g,\n"
31749 " const char *uuid);\n"
31754 #: ../src/guestfs-actions.pod:7043
31755 msgid "guestfs_swapon_device"
31759 #: ../src/guestfs-actions.pod:7045
31763 " guestfs_swapon_device (guestfs_h *g,\n"
31764 " const char *device);\n"
31769 #: ../src/guestfs-actions.pod:7049
31771 "This command enables the libguestfs appliance to use the swap device or "
31772 "partition named C<device>. The increased memory is made available for all "
31773 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
31777 #: ../src/guestfs-actions.pod:7065
31778 msgid "guestfs_swapon_file"
31782 #: ../src/guestfs-actions.pod:7067
31786 " guestfs_swapon_file (guestfs_h *g,\n"
31787 " const char *file);\n"
31792 #: ../src/guestfs-actions.pod:7071
31794 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
31799 #: ../src/guestfs-actions.pod:7078
31800 msgid "guestfs_swapon_label"
31804 #: ../src/guestfs-actions.pod:7080
31808 " guestfs_swapon_label (guestfs_h *g,\n"
31809 " const char *label);\n"
31814 #: ../src/guestfs-actions.pod:7084
31816 "This command enables swap to a labeled swap partition. See "
31817 "C<guestfs_swapon_device> for other notes."
31821 #: ../src/guestfs-actions.pod:7091
31822 msgid "guestfs_swapon_uuid"
31826 #: ../src/guestfs-actions.pod:7093
31830 " guestfs_swapon_uuid (guestfs_h *g,\n"
31831 " const char *uuid);\n"
31836 #: ../src/guestfs-actions.pod:7097
31838 "This command enables swap to a swap partition with the given UUID. See "
31839 "C<guestfs_swapon_device> for other notes."
31843 #: ../src/guestfs-actions.pod:7104
31844 msgid "guestfs_sync"
31848 #: ../src/guestfs-actions.pod:7106
31852 " guestfs_sync (guestfs_h *g);\n"
31857 #: ../src/guestfs-actions.pod:7119
31858 msgid "guestfs_tail"
31862 #: ../src/guestfs-actions.pod:7121
31866 " guestfs_tail (guestfs_h *g,\n"
31867 " const char *path);\n"
31872 #: ../src/guestfs-actions.pod:7137
31873 msgid "guestfs_tail_n"
31877 #: ../src/guestfs-actions.pod:7139
31881 " guestfs_tail_n (guestfs_h *g,\n"
31883 " const char *path);\n"
31888 #: ../src/guestfs-actions.pod:7161
31889 msgid "guestfs_tar_in"
31893 #: ../src/guestfs-actions.pod:7163
31897 " guestfs_tar_in (guestfs_h *g,\n"
31898 " const char *tarfile,\n"
31899 " const char *directory);\n"
31904 #: ../src/guestfs-actions.pod:7171
31906 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
31910 #: ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7193
31911 #: ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7225
31912 msgid "(Added in 1.0.3)"
31916 #: ../src/guestfs-actions.pod:7178
31917 msgid "guestfs_tar_out"
31921 #: ../src/guestfs-actions.pod:7180
31925 " guestfs_tar_out (guestfs_h *g,\n"
31926 " const char *directory,\n"
31927 " const char *tarfile);\n"
31932 #: ../src/guestfs-actions.pod:7188
31934 "To download a compressed tarball, use C<guestfs_tgz_out> or "
31935 "C<guestfs_txz_out>."
31939 #: ../src/guestfs-actions.pod:7195
31940 msgid "guestfs_tgz_in"
31944 #: ../src/guestfs-actions.pod:7197
31948 " guestfs_tgz_in (guestfs_h *g,\n"
31949 " const char *tarball,\n"
31950 " const char *directory);\n"
31955 #: ../src/guestfs-actions.pod:7205
31956 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
31960 #: ../src/guestfs-actions.pod:7211
31961 msgid "guestfs_tgz_out"
31965 #: ../src/guestfs-actions.pod:7213
31969 " guestfs_tgz_out (guestfs_h *g,\n"
31970 " const char *directory,\n"
31971 " const char *tarball);\n"
31976 #: ../src/guestfs-actions.pod:7221
31977 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
31981 #: ../src/guestfs-actions.pod:7227
31982 msgid "guestfs_touch"
31986 #: ../src/guestfs-actions.pod:7229
31990 " guestfs_touch (guestfs_h *g,\n"
31991 " const char *path);\n"
31996 #: ../src/guestfs-actions.pod:7244
31997 msgid "guestfs_truncate"
32001 #: ../src/guestfs-actions.pod:7246
32005 " guestfs_truncate (guestfs_h *g,\n"
32006 " const char *path);\n"
32011 #: ../src/guestfs-actions.pod:7257
32012 msgid "guestfs_truncate_size"
32016 #: ../src/guestfs-actions.pod:7259
32020 " guestfs_truncate_size (guestfs_h *g,\n"
32021 " const char *path,\n"
32022 " int64_t size);\n"
32027 #: ../src/guestfs-actions.pod:7267
32029 "If the current file size is less than C<size> then the file is extended to "
32030 "the required size with zero bytes. This creates a sparse file (ie. disk "
32031 "blocks are not allocated for the file until you write to it). To create a "
32032 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32036 #: ../src/guestfs-actions.pod:7277
32037 msgid "guestfs_tune2fs_l"
32041 #: ../src/guestfs-actions.pod:7279
32045 " guestfs_tune2fs_l (guestfs_h *g,\n"
32046 " const char *device);\n"
32051 #: ../src/guestfs-actions.pod:7299
32052 msgid "guestfs_txz_in"
32056 #: ../src/guestfs-actions.pod:7301
32060 " guestfs_txz_in (guestfs_h *g,\n"
32061 " const char *tarball,\n"
32062 " const char *directory);\n"
32067 #: ../src/guestfs-actions.pod:7313
32068 msgid "guestfs_txz_out"
32072 #: ../src/guestfs-actions.pod:7315
32076 " guestfs_txz_out (guestfs_h *g,\n"
32077 " const char *directory,\n"
32078 " const char *tarball);\n"
32083 #: ../src/guestfs-actions.pod:7327
32084 msgid "guestfs_umask"
32088 #: ../src/guestfs-actions.pod:7329
32092 " guestfs_umask (guestfs_h *g,\n"
32098 #: ../src/guestfs-actions.pod:7345
32100 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32101 "C<guestfs_mkdir>."
32105 #: ../src/guestfs-actions.pod:7354
32106 msgid "guestfs_umount"
32110 #: ../src/guestfs-actions.pod:7356
32114 " guestfs_umount (guestfs_h *g,\n"
32115 " const char *pathordevice);\n"
32120 #: ../src/guestfs-actions.pod:7368
32121 msgid "guestfs_umount_all"
32125 #: ../src/guestfs-actions.pod:7370
32129 " guestfs_umount_all (guestfs_h *g);\n"
32134 #: ../src/guestfs-actions.pod:7381
32135 msgid "guestfs_upload"
32139 #: ../src/guestfs-actions.pod:7383
32143 " guestfs_upload (guestfs_h *g,\n"
32144 " const char *filename,\n"
32145 " const char *remotefilename);\n"
32150 #: ../src/guestfs-actions.pod:7393
32151 msgid "See also C<guestfs_download>."
32155 #: ../src/guestfs-actions.pod:7404
32156 msgid "guestfs_upload_offset"
32160 #: ../src/guestfs-actions.pod:7406
32164 " guestfs_upload_offset (guestfs_h *g,\n"
32165 " const char *filename,\n"
32166 " const char *remotefilename,\n"
32167 " int64_t offset);\n"
32172 #: ../src/guestfs-actions.pod:7422
32174 "Note that there is no limit on the amount of data that can be uploaded with "
32175 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32176 "full amount unless an error occurs."
32180 #: ../src/guestfs-actions.pod:7427
32181 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32185 #: ../src/guestfs-actions.pod:7438
32186 msgid "guestfs_utimens"
32190 #: ../src/guestfs-actions.pod:7440
32194 " guestfs_utimens (guestfs_h *g,\n"
32195 " const char *path,\n"
32196 " int64_t atsecs,\n"
32197 " int64_t atnsecs,\n"
32198 " int64_t mtsecs,\n"
32199 " int64_t mtnsecs);\n"
32204 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-structs.pod:175
32205 msgid "guestfs_version"
32209 #: ../src/guestfs-actions.pod:7471
32212 " struct guestfs_version *\n"
32213 " guestfs_version (guestfs_h *g);\n"
32218 #: ../src/guestfs-actions.pod:7499
32220 "I<Note:> Don't use this call to test for availability of features. In "
32221 "enterprise distributions we backport features from later versions into "
32222 "earlier versions, making this an unreliable way to test for features. Use "
32223 "C<guestfs_available> instead."
32227 #: ../src/guestfs-actions.pod:7505
32229 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
32230 "error. I<The caller must call C<guestfs_free_version> after use>."
32234 #: ../src/guestfs-actions.pod:7509
32235 msgid "(Added in 1.0.58)"
32239 #: ../src/guestfs-actions.pod:7511
32240 msgid "guestfs_vfs_label"
32244 #: ../src/guestfs-actions.pod:7513
32248 " guestfs_vfs_label (guestfs_h *g,\n"
32249 " const char *device);\n"
32254 #: ../src/guestfs-actions.pod:7522
32255 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
32259 #: ../src/guestfs-actions.pod:7527 ../src/guestfs-actions.pod:7564
32260 msgid "(Added in 1.3.18)"
32264 #: ../src/guestfs-actions.pod:7529
32265 msgid "guestfs_vfs_type"
32269 #: ../src/guestfs-actions.pod:7531
32273 " guestfs_vfs_type (guestfs_h *g,\n"
32274 " const char *device);\n"
32279 #: ../src/guestfs-actions.pod:7548
32280 msgid "guestfs_vfs_uuid"
32284 #: ../src/guestfs-actions.pod:7550
32288 " guestfs_vfs_uuid (guestfs_h *g,\n"
32289 " const char *device);\n"
32294 #: ../src/guestfs-actions.pod:7559
32295 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
32299 #: ../src/guestfs-actions.pod:7566
32300 msgid "guestfs_vg_activate"
32304 #: ../src/guestfs-actions.pod:7568
32308 " guestfs_vg_activate (guestfs_h *g,\n"
32310 " char *const *volgroups);\n"
32315 #: ../src/guestfs-actions.pod:7585
32316 msgid "guestfs_vg_activate_all"
32320 #: ../src/guestfs-actions.pod:7587
32324 " guestfs_vg_activate_all (guestfs_h *g,\n"
32325 " int activate);\n"
32330 #: ../src/guestfs-actions.pod:7600
32331 msgid "guestfs_vgcreate"
32335 #: ../src/guestfs-actions.pod:7602
32339 " guestfs_vgcreate (guestfs_h *g,\n"
32340 " const char *volgroup,\n"
32341 " char *const *physvols);\n"
32346 #: ../src/guestfs-actions.pod:7614
32347 msgid "guestfs_vglvuuids"
32351 #: ../src/guestfs-actions.pod:7616
32355 " guestfs_vglvuuids (guestfs_h *g,\n"
32356 " const char *vgname);\n"
32361 #: ../src/guestfs-actions.pod:7623
32363 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
32364 "associate logical volumes and volume groups."
32368 #: ../src/guestfs-actions.pod:7626
32369 msgid "See also C<guestfs_vgpvuuids>."
32373 #: ../src/guestfs-actions.pod:7634
32374 msgid "guestfs_vgpvuuids"
32378 #: ../src/guestfs-actions.pod:7636
32382 " guestfs_vgpvuuids (guestfs_h *g,\n"
32383 " const char *vgname);\n"
32388 #: ../src/guestfs-actions.pod:7643
32390 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32391 "associate physical volumes and volume groups."
32395 #: ../src/guestfs-actions.pod:7646
32396 msgid "See also C<guestfs_vglvuuids>."
32400 #: ../src/guestfs-actions.pod:7654
32401 msgid "guestfs_vgremove"
32405 #: ../src/guestfs-actions.pod:7656
32409 " guestfs_vgremove (guestfs_h *g,\n"
32410 " const char *vgname);\n"
32415 #: ../src/guestfs-actions.pod:7669
32416 msgid "guestfs_vgrename"
32420 #: ../src/guestfs-actions.pod:7671
32424 " guestfs_vgrename (guestfs_h *g,\n"
32425 " const char *volgroup,\n"
32426 " const char *newvolgroup);\n"
32431 #: ../src/guestfs-actions.pod:7682
32432 msgid "guestfs_vgs"
32436 #: ../src/guestfs-actions.pod:7684
32440 " guestfs_vgs (guestfs_h *g);\n"
32445 #: ../src/guestfs-actions.pod:7693
32446 msgid "See also C<guestfs_vgs_full>."
32450 #: ../src/guestfs-actions.pod:7701
32451 msgid "guestfs_vgs_full"
32455 #: ../src/guestfs-actions.pod:7703
32458 " struct guestfs_lvm_vg_list *\n"
32459 " guestfs_vgs_full (guestfs_h *g);\n"
32464 #: ../src/guestfs-actions.pod:7709
32466 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32467 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
32471 #: ../src/guestfs-actions.pod:7715
32472 msgid "guestfs_vgscan"
32476 #: ../src/guestfs-actions.pod:7717
32480 " guestfs_vgscan (guestfs_h *g);\n"
32485 #: ../src/guestfs-actions.pod:7727
32486 msgid "guestfs_vguuid"
32490 #: ../src/guestfs-actions.pod:7729
32494 " guestfs_vguuid (guestfs_h *g,\n"
32495 " const char *vgname);\n"
32500 #: ../src/guestfs-actions.pod:7740
32501 msgid "guestfs_wait_ready"
32505 #: ../src/guestfs-actions.pod:7742
32509 " guestfs_wait_ready (guestfs_h *g);\n"
32514 #: ../src/guestfs-actions.pod:7745
32516 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32521 #: ../src/guestfs-actions.pod:7752
32522 msgid "This function is a no op."
32526 #: ../src/guestfs-actions.pod:7754
32528 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32529 "calling C<guestfs_launch> to wait for the launch to complete. However this "
32530 "is no longer necessary because C<guestfs_launch> now does the waiting."
32534 #: ../src/guestfs-actions.pod:7759
32536 "If you see any calls to this function in code then you can just remove them, "
32537 "unless you want to retain compatibility with older versions of the API."
32541 #: ../src/guestfs-actions.pod:7767
32542 msgid "guestfs_wc_c"
32546 #: ../src/guestfs-actions.pod:7769
32550 " guestfs_wc_c (guestfs_h *g,\n"
32551 " const char *path);\n"
32556 #: ../src/guestfs-actions.pod:7780
32557 msgid "guestfs_wc_l"
32561 #: ../src/guestfs-actions.pod:7782
32565 " guestfs_wc_l (guestfs_h *g,\n"
32566 " const char *path);\n"
32571 #: ../src/guestfs-actions.pod:7793
32572 msgid "guestfs_wc_w"
32576 #: ../src/guestfs-actions.pod:7795
32580 " guestfs_wc_w (guestfs_h *g,\n"
32581 " const char *path);\n"
32586 #: ../src/guestfs-actions.pod:7806
32587 msgid "guestfs_write"
32591 #: ../src/guestfs-actions.pod:7808
32595 " guestfs_write (guestfs_h *g,\n"
32596 " const char *path,\n"
32597 " const char *content,\n"
32598 " size_t content_size);\n"
32603 #: ../src/guestfs-actions.pod:7817
32604 msgid "See also C<guestfs_write_append>."
32608 #: ../src/guestfs-actions.pod:7826
32609 msgid "guestfs_write_append"
32613 #: ../src/guestfs-actions.pod:7828
32617 " guestfs_write_append (guestfs_h *g,\n"
32618 " const char *path,\n"
32619 " const char *content,\n"
32620 " size_t content_size);\n"
32625 #: ../src/guestfs-actions.pod:7837
32626 msgid "See also C<guestfs_write>."
32630 #: ../src/guestfs-actions.pod:7846
32631 msgid "guestfs_write_file"
32632 msgstr "guestfs_write_file"
32635 #: ../src/guestfs-actions.pod:7848
32639 " guestfs_write_file (guestfs_h *g,\n"
32640 " const char *path,\n"
32641 " const char *content,\n"
32646 " guestfs_write_file (guestfs_h *g,\n"
32647 " const char *path,\n"
32648 " const char *content,\n"
32653 #: ../src/guestfs-actions.pod:7854
32655 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
32660 #: ../src/guestfs-actions.pod:7879
32661 msgid "guestfs_zegrep"
32662 msgstr "guestfs_zegrep"
32665 #: ../src/guestfs-actions.pod:7881
32669 " guestfs_zegrep (guestfs_h *g,\n"
32670 " const char *regex,\n"
32671 " const char *path);\n"
32675 " guestfs_zegrep (guestfs_h *g,\n"
32676 " const char *regex,\n"
32677 " const char *path);\n"
32681 #: ../src/guestfs-actions.pod:7898
32682 msgid "guestfs_zegrepi"
32683 msgstr "guestfs_zegrepi"
32686 #: ../src/guestfs-actions.pod:7900
32690 " guestfs_zegrepi (guestfs_h *g,\n"
32691 " const char *regex,\n"
32692 " const char *path);\n"
32696 " guestfs_zegrepi (guestfs_h *g,\n"
32697 " const char *regex,\n"
32698 " const char *path);\n"
32702 #: ../src/guestfs-actions.pod:7917
32703 msgid "guestfs_zero"
32704 msgstr "guestfs_zero"
32707 #: ../src/guestfs-actions.pod:7919
32711 " guestfs_zero (guestfs_h *g,\n"
32712 " const char *device);\n"
32716 " guestfs_zero (guestfs_h *g,\n"
32717 " const char *device);\n"
32721 #: ../src/guestfs-actions.pod:7933
32723 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
32724 "C<guestfs_is_zero_device>"
32728 #: ../src/guestfs-actions.pod:7945
32729 msgid "guestfs_zero_device"
32730 msgstr "guestfs_zero_device"
32733 #: ../src/guestfs-actions.pod:7947
32737 " guestfs_zero_device (guestfs_h *g,\n"
32738 " const char *device);\n"
32742 " guestfs_zero_device (guestfs_h *g,\n"
32743 " const char *device);\n"
32747 #: ../src/guestfs-actions.pod:7951
32749 "This command writes zeroes over the entire C<device>. Compare with "
32750 "C<guestfs_zero> which just zeroes the first few blocks of a device."
32754 #: ../src/guestfs-actions.pod:7969
32755 msgid "(Added in 1.3.1)"
32756 msgstr "(Додано у 1.3.1)"
32759 #: ../src/guestfs-actions.pod:7971
32760 msgid "guestfs_zerofree"
32761 msgstr "guestfs_zerofree"
32764 #: ../src/guestfs-actions.pod:7973
32768 " guestfs_zerofree (guestfs_h *g,\n"
32769 " const char *device);\n"
32773 " guestfs_zerofree (guestfs_h *g,\n"
32774 " const char *device);\n"
32778 #: ../src/guestfs-actions.pod:7992
32779 msgid "guestfs_zfgrep"
32780 msgstr "guestfs_zfgrep"
32783 #: ../src/guestfs-actions.pod:7994
32787 " guestfs_zfgrep (guestfs_h *g,\n"
32788 " const char *pattern,\n"
32789 " const char *path);\n"
32793 " guestfs_zfgrep (guestfs_h *g,\n"
32794 " const char *pattern,\n"
32795 " const char *path);\n"
32799 #: ../src/guestfs-actions.pod:8011
32800 msgid "guestfs_zfgrepi"
32801 msgstr "guestfs_zfgrepi"
32804 #: ../src/guestfs-actions.pod:8013
32808 " guestfs_zfgrepi (guestfs_h *g,\n"
32809 " const char *pattern,\n"
32810 " const char *path);\n"
32814 " guestfs_zfgrepi (guestfs_h *g,\n"
32815 " const char *pattern,\n"
32816 " const char *path);\n"
32820 #: ../src/guestfs-actions.pod:8030
32821 msgid "guestfs_zfile"
32822 msgstr "guestfs_zfile"
32825 #: ../src/guestfs-actions.pod:8032
32829 " guestfs_zfile (guestfs_h *g,\n"
32830 " const char *meth,\n"
32831 " const char *path);\n"
32835 " guestfs_zfile (guestfs_h *g,\n"
32836 " const char *meth,\n"
32837 " const char *path);\n"
32841 #: ../src/guestfs-actions.pod:8037
32843 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
32848 #: ../src/guestfs-actions.pod:8049
32850 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
32855 #: ../src/guestfs-actions.pod:8057
32856 msgid "guestfs_zgrep"
32857 msgstr "guestfs_zgrep"
32860 #: ../src/guestfs-actions.pod:8059
32864 " guestfs_zgrep (guestfs_h *g,\n"
32865 " const char *regex,\n"
32866 " const char *path);\n"
32870 " guestfs_zgrep (guestfs_h *g,\n"
32871 " const char *regex,\n"
32872 " const char *path);\n"
32876 #: ../src/guestfs-actions.pod:8076
32877 msgid "guestfs_zgrepi"
32878 msgstr "guestfs_zgrepi"
32881 #: ../src/guestfs-actions.pod:8078
32885 " guestfs_zgrepi (guestfs_h *g,\n"
32886 " const char *regex,\n"
32887 " const char *path);\n"
32891 " guestfs_zgrepi (guestfs_h *g,\n"
32892 " const char *regex,\n"
32893 " const char *path);\n"
32897 #: ../src/guestfs-availability.pod:3
32902 #: ../src/guestfs-availability.pod:5
32904 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
32905 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
32906 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
32907 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
32908 "L</guestfs_aug_save> L</guestfs_aug_set>"
32912 #: ../src/guestfs-availability.pod:21
32917 #: ../src/guestfs-availability.pod:23
32918 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
32922 #: ../src/guestfs-availability.pod:26
32924 #| msgid "B<scrub>"
32929 #: ../src/guestfs-availability.pod:28
32930 msgid "The following functions: L</guestfs_grub_install>"
32934 #: ../src/guestfs-availability.pod:31
32936 msgstr "B<inotify>"
32939 #: ../src/guestfs-availability.pod:33
32941 "The following functions: L</guestfs_inotify_add_watch> L</"
32942 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
32943 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
32947 #: ../src/guestfs-availability.pod:41
32948 msgid "B<linuxfsuuid>"
32949 msgstr "B<linuxfsuuid>"
32952 #: ../src/guestfs-availability.pod:43
32954 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
32955 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
32959 #: ../src/guestfs-availability.pod:50
32960 msgid "B<linuxmodules>"
32961 msgstr "B<linuxmodules>"
32964 #: ../src/guestfs-availability.pod:52
32965 msgid "The following functions: L</guestfs_modprobe>"
32969 #: ../src/guestfs-availability.pod:55
32970 msgid "B<linuxxattrs>"
32971 msgstr "B<linuxxattrs>"
32974 #: ../src/guestfs-availability.pod:57
32976 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
32977 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
32978 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
32979 "guestfs_setxattr>"
32983 #: ../src/guestfs-availability.pod:68
32988 #: ../src/guestfs-availability.pod:70
32990 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
32991 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
32992 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
32996 #: ../src/guestfs-availability.pod:79
33001 #: ../src/guestfs-availability.pod:81
33003 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
33004 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
33005 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
33006 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
33007 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
33008 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
33009 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
33013 #: ../src/guestfs-availability.pod:104
33018 #: ../src/guestfs-availability.pod:106
33020 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
33021 "guestfs_mknod_b> L</guestfs_mknod_c>"
33025 #: ../src/guestfs-availability.pod:112
33030 #: ../src/guestfs-availability.pod:114
33031 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33035 #: ../src/guestfs-availability.pod:117
33036 msgid "B<ntfsprogs>"
33037 msgstr "B<ntfsprogs>"
33040 #: ../src/guestfs-availability.pod:119
33042 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33043 "L</guestfs_ntfsresize_size>"
33047 #: ../src/guestfs-availability.pod:124
33048 msgid "B<realpath>"
33049 msgstr "B<realpath>"
33052 #: ../src/guestfs-availability.pod:126
33053 msgid "The following functions: L</guestfs_realpath>"
33057 #: ../src/guestfs-availability.pod:129
33062 #: ../src/guestfs-availability.pod:131
33064 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
33065 "guestfs_scrub_freespace>"
33069 #: ../src/guestfs-availability.pod:136
33071 msgstr "B<selinux>"
33074 #: ../src/guestfs-availability.pod:138
33075 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33079 #: ../src/guestfs-availability.pod:142
33084 #: ../src/guestfs-availability.pod:144
33085 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33089 #: ../src/guestfs-availability.pod:148
33090 msgid "B<zerofree>"
33091 msgstr "B<zerofree>"
33094 #: ../src/guestfs-availability.pod:150
33095 msgid "The following functions: L</guestfs_zerofree>"
33099 #: ../src/guestfs-structs.pod:1
33100 msgid "guestfs_int_bool"
33104 #: ../src/guestfs-structs.pod:3
33107 " struct guestfs_int_bool {\n"
33115 #: ../src/guestfs-structs.pod:8
33118 " struct guestfs_int_bool_list {\n"
33119 " uint32_t len; /* Number of elements in list. */\n"
33120 " struct guestfs_int_bool *val; /* Elements. */\n"
33126 #: ../src/guestfs-structs.pod:13
33129 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
33130 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
33135 #: ../src/guestfs-structs.pod:16
33136 msgid "guestfs_lvm_pv"
33140 #: ../src/guestfs-structs.pod:18
33143 " struct guestfs_lvm_pv {\n"
33144 " char *pv_name;\n"
33145 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33146 " char pv_uuid[32];\n"
33148 " uint64_t pv_size;\n"
33149 " uint64_t dev_size;\n"
33150 " uint64_t pv_free;\n"
33151 " uint64_t pv_used;\n"
33152 " char *pv_attr;\n"
33153 " int64_t pv_pe_count;\n"
33154 " int64_t pv_pe_alloc_count;\n"
33155 " char *pv_tags;\n"
33156 " uint64_t pe_start;\n"
33157 " int64_t pv_mda_count;\n"
33158 " uint64_t pv_mda_free;\n"
33164 #: ../src/guestfs-structs.pod:36
33167 " struct guestfs_lvm_pv_list {\n"
33168 " uint32_t len; /* Number of elements in list. */\n"
33169 " struct guestfs_lvm_pv *val; /* Elements. */\n"
33175 #: ../src/guestfs-structs.pod:41
33178 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33179 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33184 #: ../src/guestfs-structs.pod:44
33185 msgid "guestfs_lvm_vg"
33189 #: ../src/guestfs-structs.pod:46
33192 " struct guestfs_lvm_vg {\n"
33193 " char *vg_name;\n"
33194 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33195 " char vg_uuid[32];\n"
33197 " char *vg_attr;\n"
33198 " uint64_t vg_size;\n"
33199 " uint64_t vg_free;\n"
33200 " char *vg_sysid;\n"
33201 " uint64_t vg_extent_size;\n"
33202 " int64_t vg_extent_count;\n"
33203 " int64_t vg_free_count;\n"
33204 " int64_t max_lv;\n"
33205 " int64_t max_pv;\n"
33206 " int64_t pv_count;\n"
33207 " int64_t lv_count;\n"
33208 " int64_t snap_count;\n"
33209 " int64_t vg_seqno;\n"
33210 " char *vg_tags;\n"
33211 " int64_t vg_mda_count;\n"
33212 " uint64_t vg_mda_free;\n"
33218 #: ../src/guestfs-structs.pod:69
33221 " struct guestfs_lvm_vg_list {\n"
33222 " uint32_t len; /* Number of elements in list. */\n"
33223 " struct guestfs_lvm_vg *val; /* Elements. */\n"
33229 #: ../src/guestfs-structs.pod:74
33232 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33233 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33238 #: ../src/guestfs-structs.pod:77
33239 msgid "guestfs_lvm_lv"
33243 #: ../src/guestfs-structs.pod:79
33246 " struct guestfs_lvm_lv {\n"
33247 " char *lv_name;\n"
33248 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33249 " char lv_uuid[32];\n"
33250 " char *lv_attr;\n"
33251 " int64_t lv_major;\n"
33252 " int64_t lv_minor;\n"
33253 " int64_t lv_kernel_major;\n"
33254 " int64_t lv_kernel_minor;\n"
33255 " uint64_t lv_size;\n"
33256 " int64_t seg_count;\n"
33258 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
33259 " float snap_percent;\n"
33260 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
33261 " float copy_percent;\n"
33262 " char *move_pv;\n"
33263 " char *lv_tags;\n"
33264 " char *mirror_log;\n"
33265 " char *modules;\n"
33271 #: ../src/guestfs-structs.pod:101
33274 " struct guestfs_lvm_lv_list {\n"
33275 " uint32_t len; /* Number of elements in list. */\n"
33276 " struct guestfs_lvm_lv *val; /* Elements. */\n"
33282 #: ../src/guestfs-structs.pod:106
33285 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
33286 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
33291 #: ../src/guestfs-structs.pod:111
33294 " struct guestfs_stat {\n"
33298 " int64_t nlink;\n"
33303 " int64_t blksize;\n"
33304 " int64_t blocks;\n"
33305 " int64_t atime;\n"
33306 " int64_t mtime;\n"
33307 " int64_t ctime;\n"
33313 #: ../src/guestfs-structs.pod:127
33316 " struct guestfs_stat_list {\n"
33317 " uint32_t len; /* Number of elements in list. */\n"
33318 " struct guestfs_stat *val; /* Elements. */\n"
33324 #: ../src/guestfs-structs.pod:132
33327 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
33328 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
33333 #: ../src/guestfs-structs.pod:137
33336 " struct guestfs_statvfs {\n"
33337 " int64_t bsize;\n"
33338 " int64_t frsize;\n"
33339 " int64_t blocks;\n"
33340 " int64_t bfree;\n"
33341 " int64_t bavail;\n"
33342 " int64_t files;\n"
33343 " int64_t ffree;\n"
33344 " int64_t favail;\n"
33347 " int64_t namemax;\n"
33353 #: ../src/guestfs-structs.pod:151
33356 " struct guestfs_statvfs_list {\n"
33357 " uint32_t len; /* Number of elements in list. */\n"
33358 " struct guestfs_statvfs *val; /* Elements. */\n"
33364 #: ../src/guestfs-structs.pod:156
33367 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
33368 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
33373 #: ../src/guestfs-structs.pod:159
33374 msgid "guestfs_dirent"
33378 #: ../src/guestfs-structs.pod:161
33381 " struct guestfs_dirent {\n"
33390 #: ../src/guestfs-structs.pod:167
33393 " struct guestfs_dirent_list {\n"
33394 " uint32_t len; /* Number of elements in list. */\n"
33395 " struct guestfs_dirent *val; /* Elements. */\n"
33401 #: ../src/guestfs-structs.pod:172
33404 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
33405 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
33410 #: ../src/guestfs-structs.pod:177
33413 " struct guestfs_version {\n"
33414 " int64_t major;\n"
33415 " int64_t minor;\n"
33416 " int64_t release;\n"
33423 #: ../src/guestfs-structs.pod:184
33426 " struct guestfs_version_list {\n"
33427 " uint32_t len; /* Number of elements in list. */\n"
33428 " struct guestfs_version *val; /* Elements. */\n"
33434 #: ../src/guestfs-structs.pod:189
33437 " void guestfs_free_version (struct guestfs_free_version *);\n"
33438 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33443 #: ../src/guestfs-structs.pod:192
33444 msgid "guestfs_xattr"
33448 #: ../src/guestfs-structs.pod:194
33451 " struct guestfs_xattr {\n"
33452 " char *attrname;\n"
33453 " /* The next two fields describe a byte array. */\n"
33454 " uint32_t attrval_len;\n"
33455 " char *attrval;\n"
33461 #: ../src/guestfs-structs.pod:201
33464 " struct guestfs_xattr_list {\n"
33465 " uint32_t len; /* Number of elements in list. */\n"
33466 " struct guestfs_xattr *val; /* Elements. */\n"
33472 #: ../src/guestfs-structs.pod:206
33475 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33476 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33481 #: ../src/guestfs-structs.pod:209
33482 msgid "guestfs_inotify_event"
33486 #: ../src/guestfs-structs.pod:211
33489 " struct guestfs_inotify_event {\n"
33490 " int64_t in_wd;\n"
33491 " uint32_t in_mask;\n"
33492 " uint32_t in_cookie;\n"
33493 " char *in_name;\n"
33499 #: ../src/guestfs-structs.pod:218
33502 " struct guestfs_inotify_event_list {\n"
33503 " uint32_t len; /* Number of elements in list. */\n"
33504 " struct guestfs_inotify_event *val; /* Elements. */\n"
33510 #: ../src/guestfs-structs.pod:223
33513 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33514 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
33519 #: ../src/guestfs-structs.pod:226
33520 msgid "guestfs_partition"
33524 #: ../src/guestfs-structs.pod:228
33527 " struct guestfs_partition {\n"
33528 " int32_t part_num;\n"
33529 " uint64_t part_start;\n"
33530 " uint64_t part_end;\n"
33531 " uint64_t part_size;\n"
33537 #: ../src/guestfs-structs.pod:235
33540 " struct guestfs_partition_list {\n"
33541 " uint32_t len; /* Number of elements in list. */\n"
33542 " struct guestfs_partition *val; /* Elements. */\n"
33548 #: ../src/guestfs-structs.pod:240
33551 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33552 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33557 #: ../src/guestfs-structs.pod:243
33558 msgid "guestfs_application"
33562 #: ../src/guestfs-structs.pod:245
33565 " struct guestfs_application {\n"
33566 " char *app_name;\n"
33567 " char *app_display_name;\n"
33568 " int32_t app_epoch;\n"
33569 " char *app_version;\n"
33570 " char *app_release;\n"
33571 " char *app_install_path;\n"
33572 " char *app_trans_path;\n"
33573 " char *app_publisher;\n"
33574 " char *app_url;\n"
33575 " char *app_source_package;\n"
33576 " char *app_summary;\n"
33577 " char *app_description;\n"
33583 #: ../src/guestfs-structs.pod:260
33586 " struct guestfs_application_list {\n"
33587 " uint32_t len; /* Number of elements in list. */\n"
33588 " struct guestfs_application *val; /* Elements. */\n"
33594 #: ../src/guestfs-structs.pod:265
33597 " void guestfs_free_application (struct guestfs_free_application *);\n"
33598 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
33603 #: ../src/guestfs.pod:5
33604 msgid "guestfs - Library for accessing and modifying virtual machine images"
33606 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
33610 #: ../src/guestfs.pod:11
33613 " guestfs_h *g = guestfs_create ();\n"
33614 " guestfs_add_drive (g, \"guest.img\");\n"
33615 " guestfs_launch (g);\n"
33616 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33617 " guestfs_touch (g, \"/hello\");\n"
33618 " guestfs_umount (g, \"/\");\n"
33619 " guestfs_close (g);\n"
33622 " guestfs_h *g = guestfs_create ();\n"
33623 " guestfs_add_drive (g, \"guest.img\");\n"
33624 " guestfs_launch (g);\n"
33625 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33626 " guestfs_touch (g, \"/hello\");\n"
33627 " guestfs_umount (g, \"/\");\n"
33628 " guestfs_close (g);\n"
33632 #: ../src/guestfs.pod:25
33634 "Libguestfs is a library for accessing and modifying guest disk images. "
33635 "Amongst the things this is good for: making batch configuration changes to "
33636 "guests, getting disk used/free statistics (see also: virt-df), migrating "
33637 "between virtualization systems (see also: virt-p2v), performing partial "
33638 "backups, performing partial guest clones, cloning guests and changing "
33639 "registry/UUID/hostname info, and much else besides."
33643 #: ../src/guestfs.pod:33
33645 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
33646 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
33647 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
33652 #: ../src/guestfs.pod:38
33654 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
33655 "what filesystem is in each LV, etc.). It can also run commands in the "
33656 "context of the guest. Also you can access filesystems over FUSE."
33660 #: ../src/guestfs.pod:43
33662 "Libguestfs is a library that can be linked with C and C++ management "
33663 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
33664 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
33669 #: ../src/guestfs.pod:48
33671 "You don't need to be root to use libguestfs, although obviously you do need "
33672 "enough permissions to access the disk images."
33676 #: ../src/guestfs.pod:51
33678 "Libguestfs is a large API because it can do many things. For a gentle "
33679 "introduction, please read the L</API OVERVIEW> section next."
33683 #: ../src/guestfs.pod:54
33685 "There are also some example programs in the L<guestfs-examples(3)> manual "
33690 #: ../src/guestfs.pod:57
33691 msgid "API OVERVIEW"
33695 #: ../src/guestfs.pod:59
33697 "This section provides a gentler overview of the libguestfs API. We also try "
33698 "to group API calls together, where that may not be obvious from reading "
33699 "about the individual calls in the main section of this manual."
33703 #: ../src/guestfs.pod:64
33708 #: ../src/guestfs.pod:66
33710 "Before you can use libguestfs calls, you have to create a handle. Then you "
33711 "must add at least one disk image to the handle, followed by launching the "
33712 "handle, then performing whatever operations you want, and finally closing "
33713 "the handle. By convention we use the single letter C<g> for the name of the "
33714 "handle variable, although of course you can use any name you want."
33718 #: ../src/guestfs.pod:73
33719 msgid "The general structure of all libguestfs-using programs looks like this:"
33723 #: ../src/guestfs.pod:76
33726 " guestfs_h *g = guestfs_create ();\n"
33729 " guestfs_h *g = guestfs_create ();\n"
33733 #: ../src/guestfs.pod:78
33736 " /* Call guestfs_add_drive additional times if there are\n"
33737 " * multiple disk images.\n"
33739 " guestfs_add_drive (g, \"guest.img\");\n"
33744 #: ../src/guestfs.pod:83
33747 " /* Most manipulation calls won't work until you've launched\n"
33748 " * the handle 'g'. You have to do this _after_ adding drives\n"
33749 " * and _before_ other commands.\n"
33751 " guestfs_launch (g);\n"
33756 #: ../src/guestfs.pod:89
33759 " /* Now you can examine what partitions, LVs etc are available.\n"
33761 " char **partitions = guestfs_list_partitions (g);\n"
33762 " char **logvols = guestfs_lvs (g);\n"
33765 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
33767 " char **partitions = guestfs_list_partitions (g);\n"
33768 " char **logvols = guestfs_lvs (g);\n"
33772 #: ../src/guestfs.pod:94
33775 " /* To access a filesystem in the image, you must mount it.\n"
33777 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33780 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
33782 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33786 #: ../src/guestfs.pod:98
33789 " /* Now you can perform filesystem actions on the guest\n"
33792 " guestfs_touch (g, \"/hello\");\n"
33797 #: ../src/guestfs.pod:103
33800 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
33801 " * it is done automatically when you close the handle. See\n"
33802 " * discussion of autosync in this page.\n"
33804 " guestfs_sync (g);\n"
33809 #: ../src/guestfs.pod:109
33812 " /* Close the handle 'g'. */\n"
33813 " guestfs_close (g);\n"
33816 " /* Закрити дескриптор 'g'. */\n"
33817 " guestfs_close (g);\n"
33821 #: ../src/guestfs.pod:112
33823 "The code above doesn't include any error checking. In real code you should "
33824 "check return values carefully for errors. In general all functions that "
33825 "return integers return C<-1> on error, and all functions that return "
33826 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
33827 "how to handle errors, and consult the documentation for each function call "
33828 "below to see precisely how they return error indications. See L<guestfs-"
33829 "examples(3)> for fully worked examples."
33833 #: ../src/guestfs.pod:121
33834 msgid "DISK IMAGES"
33835 msgstr "ОБРАЗИ ДИСКІВ"
33838 #: ../src/guestfs.pod:123
33840 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
33841 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
33842 "actual block device, or simply an empty file of zeroes that you have created "
33843 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
33848 #: ../src/guestfs.pod:129
33850 "The call you should use in modern code for adding drives is L</"
33851 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
33852 "specifying that the format is raw, do:"
33856 #: ../src/guestfs.pod:133
33859 " guestfs_add_drive_opts (g, filename,\n"
33860 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33864 " guestfs_add_drive_opts (g, filename,\n"
33865 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33870 #: ../src/guestfs.pod:137
33871 msgid "You can add a disk read-only using:"
33872 msgstr "Ви можете додати диск у режимі лише читання:"
33875 #: ../src/guestfs.pod:139
33878 " guestfs_add_drive_opts (g, filename,\n"
33879 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33880 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33884 " guestfs_add_drive_opts (g, filename,\n"
33885 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33886 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33891 #: ../src/guestfs.pod:144
33893 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
33894 "libguestfs won't modify the file."
33898 #: ../src/guestfs.pod:147
33900 "Be extremely cautious if the disk image is in use, eg. if it is being used "
33901 "by a virtual machine. Adding it read-write will almost certainly cause disk "
33902 "corruption, but adding it read-only is safe."
33906 #: ../src/guestfs.pod:151
33908 "You must add at least one disk image, and you may add multiple disk images. "
33909 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
33910 "first one you added), C</dev/sdb> (for the second one you added), etc."
33914 #: ../src/guestfs.pod:156
33916 "Once L</guestfs_launch> has been called you cannot add any more images. You "
33917 "can call L</guestfs_list_devices> to get a list of the device names, in the "
33918 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
33922 #: ../src/guestfs.pod:161
33924 msgstr "МОНТУВАННЯ"
33927 #: ../src/guestfs.pod:163
33929 "Before you can read or write files, create directories and so on in a disk "
33930 "image that contains filesystems, you have to mount those filesystems using "
33931 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
33932 "a disk image contains (for example) one partition with a filesystem on that "
33933 "partition, then you can mount it directly:"
33937 #: ../src/guestfs.pod:170
33940 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33943 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33947 #: ../src/guestfs.pod:172
33949 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
33950 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
33951 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
33952 "that these are libguestfs virtual devices, and are nothing to do with host "
33957 #: ../src/guestfs.pod:178
33959 "If you are given a disk image and you don't know what it contains then you "
33960 "have to find out. Libguestfs can do that too: use L</"
33961 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
33962 "LVs, and either try mounting each to see what is mountable, or else examine "
33963 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
33964 "filesystems, use L</guestfs_list_filesystems>."
33968 #: ../src/guestfs.pod:186
33970 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
33971 "L</INSPECTION> below). But you might find it easier to look at higher level "
33972 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
33976 #: ../src/guestfs.pod:191
33978 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
33979 "several other variations of the C<guestfs_mount_*> call."
33983 #: ../src/guestfs.pod:194
33984 msgid "FILESYSTEM ACCESS AND MODIFICATION"
33985 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
33988 #: ../src/guestfs.pod:196
33990 "The majority of the libguestfs API consists of fairly low-level calls for "
33991 "accessing and modifying the files, directories, symlinks etc on mounted "
33992 "filesystems. There are over a hundred such calls which you can find listed "
33993 "in detail below in this man page, and we don't even pretend to cover them "
33994 "all in this overview."
33998 #: ../src/guestfs.pod:202
34000 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34003 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
34004 "точкою монтування."
34007 #: ../src/guestfs.pod:205
34009 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34010 "the file called C<\"etc/passwd\"> then you could do:"
34012 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
34013 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
34017 #: ../src/guestfs.pod:208
34020 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34023 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34027 #: ../src/guestfs.pod:210
34029 "This would return C<data> as a newly allocated buffer containing the full "
34030 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
34031 "or C<NULL> if there was an error."
34035 #: ../src/guestfs.pod:214
34037 "As another example, to create a top-level directory on that filesystem "
34038 "called C<\"var\"> you would do:"
34042 #: ../src/guestfs.pod:217
34045 " guestfs_mkdir (g, \"/var\");\n"
34048 " guestfs_mkdir (g, \"/var\");\n"
34052 #: ../src/guestfs.pod:219
34053 msgid "To create a symlink you could do:"
34054 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
34057 #: ../src/guestfs.pod:221
34060 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34061 " \"/etc/rc3.d/S30portmap\");\n"
34064 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34065 " \"/etc/rc3.d/S30portmap\");\n"
34069 #: ../src/guestfs.pod:224
34071 "Libguestfs will reject attempts to use relative paths and there is no "
34072 "concept of a current working directory."
34076 #: ../src/guestfs.pod:227
34078 "Libguestfs can return errors in many situations: for example if the "
34079 "filesystem isn't writable, or if a file or directory that you requested "
34080 "doesn't exist. If you are using the C API (documented here) you have to "
34081 "check for those error conditions after each call. (Other language bindings "
34082 "turn these errors into exceptions)."
34086 #: ../src/guestfs.pod:233
34088 "File writes are affected by the per-handle umask, set by calling L</"
34089 "guestfs_umask> and defaulting to 022. See L</UMASK>."
34093 #: ../src/guestfs.pod:236
34094 msgid "PARTITIONING"
34095 msgstr "ПОДІЛ НА РОЗДІЛИ"
34098 #: ../src/guestfs.pod:238
34100 "Libguestfs contains API calls to read, create and modify partition tables on "
34105 #: ../src/guestfs.pod:241
34107 "In the common case where you want to create a single partition covering the "
34108 "whole disk, you should use the L</guestfs_part_disk> call:"
34112 #: ../src/guestfs.pod:245
34115 " const char *parttype = \"mbr\";\n"
34116 " if (disk_is_larger_than_2TB)\n"
34117 " parttype = \"gpt\";\n"
34118 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34121 " const char *parttype = \"mbr\";\n"
34122 " if (disk_is_larger_than_2TB)\n"
34123 " parttype = \"gpt\";\n"
34124 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34128 #: ../src/guestfs.pod:250
34130 "Obviously this effectively wipes anything that was on that disk image before."
34134 #: ../src/guestfs.pod:253
34139 #: ../src/guestfs.pod:255
34141 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
34142 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
34143 "you familiarize yourself with the concepts of physical volumes, volume "
34144 "groups and logical volumes."
34148 #: ../src/guestfs.pod:260
34150 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
34151 "tldp.org/HOWTO/LVM-HOWTO/>."
34155 #: ../src/guestfs.pod:263
34156 msgid "DOWNLOADING"
34157 msgstr "ОТРИМАННЯ ДАНИХ"
34160 #: ../src/guestfs.pod:265
34162 "Use L</guestfs_cat> to download small, text only files. This call is "
34163 "limited to files which are less than 2 MB and which cannot contain any ASCII "
34164 "NUL (C<\\0>) characters. However the API is very simple to use."
34168 #: ../src/guestfs.pod:269
34170 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
34171 "bit data, since it returns a (pointer, size) pair. However it is still "
34172 "limited to \"small\" files, less than 2 MB."
34176 #: ../src/guestfs.pod:273
34178 "L</guestfs_download> can be used to download any file, with no limits on "
34179 "content or size (even files larger than 4 GB)."
34183 #: ../src/guestfs.pod:276
34185 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34189 #: ../src/guestfs.pod:279
34191 msgstr "ВИВАНТАЖЕННЯ"
34194 #: ../src/guestfs.pod:281
34196 "It's often the case that you want to write a file or files to the disk image."
34200 #: ../src/guestfs.pod:284
34202 "To write a small file with fixed content, use L</guestfs_write>. To create "
34203 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
34204 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
34205 "of other functions for creating test files, for example L</guestfs_fill> and "
34206 "L</guestfs_fill_pattern>."
34210 #: ../src/guestfs.pod:290
34212 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
34213 "file content or size (even files larger than 4 GB)."
34217 #: ../src/guestfs.pod:293
34219 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34223 #: ../src/guestfs.pod:295
34225 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34226 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
34227 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
34228 "in a predictable way (eg. adding it last after all other drives) then you "
34229 "can get the device name from L</guestfs_list_devices> and mount it directly "
34230 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
34231 "portable between kernel versions, and they don't support labels or UUIDs. "
34232 "If you want to pre-build an image or you need to mount it using a label or "
34233 "UUID, use an ISO image instead."
34237 #: ../src/guestfs.pod:306
34239 msgstr "КОПІЮВАННЯ"
34242 #: ../src/guestfs.pod:308
34244 "There are various different commands for copying between files and devices "
34245 "and in and out of the guest filesystem. These are summarised in the table "
34250 #: ../src/guestfs.pod:314
34251 msgid "B<file> to B<file>"
34252 msgstr "B<файл> у B<файл>"
34255 #: ../src/guestfs.pod:316
34257 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34258 "directories recursively."
34262 #: ../src/guestfs.pod:319
34263 msgid "B<file or device> to B<file or device>"
34264 msgstr "B<файл або пристрій> у B<файл або пристрій>"
34267 #: ../src/guestfs.pod:321
34269 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
34270 "devices in the guest."
34274 #: ../src/guestfs.pod:324
34275 msgid "Example: duplicate the contents of an LV:"
34279 #: ../src/guestfs.pod:326
34282 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
34285 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
34289 #: ../src/guestfs.pod:328
34291 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
34292 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
34293 "guestfs_copy_size>."
34297 #: ../src/guestfs.pod:332
34298 msgid "B<file on the host> to B<file or device>"
34302 #: ../src/guestfs.pod:334
34303 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
34307 #: ../src/guestfs.pod:336
34308 msgid "B<file or device> to B<file on the host>"
34312 #: ../src/guestfs.pod:338
34313 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
34317 #: ../src/guestfs.pod:342
34318 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
34322 #: ../src/guestfs.pod:344
34324 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
34325 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
34326 "appears you can only upload and download to files. However many Un*x-like "
34327 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
34328 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
34329 "and arbitrary file descriptor N."
34333 #: ../src/guestfs.pod:352
34334 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
34338 #: ../src/guestfs.pod:355
34341 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34344 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34348 #: ../src/guestfs.pod:357
34349 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
34353 #: ../src/guestfs.pod:359
34356 " char devfd[64];\n"
34357 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34358 " guestfs_tar_out (g, \"/\", devfd);\n"
34361 " char devfd[64];\n"
34362 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34363 " guestfs_tar_out (g, \"/\", devfd);\n"
34367 #: ../src/guestfs.pod:363
34368 msgid "LISTING FILES"
34369 msgstr "СПИСКИ ФАЙЛІВ"
34372 #: ../src/guestfs.pod:365
34374 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
34375 "L<guestfish(1)>-equivalent command C<ll>)."
34379 #: ../src/guestfs.pod:368
34381 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34382 "programs, as a flat list of strings."
34386 #: ../src/guestfs.pod:371
34388 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34389 "directory, plus additional information about each one. It is more "
34390 "equivalent to using the L<readdir(3)> call on a local filesystem."
34394 #: ../src/guestfs.pod:375
34396 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
34400 #: ../src/guestfs.pod:378
34401 msgid "RUNNING COMMANDS"
34402 msgstr "ВИКОНАННЯ КОМАНД"
34405 #: ../src/guestfs.pod:380
34407 "Although libguestfs is primarily an API for manipulating files inside guest "
34408 "images, we also provide some limited facilities for running commands inside "
34413 #: ../src/guestfs.pod:384
34414 msgid "There are many limitations to this:"
34418 #: ../src/guestfs.pod:390
34420 "The kernel version that the command runs under will be different from what "
34425 #: ../src/guestfs.pod:395
34427 "If the command needs to communicate with daemons, then most likely they "
34428 "won't be running."
34432 #: ../src/guestfs.pod:400
34433 msgid "The command will be running in limited memory."
34437 #: ../src/guestfs.pod:404
34439 "The network may not be available unless you enable it (see L</"
34440 "guestfs_set_network>)."
34444 #: ../src/guestfs.pod:409
34445 msgid "Only supports Linux guests (not Windows, BSD, etc)."
34449 #: ../src/guestfs.pod:413
34451 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
34455 #: ../src/guestfs.pod:418
34457 "For SELinux guests, you may need to enable SELinux and load policy first. "
34458 "See L</SELINUX> in this manpage."
34462 #: ../src/guestfs.pod:423
34464 "I<Security:> It is not safe to run commands from untrusted, possibly "
34465 "malicious guests. These commands may attempt to exploit your program by "
34466 "sending unexpected output. They could also try to exploit the Linux kernel "
34467 "or qemu provided by the libguestfs appliance. They could use the network "
34468 "provided by the libguestfs appliance to bypass ordinary network partitions "
34469 "and firewalls. They could use the elevated privileges or different SELinux "
34470 "context of your program to their advantage."
34474 #: ../src/guestfs.pod:432
34476 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34477 "(a script which runs when the guest next boots normally), and to have this "
34478 "script run the commands you want in the normal context of the running guest, "
34479 "network security and so on. For information about other security issues, "
34480 "see L</SECURITY>."
34484 #: ../src/guestfs.pod:440
34486 "The two main API calls to run commands are L</guestfs_command> and L</"
34487 "guestfs_sh> (there are also variations)."
34491 #: ../src/guestfs.pod:443
34493 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
34494 "shell globs, redirections, etc will work."
34498 #: ../src/guestfs.pod:446
34499 msgid "CONFIGURATION FILES"
34500 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
34503 #: ../src/guestfs.pod:448
34505 "To read and write configuration files in Linux guest filesystems, we "
34506 "strongly recommend using Augeas. For example, Augeas understands how to "
34507 "read and write, say, a Linux shadow password file or X.org configuration "
34508 "file, and so avoids you having to write that code."
34512 #: ../src/guestfs.pod:453
34514 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
34515 "document Augeas itself here because there is excellent documentation on the "
34516 "L<http://augeas.net/> website."
34520 #: ../src/guestfs.pod:457
34522 "If you don't want to use Augeas (you fool!) then try calling L</"
34523 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
34528 #: ../src/guestfs.pod:461
34533 #: ../src/guestfs.pod:463
34535 "We support SELinux guests. To ensure that labeling happens correctly in "
34536 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34540 #: ../src/guestfs.pod:471
34541 msgid "Before launching, do:"
34545 #: ../src/guestfs.pod:473
34548 " guestfs_set_selinux (g, 1);\n"
34551 " guestfs_set_selinux (g, 1);\n"
34555 #: ../src/guestfs.pod:477
34557 "After mounting the guest's filesystem(s), load the policy. This is best "
34558 "done by running the L<load_policy(8)> command in the guest itself:"
34562 #: ../src/guestfs.pod:481
34565 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34568 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34572 #: ../src/guestfs.pod:483
34574 "(Older versions of C<load_policy> require you to specify the name of the "
34579 #: ../src/guestfs.pod:488
34581 "Optionally, set the security context for the API. The correct security "
34582 "context to use can only be known by inspecting the guest. As an example:"
34586 #: ../src/guestfs.pod:492
34589 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34592 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34596 #: ../src/guestfs.pod:496
34597 msgid "This will work for running commands and editing existing files."
34601 #: ../src/guestfs.pod:498
34603 "When new files are created, you may need to label them explicitly, for "
34604 "example by running the external command C<restorecon pathname>."
34608 #: ../src/guestfs.pod:502
34613 #: ../src/guestfs.pod:504
34615 "Certain calls are affected by the current file mode creation mask (the "
34616 "\"umask\"). In particular ones which create files or directories, such as "
34617 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
34618 "either the default mode that the file is created with or modifies the mode "
34623 #: ../src/guestfs.pod:510
34625 "The default umask is C<022>, so files are created with modes such as C<0644> "
34626 "and directories with C<0755>."
34630 #: ../src/guestfs.pod:513
34632 "There are two ways to avoid being affected by umask. Either set umask to 0 "
34633 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
34634 "guestfs_chmod> after creating each file or directory."
34638 #: ../src/guestfs.pod:517
34639 msgid "For more information about umask, see L<umask(2)>."
34643 #: ../src/guestfs.pod:521
34645 "Libguestfs allows you to access Linux guests which have been encrypted using "
34646 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34647 "standard. This includes nearly all whole disk encryption systems used by "
34648 "modern Linux guests."
34652 #: ../src/guestfs.pod:527
34654 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
34655 "returns the string C<crypto_LUKS>)."
34659 #: ../src/guestfs.pod:530
34661 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
34662 "will require the passphrase!"
34666 #: ../src/guestfs.pod:533
34668 "Opening a LUKS device creates a new device mapper device called C</dev/"
34669 "mapper/mapname> (where C<mapname> is the string you supply to L</"
34670 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
34671 "from and encrypted to the underlying block device respectively."
34675 #: ../src/guestfs.pod:539
34677 "LVM volume groups on the device can be made visible by calling L</"
34678 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
34679 "(s) can now be mounted in the usual way."
34683 #: ../src/guestfs.pod:543
34685 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
34686 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
34687 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
34688 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
34689 "underlying encrypted block device)."
34693 #: ../src/guestfs.pod:550
34698 #: ../src/guestfs.pod:552
34700 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
34701 "contains operating systems, an install CD or a live CD. (These APIs used to "
34702 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
34703 "version 1.5.3 the most frequently used part of this library has been "
34704 "rewritten in C and moved into the core code)."
34708 #: ../src/guestfs.pod:559
34710 "Add all disks belonging to the unknown virtual machine and call L</"
34711 "guestfs_launch> in the usual way."
34715 #: ../src/guestfs.pod:562
34717 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
34718 "and certain heuristics, and returns a list of operating systems that were "
34719 "found. An empty list means none were found. A single element is the root "
34720 "filesystem of the operating system. For dual- or multi-boot guests, "
34721 "multiple roots can be returned, each one corresponding to a separate "
34722 "operating system. (Multi-boot virtual machines are extremely rare in the "
34723 "world of virtualization, but since this scenario can happen, we have built "
34724 "libguestfs to deal with it.)"
34728 #: ../src/guestfs.pod:571
34730 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
34731 "to get additional details about that operating system. For example, call L</"
34732 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
34733 "Windows and Linux-based operating systems respectively."
34737 #: ../src/guestfs.pod:577
34739 "Un*x-like and Linux-based operating systems usually consist of several "
34740 "filesystems which are mounted at boot time (for example, a separate boot "
34741 "partition mounted on C</boot>). The inspection rules are able to detect how "
34742 "filesystems correspond to mount points. Call "
34743 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
34744 "hash table like this example:"
34748 #: ../src/guestfs.pod:584
34751 " /boot => /dev/sda1\n"
34752 " / => /dev/vg_guest/lv_root\n"
34753 " /usr => /dev/vg_guest/lv_usr\n"
34756 " /boot => /dev/sda1\n"
34757 " / => /dev/vg_guest/lv_root\n"
34758 " /usr => /dev/vg_guest/lv_usr\n"
34762 #: ../src/guestfs.pod:588
34764 "The caller can then make calls to L</guestfs_mount_options> to mount the "
34765 "filesystems as suggested."
34769 #: ../src/guestfs.pod:591
34771 "Be careful to mount filesystems in the right order (eg. C</> before C</"
34772 "usr>). Sorting the keys of the hash by length, shortest first, should work."
34776 #: ../src/guestfs.pod:595
34778 "Inspection currently only works for some common operating systems. "
34779 "Contributors are welcome to send patches for other operating systems that we "
34780 "currently cannot detect."
34784 #: ../src/guestfs.pod:599
34786 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
34787 "for more details. The L</guestfs_inspect_os> function just ignores any "
34788 "encrypted devices."
34792 #: ../src/guestfs.pod:603
34794 "A note on the implementation: The call L</guestfs_inspect_os> performs "
34795 "inspection and caches the results in the guest handle. Subsequent calls to "
34796 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
34797 "read the disks. If you change the content of the guest disks, you can redo "
34798 "inspection by calling L</guestfs_inspect_os> again. (L</"
34799 "guestfs_inspect_list_applications> works a little differently from the other "
34800 "calls and does read the disks. See documentation for that function for "
34805 #: ../src/guestfs.pod:612
34806 msgid "INSPECTING INSTALL DISKS"
34810 #: ../src/guestfs.pod:614
34812 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
34817 #: ../src/guestfs.pod:617
34819 "Call L</guestfs_inspect_get_format> to return the format of the operating "
34820 "system, which currently can be C<installed> (a regular operating system) or "
34821 "C<installer> (some sort of install disk)."
34825 #: ../src/guestfs.pod:621
34827 "Further information is available about the operating system that can be "
34828 "installed using the regular inspection APIs like L</"
34829 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
34833 #: ../src/guestfs.pod:626
34835 "Some additional information specific to installer disks is also available "
34836 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
34837 "guestfs_inspect_is_multipart> calls."
34841 #: ../src/guestfs.pod:631
34842 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
34846 #: ../src/guestfs.pod:633
34848 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
34849 "ntfs-3g.org/> driver."
34853 #: ../src/guestfs.pod:636
34854 msgid "DRIVE LETTERS AND PATHS"
34855 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
34858 #: ../src/guestfs.pod:638
34860 "DOS and Windows still use drive letters, and the filesystems are always "
34861 "treated as case insensitive by Windows itself, and therefore you might find "
34862 "a Windows configuration file referring to a path like C<c:\\windows"
34863 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
34864 "might be referred to as C</WINDOWS/System32>."
34868 #: ../src/guestfs.pod:644
34870 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
34871 "L</guestfs_inspect_get_drive_mappings>)"
34875 #: ../src/guestfs.pod:647
34877 "Dealing with separator characters (backslash vs forward slash) is outside "
34878 "the scope of libguestfs, but usually a simple character replacement will "
34883 #: ../src/guestfs.pod:651
34885 "To resolve the case insensitivity of paths, call L</"
34886 "guestfs_case_sensitive_path>."
34890 #: ../src/guestfs.pod:654
34891 msgid "ACCESSING THE WINDOWS REGISTRY"
34892 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
34895 #: ../src/guestfs.pod:656
34897 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
34898 "files, through the library C<hivex> which is part of the libguestfs project "
34899 "although ships as a separate tarball. You have to locate and download the "
34900 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
34901 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
34902 "reg(1)> for more help on this issue."
34906 #: ../src/guestfs.pod:664
34907 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
34908 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
34911 #: ../src/guestfs.pod:666
34913 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
34914 "provide something which looks like a Linux symlink. The way it tries to do "
34915 "the rewriting is described here:"
34919 #: ../src/guestfs.pod:670
34921 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34924 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34928 #: ../src/guestfs.pod:672
34930 "The essential problem is that ntfs-3g simply does not have enough "
34931 "information to do a correct job. NTFS links can contain drive letters and "
34932 "references to external device GUIDs that ntfs-3g has no way of resolving. "
34933 "It is almost certainly the case that libguestfs callers should ignore what "
34934 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
34938 #: ../src/guestfs.pod:679
34940 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
34941 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
34942 "attribute, and read the raw reparse data from that (you can find the format "
34943 "documented in various places around the web)."
34947 #: ../src/guestfs.pod:684
34948 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
34952 #: ../src/guestfs.pod:686
34954 "There are other useful extended attributes that can be read from ntfs-3g "
34955 "filesystems (using L</guestfs_getxattr>). See:"
34959 #: ../src/guestfs.pod:689
34961 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34963 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34966 #: ../src/guestfs.pod:691
34967 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
34968 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
34971 #: ../src/guestfs.pod:693
34973 "Although we don't want to discourage you from using the C API, we will "
34974 "mention here that the same API is also available in other languages."
34978 #: ../src/guestfs.pod:696
34980 "The API is broadly identical in all supported languages. This means that "
34981 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
34982 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
34983 "OCaml. In other words, a straightforward, predictable isomorphism between "
34988 #: ../src/guestfs.pod:702
34990 "Error messages are automatically transformed into exceptions if the language "
34995 #: ../src/guestfs.pod:705
34997 "We don't try to \"object orientify\" parts of the API in OO languages, "
34998 "although contributors are welcome to write higher level APIs above what we "
34999 "provide in their favourite languages if they wish."
35003 #: ../src/guestfs.pod:711
35008 #: ../src/guestfs.pod:713
35010 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
35011 "identical to the C API. C++ classes and exceptions are not used."
35015 #: ../src/guestfs.pod:717
35020 #: ../src/guestfs.pod:719
35022 "The C# bindings are highly experimental. Please read the warnings at the "
35023 "top of C<csharp/Libguestfs.cs>."
35027 #: ../src/guestfs.pod:722
35032 #: ../src/guestfs.pod:724
35034 #| msgid "See L<guestfs-ruby(3)>."
35035 msgid "See L<guestfs-erlang(3)>."
35036 msgstr "Див. L<guestfs-ruby(3)>."
35039 #: ../src/guestfs.pod:726
35041 msgstr "B<Haskell>"
35044 #: ../src/guestfs.pod:728
35046 "This is the only language binding that is working but incomplete. Only "
35047 "calls which return simple integers have been bound in Haskell, and we are "
35048 "looking for help to complete this binding."
35052 #: ../src/guestfs.pod:732
35057 #: ../src/guestfs.pod:734
35059 "Full documentation is contained in the Javadoc which is distributed with "
35060 "libguestfs. For examples, see L<guestfs-java(3)>."
35064 #: ../src/guestfs.pod:737
35069 #: ../src/guestfs.pod:739
35070 msgid "See L<guestfs-ocaml(3)>."
35071 msgstr "Див. L<guestfs-ocaml(3)>."
35074 #: ../src/guestfs.pod:741
35079 #: ../src/guestfs.pod:743
35080 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35081 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
35084 #: ../src/guestfs.pod:745
35089 #: ../src/guestfs.pod:747
35091 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35092 "the php-libguestfs package for your distribution."
35096 #: ../src/guestfs.pod:750
35097 msgid "The PHP binding only works correctly on 64 bit machines."
35101 #: ../src/guestfs.pod:752
35106 #: ../src/guestfs.pod:754
35107 msgid "See L<guestfs-python(3)>."
35108 msgstr "Див. L<guestfs-python(3)>."
35111 #: ../src/guestfs.pod:756
35116 #: ../src/guestfs.pod:758
35117 msgid "See L<guestfs-ruby(3)>."
35118 msgstr "Див. L<guestfs-ruby(3)>."
35121 #: ../src/guestfs.pod:760
35122 msgid "B<shell scripts>"
35123 msgstr "B<скрипти оболонки>"
35126 #: ../src/guestfs.pod:762
35127 msgid "See L<guestfish(1)>."
35128 msgstr "Див. L<guestfish(1)>."
35131 #: ../src/guestfs.pod:766
35132 msgid "LIBGUESTFS GOTCHAS"
35136 #: ../src/guestfs.pod:768
35138 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
35139 "system [...] that works in the way it is documented but is counterintuitive "
35140 "and almost invites mistakes.\""
35144 #: ../src/guestfs.pod:772
35146 "Since we developed libguestfs and the associated tools, there are several "
35147 "things we would have designed differently, but are now stuck with for "
35148 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
35149 "release, you can expect these to change. Beware of them."
35153 #: ../src/guestfs.pod:780
35154 msgid "Autosync / forgetting to sync."
35158 #: ../src/guestfs.pod:782
35160 "I<Update:> Autosync is enabled by default for all API users starting from "
35161 "libguestfs 1.5.24. This section only applies to older versions."
35165 #: ../src/guestfs.pod:785
35167 "When modifying a filesystem from C or another language, you B<must> unmount "
35168 "all filesystems and call L</guestfs_sync> explicitly before you close the "
35169 "libguestfs handle. You can also call:"
35173 #: ../src/guestfs.pod:789
35176 " guestfs_set_autosync (g, 1);\n"
35179 " guestfs_set_autosync (g, 1);\n"
35183 #: ../src/guestfs.pod:791
35185 "to have the unmount/sync done automatically for you when the handle 'g' is "
35186 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
35190 #: ../src/guestfs.pod:795
35192 "If you forget to do this, then it is entirely possible that your changes "
35193 "won't be written out, or will be partially written, or (very rarely) that "
35194 "you'll get disk corruption."
35198 #: ../src/guestfs.pod:799
35200 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
35201 "guestfish scripts that forget to sync will work just fine, which can make "
35202 "this very puzzling if you are trying to debug a problem."
35206 #: ../src/guestfs.pod:803
35207 msgid "Mount option C<-o sync> should not be the default."
35211 #: ../src/guestfs.pod:805
35213 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35214 "libguestfs 1.13.16. This section only applies to older versions."
35218 #: ../src/guestfs.pod:808
35220 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
35221 "However C<-o sync> does not add any reliability benefit, but does have a "
35222 "very large performance impact."
35226 #: ../src/guestfs.pod:812
35228 "The work around is to use L</guestfs_mount_options> and set the mount "
35229 "options that you actually want to use."
35233 #: ../src/guestfs.pod:815
35234 msgid "Read-only should be the default."
35238 #: ../src/guestfs.pod:817
35240 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35241 "specify I<--rw> if you want to make changes to the image."
35245 #: ../src/guestfs.pod:820
35246 msgid "This would reduce the potential to corrupt live VM images."
35250 #: ../src/guestfs.pod:822
35252 "Note that many filesystems change the disk when you just mount and unmount, "
35253 "even if you didn't perform any writes. You need to use L</"
35254 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
35258 #: ../src/guestfs.pod:826
35259 msgid "guestfish command line is hard to use."
35263 #: ../src/guestfs.pod:828
35265 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35266 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
35267 "exist, so it fails. In earlier versions of guestfish the error message was "
35268 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
35269 "we should have used C<guestfish -c command> to run commands."
35273 #: ../src/guestfs.pod:835
35274 msgid "guestfish megabyte modifiers don't work right on all commands"
35278 #: ../src/guestfs.pod:837
35280 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35281 "other modifiers). What guestfish actually does is to multiply the number "
35282 "part by the modifier part and pass the result to the C API. However this "
35283 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35284 "expecting some other unit (eg. megabytes)."
35288 #: ../src/guestfs.pod:844
35289 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
35293 #: ../src/guestfs.pod:846
35296 " lvcreate LV VG 100M\n"
35299 " lvcreate LV VG 100M\n"
35303 #: ../src/guestfs.pod:848
35305 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
35306 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
35307 "megabytes * megabytes) logical volume. The error message you get from this "
35308 "is also a little obscure."
35312 #: ../src/guestfs.pod:853
35314 "This could be fixed in the generator by specially marking parameters and "
35315 "return values which take bytes or other units."
35319 #: ../src/guestfs.pod:856
35320 msgid "Ambiguity between devices and paths"
35324 #: ../src/guestfs.pod:858
35326 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
35327 "sdb2>) and a similar pathname. A file might just happen to be called "
35328 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
35332 #: ../src/guestfs.pod:863
35334 "In the current API we usually resolve this ambiguity by having two separate "
35335 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
35336 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
35337 "detecting if the path supplied begins with C</dev/>."
35341 #: ../src/guestfs.pod:869
35343 "To avoid both the ambiguity and the need to duplicate some calls, we could "
35344 "make paths/devices into structured names. One way to do this would be to "
35345 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
35346 "aspect of grub. Another way would be to use a structured type, equivalent "
35347 "to this OCaml type:"
35351 #: ../src/guestfs.pod:875
35354 " type path = Path of string | Device of int | Partition of int * int\n"
35359 #: ../src/guestfs.pod:877
35360 msgid "which would allow you to pass arguments like:"
35364 #: ../src/guestfs.pod:879
35367 " Path \"/foo/bar\"\n"
35368 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
35369 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35370 " Path \"/dev/sdb2\" (* not a device *)\n"
35375 #: ../src/guestfs.pod:884
35377 "As you can see there are still problems to resolve even with this "
35378 "representation. Also consider how it might work in guestfish."
35382 #: ../src/guestfs.pod:889
35383 msgid "KEYS AND PASSPHRASES"
35384 msgstr "КЛЮЧІ І ПАРОЛІ"
35387 #: ../src/guestfs.pod:891
35389 "Certain libguestfs calls take a parameter that contains sensitive key "
35390 "material, passed in as a C string."
35394 #: ../src/guestfs.pod:894
35396 "In the future we would hope to change the libguestfs implementation so that "
35397 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35398 "swap. However this is I<not> done at the moment, because of the complexity "
35399 "of such an implementation."
35403 #: ../src/guestfs.pod:899
35405 "Therefore you should be aware that any key parameter you pass to libguestfs "
35406 "might end up being written out to the swap partition. If this is a concern, "
35407 "scrub the swap partition or don't use libguestfs on encrypted devices."
35411 #: ../src/guestfs.pod:904
35412 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35416 #: ../src/guestfs.pod:906
35418 "All high-level libguestfs actions are synchronous. If you want to use "
35419 "libguestfs asynchronously then you must create a thread."
35423 #: ../src/guestfs.pod:909
35425 "Only use the handle from a single thread. Either use the handle exclusively "
35426 "from one thread, or provide your own mutex so that two threads cannot issue "
35427 "calls on the same handle at the same time."
35431 #: ../src/guestfs.pod:913
35433 "See the graphical program guestfs-browser for one possible architecture for "
35434 "multithreaded programs using libvirt and libguestfs."
35438 #: ../src/guestfs.pod:916
35443 #: ../src/guestfs.pod:918
35445 "Libguestfs needs a supermin appliance, which it finds by looking along an "
35450 #: ../src/guestfs.pod:921
35452 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
35453 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
35457 #: ../src/guestfs.pod:924
35459 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
35460 "to change the directories that libguestfs will search in. The value is a "
35461 "colon-separated list of paths. The current directory is I<not> searched "
35462 "unless the path contains an empty element or C<.>. For example "
35463 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
35464 "then C</usr/lib/guestfs>."
35468 #: ../src/guestfs.pod:931
35469 msgid "QEMU WRAPPERS"
35473 #: ../src/guestfs.pod:933
35475 "If you want to compile your own qemu, run qemu from a non-standard location, "
35476 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35481 #: ../src/guestfs.pod:937
35483 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35484 "last command in the shell script (so that qemu replaces the shell and "
35485 "becomes the direct child of the libguestfs-using program). If you don't do "
35486 "this, then the qemu process won't be cleaned up correctly."
35490 #: ../src/guestfs.pod:942
35492 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35497 #: ../src/guestfs.pod:945
35501 " qemudir=/home/rjones/d/qemu\n"
35502 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35506 " qemudir=/home/rjones/d/qemu\n"
35507 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35511 #: ../src/guestfs.pod:949
35513 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
35514 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
35519 #: ../src/guestfs.pod:953
35522 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35525 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35529 #: ../src/guestfs.pod:955
35531 "Note that libguestfs also calls qemu with the -help and -version options in "
35532 "order to determine features."
35536 #: ../src/guestfs.pod:958
35538 "Wrappers can also be used to edit the options passed to qemu. In the "
35539 "following example, the C<-machine ...> option (C<-machine> and the following "
35540 "argument) are removed from the command line and replaced with C<-machine pc,"
35541 "accel=tcg>. The while loop iterates over the options until it finds the "
35542 "right one to remove, putting the remaining options into the C<args> array."
35546 #: ../src/guestfs.pod:965
35549 #| " #!/usr/bin/guestfish -f\n"
35555 " #!/usr/bin/guestfish -f\n"
35559 #: ../src/guestfs.pod:967
35563 " while [ $# -gt 0 ]; do\n"
35564 " case \"$1\" in\n"
35568 " args[i]=\"$1\"\n"
35577 #: ../src/guestfs.pod:979
35580 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35585 #: ../src/guestfs.pod:981
35586 msgid "ATTACHING TO RUNNING DAEMONS"
35587 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
35590 #: ../src/guestfs.pod:983
35592 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35593 "babies. Use with caution."
35597 #: ../src/guestfs.pod:986
35599 "I<Note (2):> This section explains how to attach to a running daemon from a "
35600 "low level perspective. For most users, simply using virt tools such as "
35601 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35605 #: ../src/guestfs.pod:990
35606 msgid "Using guestfs_set_attach_method"
35607 msgstr "За допомогою guestfs_set_attach_method"
35610 #: ../src/guestfs.pod:992
35612 "By calling L</guestfs_set_attach_method> you can change how the library "
35613 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
35614 "ARCHITECTURE> for some background)."
35618 #: ../src/guestfs.pod:996
35620 "The normal attach method is C<appliance>, where a small appliance is created "
35621 "containing the daemon, and then the library connects to this."
35625 #: ../src/guestfs.pod:999
35627 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35628 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35629 "daemon over the Unix domain socket."
35633 #: ../src/guestfs.pod:1003
35635 "The normal use for this is to connect to a running virtual machine that "
35636 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35637 "files inside the live virtual machine."
35641 #: ../src/guestfs.pod:1007
35642 msgid "Using guestfs_add_domain with live flag"
35643 msgstr "За допомогою guestfs_add_domain з прапорцем live"
35646 #: ../src/guestfs.pod:1009
35648 "L</guestfs_add_domain> provides some help for getting the correct attach "
35649 "method. If you pass the C<live> option to this function, then (if the "
35650 "virtual machine is running) it will examine the libvirt XML looking for a "
35651 "virtio-serial channel to connect to:"
35655 #: ../src/guestfs.pod:1015
35662 " <channel type='unix'>\n"
35663 " <source mode='bind' path='/path/to/socket'/>\n"
35664 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35675 " <channel type='unix'>\n"
35676 " <source mode='bind' path='/path/to/socket'/>\n"
35677 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35685 #: ../src/guestfs.pod:1027
35687 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
35688 "method to C<unix:/path/to/socket>."
35692 #: ../src/guestfs.pod:1030
35694 "Some of the libguestfs tools (including guestfish) support a I<--live> "
35695 "option which is passed through to L</guestfs_add_domain> thus allowing you "
35696 "to attach to and modify live virtual machines."
35700 #: ../src/guestfs.pod:1034
35702 "The virtual machine needs to have been set up beforehand so that it has the "
35703 "virtio-serial channel and so that guestfsd is running inside it."
35707 #: ../src/guestfs.pod:1038
35708 msgid "ABI GUARANTEE"
35709 msgstr "ГАРАНТІЯ ЩОДО ABI"
35712 #: ../src/guestfs.pod:1040
35714 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
35715 "actions as outlined in this section. Although we will deprecate some "
35716 "actions, for example if they get replaced by newer calls, we will keep the "
35717 "old actions forever. This allows you the developer to program in confidence "
35718 "against the libguestfs API."
35722 #: ../src/guestfs.pod:1046
35723 msgid "BLOCK DEVICE NAMING"
35724 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
35727 #: ../src/guestfs.pod:1048
35729 "In the kernel there is now quite a profusion of schemata for naming block "
35730 "devices (in this context, by I<block device> I mean a physical or virtual "
35731 "hard drive). The original Linux IDE driver used names starting with C</dev/"
35732 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
35733 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
35734 "for the old IDE driver (particularly for SATA devices) those devices also "
35735 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
35736 "paravirtualized drivers. This has created several different naming systems, "
35737 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
35741 #: ../src/guestfs.pod:1060
35743 "As discussed above, libguestfs uses a qemu appliance running an embedded "
35744 "Linux kernel to access block devices. We can run a variety of appliances "
35745 "based on a variety of Linux kernels."
35749 #: ../src/guestfs.pod:1064
35751 "This causes a problem for libguestfs because many API calls use device or "
35752 "partition names. Working scripts and the recipe (example) scripts that we "
35753 "make available over the internet could fail if the naming scheme changes."
35757 #: ../src/guestfs.pod:1069
35759 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
35760 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
35761 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
35762 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
35766 #: ../src/guestfs.pod:1075
35768 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
35769 "L</guestfs_list_partitions> and similar calls return the true names of the "
35770 "devices and partitions as known to the appliance."
35774 #: ../src/guestfs.pod:1080
35775 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
35779 #: ../src/guestfs.pod:1082
35781 "Usually this translation is transparent. However in some (very rare) cases "
35782 "you may need to know the exact algorithm. Such cases include where you use "
35783 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
35784 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
35788 #: ../src/guestfs.pod:1088
35790 "The algorithm is applied only to I<parameters> which are known to be either "
35791 "device or partition names. Return values from functions such as L</"
35792 "guestfs_list_devices> are never changed."
35796 #: ../src/guestfs.pod:1096
35797 msgid "Is the string a parameter which is a device or partition name?"
35801 #: ../src/guestfs.pod:1100
35802 msgid "Does the string begin with C</dev/sd>?"
35803 msgstr "Чи починається рядок з C</dev/sd>?"
35806 #: ../src/guestfs.pod:1104
35808 "Does the named device exist? If so, we use that device. However if I<not> "
35809 "then we continue with this algorithm."
35813 #: ../src/guestfs.pod:1109
35814 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
35818 #: ../src/guestfs.pod:1111
35819 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
35823 #: ../src/guestfs.pod:1113
35824 msgid "If that named device exists, use it. If not, continue."
35828 #: ../src/guestfs.pod:1117
35829 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
35833 #: ../src/guestfs.pod:1119
35834 msgid "If that named device exists, use it. If not, return an error."
35838 #: ../src/guestfs.pod:1123
35839 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
35843 #: ../src/guestfs.pod:1125
35845 "Although the standard naming scheme and automatic translation is useful for "
35846 "simple programs and guestfish scripts, for larger programs it is best not to "
35847 "rely on this mechanism."
35851 #: ../src/guestfs.pod:1129
35853 "Where possible for maximum future portability programs using libguestfs "
35854 "should use these future-proof techniques:"
35858 #: ../src/guestfs.pod:1136
35860 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
35861 "device names, and then use those names directly."
35865 #: ../src/guestfs.pod:1139
35867 "Since those device names exist by definition, they will never be translated."
35871 #: ../src/guestfs.pod:1144
35873 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
35874 "filesystem labels."
35878 #: ../src/guestfs.pod:1149
35883 #: ../src/guestfs.pod:1151
35885 "This section discusses security implications of using libguestfs, "
35886 "particularly with untrusted or malicious guests or disk images."
35890 #: ../src/guestfs.pod:1154
35891 msgid "GENERAL SECURITY CONSIDERATIONS"
35892 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
35895 #: ../src/guestfs.pod:1156
35897 "Be careful with any files or data that you download from a guest (by "
35898 "\"download\" we mean not just the L</guestfs_download> command but any "
35899 "command that reads files, filenames, directories or anything else from a "
35900 "disk image). An attacker could manipulate the data to fool your program "
35901 "into doing the wrong thing. Consider cases such as:"
35905 #: ../src/guestfs.pod:1166
35906 msgid "the data (file etc) not being present"
35910 #: ../src/guestfs.pod:1170
35911 msgid "being present but empty"
35915 #: ../src/guestfs.pod:1174
35916 msgid "being much larger than normal"
35920 #: ../src/guestfs.pod:1178
35921 msgid "containing arbitrary 8 bit data"
35925 #: ../src/guestfs.pod:1182
35926 msgid "being in an unexpected character encoding"
35930 #: ../src/guestfs.pod:1186
35931 msgid "containing homoglyphs."
35935 #: ../src/guestfs.pod:1190
35936 msgid "SECURITY OF MOUNTING FILESYSTEMS"
35937 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
35940 #: ../src/guestfs.pod:1192
35942 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
35943 "(VFS) module can sometimes be escalated into exploits by deliberately "
35944 "creating a malicious, malformed filesystem. These exploits are very severe "
35945 "for two reasons. Firstly there are very many filesystem drivers in the "
35946 "kernel, and many of them are infrequently used and not much developer "
35947 "attention has been paid to the code. Linux userspace helps potential "
35948 "crackers by detecting the filesystem type and automatically choosing the "
35949 "right VFS driver, even if that filesystem type is obscure or unexpected for "
35950 "the administrator. Secondly, a kernel-level exploit is like a local root "
35951 "exploit (worse in some ways), giving immediate and total access to the "
35952 "system right down to the hardware level."
35956 #: ../src/guestfs.pod:1205
35958 "That explains why you should never mount a filesystem from an untrusted "
35959 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
35960 "inside a qemu virtual machine, usually running as a non-root user. The "
35961 "attacker would need to write a filesystem which first exploited the kernel, "
35962 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
35963 "the libguestfs protocol, and finally to be as serious as the host kernel "
35964 "exploit it would need to escalate its privileges to root. This multi-step "
35965 "escalation, performed by a static piece of data, is thought to be extremely "
35966 "hard to do, although we never say 'never' about security issues."
35970 #: ../src/guestfs.pod:1216
35972 "In any case callers can reduce the attack surface by forcing the filesystem "
35973 "type when mounting (use L</guestfs_mount_vfs>)."
35977 #: ../src/guestfs.pod:1219
35978 msgid "PROTOCOL SECURITY"
35979 msgstr "ЗАХИСТ ПРОТОКОЛУ"
35982 #: ../src/guestfs.pod:1221
35984 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
35985 "defined upper message size. However a program that uses libguestfs must "
35986 "also take care - for example you can write a program that downloads a binary "
35987 "from a disk image and executes it locally, and no amount of protocol "
35988 "security will save you from the consequences."
35992 #: ../src/guestfs.pod:1227
35993 msgid "INSPECTION SECURITY"
35997 #: ../src/guestfs.pod:1229
35999 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36000 "directly from the guest, and these could contain any 8 bit data. Callers "
36001 "should be careful to escape these before printing them to a structured file "
36002 "(for example, use HTML escaping if creating a web page)."
36006 #: ../src/guestfs.pod:1235
36008 "Guest configuration may be altered in unusual ways by the administrator of "
36009 "the virtual machine, and may not reflect reality (particularly for untrusted "
36010 "or actively malicious guests). For example we parse the hostname from "
36011 "configuration files like C</etc/sysconfig/network> that we find in the "
36012 "guest, but the guest administrator can easily manipulate these files to "
36013 "provide the wrong hostname."
36017 #: ../src/guestfs.pod:1243
36019 "The inspection API parses guest configuration using two external libraries: "
36020 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
36021 "designed to be robust in the face of malicious data, although denial of "
36022 "service attacks are still possible, for example with oversized configuration "
36027 #: ../src/guestfs.pod:1249
36028 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36029 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
36032 #: ../src/guestfs.pod:1251
36034 "Be very cautious about running commands from the guest. By running a "
36035 "command in the guest, you are giving CPU time to a binary that you do not "
36036 "control, under the same user account as the library, albeit wrapped in qemu "
36037 "virtualization. More information and alternatives can be found in the "
36038 "section L</RUNNING COMMANDS>."
36042 #: ../src/guestfs.pod:1257
36043 msgid "CVE-2010-3851"
36044 msgstr "CVE-2010-3851"
36047 #: ../src/guestfs.pod:1259
36048 msgid "https://bugzilla.redhat.com/642934"
36049 msgstr "https://bugzilla.redhat.com/642934"
36052 #: ../src/guestfs.pod:1261
36054 "This security bug concerns the automatic disk format detection that qemu "
36055 "does on disk images."
36059 #: ../src/guestfs.pod:1264
36061 "A raw disk image is just the raw bytes, there is no header. Other disk "
36062 "images like qcow2 contain a special header. Qemu deals with this by looking "
36063 "for one of the known headers, and if none is found then assuming the disk "
36064 "image must be raw."
36068 #: ../src/guestfs.pod:1269
36070 "This allows a guest which has been given a raw disk image to write some "
36071 "other header. At next boot (or when the disk image is accessed by "
36072 "libguestfs) qemu would do autodetection and think the disk image format was, "
36073 "say, qcow2 based on the header written by the guest."
36077 #: ../src/guestfs.pod:1274
36079 "This in itself would not be a problem, but qcow2 offers many features, one "
36080 "of which is to allow a disk image to refer to another image (called the "
36081 "\"backing disk\"). It does this by placing the path to the backing disk "
36082 "into the qcow2 header. This path is not validated and could point to any "
36083 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
36084 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36085 "control of the attacker."
36089 #: ../src/guestfs.pod:1282
36091 "In libguestfs this is rather hard to exploit except under two circumstances:"
36095 #: ../src/guestfs.pod:1289
36096 msgid "You have enabled the network or have opened the disk in write mode."
36100 #: ../src/guestfs.pod:1293
36102 "You are also running untrusted code from the guest (see L</RUNNING "
36107 #: ../src/guestfs.pod:1298
36109 "The way to avoid this is to specify the expected disk format when adding "
36110 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
36111 "should always do this if the disk is raw format, and it's a good idea for "
36116 #: ../src/guestfs.pod:1303
36118 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36119 "format is fetched from libvirt and passed through."
36123 #: ../src/guestfs.pod:1306
36125 "For libguestfs tools, use the I<--format> command line parameter as "
36130 #: ../src/guestfs.pod:1309
36131 msgid "CONNECTION MANAGEMENT"
36132 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
36135 #: ../src/guestfs.pod:1311
36136 msgid "guestfs_h *"
36137 msgstr "guestfs_h *"
36140 #: ../src/guestfs.pod:1313
36142 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
36143 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
36144 "handle and release all resources used."
36148 #: ../src/guestfs.pod:1317
36150 "For information on using multiple handles and threads, see the section L</"
36151 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
36155 #: ../src/guestfs.pod:1320
36156 msgid "guestfs_create"
36157 msgstr "guestfs_create"
36160 #: ../src/guestfs.pod:1322
36163 " guestfs_h *guestfs_create (void);\n"
36166 " guestfs_h *guestfs_create (void);\n"
36170 #: ../src/guestfs.pod:1324
36171 msgid "Create a connection handle."
36172 msgstr "Створити дескриптор з’єднання."
36175 #: ../src/guestfs.pod:1326
36177 "On success this returns a non-NULL pointer to a handle. On error it returns "
36182 #: ../src/guestfs.pod:1329
36184 "You have to \"configure\" the handle after creating it. This includes "
36185 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
36186 "handle at least once."
36190 #: ../src/guestfs.pod:1333
36191 msgid "After configuring the handle, you have to call L</guestfs_launch>."
36195 #: ../src/guestfs.pod:1335
36197 "You may also want to configure error handling for the handle. See the L</"
36198 "ERROR HANDLING> section below."
36202 #: ../src/guestfs.pod:1338
36203 msgid "guestfs_close"
36204 msgstr "guestfs_close"
36207 #: ../src/guestfs.pod:1340
36210 " void guestfs_close (guestfs_h *g);\n"
36213 " void guestfs_close (guestfs_h *g);\n"
36217 #: ../src/guestfs.pod:1342
36218 msgid "This closes the connection handle and frees up all resources used."
36222 #: ../src/guestfs.pod:1344
36224 "If autosync was set on the handle and the handle was launched, then this "
36225 "implicitly calls various functions to unmount filesystems and sync the "
36226 "disk. See L</guestfs_set_autosync> for more details."
36230 #: ../src/guestfs.pod:1348
36231 msgid "If a close callback was set on the handle, then it is called."
36235 #: ../src/guestfs.pod:1350
36236 msgid "ERROR HANDLING"
36237 msgstr "ОБРОБКА ПОМИЛОК"
36240 #: ../src/guestfs.pod:1352
36242 "API functions can return errors. For example, almost all functions that "
36243 "return C<int> will return C<-1> to indicate an error."
36247 #: ../src/guestfs.pod:1355
36249 "Additional information is available for errors: an error message string and "
36250 "optionally an error number (errno) if the thing that failed was a system "
36255 #: ../src/guestfs.pod:1359
36257 "You can get at the additional information about the last error on the handle "
36258 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
36259 "up an error handler with L</guestfs_set_error_handler>."
36263 #: ../src/guestfs.pod:1364
36265 "When the handle is created, a default error handler is installed which "
36266 "prints the error message string to C<stderr>. For small short-running "
36267 "command line programs it is sufficient to do:"
36271 #: ../src/guestfs.pod:1368
36274 " if (guestfs_launch (g) == -1)\n"
36275 " exit (EXIT_FAILURE);\n"
36278 " if (guestfs_launch (g) == -1)\n"
36279 " exit (EXIT_FAILURE);\n"
36283 #: ../src/guestfs.pod:1371
36285 "since the default error handler will ensure that an error message has been "
36286 "printed to C<stderr> before the program exits."
36290 #: ../src/guestfs.pod:1374
36292 "For other programs the caller will almost certainly want to install an "
36293 "alternate error handler or do error handling in-line like this:"
36297 #: ../src/guestfs.pod:1377
36300 " /* This disables the default behaviour of printing errors\n"
36302 " guestfs_set_error_handler (g, NULL, NULL);\n"
36307 #: ../src/guestfs.pod:1381
36310 #| " if (guestfs_launch (g) == -1) {\n"
36311 #| " /* Examine the error message and print it etc. */\n"
36312 #| " char *msg = guestfs_last_error (g);\n"
36313 #| " int errnum = guestfs_last_errno (g);\n"
36314 #| " fprintf (stderr, \"%s\\n\", msg);\n"
36319 " if (guestfs_launch (g) == -1) {\n"
36320 " /* Examine the error message and print it etc. */\n"
36321 " char *msg = guestfs_last_error (g);\n"
36322 " int errnum = guestfs_last_errno (g);\n"
36323 " fprintf (stderr, \"%s\", msg);\n"
36324 " if (errnum != 0)\n"
36325 " fprintf (stderr, \": %s\", strerror (errnum));\n"
36326 " fprintf (stderr, \"\\n\");\n"
36331 " if (guestfs_launch (g) == -1) {\n"
36332 " /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
36333 " char *msg = guestfs_last_error (g);\n"
36334 " int errnum = guestfs_last_errno (g);\n"
36335 " fprintf (stderr, \"%s\\n\", msg);\n"
36341 #: ../src/guestfs.pod:1392
36343 "Out of memory errors are handled differently. The default action is to call "
36344 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
36345 "guestfs_set_out_of_memory_handler>."
36349 #: ../src/guestfs.pod:1396
36351 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36352 "because there is no handle if this happens there is no way to get additional "
36353 "error information. However L</guestfs_create> is supposed to be a "
36354 "lightweight operation which can only fail because of insufficient memory (it "
36355 "returns NULL in this case)."
36359 #: ../src/guestfs.pod:1402
36360 msgid "guestfs_last_error"
36361 msgstr "guestfs_last_error"
36364 #: ../src/guestfs.pod:1404
36367 " const char *guestfs_last_error (guestfs_h *g);\n"
36370 " const char *guestfs_last_error (guestfs_h *g);\n"
36374 #: ../src/guestfs.pod:1406
36376 "This returns the last error message that happened on C<g>. If there has not "
36377 "been an error since the handle was created, then this returns C<NULL>."
36381 #: ../src/guestfs.pod:1410
36383 "The lifetime of the returned string is until the next error occurs, or L</"
36384 "guestfs_close> is called."
36388 #: ../src/guestfs.pod:1413
36389 msgid "guestfs_last_errno"
36390 msgstr "guestfs_last_errno"
36393 #: ../src/guestfs.pod:1415
36396 " int guestfs_last_errno (guestfs_h *g);\n"
36399 " int guestfs_last_errno (guestfs_h *g);\n"
36403 #: ../src/guestfs.pod:1417
36404 msgid "This returns the last error number (errno) that happened on C<g>."
36408 #: ../src/guestfs.pod:1419
36409 msgid "If successful, an errno integer not equal to zero is returned."
36413 #: ../src/guestfs.pod:1421
36415 "If no error, this returns 0. This call can return 0 in three situations:"
36419 #: ../src/guestfs.pod:1428
36420 msgid "There has not been any error on the handle."
36424 #: ../src/guestfs.pod:1432
36426 "There has been an error but the errno was meaningless. This corresponds to "
36427 "the case where the error did not come from a failed system call, but for "
36428 "some other reason."
36432 #: ../src/guestfs.pod:1438
36434 "There was an error from a failed system call, but for some reason the errno "
36435 "was not captured and returned. This usually indicates a bug in libguestfs."
36439 #: ../src/guestfs.pod:1444
36441 "Libguestfs tries to convert the errno from inside the applicance into a "
36442 "corresponding errno for the caller (not entirely trivial: the appliance "
36443 "might be running a completely different operating system from the library "
36444 "and error numbers are not standardized across Un*xen). If this could not be "
36445 "done, then the error is translated to C<EINVAL>. In practice this should "
36446 "only happen in very rare circumstances."
36450 #: ../src/guestfs.pod:1452
36451 msgid "guestfs_set_error_handler"
36452 msgstr "guestfs_set_error_handler"
36455 #: ../src/guestfs.pod:1454
36458 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36460 " const char *msg);\n"
36461 " void guestfs_set_error_handler (guestfs_h *g,\n"
36462 " guestfs_error_handler_cb cb,\n"
36463 " void *opaque);\n"
36466 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36468 " const char *msg);\n"
36469 " void guestfs_set_error_handler (guestfs_h *g,\n"
36470 " guestfs_error_handler_cb cb,\n"
36471 " void *opaque);\n"
36475 #: ../src/guestfs.pod:1461
36477 "The callback C<cb> will be called if there is an error. The parameters "
36478 "passed to the callback are an opaque data pointer and the error message "
36483 #: ../src/guestfs.pod:1465
36485 "C<errno> is not passed to the callback. To get that the callback must call "
36486 "L</guestfs_last_errno>."
36490 #: ../src/guestfs.pod:1468
36492 "Note that the message string C<msg> is freed as soon as the callback "
36493 "function returns, so if you want to stash it somewhere you must make your "
36498 #: ../src/guestfs.pod:1472
36499 msgid "The default handler prints messages on C<stderr>."
36503 #: ../src/guestfs.pod:1474
36504 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
36508 #: ../src/guestfs.pod:1476
36509 msgid "guestfs_get_error_handler"
36510 msgstr "guestfs_get_error_handler"
36513 #: ../src/guestfs.pod:1478
36516 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36517 " void **opaque_rtn);\n"
36520 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36521 " void **opaque_rtn);\n"
36525 #: ../src/guestfs.pod:1481
36526 msgid "Returns the current error handler callback."
36530 #: ../src/guestfs.pod:1483
36531 msgid "guestfs_set_out_of_memory_handler"
36532 msgstr "guestfs_set_out_of_memory_handler"
36535 #: ../src/guestfs.pod:1485
36538 #| " typedef void (*guestfs_abort_cb) (void);\n"
36539 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36540 #| " guestfs_abort_cb);\n"
36543 " typedef void (*guestfs_abort_cb) (void);\n"
36544 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36545 " guestfs_abort_cb);\n"
36548 " typedef void (*guestfs_abort_cb) (void);\n"
36549 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36550 " guestfs_abort_cb);\n"
36554 #: ../src/guestfs.pod:1489
36556 "The callback C<cb> will be called if there is an out of memory situation. "
36557 "I<Note this callback must not return>."
36561 #: ../src/guestfs.pod:1492
36562 msgid "The default is to call L<abort(3)>."
36566 #: ../src/guestfs.pod:1494
36568 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
36572 #: ../src/guestfs.pod:1497
36573 msgid "guestfs_get_out_of_memory_handler"
36574 msgstr "guestfs_get_out_of_memory_handler"
36577 #: ../src/guestfs.pod:1499
36580 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36583 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36587 #: ../src/guestfs.pod:1501
36588 msgid "This returns the current out of memory handler."
36592 #: ../src/guestfs.pod:1503
36594 msgstr "ВИКЛИКИ API"
36597 #: ../src/guestfs.pod:1507
36602 #: ../src/guestfs.pod:1509
36607 #: ../src/guestfs.pod:1511
36608 msgid "AVAILABILITY"
36609 msgstr "ДОСТУПНІСТЬ"
36612 #: ../src/guestfs.pod:1513
36613 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
36614 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
36617 #: ../src/guestfs.pod:1515
36619 "Using L</guestfs_available> you can test availability of the following "
36620 "groups of functions. This test queries the appliance to see if the "
36621 "appliance you are currently using supports the functionality."
36625 #: ../src/guestfs.pod:1520
36626 msgid "@AVAILABILITY@"
36627 msgstr "@AVAILABILITY@"
36630 #: ../src/guestfs.pod:1522
36631 msgid "GUESTFISH supported COMMAND"
36635 #: ../src/guestfs.pod:1524
36637 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36638 "prints out the available groups and whether they are supported by this build "
36639 "of libguestfs. Note however that you have to do C<run> first."
36643 #: ../src/guestfs.pod:1529
36644 msgid "SINGLE CALLS AT COMPILE TIME"
36648 #: ../src/guestfs.pod:1531
36650 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36651 "function, such as:"
36655 #: ../src/guestfs.pod:1534
36658 " #define LIBGUESTFS_HAVE_DD 1\n"
36661 " #define LIBGUESTFS_HAVE_DD 1\n"
36665 #: ../src/guestfs.pod:1536
36666 msgid "if L</guestfs_dd> is available."
36670 #: ../src/guestfs.pod:1538
36672 "Before version 1.5.8, if you needed to test whether a single libguestfs "
36673 "function is available at compile time, we recommended using build tools such "
36674 "as autoconf or cmake. For example in autotools you could use:"
36678 #: ../src/guestfs.pod:1543
36681 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36682 " AC_CHECK_FUNCS([guestfs_dd])\n"
36685 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36686 " AC_CHECK_FUNCS([guestfs_dd])\n"
36690 #: ../src/guestfs.pod:1546
36692 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
36697 #: ../src/guestfs.pod:1549
36698 msgid "SINGLE CALLS AT RUN TIME"
36702 #: ../src/guestfs.pod:1551
36704 "Testing at compile time doesn't guarantee that a function really exists in "
36705 "the library. The reason is that you might be dynamically linked against a "
36706 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
36707 "This situation unfortunately results in a segmentation fault, which is a "
36708 "shortcoming of the C dynamic linking system itself."
36712 #: ../src/guestfs.pod:1558
36714 "You can use L<dlopen(3)> to test if a function is available at run time, as "
36715 "in this example program (note that you still need the compile time check as "
36720 #: ../src/guestfs.pod:1562
36723 " #include <stdio.h>\n"
36724 " #include <stdlib.h>\n"
36725 " #include <unistd.h>\n"
36726 " #include <dlfcn.h>\n"
36727 " #include <guestfs.h>\n"
36730 " #include <stdio.h>\n"
36731 " #include <stdlib.h>\n"
36732 " #include <unistd.h>\n"
36733 " #include <dlfcn.h>\n"
36734 " #include <guestfs.h>\n"
36738 #: ../src/guestfs.pod:1568
36743 " #ifdef LIBGUESTFS_HAVE_DD\n"
36745 " int has_function;\n"
36750 " #ifdef LIBGUESTFS_HAVE_DD\n"
36752 " int has_function;\n"
36756 #: ../src/guestfs.pod:1574
36759 " /* Test if the function guestfs_dd is really available. */\n"
36760 " dl = dlopen (NULL, RTLD_LAZY);\n"
36762 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
36763 " exit (EXIT_FAILURE);\n"
36765 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
36771 #: ../src/guestfs.pod:1583
36774 " if (!has_function)\n"
36775 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
36777 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
36778 " /* Now it's safe to call\n"
36779 " guestfs_dd (g, \"foo\", \"bar\");\n"
36783 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
36790 #: ../src/guestfs.pod:1596
36792 "You may think the above is an awful lot of hassle, and it is. There are "
36793 "other ways outside of the C linking system to ensure that this kind of "
36794 "incompatibility never arises, such as using package versioning:"
36798 #: ../src/guestfs.pod:1601
36801 " Requires: libguestfs >= 1.0.80\n"
36806 #: ../src/guestfs.pod:1603
36807 msgid "CALLS WITH OPTIONAL ARGUMENTS"
36811 #: ../src/guestfs.pod:1605
36813 "A recent feature of the API is the introduction of calls which take optional "
36814 "arguments. In C these are declared 3 ways. The main way is as a call which "
36815 "takes variable arguments (ie. C<...>), as in this example:"
36819 #: ../src/guestfs.pod:1610
36822 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36825 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36829 #: ../src/guestfs.pod:1612
36831 "Call this with a list of optional arguments, terminated by C<-1>. So to "
36832 "call with no optional arguments specified:"
36836 #: ../src/guestfs.pod:1615
36839 " guestfs_add_drive_opts (g, filename, -1);\n"
36842 " guestfs_add_drive_opts (g, filename, -1);\n"
36846 #: ../src/guestfs.pod:1617
36847 msgid "With a single optional argument:"
36851 #: ../src/guestfs.pod:1619
36854 " guestfs_add_drive_opts (g, filename,\n"
36855 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36859 " guestfs_add_drive_opts (g, filename,\n"
36860 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36865 #: ../src/guestfs.pod:1623
36870 #: ../src/guestfs.pod:1625
36873 " guestfs_add_drive_opts (g, filename,\n"
36874 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36875 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36879 " guestfs_add_drive_opts (g, filename,\n"
36880 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36881 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36886 #: ../src/guestfs.pod:1630
36888 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
36893 #: ../src/guestfs.pod:1633
36894 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
36898 #: ../src/guestfs.pod:1635
36900 "The second variant has the same name with the suffix C<_va>, which works the "
36901 "same way but takes a C<va_list>. See the C manual for details. For the "
36902 "example function, this is declared:"
36906 #: ../src/guestfs.pod:1639
36909 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36910 " va_list args);\n"
36913 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36914 " va_list args);\n"
36918 #: ../src/guestfs.pod:1642
36919 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
36923 #: ../src/guestfs.pod:1644
36925 "The third variant is useful where you need to construct these calls. You "
36926 "pass in a structure where you fill in the optional fields. The structure "
36927 "has a bitmask as the first element which you must set to indicate which "
36928 "fields you have filled in. For our example function the structure and call "
36933 #: ../src/guestfs.pod:1650
36936 " struct guestfs_add_drive_opts_argv {\n"
36937 " uint64_t bitmask;\n"
36939 " const char *format;\n"
36942 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36943 " const struct guestfs_add_drive_opts_argv *optargs);\n"
36946 " struct guestfs_add_drive_opts_argv {\n"
36947 " uint64_t bitmask;\n"
36949 " const char *format;\n"
36952 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36953 " const struct guestfs_add_drive_opts_argv *optargs);\n"
36957 #: ../src/guestfs.pod:1659
36958 msgid "You could call it like this:"
36962 #: ../src/guestfs.pod:1661
36965 " struct guestfs_add_drive_opts_argv optargs = {\n"
36966 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36967 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36968 " .readonly = 1,\n"
36969 " .format = \"qcow2\"\n"
36973 " struct guestfs_add_drive_opts_argv optargs = {\n"
36974 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36975 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36976 " .readonly = 1,\n"
36977 " .format = \"qcow2\"\n"
36982 #: ../src/guestfs.pod:1668
36985 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36988 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36992 #: ../src/guestfs.pod:1676
36993 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
36997 #: ../src/guestfs.pod:1681
36998 msgid "You do not need to fill in all fields of the structure."
37002 #: ../src/guestfs.pod:1685
37004 "There must be a one-to-one correspondence between fields of the structure "
37005 "that are filled in, and bits set in the bitmask."
37009 #: ../src/guestfs.pod:1690
37010 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37014 #: ../src/guestfs.pod:1692
37016 "In other languages, optional arguments are expressed in the way that is "
37017 "natural for that language. We refer you to the language-specific "
37018 "documentation for more details on that."
37022 #: ../src/guestfs.pod:1696
37023 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37027 #: ../src/guestfs.pod:1698
37028 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37032 #: ../src/guestfs.pod:1700
37034 "B<Note:> This section documents the generic event mechanism introduced in "
37035 "libguestfs 1.10, which you should use in new code if possible. The old "
37036 "functions C<guestfs_set_log_message_callback>, "
37037 "C<guestfs_set_subprocess_quit_callback>, "
37038 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37039 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37040 "page. Because of the ABI guarantee, the old functions continue to work."
37044 #: ../src/guestfs.pod:1709
37046 "Handles generate events when certain things happen, such as log messages "
37047 "being generated, progress messages during long-running operations, or the "
37048 "handle being closed. The API calls described below let you register a "
37049 "callback to be called when events happen. You can register multiple "
37050 "callbacks (for the same, different or overlapping sets of events), and "
37051 "individually remove callbacks. If callbacks are not removed, then they "
37052 "remain in force until the handle is closed."
37056 #: ../src/guestfs.pod:1717
37058 "In the current implementation, events are only generated synchronously: that "
37059 "means that events (and hence callbacks) can only happen while you are in the "
37060 "middle of making another libguestfs call. The callback is called in the "
37065 #: ../src/guestfs.pod:1722
37067 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37068 "unsigned integers, or a message buffer. Payloads are discussed later on."
37072 #: ../src/guestfs.pod:1726
37073 msgid "CLASSES OF EVENTS"
37077 #: ../src/guestfs.pod:1730
37078 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37082 #: ../src/guestfs.pod:1733
37084 "The callback function will be called while the handle is being closed "
37085 "(synchronously from L</guestfs_close>)."
37089 #: ../src/guestfs.pod:1736
37091 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37092 "handles that are open when the program exits. This means that this callback "
37093 "might be called indirectly from L<exit(3)>, which can cause unexpected "
37094 "problems in higher-level languages (eg. if your HLL interpreter has already "
37095 "been cleaned up by the time this is called, and if your callback then jumps "
37096 "into some HLL function)."
37100 #: ../src/guestfs.pod:1743
37102 "If no callback is registered: the handle is closed without any callback "
37107 #: ../src/guestfs.pod:1746
37108 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37112 #: ../src/guestfs.pod:1749
37114 "The callback function will be called when the child process quits, either "
37115 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
37116 "corresponds to a transition from any state to the CONFIG state)."
37120 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
37121 msgid "If no callback is registered: the event is ignored."
37125 #: ../src/guestfs.pod:1755
37126 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37130 #: ../src/guestfs.pod:1758
37132 "The callback function will be called when the child process becomes ready "
37133 "first time after it has been launched. (This corresponds to a transition "
37134 "from LAUNCHING to the READY state)."
37138 #: ../src/guestfs.pod:1764
37139 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37143 #: ../src/guestfs.pod:1767
37145 "Some long-running operations can generate progress messages. If this "
37146 "callback is registered, then it will be called each time a progress message "
37147 "is generated (usually two seconds after the operation started, and three "
37148 "times per second thereafter until it completes, although the frequency may "
37149 "change in future versions)."
37153 #: ../src/guestfs.pod:1773
37155 "The callback receives in the payload four unsigned 64 bit numbers which are "
37156 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
37160 #: ../src/guestfs.pod:1776
37162 "The units of C<total> are not defined, although for some operations C<total> "
37163 "may relate in some way to the amount of data to be transferred (eg. in bytes "
37164 "or megabytes), and C<position> may be the portion which has been transferred."
37168 #: ../src/guestfs.pod:1781
37169 msgid "The only defined and stable parts of the API are:"
37173 #: ../src/guestfs.pod:1787
37175 "The callback can display to the user some type of progress bar or indicator "
37176 "which shows the ratio of C<position>:C<total>."
37180 #: ../src/guestfs.pod:1792
37181 msgid "0 E<lt>= C<position> E<lt>= C<total>"
37185 #: ../src/guestfs.pod:1796
37187 "If any progress notification is sent during a call, then a final progress "
37188 "notification is always sent when C<position> = C<total> (I<unless> the call "
37189 "fails with an error)."
37193 #: ../src/guestfs.pod:1800
37195 "This is to simplify caller code, so callers can easily set the progress "
37196 "indicator to \"100%\" at the end of the operation, without requiring special "
37197 "code to detect this case."
37201 #: ../src/guestfs.pod:1806
37203 "For some calls we are unable to estimate the progress of the call, but we "
37204 "can still generate progress messages to indicate activity. This is known as "
37205 "\"pulse mode\", and is directly supported by certain progress bar "
37206 "implementations (eg. GtkProgressBar)."
37210 #: ../src/guestfs.pod:1811
37212 "For these calls, zero or more progress messages are generated with "
37213 "C<position = 0> and C<total = 1>, followed by a final message with "
37214 "C<position = total = 1>."
37218 #: ../src/guestfs.pod:1815
37220 "As noted above, if the call fails with an error then the final message may "
37221 "not be generated."
37225 #: ../src/guestfs.pod:1820
37227 "The callback also receives the procedure number (C<proc_nr>) and serial "
37228 "number (C<serial>) of the call. These are only useful for debugging "
37229 "protocol issues, and the callback can normally ignore them. The callback "
37230 "may want to print these numbers in error messages or debugging messages."
37234 #: ../src/guestfs.pod:1826
37235 msgid "If no callback is registered: progress messages are discarded."
37239 #: ../src/guestfs.pod:1828
37240 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37244 #: ../src/guestfs.pod:1831
37246 "The callback function is called whenever a log message is generated by qemu, "
37247 "the appliance kernel, guestfsd (daemon), or utility programs."
37251 #: ../src/guestfs.pod:1834
37253 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
37254 "guestfs_launch>) then additional debug messages are generated."
37258 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
37260 "If no callback is registered: the messages are discarded unless the verbose "
37261 "flag is set in which case they are sent to stderr. You can override the "
37262 "printing of verbose messages to stderr by setting up a callback."
37266 #: ../src/guestfs.pod:1842
37267 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
37271 #: ../src/guestfs.pod:1845
37273 "The callback function is called whenever a log message is generated by the "
37274 "library part of libguestfs."
37278 #: ../src/guestfs.pod:1848
37280 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
37281 "messages are generated."
37285 #: ../src/guestfs.pod:1856
37286 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
37290 #: ../src/guestfs.pod:1859
37292 "The callback function is called whenever a trace message is generated. This "
37293 "only applies if the trace flag (L</guestfs_set_trace>) is set."
37297 #: ../src/guestfs.pod:1862
37299 "If no callback is registered: the messages are sent to stderr. You can "
37300 "override the printing of trace messages to stderr by setting up a callback."
37304 #: ../src/guestfs.pod:1866
37305 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
37309 #: ../src/guestfs.pod:1869
37311 "The callback function is called whenever a libguestfs function is entered."
37315 #: ../src/guestfs.pod:1872
37317 "The payload is a string which contains the name of the function that we are "
37318 "entering (not including C<guestfs_> prefix)."
37322 #: ../src/guestfs.pod:1875
37324 "Note that libguestfs functions can call themselves, so you may see many "
37325 "events from a single call. A few libguestfs functions do not generate this "
37330 #: ../src/guestfs.pod:1883
37331 msgid "guestfs_set_event_callback"
37335 #: ../src/guestfs.pod:1885
37338 " int guestfs_set_event_callback (guestfs_h *g,\n"
37339 " guestfs_event_callback cb,\n"
37340 " uint64_t event_bitmask,\n"
37342 " void *opaque);\n"
37347 #: ../src/guestfs.pod:1891
37349 "This function registers a callback (C<cb>) for all event classes in the "
37350 "C<event_bitmask>."
37354 #: ../src/guestfs.pod:1894
37356 "For example, to register for all log message events, you could call this "
37357 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
37358 "To register a single callback for all possible classes of events, use "
37359 "C<GUESTFS_EVENT_ALL>."
37363 #: ../src/guestfs.pod:1900
37364 msgid "C<flags> should always be passed as 0."
37368 #: ../src/guestfs.pod:1902
37370 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
37371 "it for any purpose."
37375 #: ../src/guestfs.pod:1905
37377 "The return value is the event handle (an integer) which you can use to "
37378 "delete the callback (see below)."
37382 #: ../src/guestfs.pod:1908
37384 "If there is an error, this function returns C<-1>, and sets the error in the "
37385 "handle in the usual way (see L</guestfs_last_error> etc.)"
37389 #: ../src/guestfs.pod:1911
37391 "Callbacks remain in effect until they are deleted, or until the handle is "
37396 #: ../src/guestfs.pod:1914
37398 "In the case where multiple callbacks are registered for a particular event "
37399 "class, all of the callbacks are called. The order in which multiple "
37400 "callbacks are called is not defined."
37404 #: ../src/guestfs.pod:1918
37405 msgid "guestfs_delete_event_callback"
37409 #: ../src/guestfs.pod:1920
37412 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37417 #: ../src/guestfs.pod:1922
37419 "Delete a callback that was previously registered. C<event_handle> should be "
37420 "the integer that was returned by a previous call to "
37421 "C<guestfs_set_event_callback> on the same handle."
37425 #: ../src/guestfs.pod:1926
37426 msgid "guestfs_event_callback"
37430 #: ../src/guestfs.pod:1928
37433 " typedef void (*guestfs_event_callback) (\n"
37436 " uint64_t event,\n"
37437 " int event_handle,\n"
37439 " const char *buf, size_t buf_len,\n"
37440 " const uint64_t *array, size_t array_len);\n"
37445 #: ../src/guestfs.pod:1937
37447 "This is the type of the event callback function that you have to provide."
37451 #: ../src/guestfs.pod:1940
37453 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37454 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37455 "handle, and C<flags> which in the current API you should ignore."
37459 #: ../src/guestfs.pod:1944
37461 "The remaining parameters contain the event payload (if any). Each event may "
37462 "contain a payload, which usually relates to the event class, but for future "
37463 "proofing your code should be written to handle any payload for any event "
37468 #: ../src/guestfs.pod:1949
37470 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37471 "there is no message buffer). Note that this message buffer can contain "
37472 "arbitrary 8 bit data, including NUL bytes."
37476 #: ../src/guestfs.pod:1953
37478 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
37479 "moment this is only used for progress messages."
37483 #: ../src/guestfs.pod:1956
37484 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37488 #: ../src/guestfs.pod:1958
37490 "One motivation for the generic event API was to allow GUI programs to "
37491 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
37492 "unconditionally to C<stderr>."
37496 #: ../src/guestfs.pod:1962
37498 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37499 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
37500 "messages are not events; you must capture error messages separately)."
37504 #: ../src/guestfs.pod:1967
37506 "Programs have to set up a callback to capture the classes of events of "
37511 #: ../src/guestfs.pod:1970
37515 " guestfs_set_event_callback\n"
37516 " (g, message_callback,\n"
37517 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37518 " GUESTFS_EVENT_TRACE,\n"
37519 " 0, NULL) == -1)\n"
37520 " if (eh == -1) {\n"
37521 " // handle error in the usual way\n"
37527 #: ../src/guestfs.pod:1980
37529 "The callback can then direct messages to the appropriate place. In this "
37530 "example, messages are directed to syslog:"
37534 #: ../src/guestfs.pod:1983
37538 " message_callback (\n"
37541 " uint64_t event,\n"
37542 " int event_handle,\n"
37544 " const char *buf, size_t buf_len,\n"
37545 " const uint64_t *array, size_t array_len)\n"
37547 " const int priority = LOG_USER|LOG_INFO;\n"
37548 " if (buf_len > 0)\n"
37549 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37555 #: ../src/guestfs.pod:1998
37556 msgid "CANCELLING LONG TRANSFERS"
37560 #: ../src/guestfs.pod:2000
37562 "Some operations can be cancelled by the caller while they are in progress. "
37563 "Currently only operations that involve uploading or downloading data can be "
37564 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37565 "parameters in the generator)."
37569 #: ../src/guestfs.pod:2005
37570 msgid "guestfs_user_cancel"
37574 #: ../src/guestfs.pod:2007
37577 " void guestfs_user_cancel (guestfs_h *g);\n"
37582 #: ../src/guestfs.pod:2009
37584 "C<guestfs_user_cancel> cancels the current upload or download operation."
37588 #: ../src/guestfs.pod:2012
37590 "Unlike most other libguestfs calls, this function is signal safe and thread "
37591 "safe. You can call it from a signal handler or from another thread, without "
37592 "needing to do any locking."
37596 #: ../src/guestfs.pod:2016
37598 "The transfer that was in progress (if there is one) will stop shortly "
37599 "afterwards, and will return an error. The errno (see L</"
37600 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
37601 "out if the operation was cancelled or failed because of another error."
37605 #: ../src/guestfs.pod:2022
37607 "No cleanup is performed: for example, if a file was being uploaded then "
37608 "after cancellation there may be a partially uploaded file. It is the "
37609 "caller's responsibility to clean up if necessary."
37613 #: ../src/guestfs.pod:2026
37614 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37618 #: ../src/guestfs.pod:2028
37620 "In an interactive text-based program, you might call it from a C<SIGINT> "
37621 "signal handler so that pressing C<^C> cancels the current operation. (You "
37622 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37623 "receive the C<^C> signal)."
37627 #: ../src/guestfs.pod:2033
37629 "In a graphical program, when the main thread is displaying a progress bar "
37630 "with a cancel button, wire up the cancel button to call this function."
37634 #: ../src/guestfs.pod:2037
37635 msgid "PRIVATE DATA AREA"
37639 #: ../src/guestfs.pod:2039
37641 "You can attach named pieces of private data to the libguestfs handle, fetch "
37642 "them by name, and walk over them, for the lifetime of the handle. This is "
37643 "called the private data area and is only available from the C API."
37647 #: ../src/guestfs.pod:2044
37648 msgid "To attach a named piece of data, use the following call:"
37652 #: ../src/guestfs.pod:2046
37655 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37658 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37662 #: ../src/guestfs.pod:2048
37664 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
37665 "pointer (which can be C<NULL>). Any previous item with the same key is "
37670 #: ../src/guestfs.pod:2052
37672 "You can use any C<key> you want, but your key should I<not> start with an "
37673 "underscore character. Keys beginning with an underscore character are "
37674 "reserved for internal libguestfs purposes (eg. for implementing language "
37675 "bindings). It is recommended that you prefix the key with some unique "
37676 "string to avoid collisions with other users."
37680 #: ../src/guestfs.pod:2058
37681 msgid "To retrieve the pointer, use:"
37685 #: ../src/guestfs.pod:2060
37688 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37691 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37695 #: ../src/guestfs.pod:2062
37697 "This function returns C<NULL> if either no data is found associated with "
37698 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
37703 #: ../src/guestfs.pod:2066
37705 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
37706 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
37707 "all. In particular, libguestfs does I<not> try to free the data when the "
37708 "handle is closed. If the data must be freed, then the caller must either "
37709 "free it before calling L</guestfs_close> or must set up a close callback to "
37710 "do it (see L</GUESTFS_EVENT_CLOSE>)."
37714 #: ../src/guestfs.pod:2073
37715 msgid "To walk over all entries, use these two functions:"
37719 #: ../src/guestfs.pod:2075
37722 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
37727 #: ../src/guestfs.pod:2077
37730 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
37735 #: ../src/guestfs.pod:2079
37737 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
37738 "not have any particular meaning -- keys are not returned in any defined "
37739 "order). A pointer to the key is returned in C<*key_rtn> and the "
37740 "corresponding data pointer is returned from the function. C<NULL> is "
37741 "returned if there are no keys stored in the handle."
37745 #: ../src/guestfs.pod:2085
37747 "C<guestfs_next_private> returns the next key, pointer pair. The return "
37748 "value of this function is also C<NULL> is there are no further entries to "
37753 #: ../src/guestfs.pod:2089
37754 msgid "Notes about walking over entries:"
37758 #: ../src/guestfs.pod:2095
37760 "You must not call C<guestfs_set_private> while walking over the entries."
37764 #: ../src/guestfs.pod:2100
37766 "The handle maintains an internal iterator which is reset when you call "
37767 "C<guestfs_first_private>. This internal iterator is invalidated when you "
37768 "call C<guestfs_set_private>."
37772 #: ../src/guestfs.pod:2106
37773 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
37777 #: ../src/guestfs.pod:2108
37780 " guestfs_set_private (g, key, NULL);\n"
37785 #: ../src/guestfs.pod:2110
37786 msgid "then that C<key> is not returned when walking."
37790 #: ../src/guestfs.pod:2114
37792 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
37793 "C<guestfs_next_private> or C<guestfs_set_private>."
37797 #: ../src/guestfs.pod:2120
37799 "The following example code shows how to print all keys and data pointers "
37800 "that are associated with the handle C<g>:"
37804 #: ../src/guestfs.pod:2123
37807 " const char *key;\n"
37808 " void *data = guestfs_first_private (g, &key);\n"
37809 " while (data != NULL)\n"
37811 " printf (\"key = %s, data = %p\\n\", key, data);\n"
37812 " data = guestfs_next_private (g, &key);\n"
37818 #: ../src/guestfs.pod:2131
37820 "More commonly you are only interested in keys that begin with an application-"
37821 "specific prefix C<foo_>. Modify the loop like so:"
37825 #: ../src/guestfs.pod:2134
37828 " const char *key;\n"
37829 " void *data = guestfs_first_private (g, &key);\n"
37830 " while (data != NULL)\n"
37832 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37833 " printf (\"key = %s, data = %p\\n\", key, data);\n"
37834 " data = guestfs_next_private (g, &key);\n"
37840 #: ../src/guestfs.pod:2143
37842 "If you need to modify keys while walking, then you have to jump back to the "
37843 "beginning of the loop. For example, to delete all keys prefixed with "
37848 #: ../src/guestfs.pod:2147
37851 " const char *key;\n"
37854 " data = guestfs_first_private (g, &key);\n"
37855 " while (data != NULL)\n"
37857 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37859 " guestfs_set_private (g, key, NULL);\n"
37860 " /* note that 'key' pointer is now invalid, and so is\n"
37861 " the internal iterator */\n"
37864 " data = guestfs_next_private (g, &key);\n"
37870 #: ../src/guestfs.pod:2163
37872 "Note that the above loop is guaranteed to terminate because the keys are "
37873 "being deleted, but other manipulations of keys within the loop might not "
37874 "terminate unless you also maintain an indication of which keys have been "
37879 #: ../src/guestfs.pod:2168 ../src/guestfs.pod:2173
37884 #: ../src/guestfs.pod:2170
37886 "<!-- old anchor for the next section --> <a name="
37887 "\"state_machine_and_low_level_event_api\"/>"
37889 "<!-- old anchor for the next section --> <a name="
37890 "\"state_machine_and_low_level_event_api\"/>"
37893 #: ../src/guestfs.pod:2175
37894 msgid "ARCHITECTURE"
37895 msgstr "АРХІТЕКТУРА"
37898 #: ../src/guestfs.pod:2177
37900 "Internally, libguestfs is implemented by running an appliance (a special "
37901 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
37902 "process of the main program."
37906 #: ../src/guestfs.pod:2181
37909 " ___________________\n"
37911 " | main program |\n"
37913 " | | child process / appliance\n"
37914 " | | __________________________\n"
37916 " +-------------------+ RPC | +-----------------+ |\n"
37917 " | libguestfs <--------------------> guestfsd | |\n"
37918 " | | | +-----------------+ |\n"
37919 " \\___________________/ | | Linux kernel | |\n"
37920 " | +--^--------------+ |\n"
37921 " \\_________|________________/\n"
37923 " _______v______\n"
37926 " | disk image |\n"
37927 " \\______________/\n"
37932 #: ../src/guestfs.pod:2201
37934 "The library, linked to the main program, creates the child process and hence "
37935 "the appliance in the L</guestfs_launch> function."
37939 #: ../src/guestfs.pod:2204
37941 "Inside the appliance is a Linux kernel and a complete stack of userspace "
37942 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
37943 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
37944 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
37945 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
37946 "attached to the qemu process which translates device access by the "
37947 "appliance's Linux kernel into accesses to the image."
37951 #: ../src/guestfs.pod:2213
37953 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
37954 "Although the disk image you are attached to might also be used by some "
37955 "virtual machine, libguestfs doesn't know or care about this. (But you will "
37956 "care if both libguestfs's qemu process and your virtual machine are trying "
37957 "to update the disk image at the same time, since these usually results in "
37958 "massive disk corruption)."
37962 #: ../src/guestfs.pod:2220
37963 msgid "STATE MACHINE"
37964 msgstr "СКІНЧЕННИЙ АВТОМАТ"
37967 #: ../src/guestfs.pod:2222
37968 msgid "libguestfs uses a state machine to model the child process:"
37972 #: ../src/guestfs.pod:2224
37976 " guestfs_create\n"
37984 " / | \\ \\ guestfs_launch\n"
37985 " / | _\\__V______\n"
37987 " / | | LAUNCHING |\n"
37988 " / | \\___________/\n"
37990 " / | guestfs_launch\n"
37992 " ______ / __|____V\n"
37993 " / \\ ------> / \\\n"
37994 " | BUSY | | READY |\n"
37995 " \\______/ <------ \\________/\n"
38000 #: ../src/guestfs.pod:2246
38002 "The normal transitions are (1) CONFIG (when the handle is created, but there "
38003 "is no child process), (2) LAUNCHING (when the child process is booting up), "
38004 "(3) alternating between READY and BUSY as commands are issued to, and "
38005 "carried out by, the child process."
38009 #: ../src/guestfs.pod:2251
38011 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
38012 "asynchronously at any time (eg. due to some internal error), and that causes "
38013 "the state to transition back to CONFIG."
38017 #: ../src/guestfs.pod:2255
38019 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
38020 "issued when in the CONFIG state."
38024 #: ../src/guestfs.pod:2258
38026 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
38027 "L</guestfs_launch> blocks until the child process is READY to accept "
38028 "commands (or until some failure or timeout). L</guestfs_launch> internally "
38029 "moves the state from CONFIG to LAUNCHING while it is running."
38033 #: ../src/guestfs.pod:2264
38035 "API actions such as L</guestfs_mount> can only be issued when in the READY "
38036 "state. These API calls block waiting for the command to be carried out (ie. "
38037 "the state to transition to BUSY and then back to READY). There are no non-"
38038 "blocking versions, and no way to issue more than one command per handle at "
38043 #: ../src/guestfs.pod:2270
38045 "Finally, the child process sends asynchronous messages back to the main "
38046 "program, such as kernel log messages. You can register a callback to "
38047 "receive these messages."
38051 #: ../src/guestfs.pod:2274
38056 #: ../src/guestfs.pod:2276
38057 msgid "APPLIANCE BOOT PROCESS"
38061 #: ../src/guestfs.pod:2278
38063 "This process has evolved and continues to evolve. The description here "
38064 "corresponds only to the current version of libguestfs and is provided for "
38065 "information only."
38069 #: ../src/guestfs.pod:2282
38071 "In order to follow the stages involved below, enable libguestfs debugging "
38072 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
38076 #: ../src/guestfs.pod:2287
38078 #| msgid "C<appliance>"
38079 msgid "Create the appliance"
38080 msgstr "C<appliance>"
38083 #: ../src/guestfs.pod:2289
38085 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
38086 "initrd and the appliance."
38090 #: ../src/guestfs.pod:2292
38092 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
38093 "directory if C<TMPDIR> is set)."
38097 #: ../src/guestfs.pod:2295
38099 "For a complete description of how the appliance is created and cached, read "
38100 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38104 #: ../src/guestfs.pod:2299
38105 msgid "Start qemu and boot the kernel"
38109 #: ../src/guestfs.pod:2301
38110 msgid "qemu is invoked to boot the kernel."
38114 #: ../src/guestfs.pod:2303
38115 msgid "Run the initrd"
38119 #: ../src/guestfs.pod:2305
38121 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
38122 "appliance. The purpose of the initrd is to load enough kernel modules in "
38123 "order that the appliance itself can be mounted and started."
38127 #: ../src/guestfs.pod:2309
38129 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
38134 #: ../src/guestfs.pod:2312
38136 "When the initrd has started you will see messages showing that kernel "
38137 "modules are being loaded, similar to this:"
38141 #: ../src/guestfs.pod:2315
38144 " febootstrap: ext2 mini initrd starting up\n"
38145 " febootstrap: mounting /sys\n"
38146 " febootstrap: internal insmod libcrc32c.ko\n"
38147 " febootstrap: internal insmod crc32c-intel.ko\n"
38152 #: ../src/guestfs.pod:2320
38153 msgid "Find and mount the appliance device"
38157 #: ../src/guestfs.pod:2322
38159 "The appliance is a sparse file containing an ext2 filesystem which contains "
38160 "a familiar (although reduced in size) Linux operating system. It would "
38161 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
38165 #: ../src/guestfs.pod:2326
38167 "The regular disks being inspected by libguestfs are the first devices "
38168 "exposed by qemu (eg. as C</dev/vda>)."
38172 #: ../src/guestfs.pod:2329
38174 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
38175 "there was only one regular disk)."
38179 #: ../src/guestfs.pod:2332
38181 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
38182 "and switch root into the appliance, and run C</init> from the appliance."
38186 #: ../src/guestfs.pod:2336
38187 msgid "If this works successfully you will see messages such as:"
38191 #: ../src/guestfs.pod:2338
38194 " febootstrap: picked /sys/block/vdb/dev as root device\n"
38195 " febootstrap: creating /dev/root as block special 252:16\n"
38196 " febootstrap: mounting new root on /root\n"
38197 " febootstrap: chroot\n"
38198 " Starting /init script ...\n"
38203 #: ../src/guestfs.pod:2344
38205 "Note that C<Starting /init script ...> indicates that the appliance's init "
38206 "script is now running."
38210 #: ../src/guestfs.pod:2347
38211 msgid "Initialize the appliance"
38215 #: ../src/guestfs.pod:2349
38217 "The appliance itself now initializes itself. This involves starting certain "
38218 "processes like C<udev>, possibly printing some debug information, and "
38219 "finally running the daemon (C<guestfsd>)."
38223 #: ../src/guestfs.pod:2353
38225 #| msgid "C<daemon>"
38230 #: ../src/guestfs.pod:2355
38232 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
38237 #: ../src/guestfs.pod:2358
38240 #| " set-verbose true|false\n"
38243 " verbose daemon enabled\n"
38246 " set-verbose true|false\n"
38250 #: ../src/guestfs.pod:2360
38252 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38253 "connected on the other end to the library."
38257 #: ../src/guestfs.pod:2363
38259 "The daemon connects to this port (and hence to the library) and sends a four "
38260 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38261 "protocol (see below)."
38265 #: ../src/guestfs.pod:2369
38266 msgid "COMMUNICATION PROTOCOL"
38270 #: ../src/guestfs.pod:2371
38272 "Don't rely on using this protocol directly. This section documents how it "
38273 "currently works, but it may change at any time."
38277 #: ../src/guestfs.pod:2374
38279 "The protocol used to talk between the library and the daemon running inside "
38280 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38281 "1014, RFC 1832, RFC 4506)."
38285 #: ../src/guestfs.pod:2378
38287 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38288 "this file is automatically generated)."
38292 #: ../src/guestfs.pod:2381
38294 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38295 "and C<FileOut> parameters, which are handled with very simple request/reply "
38296 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
38297 "parameters, which use the same request and reply messages, but they may also "
38298 "be followed by files sent using a chunked encoding."
38302 #: ../src/guestfs.pod:2388
38303 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
38307 #: ../src/guestfs.pod:2390
38308 msgid "For ordinary functions, the request message is:"
38312 #: ../src/guestfs.pod:2392
38315 " total length (header + arguments,\n"
38316 " but not including the length word itself)\n"
38317 " struct guestfs_message_header (encoded as XDR)\n"
38318 " struct guestfs_<foo>_args (encoded as XDR)\n"
38323 #: ../src/guestfs.pod:2397
38325 "The total length field allows the daemon to allocate a fixed size buffer "
38326 "into which it slurps the rest of the message. As a result, the total length "
38327 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
38328 "effective size of any request is limited to somewhere under this size."
38332 #: ../src/guestfs.pod:2403
38334 "Note also that many functions don't take any arguments, in which case the "
38335 "C<guestfs_I<foo>_args> is completely omitted."
38339 #: ../src/guestfs.pod:2406
38341 "The header contains the procedure number (C<guestfs_proc>) which is how the "
38342 "receiver knows what type of args structure to expect, or none at all."
38346 #: ../src/guestfs.pod:2410
38348 "For functions that take optional arguments, the optional arguments are "
38349 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
38350 "arguments. A bitmask in the header indicates which optional arguments are "
38351 "meaningful. The bitmask is also checked to see if it contains bits set "
38352 "which the daemon does not know about (eg. if more optional arguments were "
38353 "added in a later version of the library), and this causes the call to be "
38358 #: ../src/guestfs.pod:2418
38359 msgid "The reply message for ordinary functions is:"
38363 #: ../src/guestfs.pod:2420
38366 " total length (header + ret,\n"
38367 " but not including the length word itself)\n"
38368 " struct guestfs_message_header (encoded as XDR)\n"
38369 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38374 #: ../src/guestfs.pod:2425
38376 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38377 "functions that return no formal return values."
38381 #: ../src/guestfs.pod:2428
38383 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38387 #: ../src/guestfs.pod:2431
38389 "In the case of an error, a flag is set in the header, and the reply message "
38390 "is slightly changed:"
38394 #: ../src/guestfs.pod:2434
38397 " total length (header + error,\n"
38398 " but not including the length word itself)\n"
38399 " struct guestfs_message_header (encoded as XDR)\n"
38400 " struct guestfs_message_error (encoded as XDR)\n"
38405 #: ../src/guestfs.pod:2439
38407 "The C<guestfs_message_error> structure contains the error message as a "
38412 #: ../src/guestfs.pod:2442
38413 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38417 #: ../src/guestfs.pod:2444
38419 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
38420 "The normal request message is sent (see above). However this is followed by "
38421 "a sequence of file chunks."
38425 #: ../src/guestfs.pod:2448
38428 " total length (header + arguments,\n"
38429 " but not including the length word itself,\n"
38430 " and not including the chunks)\n"
38431 " struct guestfs_message_header (encoded as XDR)\n"
38432 " struct guestfs_<foo>_args (encoded as XDR)\n"
38433 " sequence of chunks for FileIn param #0\n"
38434 " sequence of chunks for FileIn param #1 etc.\n"
38439 #: ../src/guestfs.pod:2456
38440 msgid "The \"sequence of chunks\" is:"
38444 #: ../src/guestfs.pod:2458
38447 " length of chunk (not including length word itself)\n"
38448 " struct guestfs_chunk (encoded as XDR)\n"
38449 " length of chunk\n"
38450 " struct guestfs_chunk (encoded as XDR)\n"
38452 " length of chunk\n"
38453 " struct guestfs_chunk (with data.data_len == 0)\n"
38458 #: ../src/guestfs.pod:2466
38460 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
38461 "is set in the final chunk to indicate either successful completion or early "
38466 #: ../src/guestfs.pod:2470
38468 "At time of writing there are no functions that have more than one FileIn "
38469 "parameter. However this is (theoretically) supported, by sending the "
38470 "sequence of chunks for each FileIn parameter one after another (from left to "
38475 #: ../src/guestfs.pod:2475
38477 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38478 "transfer. The library does this by sending a chunk with a special flag set "
38479 "to indicate cancellation. When the daemon sees this, it cancels the whole "
38480 "RPC, does I<not> send any reply, and goes back to reading the next request."
38484 #: ../src/guestfs.pod:2481
38486 "The daemon may also cancel. It does this by writing a special word "
38487 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
38488 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38489 "cancel chunk). The special word is chosen so that even if cancellation "
38490 "happens right at the end of the transfer (after the library has finished "
38491 "writing and has started listening for the reply), the \"spurious\" cancel "
38492 "flag will not be confused with the reply message."
38496 #: ../src/guestfs.pod:2490
38498 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38499 "limit), and also files where the size is not known in advance (eg. from "
38500 "pipes or sockets). However the chunks are rather small "
38501 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38502 "to keep much in memory."
38506 #: ../src/guestfs.pod:2496
38507 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
38511 #: ../src/guestfs.pod:2498
38513 "The protocol for FileOut parameters is exactly the same as for FileIn "
38514 "parameters, but with the roles of daemon and library reversed."
38518 #: ../src/guestfs.pod:2501
38521 " total length (header + ret,\n"
38522 " but not including the length word itself,\n"
38523 " and not including the chunks)\n"
38524 " struct guestfs_message_header (encoded as XDR)\n"
38525 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38526 " sequence of chunks for FileOut param #0\n"
38527 " sequence of chunks for FileOut param #1 etc.\n"
38532 #: ../src/guestfs.pod:2509
38533 msgid "INITIAL MESSAGE"
38537 #: ../src/guestfs.pod:2511
38539 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
38540 "which indicates that the guest and daemon is alive. This is what L</"
38541 "guestfs_launch> waits for."
38545 #: ../src/guestfs.pod:2515
38546 msgid "PROGRESS NOTIFICATION MESSAGES"
38550 #: ../src/guestfs.pod:2517
38552 "The daemon may send progress notification messages at any time. These are "
38553 "distinguished by the normal length word being replaced by "
38554 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38558 #: ../src/guestfs.pod:2521
38560 "The library turns them into progress callbacks (see L</"
38561 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
38566 #: ../src/guestfs.pod:2525
38568 "The daemon self-limits the frequency of progress messages it sends (see "
38569 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
38574 #: ../src/guestfs.pod:2529
38575 msgid "LIBGUESTFS VERSION NUMBERS"
38579 #: ../src/guestfs.pod:2531
38581 "Since April 2010, libguestfs has started to make separate development and "
38582 "stable releases, along with corresponding branches in our git repository. "
38583 "These separate releases can be identified by version number:"
38587 #: ../src/guestfs.pod:2536
38590 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
38591 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38597 " | `-------- sub-version\n"
38599 " `------ always '1' because we don't change the ABI\n"
38604 #: ../src/guestfs.pod:2547
38605 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38609 #: ../src/guestfs.pod:2549
38611 "As time passes we cherry pick fixes from the development branch and backport "
38612 "those into the stable branch, the effect being that the stable branch should "
38613 "get more stable and less buggy over time. So the stable releases are ideal "
38614 "for people who don't need new features but would just like the software to "
38619 #: ../src/guestfs.pod:2555
38620 msgid "Our criteria for backporting changes are:"
38624 #: ../src/guestfs.pod:2561
38626 "Documentation changes which don't affect any code are backported unless the "
38627 "documentation refers to a future feature which is not in stable."
38631 #: ../src/guestfs.pod:2567
38633 "Bug fixes which are not controversial, fix obvious problems, and have been "
38634 "well tested are backported."
38638 #: ../src/guestfs.pod:2572
38640 "Simple rearrangements of code which shouldn't affect how it works get "
38641 "backported. This is so that the code in the two branches doesn't get too "
38642 "far out of step, allowing us to backport future fixes more easily."
38646 #: ../src/guestfs.pod:2578
38648 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38649 "exceptional case: the new feature is required in order to implement an "
38650 "important bug fix."
38654 #: ../src/guestfs.pod:2584
38656 "A new stable branch starts when we think the new features in development are "
38657 "substantial and compelling enough over the current stable branch to warrant "
38658 "it. When that happens we create new stable and development versions 1.N.0 "
38659 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
38660 "stable at this point, but by backporting fixes from development, that branch "
38661 "will stabilize over time."
38665 #: ../src/guestfs.pod:2592
38666 msgid "EXTENDING LIBGUESTFS"
38670 #: ../src/guestfs.pod:2594
38671 msgid "ADDING A NEW API ACTION"
38675 #: ../src/guestfs.pod:2596
38677 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
38678 "documentation) are generated, and this makes it easy to extend the "
38683 #: ../src/guestfs.pod:2600
38684 msgid "To add a new API action there are two changes:"
38688 #: ../src/guestfs.pod:2606
38690 "You need to add a description of the call (name, parameters, return type, "
38691 "tests, documentation) to C<generator/generator_actions.ml>."
38695 #: ../src/guestfs.pod:2609
38697 "There are two sorts of API action, depending on whether the call goes "
38698 "through to the daemon in the appliance, or is serviced entirely by the "
38699 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
38700 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
38701 "an example of the latter, since a trace flag is maintained in the handle and "
38702 "all tracing is done on the library side."
38706 #: ../src/guestfs.pod:2617
38708 "Most new actions are of the first type, and get added to the "
38709 "C<daemon_functions> list. Each function has a unique procedure number used "
38710 "in the RPC protocol which is assigned to that action when we publish "
38711 "libguestfs and cannot be reused. Take the latest procedure number and "
38716 #: ../src/guestfs.pod:2623
38718 "For library-only actions of the second type, add to the "
38719 "C<non_daemon_functions> list. Since these functions are serviced by the "
38720 "library and do not travel over the RPC mechanism to the daemon, these "
38721 "functions do not need a procedure number, and so the procedure number is set "
38726 #: ../src/guestfs.pod:2631
38727 msgid "Implement the action (in C):"
38731 #: ../src/guestfs.pod:2633
38733 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
38734 "C<daemon/> directory."
38738 #: ../src/guestfs.pod:2636
38740 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
38741 "(note: double underscore) in the C<src/> directory."
38745 #: ../src/guestfs.pod:2639
38746 msgid "In either case, use another function as an example of what to do."
38750 #: ../src/guestfs.pod:2643
38751 msgid "After making these changes, use C<make> to compile."
38755 #: ../src/guestfs.pod:2645
38757 "Note that you don't need to implement the RPC, language bindings, manual "
38758 "pages or anything else. It's all automatically generated from the OCaml "
38763 #: ../src/guestfs.pod:2649
38764 msgid "ADDING TESTS FOR AN API ACTION"
38768 #: ../src/guestfs.pod:2651
38770 "You can supply zero or as many tests as you want per API call. The tests "
38771 "can either be added as part of the API description (C<generator/"
38772 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
38773 "into C<regressions/>. Note that adding a script to C<regressions/> is "
38774 "slower, so if possible use the first method."
38778 #: ../src/guestfs.pod:2657
38780 "The following describes the test environment used when you add an API test "
38781 "in C<generator_actions.ml>."
38785 #: ../src/guestfs.pod:2660
38786 msgid "The test environment has 4 block devices:"
38790 #: ../src/guestfs.pod:2664
38791 msgid "C</dev/sda> 500MB"
38792 msgstr "C</dev/sda> 500 МБ"
38795 #: ../src/guestfs.pod:2666
38796 msgid "General block device for testing."
38800 #: ../src/guestfs.pod:2668
38801 msgid "C</dev/sdb> 50MB"
38802 msgstr "C</dev/sdb> 50 МБ"
38805 #: ../src/guestfs.pod:2670
38807 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
38812 #: ../src/guestfs.pod:2673
38813 msgid "C</dev/sdc> 10MB"
38814 msgstr "C</dev/sdc> 10 МБ"
38817 #: ../src/guestfs.pod:2675
38818 msgid "Used in a few tests where two block devices are needed."
38822 #: ../src/guestfs.pod:2677
38823 msgid "C</dev/sdd>"
38824 msgstr "C</dev/sdd>"
38827 #: ../src/guestfs.pod:2679
38828 msgid "ISO with fixed content (see C<images/test.iso>)."
38832 #: ../src/guestfs.pod:2683
38834 "To be able to run the tests in a reasonable amount of time, the libguestfs "
38835 "appliance and block devices are reused between tests. So don't try testing "
38836 "L</guestfs_kill_subprocess> :-x"
38840 #: ../src/guestfs.pod:2687
38842 "Each test starts with an initial scenario, selected using one of the "
38843 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
38844 "initialize the disks mentioned above in a particular way as documented in "
38845 "C<generator_types.ml>. You should not assume anything about the previous "
38846 "contents of other disks that are not initialized."
38850 #: ../src/guestfs.pod:2693
38852 "You can add a prerequisite clause to any individual test. This is a run-"
38853 "time check, which, if it fails, causes the test to be skipped. Useful if "
38854 "testing a command which might not work on all variations of libguestfs "
38855 "builds. A test that has prerequisite of C<Always> means to run "
38860 #: ../src/guestfs.pod:2699
38862 "In addition, packagers can skip individual tests by setting environment "
38863 "variables before running C<make check>."
38867 #: ../src/guestfs.pod:2702
38870 " SKIP_TEST_<CMD>_<NUM>=1\n"
38875 #: ../src/guestfs.pod:2704
38876 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
38880 #: ../src/guestfs.pod:2706
38885 #: ../src/guestfs.pod:2708
38888 " SKIP_TEST_<CMD>=1\n"
38893 #: ../src/guestfs.pod:2710
38894 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
38898 #: ../src/guestfs.pod:2712
38899 msgid "Packagers can run only certain tests by setting for example:"
38903 #: ../src/guestfs.pod:2714
38906 " TEST_ONLY=\"vfs_type zerofree\"\n"
38911 #: ../src/guestfs.pod:2716
38913 "See C<capitests/tests.c> for more details of how these environment variables "
38918 #: ../src/guestfs.pod:2719
38919 msgid "DEBUGGING NEW API ACTIONS"
38923 #: ../src/guestfs.pod:2721
38924 msgid "Test new actions work before submitting them."
38928 #: ../src/guestfs.pod:2723
38929 msgid "You can use guestfish to try out new commands."
38933 #: ../src/guestfs.pod:2725
38935 "Debugging the daemon is a problem because it runs inside a minimal "
38936 "environment. However you can fprintf messages in the daemon to stderr, and "
38937 "they will show up if you use C<guestfish -v>."
38941 #: ../src/guestfs.pod:2729
38942 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
38946 #: ../src/guestfs.pod:2731
38948 "Our C source code generally adheres to some basic code-formatting "
38949 "conventions. The existing code base is not totally consistent on this "
38950 "front, but we do prefer that contributed code be formatted similarly. In "
38951 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
38952 "indentation level, and other than that, follow the K&R style."
38956 #: ../src/guestfs.pod:2737
38958 "If you use Emacs, add the following to one of one of your start-up files (e."
38959 "g., ~/.emacs), to help ensure that you get indentation right:"
38963 #: ../src/guestfs.pod:2740
38966 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
38967 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
38968 " (add-hook 'find-file-hook\n"
38969 " '(lambda () (if (and buffer-file-name\n"
38970 " (string-match \"/libguestfs\\\\>\"\n"
38971 " (buffer-file-name))\n"
38972 " (not (string-equal mode-name \"Change Log\"))\n"
38973 " (not (string-equal mode-name \"Makefile\")))\n"
38974 " (setq indent-tabs-mode nil))))\n"
38979 #: ../src/guestfs.pod:2750
38982 " ;;; When editing C sources in libguestfs, use this style.\n"
38983 " (defun libguestfs-c-mode ()\n"
38984 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
38986 " (c-set-style \"K&R\")\n"
38987 " (setq c-indent-level 2)\n"
38988 " (setq c-basic-offset 2))\n"
38989 " (add-hook 'c-mode-hook\n"
38990 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
38991 " (buffer-file-name))\n"
38992 " (libguestfs-c-mode))))\n"
38997 #: ../src/guestfs.pod:2762
38998 msgid "Enable warnings when compiling (and fix any problems this finds):"
39002 #: ../src/guestfs.pod:2765
39005 " ./configure --enable-gcc-warnings\n"
39008 " ./configure --enable-gcc-warnings\n"
39012 #: ../src/guestfs.pod:2767
39013 msgid "Useful targets are:"
39017 #: ../src/guestfs.pod:2769
39020 " make syntax-check # checks the syntax of the C code\n"
39021 " make check # runs the test suite\n"
39026 #: ../src/guestfs.pod:2772
39027 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
39031 #: ../src/guestfs.pod:2774
39033 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
39034 "which are used to do shell quoting."
39038 #: ../src/guestfs.pod:2779
39043 #: ../src/guestfs.pod:2781
39045 "Simple shell quoted string. Any spaces or other shell characters are "
39050 #: ../src/guestfs.pod:2784
39055 #: ../src/guestfs.pod:2786
39057 "Same as C<%Q> except the string is treated as a path which is prefixed by "
39062 #: ../src/guestfs.pod:2793
39065 " asprintf (&cmd, \"cat %R\", path);\n"
39070 #: ../src/guestfs.pod:2795
39071 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
39075 #: ../src/guestfs.pod:2797
39077 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
39078 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
39079 "they are not passed via the shell (instead, straight to exec). You probably "
39080 "want to use the C<sysroot_path()> function however."
39084 #: ../src/guestfs.pod:2803
39085 msgid "SUBMITTING YOUR NEW API ACTIONS"
39089 #: ../src/guestfs.pod:2805
39091 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
39092 "libguestfs> and CC to L<rjones@redhat.com>."
39096 #: ../src/guestfs.pod:2809
39097 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
39101 #: ../src/guestfs.pod:2811
39102 msgid "We support i18n (gettext anyhow) in the library."
39106 #: ../src/guestfs.pod:2813
39108 "However many messages come from the daemon, and we don't translate those at "
39109 "the moment. One reason is that the appliance generally has all locale files "
39110 "removed from it, because they take up a lot of space. So we'd have to readd "
39111 "some of those, as well as copying our PO files into the appliance."
39115 #: ../src/guestfs.pod:2819
39117 "Debugging messages are never translated, since they are intended for the "
39122 #: ../src/guestfs.pod:2822
39123 msgid "SOURCE CODE SUBDIRECTORIES"
39127 #: ../src/guestfs.pod:2828
39128 msgid "The libguestfs appliance, build scripts and so on."
39132 #: ../src/guestfs.pod:2830
39133 msgid "C<capitests>"
39134 msgstr "C<capitests>"
39137 #: ../src/guestfs.pod:2832
39138 msgid "Automated tests of the C API."
39142 #: ../src/guestfs.pod:2834
39147 #: ../src/guestfs.pod:2836
39149 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
39154 #: ../src/guestfs.pod:2839
39159 #: ../src/guestfs.pod:2841
39161 "Safety and liveness tests of components that libguestfs depends upon (not of "
39162 "libguestfs itself). Mainly this is for qemu and the kernel."
39166 #: ../src/guestfs.pod:2844
39168 msgstr "C<contrib>"
39171 #: ../src/guestfs.pod:2846
39172 msgid "Outside contributions, experimental parts."
39176 #: ../src/guestfs.pod:2848
39181 #: ../src/guestfs.pod:2850
39183 "The daemon that runs inside the libguestfs appliance and carries out actions."
39187 #: ../src/guestfs.pod:2853
39192 #: ../src/guestfs.pod:2855
39193 msgid "L<virt-df(1)> command and documentation."
39197 #: ../src/guestfs.pod:2857
39202 #: ../src/guestfs.pod:2859
39203 msgid "L<virt-edit(1)> command and documentation."
39207 #: ../src/guestfs.pod:2861
39208 msgid "C<examples>"
39209 msgstr "C<examples>"
39212 #: ../src/guestfs.pod:2863
39213 msgid "C API example code."
39214 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
39217 #: ../src/guestfs.pod:2865
39222 #: ../src/guestfs.pod:2867
39224 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39225 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39226 "L<virt-tar-out(1)>."
39230 #: ../src/guestfs.pod:2871
39235 #: ../src/guestfs.pod:2873
39237 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39241 #: ../src/guestfs.pod:2875
39242 msgid "C<generator>"
39243 msgstr "C<generator>"
39246 #: ../src/guestfs.pod:2877
39248 "The crucially important generator, used to automatically generate large "
39249 "amounts of boilerplate C code for things like RPC and bindings."
39253 #: ../src/guestfs.pod:2880
39258 #: ../src/guestfs.pod:2882
39259 msgid "Files used by the test suite."
39263 #: ../src/guestfs.pod:2884
39264 msgid "Some \"phony\" guest images which we test against."
39268 #: ../src/guestfs.pod:2886
39269 msgid "C<inspector>"
39270 msgstr "C<inspector>"
39273 #: ../src/guestfs.pod:2888
39274 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39278 #: ../src/guestfs.pod:2890
39283 #: ../src/guestfs.pod:2892
39284 msgid "Logo used on the website. The fish is called Arthur by the way."
39288 #: ../src/guestfs.pod:2894
39293 #: ../src/guestfs.pod:2896
39294 msgid "M4 macros used by autoconf."
39298 #: ../src/guestfs.pod:2898
39303 #: ../src/guestfs.pod:2900
39304 msgid "Translations of simple gettext strings."
39305 msgstr "Переклади простих рядків gettext."
39308 #: ../src/guestfs.pod:2902
39310 msgstr "C<po-docs>"
39313 #: ../src/guestfs.pod:2904
39315 "The build infrastructure and PO files for translations of manpages and POD "
39316 "files. Eventually this will be combined with the C<po> directory, but that "
39317 "is rather complicated."
39321 #: ../src/guestfs.pod:2908
39322 msgid "C<regressions>"
39323 msgstr "C<regressions>"
39326 #: ../src/guestfs.pod:2910
39327 msgid "Regression tests."
39328 msgstr "Тести на регресії."
39331 #: ../src/guestfs.pod:2912
39336 #: ../src/guestfs.pod:2914
39337 msgid "L<virt-rescue(1)> command and documentation."
39341 #: ../src/guestfs.pod:2916
39346 #: ../src/guestfs.pod:2918
39347 msgid "Source code to the C library."
39351 #: ../src/guestfs.pod:2920
39356 #: ../src/guestfs.pod:2922
39358 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
39362 #: ../src/guestfs.pod:2924
39363 msgid "C<test-tool>"
39364 msgstr "C<test-tool>"
39367 #: ../src/guestfs.pod:2926
39369 "Test tool for end users to test if their qemu/kernel combination will work "
39374 #: ../src/guestfs.pod:2929
39379 #: ../src/guestfs.pod:2931
39384 #: ../src/guestfs.pod:2933
39386 msgstr "C<haskell>"
39389 #: ../src/guestfs.pod:2935
39394 #: ../src/guestfs.pod:2937
39399 #: ../src/guestfs.pod:2939
39404 #: ../src/guestfs.pod:2941
39409 #: ../src/guestfs.pod:2943
39414 #: ../src/guestfs.pod:2945
39419 #: ../src/guestfs.pod:2947
39420 msgid "Language bindings."
39421 msgstr "Прив’язки до мов програмування."
39424 #: ../src/guestfs.pod:2951
39425 msgid "MAKING A STABLE RELEASE"
39429 #: ../src/guestfs.pod:2953
39431 "When we make a stable release, there are several steps documented here. See "
39432 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
39437 #: ../src/guestfs.pod:2961
39439 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39443 #: ../src/guestfs.pod:2966
39444 msgid "Finalize RELEASE-NOTES."
39448 #: ../src/guestfs.pod:2970
39449 msgid "Update ROADMAP."
39453 #: ../src/guestfs.pod:2974
39454 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39458 #: ../src/guestfs.pod:2978
39459 msgid "Push and pull from Transifex."
39463 #: ../src/guestfs.pod:2980
39468 #: ../src/guestfs.pod:2982
39476 #: ../src/guestfs.pod:2984
39477 msgid "to push the latest POT files to Transifex. Then run:"
39481 #: ../src/guestfs.pod:2986
39489 #: ../src/guestfs.pod:2988
39490 msgid "which is a wrapper to pull the latest translated C<*.po> files."
39494 #: ../src/guestfs.pod:2992
39496 "Create new stable and development directories under L<http://libguestfs.org/"
39501 #: ../src/guestfs.pod:2997
39502 msgid "Create the branch in git:"
39506 #: ../src/guestfs.pod:2999
39509 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39510 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39511 " git branch stable-1.XX\n"
39512 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39517 #: ../src/guestfs.pod:3006
39522 #: ../src/guestfs.pod:3008
39523 msgid "PROTOCOL LIMITS"
39524 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
39527 #: ../src/guestfs.pod:3010
39529 "Internally libguestfs uses a message-based protocol to pass API calls and "
39530 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39531 "plenty more detail about this). The maximum message size used by the "
39532 "protocol is slightly less than 4 MB. For some API calls you may need to be "
39533 "aware of this limit. The API calls which may be affected are individually "
39534 "documented, with a link back to this section of the documentation."
39538 #: ../src/guestfs.pod:3018
39540 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39541 "a simple string. Because this string is at some point internally encoded as "
39542 "a message, the maximum size that it can return is slightly under 4 MB. If "
39543 "the requested file is larger than this then you will get an error."
39547 #: ../src/guestfs.pod:3024
39549 "In order to transfer large files into and out of the guest filesystem, you "
39550 "need to use particular calls that support this. The sections L</UPLOADING> "
39551 "and L</DOWNLOADING> document how to do this."
39555 #: ../src/guestfs.pod:3028
39557 "You might also consider mounting the disk image using our FUSE filesystem "
39558 "support (L<guestmount(1)>)."
39562 #: ../src/guestfs.pod:3031
39563 msgid "MAXIMUM NUMBER OF DISKS"
39567 #: ../src/guestfs.pod:3033
39568 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39572 #: ../src/guestfs.pod:3036
39574 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39575 "slots. However febootstrap only understands disks with names C</dev/vda> "
39576 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39581 #: ../src/guestfs.pod:3041
39583 "We are working to substantially raise this limit in future versions but it "
39584 "requires complex changes to qemu."
39588 #: ../src/guestfs.pod:3044
39590 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39591 "disks (add and remove disks after calling L</guestfs_launch>). This also "
39592 "requires changes to qemu."
39596 #: ../src/guestfs.pod:3048
39597 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39601 #: ../src/guestfs.pod:3050
39602 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39606 #: ../src/guestfs.pod:3052
39608 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
39609 "vda>, and C</dev/vda1> through C</dev/vda15>)."
39613 #: ../src/guestfs.pod:3055
39615 "If you attach a disk with more than 15 partitions, the extra partitions are "
39616 "ignored by libguestfs."
39620 #: ../src/guestfs.pod:3058
39621 msgid "MAXIMUM SIZE OF A DISK"
39625 #: ../src/guestfs.pod:3060
39626 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
39630 #: ../src/guestfs.pod:3062
39632 "We have tested block devices up to 1 exabyte (2**60 or "
39633 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
39638 #: ../src/guestfs.pod:3066
39640 "Although libguestfs probably does not impose any limit, the underlying host "
39641 "storage will. If you store disk images on a host ext4 filesystem, then the "
39642 "maximum size will be limited by the maximum ext4 file size (currently 16 "
39643 "TB). If you store disk images as host logical volumes then you are limited "
39644 "by the maximum size of an LV."
39648 #: ../src/guestfs.pod:3072
39650 "For the hugest disk image files, we recommend using XFS on the host for "
39655 #: ../src/guestfs.pod:3075
39656 msgid "MAXIMUM SIZE OF A PARTITION"
39660 #: ../src/guestfs.pod:3077
39662 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
39663 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
39664 "address a partition located beyond 2 TB on the disk."
39668 #: ../src/guestfs.pod:3081
39670 "It is recommended that you use GPT partitions on disks which are larger than "
39671 "this size. GPT uses 64 bit sector numbers and so can address partitions "
39672 "which are theoretically larger than the largest disk we could support."
39676 #: ../src/guestfs.pod:3086
39677 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
39681 #: ../src/guestfs.pod:3088
39683 "This depends on the filesystem type. libguestfs itself does not impose any "
39684 "known limit. Consult Wikipedia or the filesystem documentation to find out "
39685 "what these limits are."
39689 #: ../src/guestfs.pod:3092
39690 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
39694 #: ../src/guestfs.pod:3094
39696 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
39697 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
39698 "uploads and downloads."
39702 #: ../src/guestfs.pod:3098
39703 msgid "INSPECTION LIMITS"
39707 #: ../src/guestfs.pod:3100
39709 "The inspection code has several arbitrary limits on things like the size of "
39710 "Windows Registry hive it will read, and the length of product name. These "
39711 "are intended to stop a malicious guest from consuming arbitrary amounts of "
39712 "memory and disk space on the host, and should not be reached in practice. "
39713 "See the source code for more information."
39717 #: ../src/guestfs.pod:3126
39719 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
39720 "effect as calling C<guestfs_set_verbose (g, 1)>."
39724 #: ../src/guestfs.pod:3138
39726 "Set the path that libguestfs uses to search for a supermin appliance. See "
39727 "the discussion of paths in section L</PATH> above."
39731 #: ../src/guestfs.pod:3147
39732 msgid "See also L</QEMU WRAPPERS> above."
39736 #: ../src/guestfs.pod:3151
39738 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
39739 "effect as calling C<guestfs_set_trace (g, 1)>."
39743 #: ../src/guestfs.pod:3169
39745 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
39746 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
39747 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
39748 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
39749 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)"
39750 ">, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
39751 "L<virt-sparsify(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
39752 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-"
39753 "helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
39757 #: ../src/guestfs.pod:3202
39759 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
39760 "(8)>, L<disktype(1)>."
39764 #: ../src/guestfs.pod:3209 ../tools/virt-make-fs.pl:553
39765 #: ../tools/virt-win-reg.pl:761
39770 #: ../src/guestfs.pod:3211
39771 msgid "To get a list of bugs against libguestfs use this link:"
39773 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
39777 #: ../src/guestfs.pod:3213
39779 "L<https://bugzilla.redhat.com/buglist.cgi?"
39780 "component=libguestfs&product=Virtualization+Tools>"
39782 "L<https://bugzilla.redhat.com/buglist.cgi?"
39783 "component=libguestfs&product=Virtualization+Tools>"
39786 #: ../src/guestfs.pod:3215
39787 msgid "To report a new bug against libguestfs use this link:"
39788 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
39791 #: ../src/guestfs.pod:3217
39793 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39794 "component=libguestfs&product=Virtualization+Tools>"
39796 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39797 "component=libguestfs&product=Virtualization+Tools>"
39800 #: ../src/guestfs.pod:3219
39801 msgid "When reporting a bug, please check:"
39805 #: ../src/guestfs.pod:3225
39806 msgid "That the bug hasn't been reported already."
39810 #: ../src/guestfs.pod:3229
39811 msgid "That you are testing a recent version."
39815 #: ../src/guestfs.pod:3233
39816 msgid "Describe the bug accurately, and give a way to reproduce it."
39820 #: ../src/guestfs.pod:3237
39822 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
39827 #: ../test-tool/libguestfs-test-tool.pod:5
39828 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
39832 #: ../test-tool/libguestfs-test-tool.pod:9
39835 " libguestfs-test-tool [--options]\n"
39840 #: ../test-tool/libguestfs-test-tool.pod:13
39842 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
39843 "to check basic libguestfs functionality is working. This is needed because "
39844 "libguestfs occasionally breaks for reasons beyond our control: usually "
39845 "because of changes in the underlying qemu or kernel packages, or the host "
39850 #: ../test-tool/libguestfs-test-tool.pod:19
39851 msgid "If you suspect a problem in libguestfs, then just run:"
39855 #: ../test-tool/libguestfs-test-tool.pod:21
39858 " libguestfs-test-tool\n"
39863 #: ../test-tool/libguestfs-test-tool.pod:23
39864 msgid "It will print lots of diagnostic messages."
39868 #: ../test-tool/libguestfs-test-tool.pod:25
39869 msgid "If it runs to completion successfully, you will see this near the end:"
39873 #: ../test-tool/libguestfs-test-tool.pod:27
39876 " ===== TEST FINISHED OK =====\n"
39881 #: ../test-tool/libguestfs-test-tool.pod:29
39882 msgid "and the test tool will exit with code 0."
39886 #: ../test-tool/libguestfs-test-tool.pod:31
39888 "If it fails (and/or exits with non-zero error code), please paste the "
39889 "I<complete, unedited> output of the test tool into a bug report. More "
39890 "information about reporting bugs can be found on the L<http://libguestfs.org/"
39895 #: ../test-tool/libguestfs-test-tool.pod:42
39896 msgid "Display short usage information and exit."
39900 #: ../test-tool/libguestfs-test-tool.pod:44
39902 #| msgid "I<--qemu qemu_binary>"
39903 msgid "B<--qemu qemu_binary>"
39904 msgstr "I<--qemu виконуваний_файл_qemu>"
39907 #: ../test-tool/libguestfs-test-tool.pod:46
39909 "If you have downloaded another qemu binary, point this option at the full "
39910 "path of the binary to try it."
39914 #: ../test-tool/libguestfs-test-tool.pod:49
39916 #| msgid "I<--qemu qemu_binary>"
39917 msgid "B<--qemudir qemu_source_dir>"
39918 msgstr "I<--qemu виконуваний_файл_qemu>"
39921 #: ../test-tool/libguestfs-test-tool.pod:51
39923 "If you have compiled qemu from source, point this option at the source "
39924 "directory to try it."
39928 #: ../test-tool/libguestfs-test-tool.pod:54
39933 #: ../test-tool/libguestfs-test-tool.pod:56
39935 #| msgid "I<--timeout N>"
39936 msgid "B<--timeout N>"
39937 msgstr "I<--timeout N>"
39940 #: ../test-tool/libguestfs-test-tool.pod:58
39942 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
39943 "minutes) which does not usually need to be adjusted."
39947 #: ../test-tool/libguestfs-test-tool.pod:63
39948 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
39952 #: ../test-tool/libguestfs-test-tool.pod:65
39954 "If you have compiled another version of qemu from source and would like to "
39955 "try that, then you can use the I<--qemudir> option to point to the qemu "
39956 "source directory."
39960 #: ../test-tool/libguestfs-test-tool.pod:69
39962 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
39963 "option to point to the binary."
39967 #: ../test-tool/libguestfs-test-tool.pod:72
39969 "Note when using these options, you can ignore the business of qemu wrapper "
39970 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
39971 "wrapper script for you if one is needed."
39975 #: ../test-tool/libguestfs-test-tool.pod:76
39976 msgid "TRYING OUT A DIFFERENT KERNEL"
39980 #: ../test-tool/libguestfs-test-tool.pod:78
39982 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
39983 "libguestfs tries. You do this by setting the environment variables "
39984 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
39988 #: ../test-tool/libguestfs-test-tool.pod:82
39990 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
39995 #: ../test-tool/libguestfs-test-tool.pod:85
39996 msgid "SELF-DIAGNOSIS"
40000 #: ../test-tool/libguestfs-test-tool.pod:87
40002 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
40003 "produced by libguestfs-test-tool and/or possible errors."
40007 #: ../test-tool/libguestfs-test-tool.pod:92
40009 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
40010 "I<1> if there was an error."
40014 #: ../test-tool/libguestfs-test-tool.pod:97
40016 "For the full list of environment variables which may affect libguestfs, "
40017 "please see the L<guestfs(3)> manual page."
40021 #: ../test-tool/libguestfs-test-tool.pod:102
40022 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
40026 #: ../tools/virt-list-filesystems.pl:32
40028 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
40032 #: ../tools/virt-list-filesystems.pl:36
40035 " virt-list-filesystems [--options] domname\n"
40040 #: ../tools/virt-list-filesystems.pl:38
40043 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
40048 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
40050 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
40055 #: ../tools/virt-list-filesystems.pl:45
40057 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
40058 "are contained in a virtual machine or disk image."
40062 #: ../tools/virt-list-filesystems.pl:49
40064 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
40065 "functionality. For more complex cases you should look at the L<guestfish(1)"
40070 #: ../tools/virt-list-filesystems.pl:112
40072 "With this option, C<virt-list-filesystems> displays the type of each "
40073 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40077 #: ../tools/virt-list-filesystems.pl:119
40079 #| msgid "B<-a image>"
40081 msgstr "B<-a образ>"
40084 #: ../tools/virt-list-filesystems.pl:123
40086 "Normally we only show mountable filesystems. If this option is given then "
40087 "swap devices are shown too."
40091 #: ../tools/virt-list-filesystems.pl:197
40093 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40094 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
40095 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40097 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40098 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
40099 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40102 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
40103 msgid "Copyright (C) 2009 Red Hat Inc."
40104 msgstr "© Red Hat Inc., 2009"
40107 #: ../tools/virt-list-partitions.pl:32
40109 "virt-list-partitions - List partitions in a virtual machine or disk image"
40113 #: ../tools/virt-list-partitions.pl:36
40116 " virt-list-partitions [--options] domname\n"
40119 " virt-list-partitions [--параметри] назва_домену\n"
40123 #: ../tools/virt-list-partitions.pl:38
40126 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
40129 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
40133 #: ../tools/virt-list-partitions.pl:45
40135 "C<virt-list-partitions> is a command line tool to list the partitions that "
40136 "are contained in a virtual machine or disk image. It is mainly useful as a "
40137 "first step to using L<virt-resize(1)>."
40141 #: ../tools/virt-list-partitions.pl:50
40143 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
40144 "functionality. For more complex cases you should look at the L<guestfish(1)"
40149 #: ../tools/virt-list-partitions.pl:113
40150 msgid "Show sizes in human-readable form (eg. \"1G\")."
40154 #: ../tools/virt-list-partitions.pl:123
40156 "With this option, C<virt-list-partitions> displays the type and size of each "
40157 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
40161 #: ../tools/virt-list-partitions.pl:130
40166 #: ../tools/virt-list-partitions.pl:132
40168 #| msgid "B<-t> | B<--total>"
40170 msgstr "B<-t> | B<--total>"
40173 #: ../tools/virt-list-partitions.pl:134
40175 "Display the total size of each block device (as a separate row or rows)."
40179 #: ../tools/virt-list-partitions.pl:267
40181 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40182 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
40183 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40185 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40186 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
40187 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40190 #: ../tools/virt-list-partitions.pl:283
40191 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40192 msgstr "© Red Hat Inc., 2009–2010"
40195 #: ../tools/virt-make-fs.pl:37
40196 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40200 #: ../tools/virt-make-fs.pl:41
40203 " virt-make-fs [--options] input.tar output.img\n"
40208 #: ../tools/virt-make-fs.pl:43
40211 " virt-make-fs [--options] input.tar.gz output.img\n"
40216 #: ../tools/virt-make-fs.pl:45
40219 " virt-make-fs [--options] directory output.img\n"
40224 #: ../tools/virt-make-fs.pl:49
40226 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40227 "archive or some files in a directory. It is similar to tools like L<mkisofs"
40228 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
40229 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
40230 "you want to attach these filesystems to existing virtual machines (eg. to "
40231 "import large amounts of read-only data to a VM)."
40235 #: ../tools/virt-make-fs.pl:57
40236 msgid "Basic usage is:"
40240 #: ../tools/virt-make-fs.pl:59
40243 " virt-make-fs input output\n"
40248 #: ../tools/virt-make-fs.pl:61
40250 "where C<input> is either a directory containing files that you want to add, "
40251 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40252 "C<output> is a disk image. The input type is detected automatically. The "
40253 "output disk image defaults to a raw ext2 image unless you specify extra "
40254 "flags (see L</OPTIONS> below)."
40258 #: ../tools/virt-make-fs.pl:67
40259 msgid "EXTRA SPACE"
40263 #: ../tools/virt-make-fs.pl:69
40265 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
40266 "the files that it contains, but might have extra space. Depending on how "
40267 "you are going to use the output, you might think this extra space is wasted "
40268 "and want to minimize it, or you might want to leave space so that more files "
40269 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
40270 "but you can use the I<--size> flag to leave space in the filesystem if you "
40275 #: ../tools/virt-make-fs.pl:77
40277 "An alternative way to leave extra space but not make the output image any "
40278 "bigger is to use an alternative disk image format (instead of the default "
40279 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
40280 "image format (check your hypervisor supports this before using it). This "
40281 "allows you to choose a large I<--size> but the extra space won't actually be "
40282 "allocated in the image until you try to store something in it."
40286 #: ../tools/virt-make-fs.pl:85
40288 "Don't forget that you can also use local commands including L<resize2fs(8)> "
40289 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
40290 "to build another image from scratch."
40294 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
40295 #: ../tools/virt-make-fs.pl:142
40300 #: ../tools/virt-make-fs.pl:91
40303 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
40306 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
40310 #: ../tools/virt-make-fs.pl:93
40311 msgid "FILESYSTEM TYPE"
40312 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
40315 #: ../tools/virt-make-fs.pl:95
40317 "The default filesystem type is C<ext2>. Just about any filesystem type that "
40318 "libguestfs supports can be used (but I<not> read-only formats like "
40319 "ISO9660). Here are some of the more common choices:"
40323 #: ../tools/virt-make-fs.pl:101
40328 #: ../tools/virt-make-fs.pl:103
40330 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
40331 "you are not going to use the filesystem in a way that requires the journal, "
40332 "then this is just wasted overhead."
40336 #: ../tools/virt-make-fs.pl:107
40337 msgid "I<ntfs> or I<vfat>"
40338 msgstr "I<ntfs> або I<vfat>"
40341 #: ../tools/virt-make-fs.pl:109
40342 msgid "Useful if exporting data to a Windows guest."
40346 #: ../tools/virt-make-fs.pl:111
40348 "I<Note for vfat>: The tar archive or local directory must only contain files "
40349 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
40350 "program running within libguestfs is unable to change the ownership of non-"
40351 "root files, since vfat itself does not support this."
40355 #: ../tools/virt-make-fs.pl:116
40360 #: ../tools/virt-make-fs.pl:118
40362 "Lower overhead than C<ext2>, but certain limitations on filename length and "
40363 "total filesystem size."
40367 #: ../tools/virt-make-fs.pl:125
40370 " virt-make-fs --type=minix input minixfs.img\n"
40375 #: ../tools/virt-make-fs.pl:127
40376 msgid "TO PARTITION OR NOT TO PARTITION"
40380 #: ../tools/virt-make-fs.pl:129
40381 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40385 #: ../tools/virt-make-fs.pl:131
40387 "Adding a partition can make the disk image more compatible with certain "
40388 "virtualized operating systems which don't expect to see a filesystem "
40389 "directly located on a block device (Linux doesn't care and will happily "
40390 "handle both types)."
40394 #: ../tools/virt-make-fs.pl:136
40396 "On the other hand, if you have a partition table then the output image is no "
40397 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
40398 "directly on a partitioned disk image. (However libguestfs tools such as "
40399 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40403 #: ../tools/virt-make-fs.pl:144
40404 msgid "Add an MBR partition:"
40408 #: ../tools/virt-make-fs.pl:146
40411 " virt-make-fs --partition -- input disk.img\n"
40416 #: ../tools/virt-make-fs.pl:148
40418 "If the output disk image could be terabyte-sized or larger, it's better to "
40419 "use an EFI/GPT-compatible partition table:"
40423 #: ../tools/virt-make-fs.pl:151
40426 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40431 #: ../tools/virt-make-fs.pl:179
40432 msgid "Enable debugging information."
40433 msgstr "Увімкнути виведення діагностичних даних."
40436 #: ../tools/virt-make-fs.pl:185
40437 msgid "B<--size=E<lt>NE<gt>>"
40438 msgstr "B<--size=E<lt>NE<gt>>"
40441 #: ../tools/virt-make-fs.pl:187
40442 msgid "B<--size=+E<lt>NE<gt>>"
40443 msgstr "B<--size=+E<lt>NE<gt>>"
40446 #: ../tools/virt-make-fs.pl:189
40447 msgid "B<-s E<lt>NE<gt>>"
40448 msgstr "B<-s E<lt>NE<gt>>"
40451 #: ../tools/virt-make-fs.pl:191
40452 msgid "B<-s +E<lt>NE<gt>>"
40453 msgstr "B<-s +E<lt>NE<gt>>"
40456 #: ../tools/virt-make-fs.pl:193
40458 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
40462 #: ../tools/virt-make-fs.pl:196
40464 "If this option is I<not> given, then the output image will be just large "
40465 "enough to contain all the files, with not much wasted space."
40469 #: ../tools/virt-make-fs.pl:199
40471 "To choose a fixed size output disk, specify an absolute number followed by b/"
40472 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40473 "Petabytes or Exabytes. This must be large enough to contain all the input "
40474 "files, else you will get an error."
40478 #: ../tools/virt-make-fs.pl:204
40480 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
40481 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40482 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
40483 "the input files, and (approximately) an extra 200 MB free space."
40487 #: ../tools/virt-make-fs.pl:210
40489 "Note that virt-make-fs estimates free space, and therefore will not produce "
40490 "filesystems containing precisely the free space requested. (It is much more "
40491 "expensive and time-consuming to produce a filesystem which has precisely the "
40492 "desired free space)."
40496 #: ../tools/virt-make-fs.pl:219
40497 msgid "B<--format=E<lt>fmtE<gt>>"
40501 #: ../tools/virt-make-fs.pl:221
40502 msgid "B<-F E<lt>fmtE<gt>>"
40506 #: ../tools/virt-make-fs.pl:223
40507 msgid "Choose the output disk image format."
40511 #: ../tools/virt-make-fs.pl:225
40512 msgid "The default is C<raw> (raw disk image)."
40516 #: ../tools/virt-make-fs.pl:227
40518 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
40519 "that would really make sense here is C<qcow2>."
40523 #: ../tools/virt-make-fs.pl:234
40524 msgid "B<--type=E<lt>fsE<gt>>"
40528 #: ../tools/virt-make-fs.pl:236
40529 msgid "B<-t E<lt>fsE<gt>>"
40533 #: ../tools/virt-make-fs.pl:238
40534 msgid "Choose the output filesystem type."
40538 #: ../tools/virt-make-fs.pl:240
40539 msgid "The default is C<ext2>."
40540 msgstr "Типовим значенням є C<ext2>."
40543 #: ../tools/virt-make-fs.pl:242
40545 "Any filesystem which is supported read-write by libguestfs can be used here."
40549 #: ../tools/virt-make-fs.pl:249
40550 msgid "B<--partition>"
40551 msgstr "B<--partition>"
40554 #: ../tools/virt-make-fs.pl:251
40555 msgid "B<--partition=E<lt>parttypeE<gt>>"
40559 #: ../tools/virt-make-fs.pl:253
40561 "If specified, this flag adds an MBR partition table to the output disk image."
40565 #: ../tools/virt-make-fs.pl:256
40567 "You can change the partition table type, eg. I<--partition=gpt> for large "
40572 #: ../tools/virt-make-fs.pl:259
40574 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40575 "might consider the next parameter to be the partition type. For example:"
40579 #: ../tools/virt-make-fs.pl:263
40582 " virt-make-fs --partition input.tar ...\n"
40587 #: ../tools/virt-make-fs.pl:265
40589 "would cause virt-make-fs to think you wanted to use a partition type of "
40590 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
40591 "dash) between options and the input file argument:"
40595 #: ../tools/virt-make-fs.pl:269
40598 " virt-make-fs --partition -- input.tar ...\n"
40601 " virt-make-fs --partition -- input.tar ...\n"
40605 #: ../tools/virt-make-fs.pl:541
40607 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40608 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40609 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40611 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40612 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40613 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40616 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
40618 "When reporting bugs, please enable debugging and capture the I<complete> "
40623 #: ../tools/virt-make-fs.pl:558
40626 " export LIBGUESTFS_DEBUG=1\n"
40627 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40630 " export LIBGUESTFS_DEBUG=1\n"
40631 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40635 #: ../tools/virt-make-fs.pl:561
40637 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
40642 #: ../tools/virt-tar.pl:33
40643 msgid "virt-tar - Extract or upload files to a virtual machine"
40647 #: ../tools/virt-tar.pl:37
40650 " virt-tar [--options] -x domname directory tarball\n"
40655 #: ../tools/virt-tar.pl:39
40658 " virt-tar [--options] -u domname tarball directory\n"
40663 #: ../tools/virt-tar.pl:41
40666 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
40671 #: ../tools/virt-tar.pl:43
40674 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
40679 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
40684 #: ../tools/virt-tar.pl:47
40686 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
40687 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
40691 #: ../tools/virt-tar.pl:52
40692 msgid "Download C</home> from the VM into a local tarball:"
40696 #: ../tools/virt-tar.pl:54
40699 " virt-tar -x domname /home home.tar\n"
40704 #: ../tools/virt-tar.pl:56
40707 " virt-tar -zx domname /home home.tar.gz\n"
40712 #: ../tools/virt-tar.pl:58
40713 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
40717 #: ../tools/virt-tar.pl:60
40720 " virt-tar -u domname uploadstuff.tar /tmp\n"
40725 #: ../tools/virt-tar.pl:62
40728 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
40733 #: ../tools/virt-tar.pl:66
40735 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
40736 "virtual machines. If you do this, you risk disk corruption in the VM. "
40737 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
40741 #: ../tools/virt-tar.pl:71
40743 "You can use I<-x> (extract) on live virtual machines, but you might get "
40744 "inconsistent results or errors if there is filesystem activity inside the "
40745 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
40746 "work, but the only way to guarantee consistent results is if the virtual "
40747 "machine is shut down."
40751 #: ../tools/virt-tar.pl:79
40753 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
40754 "parts of a guest filesystem. There are many possibilities: making backups, "
40755 "uploading data files, snooping on guest activity, fixing or customizing "
40760 #: ../tools/virt-tar.pl:84
40762 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
40763 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
40764 "should look at the L<guestfish(1)> tool."
40768 #: ../tools/virt-tar.pl:88
40770 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
40771 "its contents (recursively) from the virtual machine into a local tarball. "
40772 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
40773 "virtual machine. You cannot use these two options together."
40777 #: ../tools/virt-tar.pl:94
40779 "In addition, you may need to use the I<-z> (gZip) option to enable "
40780 "compression. When uploading, you have to specify I<-z> if the upload file "
40781 "is compressed because virt-tar won't detect this on its own."
40785 #: ../tools/virt-tar.pl:98
40787 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
40788 "example it cannot do PKZip files or bzip2 compression. If you want that "
40789 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
40790 "the L<libguestfs(3)> API)."
40794 #: ../tools/virt-tar.pl:160
40796 #| msgid "B<--format>"
40797 msgid "B<--extract>"
40798 msgstr "B<--format>"
40801 #: ../tools/virt-tar.pl:162
40803 #| msgid "download"
40804 msgid "B<--download>"
40808 #: ../tools/virt-tar.pl:164
40813 #: ../tools/virt-tar.pl:166
40815 #| msgid "B<-u> | B<--upload>"
40816 msgid "B<--upload>"
40817 msgstr "B<-u> | B<--upload>"
40820 #: ../tools/virt-tar.pl:168
40822 "Use I<-x> to extract (download) a directory from a virtual machine to a "
40827 #: ../tools/virt-tar.pl:171
40829 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
40830 "Please read the L</WARNING> section above before using this option."
40834 #: ../tools/virt-tar.pl:175
40835 msgid "You must specify exactly one of these options."
40839 #: ../tools/virt-tar.pl:181
40844 #: ../tools/virt-tar.pl:183
40846 #| msgid "B<-z> | B<--gzip>"
40848 msgstr "B<-z> | B<--gzip>"
40851 #: ../tools/virt-tar.pl:185
40852 msgid "Specify that the input or output tarball is gzip-compressed."
40856 #: ../tools/virt-tar.pl:298
40858 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40859 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40860 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40863 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40864 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40865 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40869 #: ../tools/virt-win-reg.pl:37
40871 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
40875 #: ../tools/virt-win-reg.pl:41
40878 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
40883 #: ../tools/virt-win-reg.pl:43
40886 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
40891 #: ../tools/virt-win-reg.pl:45
40894 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
40899 #: ../tools/virt-win-reg.pl:47
40902 " virt-win-reg --merge domname [input.reg ...]\n"
40907 #: ../tools/virt-win-reg.pl:49
40910 " virt-win-reg [--options] disk.img ... # instead of domname\n"
40915 #: ../tools/virt-win-reg.pl:53
40917 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
40918 "virtual machines. If you do this, you I<will> get irreversible disk "
40919 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
40920 "but doesn't catch all cases."
40924 #: ../tools/virt-win-reg.pl:58
40926 "Modifying the Windows Registry is an inherently risky operation. The format "
40927 "is deliberately obscure and undocumented, and Registry changes can leave the "
40928 "system unbootable. Therefore when using the I<--merge> option, make sure "
40929 "you have a reliable backup first."
40933 #: ../tools/virt-win-reg.pl:65
40935 "This program can export and merge Windows Registry entries from a Windows "
40940 #: ../tools/virt-win-reg.pl:68
40942 "The first parameter is the libvirt guest name or the raw disk image of a "
40947 #: ../tools/virt-win-reg.pl:71
40949 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
40950 "exported (recursively). For example:"
40954 #: ../tools/virt-win-reg.pl:74
40957 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
40962 #: ../tools/virt-win-reg.pl:76
40964 "You can also display single values from within registry keys, for example:"
40968 #: ../tools/virt-win-reg.pl:79
40971 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
40972 " $ virt-win-reg Windows7 $cvkey ProductName\n"
40973 " Windows 7 Enterprise\n"
40978 #: ../tools/virt-win-reg.pl:83
40980 "With I<--merge>, you can merge a textual regedit file into the Windows "
40985 #: ../tools/virt-win-reg.pl:86
40988 " $ virt-win-reg --merge Windows7 changes.reg\n"
40993 #: ../tools/virt-win-reg.pl:90
40995 "This program is only meant for simple access to the registry. If you want "
40996 "to do complicated things with the registry, we suggest you download the "
40997 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
40998 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
40999 "L<hivexregedit(1)>."
41003 #: ../tools/virt-win-reg.pl:159
41005 msgstr "B<--merge>"
41008 #: ../tools/virt-win-reg.pl:161
41010 "In merge mode, this merges a textual regedit file into the Windows Registry "
41011 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
41012 "displays or exports Registry entries instead."
41016 #: ../tools/virt-win-reg.pl:165
41018 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
41019 "result in disk corruption. However exporting (without this flag) is always "
41024 #: ../tools/virt-win-reg.pl:173
41025 msgid "B<--encoding> UTF-16LE|ASCII"
41029 #: ../tools/virt-win-reg.pl:175
41031 "When merging (only), you may need to specify the encoding for strings to be "
41032 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
41033 "(3)/ENCODING STRINGS>."
41037 #: ../tools/virt-win-reg.pl:179
41039 "The default is to use UTF-16LE, which should work with recent versions of "
41044 #: ../tools/virt-win-reg.pl:186
41045 msgid "B<--unsafe-printable-strings>"
41049 #: ../tools/virt-win-reg.pl:188
41051 "When exporting (only), assume strings are UTF-16LE and print them as strings "
41052 "instead of hex sequences. Remove the final zero codepoint from strings if "
41057 #: ../tools/virt-win-reg.pl:192
41059 "This is unsafe and does not preserve the fidelity of strings in the original "
41060 "Registry for various reasons:"
41064 #: ../tools/virt-win-reg.pl:199
41066 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
41067 "other encodings will be corrupted by this transformation."
41071 #: ../tools/virt-win-reg.pl:204
41073 "Assumes that everything which has type 1 or 2 is really a string and that "
41074 "everything else is not a string, but the type field in real Registries is "
41079 #: ../tools/virt-win-reg.pl:210
41081 "Loses information about whether a zero codepoint followed the string in the "
41086 #: ../tools/virt-win-reg.pl:215
41088 "This all happens because the Registry itself contains no information about "
41089 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
41093 #: ../tools/virt-win-reg.pl:219
41095 "You should only use this option for quick hacking and debugging of the "
41096 "Registry contents, and I<never> use it if the output is going to be passed "
41097 "into another program or stored in another Registry."
41101 #: ../tools/virt-win-reg.pl:556
41102 msgid "SUPPORTED SYSTEMS"
41106 #: ../tools/virt-win-reg.pl:558
41108 "The program currently supports Windows NT-derived guests starting with "
41109 "Windows XP through to at least Windows 7."
41113 #: ../tools/virt-win-reg.pl:561
41114 msgid "The following Registry keys are supported:"
41118 #: ../tools/virt-win-reg.pl:565
41119 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41123 #: ../tools/virt-win-reg.pl:567
41124 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41128 #: ../tools/virt-win-reg.pl:569
41129 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41133 #: ../tools/virt-win-reg.pl:571
41134 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
41138 #: ../tools/virt-win-reg.pl:573
41139 msgid "C<HKEY_USERS\\.DEFAULT>"
41143 #: ../tools/virt-win-reg.pl:575
41144 msgid "C<HKEY_USERS\\I<SID>>"
41148 #: ../tools/virt-win-reg.pl:577
41149 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
41153 #: ../tools/virt-win-reg.pl:579
41154 msgid "C<HKEY_USERS\\I<username>>"
41158 #: ../tools/virt-win-reg.pl:581
41160 "where I<username> is a local user name (this is a libguestfs extension)."
41164 #: ../tools/virt-win-reg.pl:585
41166 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
41171 #: ../tools/virt-win-reg.pl:588
41173 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
41174 "supported (there is no \"current user\")."
41178 #: ../tools/virt-win-reg.pl:591
41183 #: ../tools/virt-win-reg.pl:593
41185 "C<virt-win-reg> expects that regedit files have already been reencoded in "
41186 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
41187 "style line endings. Since Windows regedit files are often in UTF-16LE with "
41188 "Windows-style line endings, you may need to reencode the whole file before "
41189 "or after processing."
41193 #: ../tools/virt-win-reg.pl:599
41195 "To reencode a file from Windows format to Linux (before processing it with "
41196 "the I<--merge> option), you would do something like this:"
41200 #: ../tools/virt-win-reg.pl:602
41203 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
41208 #: ../tools/virt-win-reg.pl:604
41210 "To go in the opposite direction, after exporting and before sending the file "
41211 "to a Windows user, do something like this:"
41215 #: ../tools/virt-win-reg.pl:607
41218 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41223 #: ../tools/virt-win-reg.pl:609
41224 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41228 #: ../tools/virt-win-reg.pl:611
41230 "If you are unsure about the current encoding, use the L<file(1)> command. "
41231 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
41232 "style (CRLF) line endings, like this:"
41236 #: ../tools/virt-win-reg.pl:615
41239 " $ file software.reg\n"
41240 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41241 " with CRLF line terminators\n"
41246 #: ../tools/virt-win-reg.pl:619
41247 msgid "This file would need conversion before you could I<--merge> it."
41251 #: ../tools/virt-win-reg.pl:621
41252 msgid "CurrentControlSet etc."
41256 #: ../tools/virt-win-reg.pl:623
41258 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41259 "Registry at the level of the hive file, and therefore you cannot modify "
41264 #: ../tools/virt-win-reg.pl:627
41266 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
41267 "circumstances it might refer to another control set. The way to find out is "
41268 "to look at the C<HKLM\\SYSTEM\\Select> key:"
41272 #: ../tools/virt-win-reg.pl:631
41275 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41276 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41277 " \"Current\"=dword:00000001\n"
41278 " \"Default\"=dword:00000001\n"
41279 " \"Failed\"=dword:00000000\n"
41280 " \"LastKnownGood\"=dword:00000002\n"
41285 #: ../tools/virt-win-reg.pl:638
41286 msgid "\"Current\" is the one which Windows will choose when it boots."
41290 #: ../tools/virt-win-reg.pl:640
41292 "Similarly, other C<Current...> keys in the path may need to be replaced."
41296 #: ../tools/virt-win-reg.pl:643
41297 msgid "WINDOWS TIPS"
41301 #: ../tools/virt-win-reg.pl:645
41303 "Note that some of these tips modify the guest disk image. The guest I<must> "
41304 "be shut off, else you will get disk corruption."
41308 #: ../tools/virt-win-reg.pl:648
41309 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
41313 #: ../tools/virt-win-reg.pl:650
41315 "Prepare a DOS batch script, VBScript or executable. Upload this using "
41316 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
41317 "is uploaded into C<C:\\>:"
41321 #: ../tools/virt-win-reg.pl:654
41324 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
41329 #: ../tools/virt-win-reg.pl:656
41330 msgid "Prepare a regedit file containing the registry change:"
41334 #: ../tools/virt-win-reg.pl:658
41337 " cat > test.reg <<'EOF'\n"
41338 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
41339 " \"Test\"=\"c:\\\\test.bat\"\n"
41345 #: ../tools/virt-win-reg.pl:663
41347 "In this example we use the key C<RunOnce> which means that the script will "
41348 "run precisely once when the first user logs in. If you want it to run every "
41349 "time a user logs in, replace C<RunOnce> with C<Run>."
41353 #: ../tools/virt-win-reg.pl:667
41354 msgid "Now update the registry:"
41358 #: ../tools/virt-win-reg.pl:669
41361 " virt-win-reg --merge WindowsGuest test.reg\n"
41366 #: ../tools/virt-win-reg.pl:671
41367 msgid "INSTALLING A SERVICE"
41371 #: ../tools/virt-win-reg.pl:673
41373 "This section assumes you are familiar with Windows services, and you either "
41374 "have a program which handles the Windows Service Control Protocol directly "
41375 "or you want to run any program using a service wrapper like SrvAny or the "
41380 #: ../tools/virt-win-reg.pl:678
41382 "First upload the program and optionally the service wrapper. In this case "
41383 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
41387 #: ../tools/virt-win-reg.pl:682
41390 " guestfish -i -d WindowsGuest <<EOF\n"
41391 " upload rhsrvany.exe /rhsrvany.exe\n"
41392 " upload test.exe /test.exe\n"
41398 #: ../tools/virt-win-reg.pl:687
41400 "Prepare a regedit file containing the registry changes. In this example, "
41401 "the first registry change is needed for the service itself or the service "
41402 "wrapper (if used). The second registry change is only needed because I am "
41403 "using the RHSrvAny service wrapper."
41407 #: ../tools/virt-win-reg.pl:692
41410 " cat > service.reg <<'EOF'\n"
41411 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
41412 " \"Type\"=dword:00000010\n"
41413 " \"Start\"=dword:00000002\n"
41414 " \"ErrorControl\"=dword:00000001\n"
41415 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
41416 " \"DisplayName\"=\"RHSrvAny\"\n"
41417 " \"ObjectName\"=\"NetworkService\"\n"
41422 #: ../tools/virt-win-reg.pl:701
41425 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
41426 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
41427 " \"PWD\"=\"c:\\\\Temp\"\n"
41433 #: ../tools/virt-win-reg.pl:712
41435 "For use of C<ControlSet001> see the section above in this manual page. You "
41436 "may need to adjust this according to the control set that is in use by the "
41441 #: ../tools/virt-win-reg.pl:718
41443 "C<\"ObjectName\"> controls the privileges that the service will have. An "
41444 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
41445 "privileged account."
41449 #: ../tools/virt-win-reg.pl:724
41451 "For the meaning of the magic numbers, see this Microsoft KB article: "
41452 "L<http://support.microsoft.com/kb/103000>."
41456 #: ../tools/virt-win-reg.pl:729
41457 msgid "Update the registry:"
41461 #: ../tools/virt-win-reg.pl:731
41464 " virt-win-reg --merge WindowsGuest service.reg\n"
41469 #: ../tools/virt-win-reg.pl:735
41471 "Be careful when passing parameters containing C<\\> (backslash) in the "
41472 "shell. Usually you will have to use 'single quotes' or double backslashes "
41473 "(but not both) to protect them from the shell."
41477 #: ../tools/virt-win-reg.pl:739
41478 msgid "Paths and value names are case-insensitive."
41482 #: ../tools/virt-win-reg.pl:748
41484 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
41485 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
41486 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41490 #: ../tools/virt-win-reg.pl:766
41493 " export LIBGUESTFS_DEBUG=1\n"
41494 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
41499 #: ../tools/virt-win-reg.pl:769
41501 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
41505 #~ msgid "I<--help>"
41506 #~ msgstr "I<--help>"
41508 #~ msgid "EXIT CODE"
41509 #~ msgstr "КОД ВИХОДУ"
41511 #~ msgid "B<-a> | B<--all>"
41512 #~ msgstr "B<-a> | B<--all>"
41514 #~ msgid "B<-x> | B<--extract> | B<--download>"
41515 #~ msgstr "B<-x> | B<--extract> | B<--download>"