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-01 14:27+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 ../src/guestfs.pod:3
33 #: ../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 #: ../src/guestfs.pod:7 ../test-tool/libguestfs-test-tool.pod:7
57 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
58 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
59 #: ../tools/virt-win-reg.pl:39
61 msgstr "КОРОТКИЙ ОПИС"
64 #: ../cat/virt-cat.pod:9
67 #| " virt-list-partitions [--options] domname\n"
70 " virt-cat [--options] -d domname file [file ...]\n"
73 " virt-list-partitions [--параметри] назва_домену\n"
77 #: ../cat/virt-cat.pod:11
80 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
83 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
86 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
90 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
91 #: ../inspector/virt-inspector.pod:13
96 #: ../cat/virt-cat.pod:15
99 " virt-cat domname file\n"
104 #: ../cat/virt-cat.pod:17
107 " virt-cat disk.img file\n"
112 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
113 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
114 #: ../erlang/examples/guestfs-erlang.pod:16
115 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
116 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
117 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
118 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
119 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
120 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
121 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
122 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
123 #: ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11
124 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
125 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
126 #: ../tools/virt-win-reg.pl:63
131 #: ../cat/virt-cat.pod:21
133 "C<virt-cat> is a command line tool to display the contents of C<file> where "
134 "C<file> exists in the named virtual machine (or disk image)."
138 #: ../cat/virt-cat.pod:24
140 "Multiple filenames can be given, in which case they are concatenated "
141 "together. Each filename must be a full path, starting at the root directory "
142 "(starting with '/')."
146 #: ../cat/virt-cat.pod:28
148 "C<virt-cat> can be used to quickly view a file. To edit a file, use C<virt-"
149 "edit>. For more complex cases you should look at the L<guestfish(1)> tool "
150 "(see L</USING GUESTFISH> below)."
154 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
155 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
156 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
157 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
158 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
159 #: ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
164 #: ../cat/virt-cat.pod:34
166 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
170 #: ../cat/virt-cat.pod:37
173 " virt-cat -d mydomain /etc/fstab\n"
178 #: ../cat/virt-cat.pod:39
179 msgid "List syslog messages from a VM disk image file:"
183 #: ../cat/virt-cat.pod:41
186 " virt-cat -a disk.img /var/log/messages | tail\n"
191 #: ../cat/virt-cat.pod:43
192 msgid "Find out what DHCP IP address a VM acquired:"
196 #: ../cat/virt-cat.pod:45
199 " virt-cat -d mydomain /var/log/messages | \\\n"
200 " grep 'dhclient: bound to' | tail\n"
205 #: ../cat/virt-cat.pod:48
206 msgid "Find out what packages were recently installed:"
210 #: ../cat/virt-cat.pod:50
213 " virt-cat -d mydomain /var/log/yum.log | tail\n"
218 #: ../cat/virt-cat.pod:52
219 msgid "Find out who is logged on inside a virtual machine:"
223 #: ../cat/virt-cat.pod:54
226 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
232 #: ../cat/virt-cat.pod:57
233 msgid "or who was logged on:"
237 #: ../cat/virt-cat.pod:59
240 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
241 " last -f /tmp/wtmp\n"
246 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
247 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
248 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
249 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
250 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
251 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
252 #: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:36
253 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
254 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
255 #: ../tools/virt-win-reg.pl:96
260 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
261 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
262 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
263 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
264 #: ../resize/virt-resize.pod:245 ../test-tool/libguestfs-test-tool.pod:40
265 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
266 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
267 #: ../tools/virt-win-reg.pl:104
272 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
273 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
274 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
275 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
276 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
277 #: ../tools/virt-win-reg.pl:106
278 msgid "Display brief help."
282 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
283 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
284 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
286 #| msgid "B<-f file>"
291 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
292 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
293 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
295 #| msgid "B<--add image>"
296 msgid "B<--add> file"
297 msgstr "B<--add образ>"
300 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
301 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
302 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
304 "Add I<file> which should be a disk image from a virtual machine. If the "
305 "virtual machine has multiple block devices, you must supply all of them with "
306 "separate I<-a> options."
310 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
311 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
312 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
313 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
315 "The format of the disk image is auto-detected. To override this and force a "
316 "particular format use the I<--format=..> option."
320 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
321 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
325 msgstr "B<-c адреса>"
328 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
329 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
331 #| msgid "B<--connect URI>"
332 msgid "B<--connect> URI"
333 msgstr "B<--connect адреса>"
336 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
337 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
338 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
339 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
340 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
342 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
343 "to the default libvirt hypervisor."
347 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
348 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
350 "If you specify guest block devices directly (I<-a>), then libvirt is not "
355 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
356 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
357 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
362 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
363 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
364 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
365 msgid "B<--domain> guest"
369 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
370 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
371 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
373 "Add all the disks from the named libvirt guest. Domain UUIDs can be used "
378 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
379 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
380 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
381 msgid "B<--echo-keys>"
382 msgstr "B<--echo-keys>"
385 #: ../cat/virt-cat.pod:100
387 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
388 "so you cannot see what you are typing. If you are not worried about Tempest "
389 "attacks and there is no one else in the room you can specify this flag to "
390 "see what you are typing."
394 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
395 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
396 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
397 #: ../rescue/virt-rescue.pod:124
398 msgid "B<--format=raw|qcow2|..>"
399 msgstr "B<--format=raw|qcow2|..>"
402 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
403 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
404 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
405 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
410 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
411 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
412 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
413 #: ../rescue/virt-rescue.pod:128
415 "The default for the I<-a> option is to auto-detect the format of the disk "
416 "image. Using this forces the disk format for I<-a> options which follow on "
417 "the command line. Using I<--format> with no argument switches back to auto-"
418 "detection for subsequent I<-a> options."
422 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
423 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
424 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
425 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
426 #: ../src/guestfs.pod:2791
431 #: ../cat/virt-cat.pod:116
434 #| " guestfish --format=raw -a disk.img\n"
437 " virt-cat --format=raw -a disk.img file\n"
440 " guestfish --format=raw -a disk.img\n"
444 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
445 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
446 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
447 msgid "forces raw format (no auto-detection) for C<disk.img>."
451 #: ../cat/virt-cat.pod:120
454 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
457 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
460 " guestfish --format=raw -a disk.img --format -a another.img\n"
464 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
465 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
466 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
468 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
469 "detection for C<another.img>."
473 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
474 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
475 #: ../rescue/virt-rescue.pod:144
477 "If you have untrusted raw-format guest disk images, you should use this "
478 "option to specify the disk format. This avoids a possible security problem "
479 "with malicious guests (CVE-2010-3851)."
483 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
484 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
485 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
486 msgid "B<--keys-from-stdin>"
487 msgstr "B<--keys-from-stdin>"
490 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
491 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
492 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
494 "Read key or passphrase parameters from stdin. The default is to try to read "
495 "passphrases from the user by opening C</dev/tty>."
499 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
500 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
501 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
502 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:182
507 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
508 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
509 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
510 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184
512 msgstr "B<--verbose>"
515 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
516 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
517 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186
518 msgid "Enable verbose messages for debugging."
522 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
523 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
524 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
525 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188
526 #: ../resize/virt-resize.pod:484
531 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
532 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
533 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
534 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:190
535 #: ../resize/virt-resize.pod:486 ../tools/virt-list-filesystems.pl:69
536 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
537 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
539 msgstr "B<--version>"
542 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
543 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
544 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192
545 #: ../resize/virt-resize.pod:488 ../tools/virt-list-filesystems.pl:71
546 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
547 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
548 msgid "Display version number and exit."
549 msgstr "Показати дані щодо версії і завершити роботу."
552 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
553 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
554 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
555 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:203
556 #: ../tools/virt-tar.pl:158
561 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
562 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
563 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205
564 msgid "Enable tracing of libguestfs API calls."
568 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
569 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
570 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
574 #: ../cat/virt-cat.pod:154
575 msgid "Previous versions of virt-cat allowed you to write either:"
579 #: ../cat/virt-cat.pod:156
582 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
585 " virt-cat disk.img [disk.img ...] file\n"
588 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
592 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
593 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
600 #: ../cat/virt-cat.pod:160
603 " virt-cat guestname file\n"
608 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
609 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
611 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
612 "the confusing case where a disk image might have the same name as a guest."
616 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
617 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
618 msgid "For compatibility the old style is still supported."
622 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
623 msgid "USING GUESTFISH"
627 #: ../cat/virt-cat.pod:170
629 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
630 "C<virt-cat> doesn't work."
634 #: ../cat/virt-cat.pod:173
635 msgid "Using C<virt-cat> is approximately equivalent to doing:"
639 #: ../cat/virt-cat.pod:175
642 #| " guestfish --ro -d myguest -i\n"
645 " guestfish --ro -i -d domname download file -\n"
648 " guestfish --ro -d myguest -i\n"
652 #: ../cat/virt-cat.pod:177
654 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
655 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
659 #: ../cat/virt-cat.pod:181
661 "The command above uses libguestfs's guest inspection feature and so does not "
662 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
663 "disk images that don't contain guests. To display a file from a disk image "
668 #: ../cat/virt-cat.pod:186
671 #| " guestfish [--ro] -i disk.img\n"
674 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
677 " guestfish [--ro] -i disk.img\n"
681 #: ../cat/virt-cat.pod:188
683 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
684 "the disk image, and C<file> is the full path to the file."
688 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
689 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
690 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266
691 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
692 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
693 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
694 msgid "SHELL QUOTING"
698 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
699 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
700 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268
701 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
702 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
703 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
705 "Libvirt guest names can contain arbitrary characters, some of which have "
706 "meaning to the shell such as C<#> and space. You may need to quote or "
707 "escape these characters on the command line. See the shell manual page L<sh"
712 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
713 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
714 #: ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303
715 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608
716 #: ../test-tool/libguestfs-test-tool.pod:90
721 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
722 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
723 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
724 #: ../resize/virt-resize.pod:610
726 "This program returns 0 if successful, or non-zero if there was an error."
730 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
731 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
732 #: ../erlang/examples/guestfs-erlang.pod:97
733 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
734 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
735 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
736 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
737 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
738 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
739 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
740 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
741 #: ../src/guestfs.pod:3167 ../test-tool/libguestfs-test-tool.pod:100
742 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
743 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
744 #: ../tools/virt-win-reg.pl:746
746 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
749 #: ../cat/virt-cat.pod:205
752 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
753 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
754 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
756 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
757 "tar-out(1)>, L<http://libguestfs.org/>."
759 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
760 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
761 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
764 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
765 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
766 #: ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:634
767 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
768 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
769 #: ../tools/virt-win-reg.pl:772
774 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
775 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
776 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298
777 #: ../resize/virt-resize.pod:636 ../tools/virt-list-filesystems.pl:210
778 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
779 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
780 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
781 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
784 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
785 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
786 #: ../erlang/examples/guestfs-erlang.pod:114
787 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
788 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64
789 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
790 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
791 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
792 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
793 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
794 #: ../resize/virt-resize.pod:638 ../ruby/examples/guestfs-ruby.pod:52
795 #: ../src/guestfs.pod:3244 ../test-tool/libguestfs-test-tool.pod:110
796 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
797 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
798 #: ../tools/virt-win-reg.pl:776
800 msgstr "АВТОРСЬКІ ПРАВА"
803 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
804 #: ../resize/virt-resize.pod:640
806 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
807 msgid "Copyright (C) 2010-2011 Red Hat Inc."
808 msgstr "© Red Hat Inc., 2009–2010"
811 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
812 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
813 #: ../fish/guestfish.pod:1269 ../fish/virt-copy-in.pod:69
814 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
815 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328
816 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:304
817 #: ../resize/virt-resize.pod:642 ../test-tool/libguestfs-test-tool.pod:115
818 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
819 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
820 #: ../tools/virt-win-reg.pl:780
822 "This program is free software; you can redistribute it and/or modify it "
823 "under the terms of the GNU General Public License as published by the Free "
824 "Software Foundation; either version 2 of the License, or (at your option) "
829 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
830 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
831 #: ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74
832 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
833 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333
834 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:309
835 #: ../resize/virt-resize.pod:647 ../test-tool/libguestfs-test-tool.pod:120
836 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
837 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
838 #: ../tools/virt-win-reg.pl:785
840 "This program is distributed in the hope that it will be useful, but WITHOUT "
841 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
842 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
845 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
846 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
847 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
848 "дізнатися з GNU General Public License."
851 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
852 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
853 #: ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79
854 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
855 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338
856 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:314
857 #: ../resize/virt-resize.pod:652 ../test-tool/libguestfs-test-tool.pod:125
858 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
859 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
860 #: ../tools/virt-win-reg.pl:790
862 "You should have received a copy of the GNU General Public License along with "
863 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
864 "Ave, Cambridge, MA 02139, USA."
868 #: ../cat/virt-filesystems.pod:5
870 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
871 "virtual machine or disk image"
875 #: ../cat/virt-filesystems.pod:9
878 #| " virt-list-partitions [--options] domname\n"
881 " virt-filesystems [--options] -d domname\n"
884 " virt-list-partitions [--параметри] назва_домену\n"
888 #: ../cat/virt-filesystems.pod:11
891 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
894 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
897 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
901 #: ../cat/virt-filesystems.pod:15
903 "This tool allows you to discover filesystems, partitions, logical volumes, "
904 "and their sizes in a disk image or virtual machine. It is a replacement for "
905 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
909 #: ../cat/virt-filesystems.pod:20
911 "One use for this tool is from shell scripts to iterate over all filesystems "
916 #: ../cat/virt-filesystems.pod:23
919 " for fs in $(virt-filesystems -a disk.img); do\n"
926 #: ../cat/virt-filesystems.pod:27
928 "Another use is to list partitions before using another tool to modify those "
929 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
930 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
934 #: ../cat/virt-filesystems.pod:32
936 "Various command line options control what this program displays. You need "
937 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
938 "guest respectively. If you just specify that then the program shows "
939 "filesystems found, one per line, like this:"
943 #: ../cat/virt-filesystems.pod:37
946 " $ virt-filesystems -a disk.img\n"
948 " /dev/vg_guest/lv_root\n"
953 #: ../cat/virt-filesystems.pod:41
955 "If you add I<-l> or I<--long> then the output includes extra information:"
959 #: ../cat/virt-filesystems.pod:44
962 " $ virt-filesystems -a disk.img -l\n"
963 " Name Type VFS Label Size\n"
964 " /dev/sda1 filesystem ext4 boot 524288000\n"
965 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
970 #: ../cat/virt-filesystems.pod:49
972 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
977 #: ../cat/virt-filesystems.pod:52
980 " $ virt-filesystems -a disk.img --extra\n"
982 " /dev/vg_guest/lv_root\n"
983 " /dev/vg_guest/lv_swap\n"
984 " /dev/vg_guest/lv_data\n"
989 #: ../cat/virt-filesystems.pod:58
991 "If you add I<--partitions> then partitions are shown instead of filesystems:"
995 #: ../cat/virt-filesystems.pod:60
998 " $ virt-filesystems -a disk.img --partitions\n"
1005 #: ../cat/virt-filesystems.pod:64
1007 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1008 "volumes>, I<--block-devices> to list those items."
1012 #: ../cat/virt-filesystems.pod:67
1014 "You can use these options in combination as well (if you want a combination "
1015 "including filesystems, you have to add I<--filesystems>). Notice that some "
1016 "items fall into several categories (eg. C</dev/sda1> might be both a "
1017 "partition and a filesystem). These items are listed several times. To get "
1018 "a list which includes absolutely everything that virt-filesystems knows "
1019 "about, use the I<--all> option."
1023 #: ../cat/virt-filesystems.pod:74
1025 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
1026 "uuid> option to display device and filesystem UUIDs in the long output."
1030 #: ../cat/virt-filesystems.pod:78
1032 "I<--all --long --uuid> is a useful combination to display all possible "
1033 "information about everything."
1037 #: ../cat/virt-filesystems.pod:81
1040 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1041 " Name Type VFS Label Size Parent UUID\n"
1042 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1043 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1044 " /dev/sda1 partition - - 100M /dev/sda -\n"
1045 " /dev/sda2 partition - - 20G /dev/sda -\n"
1046 " /dev/sda device - - 20G - -\n"
1051 #: ../cat/virt-filesystems.pod:89
1053 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1057 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1059 #| msgid "B<--help>"
1064 #: ../cat/virt-filesystems.pod:112
1066 "Display everything. This is currently the same as specifying these options: "
1067 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1068 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1069 "added to this list in future)."
1073 #: ../cat/virt-filesystems.pod:117
1075 #| msgid "See also L</is-lv>."
1076 msgid "See also I<--long>."
1077 msgstr "Див. також L</is-lv>."
1080 #: ../cat/virt-filesystems.pod:119
1082 #| msgid "B<--live>"
1083 msgid "B<--blkdevs>"
1087 #: ../cat/virt-filesystems.pod:121
1089 #| msgid "is-blockdev"
1090 msgid "B<--block-devices>"
1091 msgstr "is-blockdev"
1094 #: ../cat/virt-filesystems.pod:123
1096 #| msgid "is-blockdev"
1097 msgid "Display block devices."
1098 msgstr "is-blockdev"
1101 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1108 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1110 "Write out the results in CSV format (comma-separated values). This format "
1111 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1112 "ABOUT CSV FORMAT> below."
1116 #: ../cat/virt-filesystems.pod:150
1118 "When prompting for keys and passphrases, virt-filesystems normally turns "
1119 "echoing off so you cannot see what you are typing. If you are not worried "
1120 "about Tempest attacks and there is no one else in the room you can specify "
1121 "this flag to see what you are typing."
1125 #: ../cat/virt-filesystems.pod:155
1132 #: ../cat/virt-filesystems.pod:157
1134 "This causes filesystems that are not ordinary, mountable filesystems to be "
1135 "displayed. This category includes swapspace, and filesystems that are empty "
1136 "or contain unknown data."
1140 #: ../cat/virt-filesystems.pod:161
1141 msgid "This option implies I<--filesystems>."
1145 #: ../cat/virt-filesystems.pod:163
1147 #| msgid "list-filesystems"
1148 msgid "B<--filesystems>"
1149 msgstr "list-filesystems"
1152 #: ../cat/virt-filesystems.pod:165
1154 "Display mountable filesystems. If no display option was selected then this "
1155 "option is implied."
1159 #: ../cat/virt-filesystems.pod:168
1160 msgid "With I<--extra>, non-mountable filesystems are shown too."
1164 #: ../cat/virt-filesystems.pod:181
1167 #| " guestfish --format=raw -a disk.img\n"
1170 " virt-filesystems --format=raw -a disk.img\n"
1173 " guestfish --format=raw -a disk.img\n"
1177 #: ../cat/virt-filesystems.pod:185
1180 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1183 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1186 " guestfish --format=raw -a disk.img --format -a another.img\n"
1190 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1191 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1192 #: ../tools/virt-list-partitions.pl:109
1197 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1198 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1200 #| msgid "B<-h> | B<--human-readable>"
1201 msgid "B<--human-readable>"
1202 msgstr "B<-h> | B<--human-readable>"
1205 #: ../cat/virt-filesystems.pod:198
1206 msgid "In I<--long> mode, display sizes in human-readable format."
1210 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1211 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1216 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1217 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1224 #: ../cat/virt-filesystems.pod:209
1225 msgid "Display extra columns of data (\"long format\")."
1229 #: ../cat/virt-filesystems.pod:211
1230 msgid "A title row is added unless you also specify I<--no-title>."
1234 #: ../cat/virt-filesystems.pod:213
1236 "The extra columns displayed depend on what output you select, and the "
1237 "ordering of columns may change in future versions. Use the title row, I<--"
1238 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1243 #: ../cat/virt-filesystems.pod:218
1245 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1246 "default is to show raw numbers of I<bytes>."
1250 #: ../cat/virt-filesystems.pod:221
1251 msgid "Use I<--uuid> to display UUIDs too."
1255 #: ../cat/virt-filesystems.pod:223
1257 #| msgid "B<--live>"
1262 #: ../cat/virt-filesystems.pod:225
1264 #| msgid "B<--live>"
1265 msgid "B<--logvols>"
1269 #: ../cat/virt-filesystems.pod:227
1271 #| msgid "B<--live>"
1272 msgid "B<--logical-volumes>"
1276 #: ../cat/virt-filesystems.pod:229
1278 "Display LVM logical volumes. In this mode, these are displayed irrespective "
1279 "of whether the LVs contain filesystems."
1283 #: ../cat/virt-filesystems.pod:232
1285 #| msgid "B<--listen>"
1286 msgid "B<--no-title>"
1287 msgstr "B<--listen>"
1290 #: ../cat/virt-filesystems.pod:234
1291 msgid "In I<--long> mode, don't add a title row."
1295 #: ../cat/virt-filesystems.pod:236
1297 "Note that the order of the columns is not fixed, and may change in future "
1298 "versions of virt-filesystems, so using this option may give you unexpected "
1303 #: ../cat/virt-filesystems.pod:240
1305 #| msgid "B<--partition>"
1307 msgstr "B<--partition>"
1310 #: ../cat/virt-filesystems.pod:242
1312 #| msgid "B<--partition>"
1313 msgid "B<--partitions>"
1314 msgstr "B<--partition>"
1317 #: ../cat/virt-filesystems.pod:244
1319 "Display partitions. In this mode, these are displayed irrespective of "
1320 "whether the partitions contain filesystems."
1324 #: ../cat/virt-filesystems.pod:247
1331 #: ../cat/virt-filesystems.pod:249
1333 #| msgid "B<--verbose>"
1334 msgid "B<--physvols>"
1335 msgstr "B<--verbose>"
1338 #: ../cat/virt-filesystems.pod:251
1339 msgid "B<--physical-volumes>"
1343 #: ../cat/virt-filesystems.pod:253
1344 msgid "Display LVM physical volumes."
1348 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1350 #| msgid "B<--live>"
1355 #: ../cat/virt-filesystems.pod:257
1362 #: ../cat/virt-filesystems.pod:259
1363 msgid "In I<--long> mode, display UUIDs as well."
1367 #: ../cat/virt-filesystems.pod:273
1374 #: ../cat/virt-filesystems.pod:275
1376 #| msgid "B<--verbose>"
1377 msgid "B<--volgroups>"
1378 msgstr "B<--verbose>"
1381 #: ../cat/virt-filesystems.pod:277
1383 #| msgid "B<--verbose>"
1384 msgid "B<--volume-groups>"
1385 msgstr "B<--verbose>"
1388 #: ../cat/virt-filesystems.pod:279
1389 msgid "Display LVM volume groups."
1393 #: ../cat/virt-filesystems.pod:287
1398 #: ../cat/virt-filesystems.pod:289
1400 "Note that columns in the output are subject to reordering and change in "
1401 "future versions of this tool."
1405 #: ../cat/virt-filesystems.pod:294
1410 #: ../cat/virt-filesystems.pod:296
1411 msgid "The filesystem, partition, block device or LVM name."
1415 #: ../cat/virt-filesystems.pod:298
1417 "For device and partition names these are displayed as canonical libguestfs "
1418 "names, so that for example C</dev/sda2> is the second partition on the first "
1423 #: ../cat/virt-filesystems.pod:302
1425 "If the I<--long> option is B<not> specified, then only the name column is "
1426 "shown in the output."
1430 #: ../cat/virt-filesystems.pod:305
1432 #| msgid "B<-N type>"
1437 #: ../cat/virt-filesystems.pod:307
1438 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1442 #: ../cat/virt-filesystems.pod:309
1447 #: ../cat/virt-filesystems.pod:311
1449 "If there is a filesystem, then this column displays the filesystem type if "
1450 "one could be detected, eg. C<ext4>."
1454 #: ../cat/virt-filesystems.pod:314
1459 #: ../cat/virt-filesystems.pod:316
1461 "If the object has a label (used for identifying and mounting filesystems) "
1462 "then this column contains the label."
1466 #: ../cat/virt-filesystems.pod:319
1468 #| msgid "B<part_size>"
1470 msgstr "B<part_size>"
1473 #: ../cat/virt-filesystems.pod:321
1475 "The size of the object in bytes. If the I<--human> option is used then the "
1476 "size is displayed in a human-readable form."
1480 #: ../cat/virt-filesystems.pod:324
1485 #: ../cat/virt-filesystems.pod:326
1487 "The parent column records the parent relationship between objects. For "
1488 "example, if the object is a partition, then this column contains the name of "
1489 "the containing device. If the object is a logical volume, then this column "
1490 "is the name of the volume group."
1494 #: ../cat/virt-filesystems.pod:331
1499 #: ../cat/virt-filesystems.pod:333
1501 "If the object has a UUID (used for identifying and mounting filesystems and "
1502 "block devices) then this column contains the UUID as a string."
1506 #: ../cat/virt-filesystems.pod:337
1507 msgid "The UUID is only displayed if the I<--uuid> option is given."
1511 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1512 #: ../df/virt-df.pod:191
1513 msgid "NOTE ABOUT CSV FORMAT"
1517 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1518 #: ../df/virt-df.pod:193
1520 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
1521 "should be easy to parse, but it is definitely not easy to parse."
1525 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1526 #: ../df/virt-df.pod:196
1528 "Myth: Just split fields at commas. Reality: This does I<not> work "
1529 "reliably. This example has two columns:"
1533 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1534 #: ../df/virt-df.pod:199
1537 " \"foo,bar\",baz\n"
1542 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1543 #: ../df/virt-df.pod:201
1545 "Myth: Read the file one line at a time. Reality: This does I<not> work "
1546 "reliably. This example has one row:"
1550 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1551 #: ../df/virt-df.pod:204
1560 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1561 #: ../df/virt-df.pod:207
1563 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1564 "packaged in major Linux distributions)."
1568 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1569 #: ../df/virt-df.pod:210
1571 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1572 "or Python's built-in csv library)."
1576 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1577 #: ../df/virt-df.pod:213
1578 msgid "Most spreadsheets and databases can import CSV directly."
1582 #: ../cat/virt-filesystems.pod:379
1585 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1586 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1587 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1589 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1590 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1593 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1594 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1595 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1598 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1599 #: ../tools/virt-win-reg.pl:778
1600 msgid "Copyright (C) 2010 Red Hat Inc."
1604 #: ../cat/virt-ls.pod:5
1605 msgid "virt-ls - List files in a virtual machine"
1609 #: ../cat/virt-ls.pod:9
1612 " virt-ls [--options] -d domname directory [directory ...]\n"
1617 #: ../cat/virt-ls.pod:11
1620 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1623 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1626 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1630 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1635 #: ../cat/virt-ls.pod:15
1638 #| " virt-list-partitions [--options] domname\n"
1641 " virt-ls [--options] domname directory\n"
1644 " virt-list-partitions [--параметри] назва_домену\n"
1648 #: ../cat/virt-ls.pod:17
1651 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1654 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1657 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1661 #: ../cat/virt-ls.pod:21
1663 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1664 "more from a virtual machine or disk image."
1668 #: ../cat/virt-ls.pod:24
1670 "Multiple directory names can be given, in which case the output from each is "
1675 #: ../cat/virt-ls.pod:27
1677 "To list directories from a libvirt guest use the I<-d> option to specify the "
1678 "name of the guest. For a disk image, use the I<-a> option."
1682 #: ../cat/virt-ls.pod:31
1684 "C<virt-ls> can do many simple file listings. For more complicated cases you "
1685 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1690 #: ../cat/virt-ls.pod:37
1691 msgid "Get a list of all files and directories in a virtual machine:"
1695 #: ../cat/virt-ls.pod:39
1698 #| " guestfish --ro -d myguest -i\n"
1701 " virt-ls -R -d guest /\n"
1704 " guestfish --ro -d myguest -i\n"
1708 #: ../cat/virt-ls.pod:41
1709 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1713 #: ../cat/virt-ls.pod:43
1716 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1721 #: ../cat/virt-ls.pod:45
1722 msgid "List all public-writable directories in a Linux virtual machine:"
1726 #: ../cat/virt-ls.pod:47
1729 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1734 #: ../cat/virt-ls.pod:49
1735 msgid "List all Unix domain sockets in a Linux virtual machine:"
1739 #: ../cat/virt-ls.pod:51
1742 " virt-ls -lR -d guest / | grep '^s'\n"
1747 #: ../cat/virt-ls.pod:53
1748 msgid "List all regular files with filenames ending in '.png':"
1752 #: ../cat/virt-ls.pod:55
1755 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1760 #: ../cat/virt-ls.pod:57
1761 msgid "To display files larger than 10MB in home directories:"
1765 #: ../cat/virt-ls.pod:59
1768 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1773 #: ../cat/virt-ls.pod:61
1774 msgid "Find everything modified in the last 7 days:"
1778 #: ../cat/virt-ls.pod:63
1781 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1786 #: ../cat/virt-ls.pod:65
1787 msgid "Find regular files modified in the last 24 hours:"
1791 #: ../cat/virt-ls.pod:67
1794 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1799 #: ../cat/virt-ls.pod:69
1800 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1804 #: ../cat/virt-ls.pod:71
1806 "Find the differences between files in a guest and an earlier snapshot of the "
1811 #: ../cat/virt-ls.pod:74
1814 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1815 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1816 " diff -u old new | less\n"
1821 #: ../cat/virt-ls.pod:78
1823 "The commands above won't find files where the content has changed but the "
1824 "metadata (eg. file size and modification date) is the same. To do that, you "
1825 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
1826 "checksum> can be quite slow since it has to read and compute a checksum of "
1827 "every regular file in the virtual machine."
1831 #: ../cat/virt-ls.pod:84
1832 msgid "OUTPUT MODES"
1836 #: ../cat/virt-ls.pod:86
1838 "C<virt-ls> has four output modes, controlled by different combinations of "
1839 "the I<-l> and I<-R> options."
1843 #: ../cat/virt-ls.pod:89
1844 msgid "SIMPLE LISTING"
1848 #: ../cat/virt-ls.pod:91
1849 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1853 #: ../cat/virt-ls.pod:93
1856 " $ virt-ls -d guest /\n"
1864 #: ../cat/virt-ls.pod:98
1867 msgid "LONG LISTING"
1871 #: ../cat/virt-ls.pod:100
1873 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1874 "(more specifically, like the C<guestfs_ll> function)."
1878 #: ../cat/virt-ls.pod:103
1881 " $ virt-ls -l -d guest /\n"
1883 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
1884 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
1890 #: ../cat/virt-ls.pod:109
1892 "Note that while this is useful for displaying a directory, do not try "
1893 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
1898 #: ../cat/virt-ls.pod:113
1899 msgid "RECURSIVE LISTING"
1903 #: ../cat/virt-ls.pod:115
1905 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1906 "and directories recursively:"
1910 #: ../cat/virt-ls.pod:118
1913 " $ virt-ls -R -d guest /tmp\n"
1921 #: ../cat/virt-ls.pod:123
1923 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1924 "converts C<\\0> characters to C<\\n>."
1928 #: ../cat/virt-ls.pod:126
1929 msgid "RECURSIVE LONG LISTING"
1933 #: ../cat/virt-ls.pod:128
1935 "Using I<-lR> options together changes the output to display directories "
1936 "recursively, with file stats, and optionally other features such as "
1937 "checksums and extended attributes."
1941 #: ../cat/virt-ls.pod:132
1943 "Most of the interesting features of C<virt-ls> are only available when using "
1948 #: ../cat/virt-ls.pod:135
1950 "The fields are normally space-separated. Filenames are B<not> quoted, so "
1951 "you cannot use the output in another program (because filenames can contain "
1952 "spaces and other unsafe characters). If the guest was untrusted and someone "
1953 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1954 "on you by creating filenames with embedded newline characters. To B<safely> "
1955 "parse the output in another program, use the I<--csv> (Comma-Separated "
1960 #: ../cat/virt-ls.pod:143
1962 "Note that this output format is completely unrelated to the C<ls -lR> "
1967 #: ../cat/virt-ls.pod:146
1970 " $ virt-ls -lR -d guest /bin\n"
1971 " d 0555 4096 /bin\n"
1972 " - 0755 123 /bin/alsaunmute\n"
1973 " - 0755 28328 /bin/arch\n"
1974 " l 0777 4 /bin/awk -> gawk\n"
1975 " - 0755 27216 /bin/basename\n"
1976 " - 0755 943360 /bin/bash\n"
1982 #: ../cat/virt-ls.pod:155
1983 msgid "These basic fields are always shown:"
1987 #: ../cat/virt-ls.pod:159
1994 #: ../cat/virt-ls.pod:161
1996 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1997 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1998 "link), C<s> (socket) or C<u> (unknown)."
2002 #: ../cat/virt-ls.pod:171
2009 #: ../cat/virt-ls.pod:173
2010 msgid "The Unix permissions, displayed as a 4 digit octal number."
2014 #: ../cat/virt-ls.pod:175
2021 #: ../cat/virt-ls.pod:177
2023 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2024 "readable> option is given, in which case this is shown as a human-readable "
2029 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4245
2034 #: ../cat/virt-ls.pod:183
2035 msgid "The full path of the file or directory."
2039 #: ../cat/virt-ls.pod:185
2046 #: ../cat/virt-ls.pod:187
2047 msgid "For symbolic links only, the link target."
2051 #: ../cat/virt-ls.pod:191
2053 "In I<-lR> mode, additional command line options enable the display of more "
2058 #: ../cat/virt-ls.pod:194
2060 "With the I<--uids> flag, these additional fields are displayed before the "
2065 #: ../cat/virt-ls.pod:199
2072 #: ../cat/virt-ls.pod:201
2079 #: ../cat/virt-ls.pod:203
2081 "The UID and GID of the owner of the file (displayed numerically). Note "
2082 "these only make sense in the context of a Unix-like guest."
2086 #: ../cat/virt-ls.pod:208
2087 msgid "With the I<--times> flag, these additional fields are displayed:"
2091 #: ../cat/virt-ls.pod:212
2098 #: ../cat/virt-ls.pod:214
2099 msgid "The time of last access."
2103 #: ../cat/virt-ls.pod:216
2110 #: ../cat/virt-ls.pod:218
2111 msgid "The time of last modification."
2115 #: ../cat/virt-ls.pod:220
2122 #: ../cat/virt-ls.pod:222
2123 msgid "The time of last status change."
2127 #: ../cat/virt-ls.pod:226
2129 "The time fields are displayed as string dates and times, unless one of the "
2130 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2134 #: ../cat/virt-ls.pod:229
2135 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2139 #: ../cat/virt-ls.pod:233
2141 #| msgid "zero-device"
2143 msgstr "zero-device"
2146 #: ../cat/virt-ls.pod:235
2148 "The device containing the file (displayed as major:minor). This may not "
2149 "match devices as known to the guest."
2153 #: ../cat/virt-ls.pod:238
2158 #: ../cat/virt-ls.pod:240
2159 msgid "The inode number."
2163 #: ../cat/virt-ls.pod:242
2170 #: ../cat/virt-ls.pod:244
2171 msgid "The number of hard links."
2175 #: ../cat/virt-ls.pod:246
2180 #: ../cat/virt-ls.pod:248
2182 "For block and char special files, the device (displayed as major:minor)."
2186 #: ../cat/virt-ls.pod:251
2188 #| msgid "C<blocksize>"
2190 msgstr "C<blocksize>"
2193 #: ../cat/virt-ls.pod:253
2194 msgid "The number of 512 byte blocks allocated to the file."
2198 #: ../cat/virt-ls.pod:257
2200 "With the I<--checksum> flag, the checksum of the file contents is shown "
2201 "(only for regular files). Computing file checksums can take a considerable "
2206 #: ../cat/virt-ls.pod:280
2209 msgid "B<--checksum>"
2213 #: ../cat/virt-ls.pod:282
2214 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2218 #: ../cat/virt-ls.pod:284
2220 "Display checksum over file contents for regular files. With no argument, "
2221 "this defaults to using I<md5>. Using an argument, you can select the "
2222 "checksum type to use."
2226 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2227 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2228 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2230 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2235 #: ../cat/virt-ls.pod:316
2237 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2238 "so you cannot see what you are typing. If you are not worried about Tempest "
2239 "attacks and there is no one else in the room you can specify this flag to "
2240 "see what you are typing."
2244 #: ../cat/virt-ls.pod:321
2246 #| msgid "B<--no-dest-paths>"
2247 msgid "B<--extra-stats>"
2248 msgstr "B<--no-dest-paths>"
2251 #: ../cat/virt-ls.pod:323
2252 msgid "Display extra stats."
2256 #: ../cat/virt-ls.pod:339
2259 #| " guestfish --format=raw -a disk.img\n"
2262 " virt-ls --format=raw -a disk.img /dir\n"
2265 " guestfish --format=raw -a disk.img\n"
2269 #: ../cat/virt-ls.pod:343
2272 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2275 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2278 " guestfish --format=raw -a disk.img --format -a another.img\n"
2282 #: ../cat/virt-ls.pod:356
2283 msgid "Display file sizes in human-readable format."
2287 #: ../cat/virt-ls.pod:370
2292 #: ../cat/virt-ls.pod:372
2294 #| msgid "B<--live>"
2295 msgid "B<--recursive>"
2299 #: ../cat/virt-ls.pod:374
2301 "Select the mode. With neither of these options, C<virt-ls> produces a "
2302 "simple, flat list of the files in the named directory. See L</SIMPLE "
2307 #: ../cat/virt-ls.pod:378
2309 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
2314 #: ../cat/virt-ls.pod:381
2316 "C<virt-ls -R> produces a recursive list of files starting at the named "
2317 "directory. See L</RECURSIVE LISTING>."
2321 #: ../cat/virt-ls.pod:384
2323 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2324 "parsed. See L</RECURSIVE LONG LISTING>."
2328 #: ../cat/virt-ls.pod:387
2330 #| msgid "B<--live>"
2335 #: ../cat/virt-ls.pod:389
2336 msgid "Display time fields."
2340 #: ../cat/virt-ls.pod:394
2342 #| msgid "B<--echo-keys>"
2343 msgid "B<--time-days>"
2344 msgstr "B<--echo-keys>"
2347 #: ../cat/virt-ls.pod:396
2348 msgid "Display time fields as days before now (negative if in the future)."
2352 #: ../cat/virt-ls.pod:398
2354 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2355 "of the file is between 0 and 86399 seconds."
2359 #: ../cat/virt-ls.pod:404
2361 #| msgid "B<--live>"
2362 msgid "B<--time-relative>"
2366 #: ../cat/virt-ls.pod:406
2367 msgid "Display time fields as seconds before now (negative if in the future)."
2371 #: ../cat/virt-ls.pod:411
2373 #| msgid "I<--timeout N>"
2375 msgstr "I<--timeout N>"
2378 #: ../cat/virt-ls.pod:413
2379 msgid "Display time fields as seconds since the Unix epoch."
2383 #: ../cat/virt-ls.pod:418
2390 #: ../cat/virt-ls.pod:420
2391 msgid "Display UID and GID fields."
2395 #: ../cat/virt-ls.pod:445
2396 msgid "Previous versions of virt-ls allowed you to write either:"
2400 #: ../cat/virt-ls.pod:447
2403 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2406 " virt-ls disk.img [disk.img ...] /dir\n"
2409 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2413 #: ../cat/virt-ls.pod:451
2416 #| " inspect-get-hostname root\n"
2419 " virt-ls guestname /dir\n"
2422 " inspect-get-hostname корінь\n"
2426 #: ../cat/virt-ls.pod:497
2429 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2430 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2431 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2433 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2434 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2435 "L<http://libguestfs.org/>."
2437 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2438 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2439 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2442 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2443 #: ../rescue/virt-rescue.pod:302
2445 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2446 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2447 msgstr "© Red Hat Inc., 2009–2010"
2450 #: ../df/virt-df.pod:5
2451 msgid "virt-df - Display free space on virtual filesystems"
2455 #: ../df/virt-df.pod:9
2458 #| " virt-list-partitions [--options] domname\n"
2461 " virt-df [--options]\n"
2464 " virt-list-partitions [--параметри] назва_домену\n"
2468 #: ../df/virt-df.pod:11
2471 #| " virt-list-partitions [--options] domname\n"
2474 " virt-df [--options] -d domname\n"
2477 " virt-list-partitions [--параметри] назва_домену\n"
2481 #: ../df/virt-df.pod:13
2484 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2487 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2490 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2494 #: ../df/virt-df.pod:17
2497 #| " virt-list-partitions [--options] domname\n"
2500 " virt-df [--options] domname\n"
2503 " virt-list-partitions [--параметри] назва_домену\n"
2507 #: ../df/virt-df.pod:19
2510 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2513 " virt-df [--options] disk.img [disk.img ...]\n"
2516 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2520 #: ../df/virt-df.pod:23
2522 "C<virt-df> is a command line tool to display free space on virtual machine "
2523 "filesystems. Unlike other tools, it doesn't just display the size of disk "
2524 "allocated to a virtual machine, but can look inside disk images to see how "
2525 "much space is really being used."
2529 #: ../df/virt-df.pod:28
2531 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2532 "to get a list of all active and inactive guests, and performs a C<df>-type "
2533 "operation on each one in turn, printing out the results."
2537 #: ../df/virt-df.pod:32
2539 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2540 "type operation on either the single named libvirt domain, or on the disk "
2541 "image(s) listed on the command line (which must all belong to a single VM). "
2542 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2543 "guest>. If you want to run on multiple guests, then you have to invoke "
2544 "C<virt-df> multiple times."
2548 #: ../df/virt-df.pod:39
2550 "Use the I<--csv> option to get a format which can be easily parsed by other "
2551 "programs. Other options are similar to the standard L<df(1)> command."
2555 #: ../df/virt-df.pod:45
2557 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
2558 "output human-readable:"
2562 #: ../df/virt-df.pod:48
2565 " # virt-df -d F14x64 -h\n"
2566 " Filesystem Size Used Available Use%\n"
2567 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
2568 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
2573 #: ../df/virt-df.pod:53
2574 msgid "Show disk usage for a disk image file called C<test.img>:"
2578 #: ../df/virt-df.pod:55
2581 " $ virt-df -a test1.img\n"
2582 " Filesystem 1K-blocks Used Available Use%\n"
2583 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
2588 #: ../df/virt-df.pod:112
2591 #| " guestfish --format=raw -a disk.img\n"
2594 " virt-df --format=raw -a disk.img\n"
2597 " guestfish --format=raw -a disk.img\n"
2601 #: ../df/virt-df.pod:116
2604 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2607 " virt-df --format=raw -a disk.img --format -a another.img\n"
2610 " guestfish --format=raw -a disk.img --format -a another.img\n"
2614 #: ../df/virt-df.pod:129
2615 msgid "Print sizes in human-readable format."
2619 #: ../df/virt-df.pod:131
2620 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2624 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2629 #: ../df/virt-df.pod:135
2631 #| msgid "B<--live>"
2636 #: ../df/virt-df.pod:137
2637 msgid "Print inodes instead of blocks."
2641 #: ../df/virt-df.pod:139
2643 #| msgid "B<--merge>"
2644 msgid "B<--one-per-guest>"
2648 #: ../df/virt-df.pod:141
2650 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
2651 "disks from several guests to a single libguestfs appliance."
2655 #: ../df/virt-df.pod:144
2656 msgid "You might use this option in the following circumstances:"
2660 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2661 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2662 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2663 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2664 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2665 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2666 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2667 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2668 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2669 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2670 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2671 #: ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143
2672 #: ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151
2673 #: ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163
2674 #: ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177
2675 #: ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185
2676 #: ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279
2677 #: ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289
2678 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
2679 #: ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596
2680 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610
2681 #: ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011
2682 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026
2683 #: ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445
2684 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
2685 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
2686 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
2687 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
2688 #: ../resize/virt-resize.pod:301 ../src/guestfs-actions.pod:22
2689 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:588
2690 #: ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:603
2691 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1774
2692 #: ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782
2693 #: ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1794
2694 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802
2695 #: ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1816
2696 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1958
2697 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1967
2698 #: ../src/guestfs-actions.pod:1972 ../src/guestfs-actions.pod:2033
2699 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2042
2700 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:2462
2701 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:3006
2702 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3020
2703 #: ../src/guestfs-actions.pod:3027 ../src/guestfs-actions.pod:3034
2704 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2705 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2706 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1094
2707 #: ../src/guestfs.pod:1098 ../src/guestfs.pod:1102 ../src/guestfs.pod:1107
2708 #: ../src/guestfs.pod:1115 ../src/guestfs.pod:1134 ../src/guestfs.pod:1142
2709 #: ../src/guestfs.pod:1164 ../src/guestfs.pod:1168 ../src/guestfs.pod:1172
2710 #: ../src/guestfs.pod:1176 ../src/guestfs.pod:1180 ../src/guestfs.pod:1184
2711 #: ../src/guestfs.pod:1674 ../src/guestfs.pod:1679 ../src/guestfs.pod:1683
2712 #: ../src/guestfs.pod:1785 ../src/guestfs.pod:1790 ../src/guestfs.pod:1794
2713 #: ../src/guestfs.pod:1804 ../src/guestfs.pod:2093 ../src/guestfs.pod:2098
2714 #: ../src/guestfs.pod:2104 ../src/guestfs.pod:2112 ../src/guestfs.pod:2559
2715 #: ../src/guestfs.pod:2565 ../src/guestfs.pod:2570 ../src/guestfs.pod:2576
2716 #: ../src/guestfs.pod:2959 ../src/guestfs.pod:2964 ../src/guestfs.pod:2968
2717 #: ../src/guestfs.pod:2972 ../src/guestfs.pod:2976 ../src/guestfs.pod:2990
2718 #: ../src/guestfs.pod:2995 ../src/guestfs.pod:3221 ../src/guestfs.pod:3225
2719 #: ../src/guestfs.pod:3229 ../src/guestfs.pod:3233
2720 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2721 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2722 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2727 #: ../df/virt-df.pod:150
2729 "If you think an untrusted guest might actively try to exploit the libguestfs "
2730 "appliance kernel, then this prevents one guest from interfering with the "
2731 "stats printed for another guest."
2735 #: ../df/virt-df.pod:156
2737 "If the kernel has a bug which stops it from accessing a filesystem in one "
2738 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2739 "and report stats for further guests."
2743 #: ../df/virt-df.pod:165
2745 "Print UUIDs instead of names. This is useful for following a guest even "
2746 "when the guest is migrated or renamed, or when two guests happen to have the "
2751 #: ../df/virt-df.pod:169
2753 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
2754 "images, we still print the disk image name even when this option is "
2759 #: ../df/virt-df.pod:229
2761 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2766 #: ../edit/virt-edit.pod:5
2767 msgid "virt-edit - Edit a file in a virtual machine"
2771 #: ../edit/virt-edit.pod:9
2774 #| " virt-list-partitions [--options] domname\n"
2777 " virt-edit [--options] -d domname file [file ...]\n"
2780 " virt-list-partitions [--параметри] назва_домену\n"
2784 #: ../edit/virt-edit.pod:11
2787 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2790 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2793 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2797 #: ../edit/virt-edit.pod:13
2800 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2805 #: ../edit/virt-edit.pod:17
2808 " virt-edit domname file\n"
2813 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2816 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2819 " virt-edit disk.img [disk.img ...] file\n"
2822 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2826 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2827 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2828 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2829 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2831 msgstr "ПОПЕРЕДЖЕННЯ"
2834 #: ../edit/virt-edit.pod:23
2836 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
2837 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
2838 "doing this, but doesn't catch all cases."
2842 #: ../edit/virt-edit.pod:29
2844 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2845 "exists in the named virtual machine (or disk image)."
2849 #: ../edit/virt-edit.pod:32
2851 "Multiple filenames can be given, in which case they are each edited in "
2852 "turn. Each filename must be a full path, starting at the root directory "
2853 "(starting with '/')."
2857 #: ../edit/virt-edit.pod:36
2858 msgid "If you want to just view a file, use L<virt-cat(1)>."
2862 #: ../edit/virt-edit.pod:38
2864 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2865 "USING GUESTFISH> below)."
2869 #: ../edit/virt-edit.pod:41
2871 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
2872 "that and much more."
2876 #: ../edit/virt-edit.pod:46
2877 msgid "Edit the named files interactively:"
2881 #: ../edit/virt-edit.pod:48
2884 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2889 #: ../edit/virt-edit.pod:50
2892 " virt-edit -d mydomain /etc/passwd\n"
2897 #: ../edit/virt-edit.pod:52
2898 msgid "For Windows guests, some Windows paths are understood:"
2902 #: ../edit/virt-edit.pod:54
2905 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2910 #: ../edit/virt-edit.pod:56
2912 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2913 "INTERACTIVE EDITING> below). To change the init default level to 5:"
2917 #: ../edit/virt-edit.pod:60
2920 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2925 #: ../edit/virt-edit.pod:81
2926 msgid "B<-b> extension"
2930 #: ../edit/virt-edit.pod:83
2931 msgid "B<--backup> extension"
2935 #: ../edit/virt-edit.pod:85
2937 "Create a backup of the original file I<in the guest disk image>. The backup "
2938 "has the original filename with C<extension> added."
2942 #: ../edit/virt-edit.pod:88
2944 "Usually the first character of C<extension> would be a dot C<.> so you would "
2949 #: ../edit/virt-edit.pod:91
2952 " virt-edit -b .orig [etc]\n"
2957 #: ../edit/virt-edit.pod:93
2958 msgid "By default, no backup file is made."
2962 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2963 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2964 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2965 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2967 msgstr "B<-c адреса>"
2970 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2971 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2972 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2973 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2974 msgid "B<--connect URI>"
2975 msgstr "B<--connect адреса>"
2978 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2979 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2980 #: ../tools/virt-win-reg.pl:135
2982 "If you specify guest block devices directly, then libvirt is not used at all."
2986 #: ../edit/virt-edit.pod:114
2988 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2989 "off so you cannot see what you are typing. If you are not worried about "
2990 "Tempest attacks and there is no one else in the room you can specify this "
2991 "flag to see what you are typing."
2995 #: ../edit/virt-edit.pod:119
3000 #: ../edit/virt-edit.pod:121
3002 #| msgid "B<--help>"
3003 msgid "B<--expr> EXPR"
3007 #: ../edit/virt-edit.pod:123
3009 "Instead of launching the external editor, non-interactively apply the Perl "
3010 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
3015 #: ../edit/virt-edit.pod:127
3017 "Be careful to properly quote the expression to prevent it from being altered "
3022 #: ../edit/virt-edit.pod:130
3023 msgid "Note that this option is only available when Perl 5 is installed."
3027 #: ../edit/virt-edit.pod:132
3029 #| msgid "B<--format=raw|qcow2|..>"
3030 msgid "B<--format> raw|qcow2|..."
3031 msgstr "B<--format=raw|qcow2|..>"
3034 #: ../edit/virt-edit.pod:143
3037 #| " guestfish --format=raw -a disk.img\n"
3040 " virt-edit --format=raw -a disk.img file\n"
3043 " guestfish --format=raw -a disk.img\n"
3047 #: ../edit/virt-edit.pod:147
3050 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3053 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3056 " guestfish --format=raw -a disk.img --format -a another.img\n"
3060 #: ../edit/virt-edit.pod:181
3061 msgid "Previous versions of virt-edit allowed you to write either:"
3065 #: ../edit/virt-edit.pod:187
3068 #| " edit filename\n"
3071 " virt-edit guestname file\n"
3074 " edit назва_файла\n"
3078 #: ../edit/virt-edit.pod:195
3079 msgid "NON-INTERACTIVE EDITING"
3083 #: ../edit/virt-edit.pod:197
3085 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3086 "administrator can interactively edit the file."
3090 #: ../edit/virt-edit.pod:200
3092 "There are two ways also to use C<virt-edit> from scripts in order to make "
3093 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
3094 "like this, it's less error-prone to write scripts directly using the "
3095 "libguestfs API and Augeas for configuration file editing.)"
3099 #: ../edit/virt-edit.pod:206
3101 "The first method is to temporarily set C<$EDITOR> to any script or program "
3102 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
3103 "update C<tmpfile> in place however it likes."
3107 #: ../edit/virt-edit.pod:210
3109 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3110 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
3111 "instances of C<foo> with C<bar> in a file:"
3115 #: ../edit/virt-edit.pod:214
3118 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3123 #: ../edit/virt-edit.pod:216
3125 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
3126 "For example to delete root's password you could do:"
3130 #: ../edit/virt-edit.pod:219
3133 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3138 #: ../edit/virt-edit.pod:221
3140 "What really happens is that the snippet is evaluated as a Perl expression "
3141 "for each line of the file. The line, including the final C<\\n>, is passed "
3142 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3146 #: ../edit/virt-edit.pod:226
3148 "To delete a line, set C<$_> to the empty string. For example, to delete the "
3149 "C<apache> user account from the password file you can do:"
3153 #: ../edit/virt-edit.pod:229
3156 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3161 #: ../edit/virt-edit.pod:231
3163 "To insert a line, prepend or append it to C<$_>. However appending lines to "
3164 "the end of the file is rather difficult this way since there is no concept "
3165 "of \"last line of the file\" - your expression just doesn't get called "
3166 "again. You might want to use the first method (setting C<$EDITOR>) if you "
3171 #: ../edit/virt-edit.pod:237
3173 "The variable C<$lineno> contains the current line number. As is "
3174 "traditional, the first line in the file is number C<1>."
3178 #: ../edit/virt-edit.pod:240
3180 "The return value from the expression is ignored, but the expression may call "
3181 "C<die> in order to abort the whole program, leaving the original file "
3186 #: ../edit/virt-edit.pod:244
3188 "Remember when matching the end of a line that C<$_> may contain the final C<"
3189 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3190 "newline then neither of these. Thus to match or substitute some text at the "
3191 "end of a line, use this regular expression:"
3195 #: ../edit/virt-edit.pod:249
3198 " /some text(\\r?\\n)?$/\n"
3203 #: ../edit/virt-edit.pod:251
3205 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3206 "$_> itself (since that would remove all newlines from the file):"
3210 #: ../edit/virt-edit.pod:255
3213 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3218 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3219 msgid "WINDOWS PATHS"
3223 #: ../edit/virt-edit.pod:259
3225 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3226 "paths (eg. C<E:\\foo\\bar.txt>)."
3230 #: ../edit/virt-edit.pod:262
3231 msgid "If and only if the guest is running Windows then:"
3235 #: ../edit/virt-edit.pod:268
3237 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3238 "to the correct filesystem."
3242 #: ../edit/virt-edit.pod:273
3244 "Any backslash (C<\\>) characters in the path are replaced with forward "
3245 "slashes so that libguestfs can process it."
3249 #: ../edit/virt-edit.pod:278
3251 "The path is resolved case insensitively to locate the file that should be "
3256 #: ../edit/virt-edit.pod:283
3257 msgid "There are some known shortcomings:"
3261 #: ../edit/virt-edit.pod:289
3262 msgid "Some NTFS symbolic links may not be followed correctly."
3266 #: ../edit/virt-edit.pod:293
3267 msgid "NTFS junction points that cross filesystems are not followed."
3271 #: ../edit/virt-edit.pod:299
3273 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3274 "C<virt-edit> doesn't work."
3278 #: ../edit/virt-edit.pod:302
3279 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3283 #: ../edit/virt-edit.pod:304
3286 #| " guestfish --ro -d myguest -i\n"
3289 " guestfish --rw -i -d domname edit /file\n"
3292 " guestfish --ro -d myguest -i\n"
3296 #: ../edit/virt-edit.pod:306
3298 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3303 #: ../edit/virt-edit.pod:309
3305 "The command above uses libguestfs's guest inspection feature and so does not "
3306 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3307 "disk images that don't contain guests. To edit a file on a disk image "
3312 #: ../edit/virt-edit.pod:314
3315 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3318 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3321 " guestfish --format=raw -a disk.img --format -a another.img\n"
3325 #: ../edit/virt-edit.pod:316
3327 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3328 "the disk image to edit, and C</file> is the full path to the file."
3332 #: ../edit/virt-edit.pod:320
3334 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
3335 "C<write> or C<upload> instead:"
3339 #: ../edit/virt-edit.pod:323
3342 #| " guestfish --ro -d myguest -i\n"
3345 " guestfish --rw -i -d domname touch /newfile\n"
3348 " guestfish --ro -d myguest -i\n"
3352 #: ../edit/virt-edit.pod:325
3355 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3360 #: ../edit/virt-edit.pod:327
3363 " guestfish --rw -i -d domname upload localfile /newfile\n"
3368 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3369 #: ../rescue/virt-rescue.pod:261 ../src/guestfs.pod:3106
3370 #: ../test-tool/libguestfs-test-tool.pod:95
3371 msgid "ENVIRONMENT VARIABLES"
3372 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3375 #: ../edit/virt-edit.pod:333
3382 #: ../edit/virt-edit.pod:335
3384 "If set, this string is used as the editor. It may contain arguments, eg. C<"
3389 #: ../edit/virt-edit.pod:338
3390 msgid "If not set, C<vi> is used."
3394 #: ../edit/virt-edit.pod:356
3397 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3398 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3399 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3401 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3402 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3403 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3405 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3406 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3407 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3410 #: ../erlang/examples/guestfs-erlang.pod:5
3411 msgid "guestfs-erlang - How to use libguestfs from Erlang"
3415 #: ../erlang/examples/guestfs-erlang.pod:9
3418 " {ok, G} = guestfs:create(),\n"
3419 " ok = guestfs:add_drive_opts(G, Disk,\n"
3420 " [{format, \"raw\"}, {readonly, true}]),\n"
3421 " ok = guestfs:launch(G),\n"
3422 " [Device] = guestfs:list_devices(G),\n"
3423 " ok = guestfs:close(G).\n"
3428 #: ../erlang/examples/guestfs-erlang.pod:18
3430 "This manual page documents how to call libguestfs from the Erlang "
3431 "programming language. This page just documents the differences from the C "
3432 "API and gives some examples. If you are not familiar with using libguestfs, "
3433 "you also need to read L<guestfs(3)>."
3437 #: ../erlang/examples/guestfs-erlang.pod:23
3438 msgid "OPENING AND CLOSING THE HANDLE"
3442 #: ../erlang/examples/guestfs-erlang.pod:25
3444 "The Erlang bindings are implemented using an external program called C<erl-"
3445 "guestfs>. This program must be on the current PATH, or else you should "
3446 "specify the full path to the program:"
3450 #: ../erlang/examples/guestfs-erlang.pod:29
3453 #| " g = guestfs_create ();\n"
3456 " {ok, G} = guestfs:create().\n"
3459 " g = guestfs_create ();\n"
3463 #: ../erlang/examples/guestfs-erlang.pod:31
3466 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
3471 #: ../erlang/examples/guestfs-erlang.pod:33
3472 msgid "C<G> is the libguestfs handle which you should pass to other functions."
3476 #: ../erlang/examples/guestfs-erlang.pod:36
3477 msgid "To close the handle:"
3481 #: ../erlang/examples/guestfs-erlang.pod:38
3484 #| " g = guestfs_create ();\n"
3487 " ok = guestfs:close(G).\n"
3490 " g = guestfs_create ();\n"
3494 #: ../erlang/examples/guestfs-erlang.pod:40
3496 #| msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
3497 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
3498 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
3501 #: ../erlang/examples/guestfs-erlang.pod:42
3503 "For functions that take optional arguments, the first arguments are the non-"
3504 "optional ones. The last argument is a list of tuples supplying the "
3505 "remaining optional arguments."
3509 #: ../erlang/examples/guestfs-erlang.pod:46
3512 #| " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3513 #| " va_list args);\n"
3516 " ok = guestfs:add_drive_opts(G, Disk,\n"
3517 " [{format, \"raw\"}, {readonly, true}]).\n"
3520 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3525 #: ../erlang/examples/guestfs-erlang.pod:49
3526 msgid "If the last argument would be an empty list, you can also omit it:"
3530 #: ../erlang/examples/guestfs-erlang.pod:51
3533 #| " guestfs_add_drive_opts (g, filename, -1);\n"
3536 " ok = guestfs:add_drive_opts(G, Disk).\n"
3539 " guestfs_add_drive_opts (g, filename, -1);\n"
3543 #: ../erlang/examples/guestfs-erlang.pod:53
3544 msgid "RETURN VALUES AND ERRORS"
3548 #: ../erlang/examples/guestfs-erlang.pod:55
3550 "On success, most functions return a C<Result> term (which could be a list, "
3551 "string, tuple etc.). If there is nothing for the function to return, then "
3552 "the atom C<ok> is returned."
3556 #: ../erlang/examples/guestfs-erlang.pod:59
3557 msgid "On error, you would see one of the following tuples:"
3561 #: ../erlang/examples/guestfs-erlang.pod:63
3562 msgid "C<{error, Msg, Errno}>"
3566 #: ../erlang/examples/guestfs-erlang.pod:65
3567 msgid "This indicates an ordinary error from the function."
3571 #: ../erlang/examples/guestfs-erlang.pod:67
3573 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
3578 #: ../erlang/examples/guestfs-erlang.pod:70
3579 msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
3583 #: ../erlang/examples/guestfs-erlang.pod:72
3584 msgid "C<{unknown, Function}>"
3588 #: ../erlang/examples/guestfs-erlang.pod:74
3590 "This indicates that the function you called is not known. Generally this "
3591 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
3592 "which you should not do."
3596 #: ../erlang/examples/guestfs-erlang.pod:78
3597 msgid "C<Function> is the name of the unknown function."
3601 #: ../erlang/examples/guestfs-erlang.pod:80
3602 msgid "C<{unknownarg, Arg}>"
3606 #: ../erlang/examples/guestfs-erlang.pod:82
3608 "This indicates that you called a function with optional arguments, with an "
3609 "unknown argument name."
3613 #: ../erlang/examples/guestfs-erlang.pod:85
3614 msgid "C<Arg> is the name of the unknown argument."
3618 #: ../erlang/examples/guestfs-erlang.pod:89
3619 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3620 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3621 #: ../python/examples/guestfs-python.pod:34
3622 #: ../ruby/examples/guestfs-ruby.pod:28
3623 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3627 #: ../erlang/examples/guestfs-erlang.pod:91
3628 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3629 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3630 #: ../python/examples/guestfs-python.pod:36
3631 #: ../ruby/examples/guestfs-ruby.pod:30
3638 #: ../erlang/examples/guestfs-erlang.pod:93
3639 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3640 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3641 #: ../python/examples/guestfs-python.pod:38
3642 #: ../ruby/examples/guestfs-ruby.pod:32
3643 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3647 #: ../erlang/examples/guestfs-erlang.pod:95
3648 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3649 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3650 #: ../python/examples/guestfs-python.pod:40
3651 #: ../ruby/examples/guestfs-ruby.pod:34
3658 #: ../erlang/examples/guestfs-erlang.pod:99
3661 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3662 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3663 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3665 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3666 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3667 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
3669 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3670 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3671 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3674 #: ../erlang/examples/guestfs-erlang.pod:110
3675 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
3676 #: ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60
3677 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3678 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3679 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
3680 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
3681 #: ../python/examples/guestfs-python.pod:54
3682 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3240
3683 #: ../test-tool/libguestfs-test-tool.pod:106
3688 #: ../erlang/examples/guestfs-erlang.pod:112
3689 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
3690 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62
3691 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3692 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3693 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
3694 #: ../perl/examples/guestfs-perl.pod:54
3695 #: ../python/examples/guestfs-python.pod:56
3696 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3242
3697 #: ../test-tool/libguestfs-test-tool.pod:108
3698 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3702 #: ../erlang/examples/guestfs-erlang.pod:116
3703 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
3705 #| msgid "Copyright (C) 2009 Red Hat Inc."
3706 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
3707 msgstr "© Red Hat Inc., 2009"
3710 #: ../erlang/examples/guestfs-erlang.pod:118
3711 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
3712 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
3713 #: ../perl/examples/guestfs-perl.pod:60
3714 #: ../python/examples/guestfs-python.pod:62
3715 #: ../ruby/examples/guestfs-ruby.pod:56
3717 "The examples in this manual page may be freely copied, modified and "
3718 "distributed without any restrictions."
3722 #: ../erlang/examples/guestfs-erlang.pod:121
3723 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
3724 #: ../java/examples/guestfs-java.pod:69
3725 #: ../ocaml/examples/guestfs-ocaml.pod:102
3726 #: ../perl/examples/guestfs-perl.pod:63
3727 #: ../python/examples/guestfs-python.pod:65
3728 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3249
3730 "This library is free software; you can redistribute it and/or modify it "
3731 "under the terms of the GNU Lesser General Public License as published by the "
3732 "Free Software Foundation; either version 2 of the License, or (at your "
3733 "option) any later version."
3737 #: ../erlang/examples/guestfs-erlang.pod:126
3738 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
3739 #: ../java/examples/guestfs-java.pod:74
3740 #: ../ocaml/examples/guestfs-ocaml.pod:107
3741 #: ../perl/examples/guestfs-perl.pod:68
3742 #: ../python/examples/guestfs-python.pod:70
3743 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3254
3745 "This library is distributed in the hope that it will be useful, but WITHOUT "
3746 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3747 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
3752 #: ../erlang/examples/guestfs-erlang.pod:131
3753 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
3754 #: ../java/examples/guestfs-java.pod:79
3755 #: ../ocaml/examples/guestfs-ocaml.pod:112
3756 #: ../perl/examples/guestfs-perl.pod:73
3757 #: ../python/examples/guestfs-python.pod:75
3758 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3259
3760 "You should have received a copy of the GNU Lesser General Public License "
3761 "along with this library; if not, write to the Free Software Foundation, "
3762 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3766 #: ../examples/guestfs-examples.pod:5
3767 msgid "guestfs-examples - Examples of using libguestfs from C"
3771 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3774 " #include <guestfs.h>\n"
3777 " #include <guestfs.h>\n"
3781 #: ../examples/guestfs-examples.pod:11
3784 " guestfs_h *g = guestfs_create ();\n"
3785 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3786 " guestfs_launch (g);\n"
3791 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3794 " cc prog.c -o prog -lguestfs\n"
3796 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3799 " cc prog.c -o prog -lguestfs\n"
3801 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3805 #: ../examples/guestfs-examples.pod:21
3807 "This manual page contains examples of calling libguestfs from the C "
3808 "programming language. If you are not familiar with using libguestfs, you "
3809 "also need to read L<guestfs(3)>."
3813 #: ../examples/guestfs-examples.pod:35
3816 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3817 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3818 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3820 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3821 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3822 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3824 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3825 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3826 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3829 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
3830 #: ../python/examples/guestfs-python.pod:60
3831 #: ../ruby/examples/guestfs-ruby.pod:54
3833 #| msgid "Copyright (C) 2009 Red Hat Inc."
3834 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3835 msgstr "© Red Hat Inc., 2009"
3838 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3843 #: ../examples/guestfs-recipes.pod:5
3845 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3846 "here. The only way which works for both sorts of output is to just write "
3847 "the URL directly. Do NOT use L<...> for URLs."
3851 #: ../examples/guestfs-recipes.pod:9
3853 "We break with tradition here and don't use ALL CAPS for the section "
3854 "headings, as this makes them much easier to read."
3858 #: ../examples/guestfs-recipes.pod:16
3859 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3863 #: ../examples/guestfs-recipes.pod:20
3865 "This page contains recipes for and links to things you can do using "
3866 "libguestfs, L<guestfish(1)> and the virt tools."
3870 #: ../examples/guestfs-recipes.pod:23
3871 msgid "Audit a virtual machine for setuid files"
3875 #: ../examples/guestfs-recipes.pod:25
3877 "The link below contains a small program which can be used to audit a Linux "
3878 "virtual machine to see what setuid and setgid files it contains."
3882 #: ../examples/guestfs-recipes.pod:28
3884 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3889 #: ../examples/guestfs-recipes.pod:30
3890 msgid "Change the background image in a Windows XP VM"
3894 #: ../examples/guestfs-recipes.pod:32
3896 "The links below explain how to use L<guestfish(1)> to change the background "
3897 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
3898 "be substantially different for each version of Windows."
3902 #: ../examples/guestfs-recipes.pod:37
3904 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3905 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3909 #: ../examples/guestfs-recipes.pod:40
3910 msgid "Cloning a virtual machine (Linux)"
3914 #: ../examples/guestfs-recipes.pod:42
3916 "The guestfish technique described in the link below works well for most "
3917 "Linux VMs. Depending on the Linux distro you may need to change the paths "
3922 #: ../examples/guestfs-recipes.pod:46
3924 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3929 #: ../examples/guestfs-recipes.pod:48
3931 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
3936 #: ../examples/guestfs-recipes.pod:51
3937 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3941 #: ../examples/guestfs-recipes.pod:53
3942 msgid "Cloning a virtual machine (Windows)"
3946 #: ../examples/guestfs-recipes.pod:55
3948 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3949 "straightforward. Currently there is code in the Aeolus Oz project which "
3950 "does this (using libguestfs). As part of our review of the virt-clone tool, "
3951 "we may add sysprepping ability."
3955 #: ../examples/guestfs-recipes.pod:60
3957 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3958 "list/2011-May/msg00019.html"
3962 #: ../examples/guestfs-recipes.pod:63
3963 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3967 #: ../examples/guestfs-recipes.pod:65
3968 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3972 #: ../examples/guestfs-recipes.pod:67
3975 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3980 #: ../examples/guestfs-recipes.pod:69
3981 msgid "To export just a subdirectory, eg. C</files>, do:"
3985 #: ../examples/guestfs-recipes.pod:71
3988 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3993 #: ../examples/guestfs-recipes.pod:73
3994 msgid "Create empty disk images"
3998 #: ../examples/guestfs-recipes.pod:75
4000 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
4001 "The useful guide below explains the options available."
4005 #: ../examples/guestfs-recipes.pod:78
4007 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
4012 #: ../examples/guestfs-recipes.pod:80
4013 msgid "Dump raw filesystem content from inside a disk image or VM"
4017 #: ../examples/guestfs-recipes.pod:82
4019 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4020 "filesystem content from any filesystem in a disk image or a VM (even one "
4021 "which is encrypted or buried inside an LV):"
4025 #: ../examples/guestfs-recipes.pod:86
4028 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4031 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4034 " guestfish --format=raw -a disk.img --format -a another.img\n"
4038 #: ../examples/guestfs-recipes.pod:88
4041 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4046 #: ../examples/guestfs-recipes.pod:90
4047 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4051 #: ../examples/guestfs-recipes.pod:92
4052 msgid "Edit grub configuration in a VM"
4056 #: ../examples/guestfs-recipes.pod:94
4057 msgid "You can use this to:"
4061 #: ../examples/guestfs-recipes.pod:100
4062 msgid "Fix a virtual machine that does not boot."
4066 #: ../examples/guestfs-recipes.pod:104
4067 msgid "Change which kernel is used to boot the VM."
4071 #: ../examples/guestfs-recipes.pod:108
4072 msgid "Change kernel command line options."
4076 #: ../examples/guestfs-recipes.pod:112
4077 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4081 #: ../examples/guestfs-recipes.pod:114
4084 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4089 #: ../examples/guestfs-recipes.pod:116
4091 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4096 #: ../examples/guestfs-recipes.pod:119
4099 " virt-rescue -d BrokenGuest\n"
4104 #: ../examples/guestfs-recipes.pod:121
4105 msgid "Export any directory from a VM"
4109 #: ../examples/guestfs-recipes.pod:123
4111 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4115 #: ../examples/guestfs-recipes.pod:126
4118 #| " copy-out /home .\n"
4121 " virt-copy-out -d Guest /home .\n"
4124 " copy-out /home .\n"
4128 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
4129 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
4130 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18
4131 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2451
4132 #: ../src/guestfs-actions.pod:3002 ../src/guestfs.pod:1670
4133 #: ../tools/virt-win-reg.pl:706
4138 #: ../examples/guestfs-recipes.pod:134
4140 "The final dot of the command is not a printing error. It means we want to "
4141 "copy out to the current directory."
4145 #: ../examples/guestfs-recipes.pod:139
4146 msgid "This creates a directory called C<home> under the current directory."
4150 #: ../examples/guestfs-recipes.pod:143
4152 "If the guest is a Windows guest then you can use drive letters and "
4153 "backslashes, but you must prefix the path with C<win:> and quote it to "
4154 "protect it from the shell, like this:"
4158 #: ../examples/guestfs-recipes.pod:147
4161 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4166 #: ../examples/guestfs-recipes.pod:149
4167 msgid "To get the output as a compressed tarball, do:"
4171 #: ../examples/guestfs-recipes.pod:151
4174 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4179 #: ../examples/guestfs-recipes.pod:153
4181 "Although it sounds tempting, this is usually not a reliable way to get a "
4182 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
4183 "org/FAQ.html#backup"
4187 #: ../examples/guestfs-recipes.pod:157
4188 msgid "Find out which user is using the most space"
4192 #: ../examples/guestfs-recipes.pod:159
4194 "This simple script examines a Linux guest to find out which user is using "
4195 "the most space in their home directory:"
4199 #: ../examples/guestfs-recipes.pod:162
4202 #| " #!/usr/bin/guestfish -f\n"
4208 " #!/usr/bin/guestfish -f\n"
4212 #: ../examples/guestfs-recipes.pod:164
4215 #| " set-qemu qemu\n"
4225 #: ../examples/guestfs-recipes.pod:166
4234 #: ../examples/guestfs-recipes.pod:169
4237 #| " guestfish --ro -d myguest -i\n"
4240 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4243 " guestfish --ro -d myguest -i\n"
4247 #: ../examples/guestfs-recipes.pod:171
4250 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4251 " echo -n \"$dir/$d\"\n"
4253 " guestfish --remote du \"$dir/$d\";\n"
4254 " done | sort -nr -k 2\n"
4259 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4262 " guestfish --remote exit\n"
4267 #: ../examples/guestfs-recipes.pod:179
4268 msgid "Get DHCP address from a VM"
4272 #: ../examples/guestfs-recipes.pod:181
4274 "The link below explains the many different possible techniques for getting "
4275 "the last assigned DHCP address of a virtual machine."
4279 #: ../examples/guestfs-recipes.pod:184
4281 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4282 "a-virtual-machine-disk-image/#content"
4286 #: ../examples/guestfs-recipes.pod:186
4288 "In the libguestfs source examples directory you will find the latest version "
4289 "of the C<virt-dhcp-address.c> program."
4293 #: ../examples/guestfs-recipes.pod:189
4294 msgid "Get the operating system product name string"
4298 #: ../examples/guestfs-recipes.pod:191
4299 msgid "Save the following script into a file called C<product-name.sh>:"
4303 #: ../examples/guestfs-recipes.pod:193
4306 #| " eval \"`guestfish --listen`\"\n"
4307 #| " guestfish --remote add-ro disk.img\n"
4308 #| " guestfish --remote run\n"
4309 #| " guestfish --remote lvs\n"
4314 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4315 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4316 " guestfish --remote inspect-get-product-name \"$root\"\n"
4317 " guestfish --remote exit\n"
4320 " eval \"`guestfish --listen`\"\n"
4321 " guestfish --remote add-ro disk.img\n"
4322 " guestfish --remote run\n"
4323 " guestfish --remote lvs\n"
4327 #: ../examples/guestfs-recipes.pod:200
4328 msgid "Make the script executable and run it on a named guest:"
4332 #: ../examples/guestfs-recipes.pod:202
4335 " # product-name.sh RHEL60x64\n"
4336 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4341 #: ../examples/guestfs-recipes.pod:205
4343 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4344 "C<xpath> command line tool or from your favourite programming language:"
4348 #: ../examples/guestfs-recipes.pod:209
4351 " # virt-inspector RHEL60x64 > xml\n"
4352 " # xpath '//product_name' < xml\n"
4355 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4360 #: ../examples/guestfs-recipes.pod:215
4361 msgid "Get the default boot kernel for a Linux VM"
4365 #: ../examples/guestfs-recipes.pod:217
4367 "The link below contains a program to print the default boot kernel for a "
4372 #: ../examples/guestfs-recipes.pod:220
4374 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4375 "kernel-for-a-vm/#content"
4379 #: ../examples/guestfs-recipes.pod:222
4381 "It uses Augeas, and the technique is generally applicable for many different "
4386 #: ../examples/guestfs-recipes.pod:229
4387 msgid "listing the user accounts in the guest"
4391 #: ../examples/guestfs-recipes.pod:233
4392 msgid "what repositories is it configured to use"
4396 #: ../examples/guestfs-recipes.pod:237
4397 msgid "what NTP servers does it connect to"
4401 #: ../examples/guestfs-recipes.pod:241
4402 msgid "what were the boot messages last time it booted"
4406 #: ../examples/guestfs-recipes.pod:245
4407 msgid "listing who was logged in recently"
4411 #: ../examples/guestfs-recipes.pod:249
4412 msgid "http://augeas.net/"
4416 #: ../examples/guestfs-recipes.pod:251
4417 msgid "Install RPMs in a guest"
4421 #: ../examples/guestfs-recipes.pod:253
4423 "The link below contains a method to install RPMs in a guest. In fact the "
4424 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4425 "installs them next time the guest is booted. You could use this technique "
4426 "to install vital security updates in an offline guest."
4430 #: ../examples/guestfs-recipes.pod:259
4432 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4436 #: ../examples/guestfs-recipes.pod:261
4437 msgid "List applications installed in a VM"
4441 #: ../examples/guestfs-recipes.pod:263
4442 msgid "Save the following to a file C<list-apps.sh>:"
4446 #: ../examples/guestfs-recipes.pod:265
4449 #| " eval \"`guestfish --listen`\"\n"
4450 #| " guestfish --remote add-ro disk.img\n"
4451 #| " guestfish --remote run\n"
4452 #| " guestfish --remote lvs\n"
4457 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4458 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4459 " guestfish --remote inspect-list-applications \"$root\"\n"
4460 " guestfish --remote exit\n"
4463 " eval \"`guestfish --listen`\"\n"
4464 " guestfish --remote add-ro disk.img\n"
4465 " guestfish --remote run\n"
4466 " guestfish --remote lvs\n"
4470 #: ../examples/guestfs-recipes.pod:272
4472 "Make the file executable and then you can run it on any named virtual "
4477 #: ../examples/guestfs-recipes.pod:275
4480 " # list-apps.sh WinGuest\n"
4482 " app_name: Mozilla Firefox (3.6.12)\n"
4483 " app_display_name: Mozilla Firefox (3.6.12)\n"
4485 " app_version: 3.6.12 (en-GB)\n"
4487 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4488 " app_trans_path:\n"
4489 " app_publisher: Mozilla\n"
4490 " app_url: http://www.mozilla.com/en-GB/\n"
4491 " app_source_package:\n"
4493 " app_description: Mozilla Firefox\n"
4496 " app_name: VLC media player\n"
4497 " app_display_name: VLC media player 1.1.5\n"
4499 " app_version: 1.1.5\n"
4501 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4502 " app_trans_path:\n"
4503 " app_publisher: VideoLAN\n"
4504 " app_url: http://www.videolan.org/\n"
4505 " app_source_package:\n"
4507 " app_description:\n"
4513 #: ../examples/guestfs-recipes.pod:305
4515 "If you want to run the script on disk images (instead of libvirt virtual "
4516 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
4521 #: ../examples/guestfs-recipes.pod:309
4522 msgid "List files and directories in a VM"
4526 #: ../examples/guestfs-recipes.pod:311
4527 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4531 #: ../examples/guestfs-recipes.pod:313
4534 #| " guestfish --ro -d myguest -i\n"
4537 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4540 " guestfish --ro -d myguest -i\n"
4544 #: ../examples/guestfs-recipes.pod:315
4545 msgid "List services in a Windows VM"
4549 #: ../examples/guestfs-recipes.pod:317
4551 "The link below contains a script that can be used to list out the services "
4552 "from a Windows VM, and whether those services run at boot time or are loaded "
4557 #: ../examples/guestfs-recipes.pod:321
4559 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4564 #: ../examples/guestfs-recipes.pod:323
4565 msgid "Make a disk image sparse"
4569 #: ../examples/guestfs-recipes.pod:325
4571 "The link below contains some guides for making a disk image sparse (or "
4572 "reintroducing sparseness)."
4576 #: ../examples/guestfs-recipes.pod:328
4578 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4582 #: ../examples/guestfs-recipes.pod:330
4583 msgid "Monitor disk usage over time"
4587 #: ../examples/guestfs-recipes.pod:332
4589 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
4590 "The link below contains a guide."
4594 #: ../examples/guestfs-recipes.pod:335
4595 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4599 #: ../examples/guestfs-recipes.pod:337
4600 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4604 #: ../examples/guestfs-recipes.pod:339
4606 "L<guestfish(1)> plus the tools described in the link below can be used to "
4607 "read out the Windows Event Log from any virtual machine running Windows "
4608 "Vista or a later version."
4612 #: ../examples/guestfs-recipes.pod:343
4614 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4615 "guestfish/#content"
4619 #: ../examples/guestfs-recipes.pod:345
4620 msgid "Remove root password (Linux)"
4624 #: ../examples/guestfs-recipes.pod:347
4626 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4627 "files. One use is to remove the root password from a Linux guest:"
4631 #: ../examples/guestfs-recipes.pod:350
4634 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4639 #: ../examples/guestfs-recipes.pod:352
4640 msgid "Remove Administrator password (Windows)"
4644 #: ../examples/guestfs-recipes.pod:354
4646 "The link below contains one technique for removing the Administrator "
4647 "password from a Windows VM, or to be more precise, it gives you a command "
4648 "prompt the next time you log in which you can use to bypass any security:"
4652 #: ../examples/guestfs-recipes.pod:359
4654 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4655 "administrator-password-with-guestfish/"
4659 #: ../examples/guestfs-recipes.pod:361
4660 msgid "Unpack a live CD"
4664 #: ../examples/guestfs-recipes.pod:363
4666 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4667 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
4668 "layers, as outlined in the guide below."
4672 #: ../examples/guestfs-recipes.pod:367
4674 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4679 #: ../examples/guestfs-recipes.pod:369
4680 msgid "Uploading and downloading files"
4684 #: ../examples/guestfs-recipes.pod:371
4686 "The link below contains general tips on uploading (copying in) and "
4687 "downloading (copying out) files from VMs."
4691 #: ../examples/guestfs-recipes.pod:374
4693 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4697 #: ../examples/guestfs-recipes.pod:376
4698 msgid "Use libguestfs tools on VMware ESX guests"
4702 #: ../examples/guestfs-recipes.pod:378
4704 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4705 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4709 #: ../examples/guestfs-recipes.pod:382
4711 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4716 #: ../examples/guestfs-recipes.pod:386
4719 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4720 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4721 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4723 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
4724 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
4725 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4727 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4728 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4729 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4732 #: ../examples/guestfs-recipes.pod:403
4734 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4735 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4736 msgstr "© Red Hat Inc., 2009–2010"
4739 #: ../fish/guestfish-actions.pod:1
4744 #: ../fish/guestfish-actions.pod:3
4747 " add-cdrom filename\n"
4752 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4753 msgid "This function adds a virtual CD-ROM disk image to the guest."
4757 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4758 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4762 #: ../fish/guestfish-actions.pod:15
4764 "This call checks for the existence of C<filename>. This stops you from "
4765 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4766 "and C<http:> URLs. To specify those, use the general L</config> call "
4771 #: ../fish/guestfish-actions.pod:22
4773 "If you just want to add an ISO file (often you use this as an efficient way "
4774 "to transfer large files into the guest), then you should probably use L</add-"
4775 "drive-ro> instead."
4779 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4780 #: ../fish/guestfish-actions.pod:177
4782 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4787 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4788 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
4789 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
4790 #: ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3468
4791 #: ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429
4792 #: ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474
4793 #: ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161
4794 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10
4795 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
4796 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:2114
4797 #: ../src/guestfs-actions.pod:2135 ../src/guestfs-actions.pod:4765
4798 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5387
4799 #: ../src/guestfs-actions.pod:6667 ../src/guestfs-actions.pod:6711
4800 #: ../src/guestfs-actions.pod:6745 ../src/guestfs-actions.pod:6808
4801 #: ../src/guestfs-actions.pod:7740 ../src/guestfs-actions.pod:7849
4802 #: ../src/guestfs-actions.pod:8032
4804 "Deprecated functions will not be removed from the API, but the fact that "
4805 "they are deprecated indicates that there are problems with correct use of "
4810 #: ../fish/guestfish-actions.pod:35
4815 #: ../fish/guestfish-actions.pod:37
4820 #: ../fish/guestfish-actions.pod:39
4823 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4828 #: ../fish/guestfish-actions.pod:41
4830 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
4831 "It works by connecting to libvirt, requesting the domain and domain XML from "
4832 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4836 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4838 "The number of disks added is returned. This operation is atomic: if an "
4839 "error is returned, then no disks are added."
4843 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4845 "This function does some minimal checks to make sure the libvirt domain is "
4846 "not running (unless C<readonly> is true). In a future version we will try "
4847 "to acquire the libvirt lock on each disk."
4851 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4853 "Disks must be accessible locally. This often means that adding disks from a "
4854 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
4855 "unless those disks are accessible via the same device path locally too."
4859 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4861 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4862 "libvirt.org/uri.html>). If this is not set then we connect to the default "
4863 "libvirt URI (or one set through an environment variable, see the libvirt "
4864 "documentation for full details)."
4868 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4870 "The optional C<live> flag controls whether this call will try to connect to "
4871 "a running virtual machine C<guestfsd> process if it sees a suitable "
4872 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
4873 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
4874 "DAEMONS> for more information."
4878 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4880 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4881 "passed instead of the domain name. The C<dom> string is treated as a UUID "
4882 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4887 #: ../fish/guestfish-actions.pod:76
4889 "The other optional parameters are passed directly through to L</add-drive-"
4894 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4895 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
4896 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
4897 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369
4898 #: ../fish/guestfish-actions.pod:3504
4900 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
4904 #: ../fish/guestfish-actions.pod:81
4909 #: ../fish/guestfish-actions.pod:83
4912 " add-drive filename\n"
4915 " add-drive назва_файла\n"
4919 #: ../fish/guestfish-actions.pod:85
4921 "This function is the equivalent of calling L</add-drive-opts> with no "
4922 "optional parameters, so the disk is added writable, with the format being "
4923 "detected automatically."
4927 #: ../fish/guestfish-actions.pod:89
4929 "Automatic detection of the format opens you up to a potential security hole "
4930 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
4931 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
4932 "you should think about replacing calls to this function with calls to L</add-"
4933 "drive-opts>, and specifying the format."
4937 #: ../fish/guestfish-actions.pod:96
4938 msgid "add-drive-opts"
4939 msgstr "add-drive-opts"
4942 #: ../fish/guestfish-actions.pod:98
4947 #: ../fish/guestfish-actions.pod:100
4950 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4955 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4957 "This function adds a virtual machine disk image C<filename> to libguestfs. "
4958 "The first time you call this function, the disk appears as C</dev/sda>, the "
4959 "second time as C</dev/sdb>, and so on."
4963 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4965 "You don't necessarily need to be root when using libguestfs. However you "
4966 "obviously do need sufficient permissions to access the filename for whatever "
4967 "operations you want to perform (ie. read access if you just want to read the "
4968 "image or write access if you want to modify the image)."
4972 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4973 msgid "This call checks that C<filename> exists."
4977 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
4978 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4802
4979 msgid "The optional arguments are:"
4983 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4985 msgstr "C<readonly>"
4988 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4990 "If true then the image is treated as read-only. Writes are still allowed, "
4991 "but they are stored in a temporary snapshot overlay which is discarded at "
4992 "the end. The disk that you add is not modified."
4996 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
5001 #: ../fish/guestfish-actions.pod:127
5003 "This forces the image format. If you omit this (or use L</add-drive> or L</"
5004 "add-drive-ro>) then the format is automatically detected. Possible formats "
5005 "include C<raw> and C<qcow2>."
5009 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
5011 "Automatic detection of the format opens you up to a potential security hole "
5012 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
5013 "RHBZ#642934. Specifying the format closes this security hole."
5017 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
5022 #: ../fish/guestfish-actions.pod:138
5024 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
5025 "add-drive-with-if> call (q.v.)"
5029 #: ../fish/guestfish-actions.pod:145
5030 msgid "add-drive-ro"
5031 msgstr "add-drive-ro"
5034 #: ../fish/guestfish-actions.pod:147
5039 #: ../fish/guestfish-actions.pod:149
5042 " add-drive-ro filename\n"
5047 #: ../fish/guestfish-actions.pod:151
5049 "This function is the equivalent of calling L</add-drive-opts> with the "
5050 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5051 "is added read-only, with the format being detected automatically."
5055 #: ../fish/guestfish-actions.pod:156
5056 msgid "add-drive-ro-with-if"
5060 #: ../fish/guestfish-actions.pod:158
5063 " add-drive-ro-with-if filename iface\n"
5068 #: ../fish/guestfish-actions.pod:160
5070 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
5071 "interface emulation to use at run time."
5075 #: ../fish/guestfish-actions.pod:170
5076 msgid "add-drive-with-if"
5080 #: ../fish/guestfish-actions.pod:172
5083 " add-drive-with-if filename iface\n"
5088 #: ../fish/guestfish-actions.pod:174
5090 "This is the same as L</add-drive> but it allows you to specify the QEMU "
5091 "interface emulation to use at run time."
5095 #: ../fish/guestfish-actions.pod:184
5100 #: ../fish/guestfish-actions.pod:186
5103 " aug-clear augpath\n"
5108 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
5110 "Set the value associated with C<path> to C<NULL>. This is the same as the "
5111 "L<augtool(1)> C<clear> command."
5115 #: ../fish/guestfish-actions.pod:191
5120 #: ../fish/guestfish-actions.pod:193
5128 #: ../fish/guestfish-actions.pod:195
5130 "Close the current Augeas handle and free up any resources used by it. After "
5131 "calling this, you have to call L</aug-init> again before you can use any "
5132 "other Augeas functions."
5136 #: ../fish/guestfish-actions.pod:200
5141 #: ../fish/guestfish-actions.pod:202
5144 " aug-defnode name expr val\n"
5149 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
5151 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5155 #: ../fish/guestfish-actions.pod:207
5157 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5158 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
5159 "containing that single node."
5163 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
5165 "On success this returns a pair containing the number of nodes in the "
5166 "nodeset, and a boolean flag if a node was created."
5170 #: ../fish/guestfish-actions.pod:215
5175 #: ../fish/guestfish-actions.pod:217
5178 " aug-defvar name expr\n"
5183 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
5185 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5186 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
5190 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
5192 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5193 "evaluates to something which is not a nodeset."
5197 #: ../fish/guestfish-actions.pod:226
5202 #: ../fish/guestfish-actions.pod:228
5205 " aug-get augpath\n"
5210 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
5212 "Look up the value associated with C<path>. If C<path> matches exactly one "
5213 "node, the C<value> is returned."
5217 #: ../fish/guestfish-actions.pod:233
5222 #: ../fish/guestfish-actions.pod:235
5225 " aug-init root flags\n"
5230 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
5232 "Create a new Augeas handle for editing configuration files. If there was "
5233 "any previous Augeas handle associated with this guestfs session, then it is "
5238 #: ../fish/guestfish-actions.pod:241
5239 msgid "You must call this before using any other L</aug-*> commands."
5243 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
5245 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
5249 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5251 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5252 "logical I<or> of the following integers:"
5256 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5257 msgid "C<AUG_SAVE_BACKUP> = 1"
5258 msgstr "C<AUG_SAVE_BACKUP> = 1"
5261 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5262 msgid "Keep the original file with a C<.augsave> extension."
5266 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5267 msgid "C<AUG_SAVE_NEWFILE> = 2"
5268 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5271 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5273 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5274 "original. Overrides C<AUG_SAVE_BACKUP>."
5278 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5279 msgid "C<AUG_TYPE_CHECK> = 4"
5280 msgstr "C<AUG_TYPE_CHECK> = 4"
5283 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5284 msgid "Typecheck lenses."
5288 #: ../fish/guestfish-actions.pod:266
5290 "This option is only useful when debugging Augeas lenses. Use of this option "
5291 "may require additional memory for the libguestfs appliance. You may need to "
5292 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5296 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5297 msgid "C<AUG_NO_STDINC> = 8"
5298 msgstr "C<AUG_NO_STDINC> = 8"
5301 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5302 msgid "Do not use standard load path for modules."
5306 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5307 msgid "C<AUG_SAVE_NOOP> = 16"
5308 msgstr "C<AUG_SAVE_NOOP> = 16"
5311 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5312 msgid "Make save a no-op, just record what would have been changed."
5316 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5317 msgid "C<AUG_NO_LOAD> = 32"
5318 msgstr "C<AUG_NO_LOAD> = 32"
5321 #: ../fish/guestfish-actions.pod:281
5322 msgid "Do not load the tree in L</aug-init>."
5326 #: ../fish/guestfish-actions.pod:285
5327 msgid "To close the handle, you can call L</aug-close>."
5331 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5332 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5336 #: ../fish/guestfish-actions.pod:289
5341 #: ../fish/guestfish-actions.pod:291
5344 " aug-insert augpath label true|false\n"
5349 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5351 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5352 "or after C<path> (depending on the boolean flag C<before>)."
5356 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5358 "C<path> must match exactly one existing node in the tree, and C<label> must "
5359 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5363 #: ../fish/guestfish-actions.pod:301
5368 #: ../fish/guestfish-actions.pod:303
5376 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5377 msgid "Load files into the tree."
5378 msgstr "Завантажити файли до ієрархії."
5381 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5382 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5386 #: ../fish/guestfish-actions.pod:310
5391 #: ../fish/guestfish-actions.pod:312
5399 #: ../fish/guestfish-actions.pod:314
5401 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5402 "resulting nodes into alphabetical order."
5406 #: ../fish/guestfish-actions.pod:317
5411 #: ../fish/guestfish-actions.pod:319
5414 " aug-match augpath\n"
5419 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5421 "Returns a list of paths which match the path expression C<path>. The "
5422 "returned paths are sufficiently qualified so that they match exactly one "
5423 "node in the current tree."
5427 #: ../fish/guestfish-actions.pod:325
5432 #: ../fish/guestfish-actions.pod:327
5435 " aug-mv src dest\n"
5440 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5442 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
5443 "C<dest> is overwritten if it exists."
5447 #: ../fish/guestfish-actions.pod:332
5452 #: ../fish/guestfish-actions.pod:334
5460 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5461 msgid "Remove C<path> and all of its children."
5465 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5466 msgid "On success this returns the number of entries which were removed."
5470 #: ../fish/guestfish-actions.pod:340
5475 #: ../fish/guestfish-actions.pod:342
5483 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5484 msgid "This writes all pending changes to disk."
5488 #: ../fish/guestfish-actions.pod:346
5490 "The flags which were passed to L</aug-init> affect exactly how files are "
5495 #: ../fish/guestfish-actions.pod:349
5500 #: ../fish/guestfish-actions.pod:351
5503 " aug-set augpath val\n"
5508 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5509 msgid "Set the value associated with C<path> to C<val>."
5513 #: ../fish/guestfish-actions.pod:355
5515 "In the Augeas API, it is possible to clear a node by setting the value to "
5516 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
5517 "this call. Instead you must use the L</aug-clear> call."
5521 #: ../fish/guestfish-actions.pod:360
5526 #: ../fish/guestfish-actions.pod:362
5529 " available 'groups ...'\n"
5534 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5536 "This command is used to check the availability of some groups of "
5537 "functionality in the appliance, which not all builds of the libguestfs "
5538 "appliance will be able to provide."
5542 #: ../fish/guestfish-actions.pod:368
5544 "The libguestfs groups, and the functions that those groups correspond to, "
5545 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
5546 "runtime by calling L</available-all-groups>."
5550 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5552 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5553 "\"]> would check for the availability of the Linux inotify functions and "
5554 "Augeas (configuration file editing) functions."
5558 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5559 msgid "The command returns no error if I<all> requested groups are available."
5563 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5565 "It fails with an error if one or more of the requested groups is unavailable "
5570 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5572 "If an unknown group name is included in the list of groups then an error is "
5577 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5579 msgstr "I<Нотатки:>"
5582 #: ../fish/guestfish-actions.pod:392
5583 msgid "You must call L</launch> before calling this function."
5587 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5589 "The reason is because we don't know what groups are supported by the "
5590 "appliance/daemon until it is running and can be queried."
5594 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5596 "If a group of functions is available, this does not necessarily mean that "
5597 "they will work. You still have to check for errors when calling individual "
5598 "API functions even if they are available."
5602 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5604 "It is usually the job of distro packagers to build complete functionality "
5605 "into the libguestfs appliance. Upstream libguestfs, if built from source "
5606 "with all requirements satisfied, will support everything."
5610 #: ../fish/guestfish-actions.pod:414
5612 "This call was added in version C<1.0.80>. In previous versions of "
5613 "libguestfs all you could do would be to speculatively execute a command to "
5614 "find out if the daemon implemented it. See also L</version>."
5618 #: ../fish/guestfish-actions.pod:421
5619 msgid "available-all-groups"
5623 #: ../fish/guestfish-actions.pod:423
5626 " available-all-groups\n"
5631 #: ../fish/guestfish-actions.pod:425
5633 "This command returns a list of all optional groups that this daemon knows "
5634 "about. Note this returns both supported and unsupported groups. To find "
5635 "out which ones the daemon can actually support you have to call L</"
5636 "available> on each member of the returned list."
5640 #: ../fish/guestfish-actions.pod:431
5641 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5645 #: ../fish/guestfish-actions.pod:433
5650 #: ../fish/guestfish-actions.pod:435
5653 " base64-in (base64file|-) filename\n"
5658 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5660 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5664 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5665 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
5666 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
5667 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
5668 #: ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:4744
5669 #: ../fish/guestfish-actions.pod:4755 ../fish/guestfish-actions.pod:4766
5670 #: ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4827
5671 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4904
5672 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5676 #: ../fish/guestfish-actions.pod:442
5681 #: ../fish/guestfish-actions.pod:444
5684 " base64-out filename (base64file|-)\n"
5689 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5691 "This command downloads the contents of C<filename>, writing it out to local "
5692 "file C<base64file> encoded as base64."
5696 #: ../fish/guestfish-actions.pod:451
5697 msgid "blockdev-flushbufs"
5701 #: ../fish/guestfish-actions.pod:453
5704 " blockdev-flushbufs device\n"
5709 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5711 "This tells the kernel to flush internal buffers associated with C<device>."
5715 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5716 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5717 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5718 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5719 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5720 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5721 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5722 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5723 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5724 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5725 msgid "This uses the L<blockdev(8)> command."
5729 #: ../fish/guestfish-actions.pod:460
5730 msgid "blockdev-getbsz"
5734 #: ../fish/guestfish-actions.pod:462
5737 " blockdev-getbsz device\n"
5742 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5743 msgid "This returns the block size of a device."
5747 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5748 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5750 "(Note this is different from both I<size in blocks> and I<filesystem block "
5755 #: ../fish/guestfish-actions.pod:471
5756 msgid "blockdev-getro"
5760 #: ../fish/guestfish-actions.pod:473
5763 " blockdev-getro device\n"
5768 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5770 "Returns a boolean indicating if the block device is read-only (true if read-"
5771 "only, false if not)."
5775 #: ../fish/guestfish-actions.pod:480
5776 msgid "blockdev-getsize64"
5780 #: ../fish/guestfish-actions.pod:482
5783 " blockdev-getsize64 device\n"
5788 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5789 msgid "This returns the size of the device in bytes."
5793 #: ../fish/guestfish-actions.pod:486
5794 msgid "See also L</blockdev-getsz>."
5798 #: ../fish/guestfish-actions.pod:490
5799 msgid "blockdev-getss"
5803 #: ../fish/guestfish-actions.pod:492
5806 " blockdev-getss device\n"
5811 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5813 "This returns the size of sectors on a block device. Usually 512, but can be "
5814 "larger for modern devices."
5818 #: ../fish/guestfish-actions.pod:497
5820 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5824 #: ../fish/guestfish-actions.pod:502
5825 msgid "blockdev-getsz"
5829 #: ../fish/guestfish-actions.pod:504
5832 " blockdev-getsz device\n"
5837 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5839 "This returns the size of the device in units of 512-byte sectors (even if "
5840 "the sectorsize isn't 512 bytes ... weird)."
5844 #: ../fish/guestfish-actions.pod:509
5846 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5847 "blockdev-getsize64> for the more useful I<size in bytes>."
5851 #: ../fish/guestfish-actions.pod:515
5852 msgid "blockdev-rereadpt"
5856 #: ../fish/guestfish-actions.pod:517
5859 " blockdev-rereadpt device\n"
5864 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5865 msgid "Reread the partition table on C<device>."
5869 #: ../fish/guestfish-actions.pod:523
5870 msgid "blockdev-setbsz"
5874 #: ../fish/guestfish-actions.pod:525
5877 " blockdev-setbsz device blocksize\n"
5882 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5883 msgid "This sets the block size of a device."
5887 #: ../fish/guestfish-actions.pod:534
5888 msgid "blockdev-setro"
5892 #: ../fish/guestfish-actions.pod:536
5895 " blockdev-setro device\n"
5900 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5901 msgid "Sets the block device named C<device> to read-only."
5905 #: ../fish/guestfish-actions.pod:542
5906 msgid "blockdev-setrw"
5910 #: ../fish/guestfish-actions.pod:544
5913 " blockdev-setrw device\n"
5918 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5919 msgid "Sets the block device named C<device> to read-write."
5923 #: ../fish/guestfish-actions.pod:550
5924 msgid "btrfs-filesystem-resize"
5928 #: ../fish/guestfish-actions.pod:552
5931 " btrfs-filesystem-resize mountpoint [size:..]\n"
5936 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5937 msgid "This command resizes a btrfs filesystem."
5941 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5943 "Note that unlike other resize calls, the filesystem has to be mounted and "
5944 "the parameter is the mountpoint not the device (this is a requirement of "
5949 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3479
5950 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5326
5951 msgid "The optional parameters are:"
5955 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3483
5956 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5330
5961 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5963 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
5964 "resized to the maximum size."
5968 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5969 msgid "See also L<btrfs(8)>."
5973 #: ../fish/guestfish-actions.pod:575
5974 msgid "case-sensitive-path"
5978 #: ../fish/guestfish-actions.pod:577
5981 " case-sensitive-path path\n"
5986 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5988 "This can be used to resolve case insensitive paths on a filesystem which is "
5989 "case sensitive. The use case is to resolve paths which you have read from "
5990 "Windows configuration files or the Windows Registry, to the true path."
5994 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5996 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5997 "(and probably others), which is that although the underlying filesystem is "
5998 "case-insensitive, the driver exports the filesystem to Linux as case-"
6003 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
6005 "One consequence of this is that special directories such as C<c:\\windows> "
6006 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6007 "precise details of how they were created. In Windows itself this would not "
6012 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
6014 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
6019 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
6021 "This function resolves the true case of each element in the path and returns "
6022 "the case-sensitive path."
6026 #: ../fish/guestfish-actions.pod:601
6028 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
6029 "WINDOWS/system32\"> (the exact return value would depend on details of how "
6030 "the directories were originally created under Windows)."
6034 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
6035 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6039 #: ../fish/guestfish-actions.pod:609
6040 msgid "See also L</realpath>."
6044 #: ../fish/guestfish-actions.pod:611
6049 #: ../fish/guestfish-actions.pod:613
6059 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3899
6060 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5969
6061 msgid "Return the contents of the file named C<path>."
6065 #: ../fish/guestfish-actions.pod:617
6067 "Note that this function cannot correctly handle binary files (specifically, "
6068 "files containing C<\\0> character which is treated as end of string). For "
6069 "those you need to use the L</read-file> or L</download> functions which have "
6070 "a more complex interface."
6074 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
6075 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
6076 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
6077 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
6078 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
6079 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
6080 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
6081 #: ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3784
6082 #: ../fish/guestfish-actions.pod:3860 ../fish/guestfish-actions.pod:3877
6083 #: ../fish/guestfish-actions.pod:3892 ../fish/guestfish-actions.pod:4573
6084 #: ../fish/guestfish-actions.pod:4619 ../fish/guestfish-actions.pod:4704
6085 #: ../fish/guestfish-actions.pod:4719 ../fish/guestfish-actions.pod:5125
6086 #: ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5155
6087 #: ../fish/guestfish-actions.pod:5172 ../fish/guestfish-actions.pod:5182
6088 #: ../fish/guestfish-actions.pod:5239 ../fish/guestfish-actions.pod:5249
6089 #: ../fish/guestfish-actions.pod:5278 ../fish/guestfish-actions.pod:5288
6090 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
6091 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1550
6092 #: ../src/guestfs-actions.pod:1569 ../src/guestfs-actions.pod:1672
6093 #: ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1937
6094 #: ../src/guestfs-actions.pod:2417 ../src/guestfs-actions.pod:2436
6095 #: ../src/guestfs-actions.pod:2501 ../src/guestfs-actions.pod:2525
6096 #: ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2571
6097 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5777
6098 #: ../src/guestfs-actions.pod:5908 ../src/guestfs-actions.pod:5934
6099 #: ../src/guestfs-actions.pod:5958 ../src/guestfs-actions.pod:6923
6100 #: ../src/guestfs-actions.pod:6978 ../src/guestfs-actions.pod:7124
6101 #: ../src/guestfs-actions.pod:7148 ../src/guestfs-actions.pod:7813
6102 #: ../src/guestfs-actions.pod:7833 ../src/guestfs-actions.pod:7866
6103 #: ../src/guestfs-actions.pod:7885 ../src/guestfs-actions.pod:7904
6104 #: ../src/guestfs-actions.pod:7998 ../src/guestfs-actions.pod:8017
6105 #: ../src/guestfs-actions.pod:8063 ../src/guestfs-actions.pod:8082
6107 "Because of the message protocol, there is a transfer limit of somewhere "
6108 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
6112 #: ../fish/guestfish-actions.pod:625
6117 #: ../fish/guestfish-actions.pod:627
6120 " checksum csumtype path\n"
6125 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
6127 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6131 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
6133 "The type of checksum to compute is given by the C<csumtype> parameter which "
6134 "must have one of the following values:"
6138 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
6143 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
6145 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6150 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
6155 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
6156 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6160 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
6165 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
6166 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6170 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
6175 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
6176 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6180 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
6185 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
6186 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6190 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
6195 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
6196 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6200 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
6205 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
6206 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6210 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
6211 msgid "The checksum is returned as a printable string."
6215 #: ../fish/guestfish-actions.pod:670
6216 msgid "To get the checksum for a device, use L</checksum-device>."
6220 #: ../fish/guestfish-actions.pod:672
6221 msgid "To get the checksums for many files, use L</checksums-out>."
6225 #: ../fish/guestfish-actions.pod:674
6226 msgid "checksum-device"
6227 msgstr "checksum-device"
6230 #: ../fish/guestfish-actions.pod:676
6233 " checksum-device csumtype device\n"
6238 #: ../fish/guestfish-actions.pod:678
6240 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6241 "device named C<device>. For the types of checksums supported see the L</"
6242 "checksum> command."
6246 #: ../fish/guestfish-actions.pod:682
6247 msgid "checksums-out"
6251 #: ../fish/guestfish-actions.pod:684
6254 " checksums-out csumtype directory (sumsfile|-)\n"
6259 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6261 "This command computes the checksums of all regular files in C<directory> and "
6262 "then emits a list of those checksums to the local output file C<sumsfile>."
6266 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6268 "This can be used for verifying the integrity of a virtual machine. However "
6269 "to be properly secure you should pay attention to the output of the checksum "
6270 "command (it uses the ones from GNU coreutils). In particular when the "
6271 "filename is not printable, coreutils uses a special backslash syntax. For "
6272 "more information, see the GNU coreutils info file."
6276 #: ../fish/guestfish-actions.pod:700
6281 #: ../fish/guestfish-actions.pod:702
6284 " chmod mode path\n"
6289 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6291 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
6296 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6298 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6299 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6304 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132
6305 #: ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281
6306 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064
6307 #: ../src/guestfs-actions.pod:4733 ../src/guestfs-actions.pod:4942
6308 #: ../src/guestfs-actions.pod:4961 ../src/guestfs-actions.pod:4980
6309 msgid "The mode actually set is affected by the umask."
6313 #: ../fish/guestfish-actions.pod:713
6318 #: ../fish/guestfish-actions.pod:715
6321 " chown owner group path\n"
6326 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6327 msgid "Change the file owner to C<owner> and group to C<group>."
6331 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567
6332 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3804
6334 "Only numeric uid and gid are supported. If you want to use names, you will "
6335 "need to locate and parse the password file yourself (Augeas support makes "
6336 "this relatively easy)."
6340 #: ../fish/guestfish-actions.pod:723
6345 #: ../fish/guestfish-actions.pod:725
6348 " command 'arguments ...'\n"
6353 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6355 "This call runs a command from the guest filesystem. The filesystem must be "
6356 "mounted, and must contain a compatible operating system (ie. something "
6357 "Linux, with the same or compatible processor architecture)."
6361 #: ../fish/guestfish-actions.pod:732
6363 "The single parameter is an argv-style list of arguments. The first element "
6364 "is the name of the program to run. Subsequent elements are parameters. The "
6365 "list must be non-empty (ie. must contain a program name). Note that the "
6366 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6370 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6371 msgid "The return value is anything printed to I<stdout> by the command."
6375 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6377 "If the command returns a non-zero exit status, then this function returns an "
6378 "error message. The error message string is the content of I<stderr> from "
6383 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6385 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6386 "bin>. If you require a program from another location, you should provide "
6387 "the full path in the first parameter."
6391 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6393 "Shared libraries and data files required by the program must be available on "
6394 "filesystems which are mounted in the correct places. It is the caller's "
6395 "responsibility to ensure all filesystems that are needed are mounted at the "
6400 #: ../fish/guestfish-actions.pod:760
6401 msgid "command-lines"
6405 #: ../fish/guestfish-actions.pod:762
6408 " command-lines 'arguments ...'\n"
6413 #: ../fish/guestfish-actions.pod:764
6415 "This is the same as L</command>, but splits the result into a list of lines."
6419 #: ../fish/guestfish-actions.pod:767
6420 msgid "See also: L</sh-lines>"
6424 #: ../fish/guestfish-actions.pod:772
6426 #| msgid "pread-device"
6427 msgid "compress-device-out"
6428 msgstr "pread-device"
6431 #: ../fish/guestfish-actions.pod:774
6434 " compress-device-out ctype device (zdevice|-) [level:..]\n"
6439 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
6441 "This command compresses C<device> and writes it out to the local file "
6446 #: ../fish/guestfish-actions.pod:779
6448 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
6453 #: ../fish/guestfish-actions.pod:786
6456 msgid "compress-out"
6460 #: ../fish/guestfish-actions.pod:788
6463 " compress-out ctype file (zfile|-) [level:..]\n"
6468 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1218
6470 "This command compresses C<file> and writes it out to the local file C<zfile>."
6474 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1221
6476 "The compression program used is controlled by the C<ctype> parameter. "
6477 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
6478 "Some compression types may not be supported by particular builds of "
6479 "libguestfs, in which case you will get an error containing the substring "
6480 "\"not supported\"."
6484 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1227
6486 "The optional C<level> parameter controls compression level. The meaning and "
6487 "default for this parameter depends on the compression program being used."
6491 #: ../fish/guestfish-actions.pod:807
6496 #: ../fish/guestfish-actions.pod:809
6499 " config qemuparam qemuvalue\n"
6504 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1266
6506 "This can be used to add arbitrary qemu command line parameters of the form "
6507 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
6508 "setting some parameters which would interfere with parameters that we use."
6512 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1271
6513 msgid "The first character of C<param> string must be a C<-> (dash)."
6517 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1273
6518 msgid "C<value> can be NULL."
6522 #: ../fish/guestfish-actions.pod:820
6527 #: ../fish/guestfish-actions.pod:822
6530 " copy-size src dest size\n"
6535 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1287
6537 "This command copies exactly C<size> bytes from one source device or file "
6538 "C<src> to another destination device or file C<dest>."
6542 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1290
6544 "Note this will fail if the source is too short or if the destination is not "
6549 #: ../fish/guestfish-actions.pod:830
6554 #: ../fish/guestfish-actions.pod:832
6562 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1309
6564 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6565 "destination filename or destination directory."
6569 #: ../fish/guestfish-actions.pod:837
6574 #: ../fish/guestfish-actions.pod:839
6582 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1323
6584 "This copies a file or directory from C<src> to C<dest> recursively using the "
6589 #: ../fish/guestfish-actions.pod:844
6594 #: ../fish/guestfish-actions.pod:846
6602 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1337
6604 "This command copies from one source device or file C<src> to another "
6605 "destination device or file C<dest>. Normally you would use this to copy to "
6606 "or from a device or partition, for example to duplicate a filesystem."
6610 #: ../fish/guestfish-actions.pod:853
6612 "If the destination is a device, it must be as large or larger than the "
6613 "source file or device, otherwise the copy will fail. This command cannot do "
6614 "partial copies (see L</copy-size>)."
6618 #: ../fish/guestfish-actions.pod:857
6623 #: ../fish/guestfish-actions.pod:859
6633 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1355
6634 msgid "This command runs the C<df> command to report disk space used."
6638 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
6640 "This command is mostly useful for interactive sessions. It is I<not> "
6641 "intended that you try to parse the output string. Use L</statvfs> from "
6646 #: ../fish/guestfish-actions.pod:867
6651 #: ../fish/guestfish-actions.pod:869
6661 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1371
6663 "This command runs the C<df -h> command to report disk space used in human-"
6668 #: ../fish/guestfish-actions.pod:878
6673 #: ../fish/guestfish-actions.pod:880
6683 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1388
6685 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
6686 "This is sometimes useful for extended debugging of problems."
6690 #: ../fish/guestfish-actions.pod:886
6692 "Another way to get the same information is to enable verbose messages with "
6693 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6694 "before running the program."
6698 #: ../fish/guestfish-actions.pod:891
6703 #: ../fish/guestfish-actions.pod:893
6706 " download remotefilename (filename|-)\n"
6711 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
6712 #: ../src/guestfs-actions.pod:1409 ../src/guestfs-actions.pod:1434
6714 "Download file C<remotefilename> and save it as C<filename> on the local "
6719 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4877
6720 #: ../src/guestfs-actions.pod:1412 ../src/guestfs-actions.pod:7383
6721 msgid "C<filename> can also be a named pipe."
6725 #: ../fish/guestfish-actions.pod:900
6726 msgid "See also L</upload>, L</cat>."
6730 #: ../fish/guestfish-actions.pod:904
6731 msgid "download-offset"
6732 msgstr "download-offset"
6735 #: ../fish/guestfish-actions.pod:906
6738 " download-offset remotefilename (filename|-) offset size\n"
6743 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1437
6745 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6746 "region must be within the file or device)."
6750 #: ../fish/guestfish-actions.pod:914
6752 "Note that there is no limit on the amount of data that can be downloaded "
6753 "with this call, unlike with L</pread>, and this call always reads the full "
6754 "amount unless an error occurs."
6758 #: ../fish/guestfish-actions.pod:919
6759 msgid "See also L</download>, L</pread>."
6763 #: ../fish/guestfish-actions.pod:923
6768 #: ../fish/guestfish-actions.pod:925
6771 " drop-caches whattodrop\n"
6776 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1462
6778 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6779 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
6780 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6784 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1467
6785 msgid "Setting C<whattodrop> to 3 should drop everything."
6789 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1469
6791 "This automatically calls L<sync(2)> before the operation, so that the "
6792 "maximum guest memory is freed."
6796 #: ../fish/guestfish-actions.pod:937
6801 #: ../fish/guestfish-actions.pod:939
6811 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1482
6813 "This command runs the C<du -s> command to estimate file space usage for "
6818 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1485
6820 "C<path> can be a file or a directory. If C<path> is a directory then the "
6821 "estimate includes the contents of the directory and all subdirectories "
6826 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1489
6828 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6832 #: ../fish/guestfish-actions.pod:951
6837 #: ../fish/guestfish-actions.pod:953
6840 " e2fsck-f device\n"
6845 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1507
6847 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6848 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6853 #: ../fish/guestfish-actions.pod:959
6855 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
6856 "should use L</fsck>."
6860 #: ../fish/guestfish-actions.pod:962
6865 #: ../fish/guestfish-actions.pod:964
6868 " echo-daemon 'words ...'\n"
6873 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1524
6875 "This command concatenates the list of C<words> passed with single spaces "
6876 "between them and returns the resulting string."
6880 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1527
6881 msgid "You can use this command to test the connection through to the daemon."
6885 #: ../fish/guestfish-actions.pod:971
6886 msgid "See also L</ping-daemon>."
6890 #: ../fish/guestfish-actions.pod:973
6895 #: ../fish/guestfish-actions.pod:975
6898 " egrep regex path\n"
6903 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1543
6905 "This calls the external C<egrep> program and returns the matching lines."
6909 #: ../fish/guestfish-actions.pod:983
6914 #: ../fish/guestfish-actions.pod:985
6917 " egrepi regex path\n"
6922 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1562
6924 "This calls the external C<egrep -i> program and returns the matching lines."
6928 #: ../fish/guestfish-actions.pod:993
6933 #: ../fish/guestfish-actions.pod:995
6936 " equal file1 file2\n"
6939 " equal файл1 файл2\n"
6943 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1581
6945 "This compares the two files C<file1> and C<file2> and returns true if their "
6946 "content is exactly equal, or false otherwise."
6950 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1584
6951 msgid "The external L<cmp(1)> program is used for the comparison."
6955 #: ../fish/guestfish-actions.pod:1002
6960 #: ../fish/guestfish-actions.pod:1004
6970 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1596
6972 "This returns C<true> if and only if there is a file, directory (or anything) "
6973 "with the given C<path> name."
6977 #: ../fish/guestfish-actions.pod:1009
6978 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6979 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6982 #: ../fish/guestfish-actions.pod:1011
6987 #: ../fish/guestfish-actions.pod:1013
6990 " fallocate path len\n"
6993 " fallocate шлях довжина\n"
6997 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
6998 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:1638
7000 "This command preallocates a file (containing zero bytes) named C<path> of "
7001 "size C<len> bytes. If the file exists already, it is overwritten."
7005 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1623
7007 "Do not confuse this with the guestfish-specific C<alloc> command which "
7008 "allocates a file in the host and attaches it as a device."
7012 #: ../fish/guestfish-actions.pod:1023
7014 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7019 #: ../fish/guestfish-actions.pod:1030
7021 msgstr "fallocate64"
7024 #: ../fish/guestfish-actions.pod:1032
7027 " fallocate64 path len\n"
7030 " fallocate64 шлях довжина\n"
7034 #: ../fish/guestfish-actions.pod:1038
7036 "Note that this call allocates disk blocks for the file. To create a sparse "
7037 "file use L</truncate-size> instead."
7041 #: ../fish/guestfish-actions.pod:1041
7043 "The deprecated call L</fallocate> does the same, but owing to an oversight "
7044 "it only allowed 30 bit lengths to be specified, effectively limiting the "
7045 "maximum size of files created through that call to 1GB."
7049 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1650
7051 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7052 "commands which create a file in the host and attach it as a device."
7056 #: ../fish/guestfish-actions.pod:1050
7061 #: ../fish/guestfish-actions.pod:1052
7064 " fgrep pattern path\n"
7067 " fgrep шаблон шлях\n"
7071 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1665
7073 "This calls the external C<fgrep> program and returns the matching lines."
7077 #: ../fish/guestfish-actions.pod:1060
7082 #: ../fish/guestfish-actions.pod:1062
7085 " fgrepi pattern path\n"
7088 " fgrepi шаблон шлях\n"
7092 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1684
7094 "This calls the external C<fgrep -i> program and returns the matching lines."
7098 #: ../fish/guestfish-actions.pod:1070
7103 #: ../fish/guestfish-actions.pod:1072
7113 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1702
7115 "This call uses the standard L<file(1)> command to determine the type or "
7116 "contents of the file."
7120 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1705
7122 "This call will also transparently look inside various types of compressed "
7127 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1708
7129 "The exact command which runs is C<file -zb path>. Note in particular that "
7130 "the filename is not prepended to the output (the I<-b> option)."
7134 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1712
7136 "The output depends on the output of the underlying L<file(1)> command and it "
7137 "can change in future in ways beyond our control. In other words, the output "
7138 "is not guaranteed by the ABI."
7142 #: ../fish/guestfish-actions.pod:1088
7144 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7145 "(etc), L</is-zero>."
7149 #: ../fish/guestfish-actions.pod:1091
7150 msgid "file-architecture"
7151 msgstr "file-architecture"
7154 #: ../fish/guestfish-actions.pod:1093
7157 " file-architecture filename\n"
7160 " file-architecture назва_файла\n"
7164 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1730
7166 "This detects the architecture of the binary C<filename>, and returns it if "
7171 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1733
7172 msgid "Currently defined architectures are:"
7176 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1737
7181 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1739
7183 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7184 "irrespective of the precise processor requirements of the binary."
7188 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1742
7193 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1744
7194 msgid "64 bit x86-64."
7198 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1746
7203 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1748
7204 msgid "32 bit SPARC."
7208 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1750
7213 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1752
7214 msgid "64 bit SPARC V9 and above."
7218 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1754
7223 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1756
7224 msgid "Intel Itanium."
7225 msgstr "Intel Itanium."
7228 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1758
7233 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1760
7234 msgid "32 bit Power PC."
7238 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1762
7243 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1764
7244 msgid "64 bit Power PC."
7248 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1768
7249 msgid "Libguestfs may return other architecture strings in future."
7253 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1770
7254 msgid "The function works on at least the following types of files:"
7258 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1776
7259 msgid "many types of Un*x and Linux binary"
7263 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1780
7264 msgid "many types of Un*x and Linux shared library"
7268 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1784
7269 msgid "Windows Win32 and Win64 binaries"
7273 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1788
7274 msgid "Windows Win32 and Win64 DLLs"
7278 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1790
7279 msgid "Win32 binaries and DLLs return C<i386>."
7283 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1792
7284 msgid "Win64 binaries and DLLs return C<x86_64>."
7288 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1796
7289 msgid "Linux kernel modules"
7293 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1800
7294 msgid "Linux new-style initrd images"
7298 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1804
7299 msgid "some non-x86 Linux vmlinuz kernels"
7303 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1808
7304 msgid "What it can't do currently:"
7308 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1814
7309 msgid "static libraries (libfoo.a)"
7313 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1818
7314 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7318 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1822
7319 msgid "x86 Linux vmlinuz kernels"
7323 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1824
7325 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7326 "compressed code, and are horribly hard to unpack. If you want to find the "
7327 "architecture of a kernel, use the architecture of the associated initrd or "
7328 "kernel module(s) instead."
7332 #: ../fish/guestfish-actions.pod:1196
7337 #: ../fish/guestfish-actions.pod:1198
7347 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1842
7348 msgid "This command returns the size of C<file> in bytes."
7352 #: ../fish/guestfish-actions.pod:1202
7354 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7355 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
7359 #: ../fish/guestfish-actions.pod:1206
7364 #: ../fish/guestfish-actions.pod:1208
7367 " fill c len path\n"
7372 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1860
7374 "This command creates a new file called C<path>. The initial content of the "
7375 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7380 #: ../fish/guestfish-actions.pod:1214
7382 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7383 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
7388 #: ../fish/guestfish-actions.pod:1219
7389 msgid "fill-pattern"
7390 msgstr "fill-pattern"
7393 #: ../fish/guestfish-actions.pod:1221
7396 " fill-pattern pattern len path\n"
7401 #: ../fish/guestfish-actions.pod:1223
7403 "This function is like L</fill> except that it creates a new file of length "
7404 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
7405 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7410 #: ../fish/guestfish-actions.pod:1228
7415 #: ../fish/guestfish-actions.pod:1230
7425 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1906
7427 "This command lists out all files and directories, recursively, starting at "
7428 "C<directory>. It is essentially equivalent to running the shell command "
7429 "C<find directory -print> but some post-processing happens on the output, "
7434 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1911
7436 "This returns a list of strings I<without any prefix>. Thus if the directory "
7441 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1914
7451 #: ../fish/guestfish-actions.pod:1244
7452 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7456 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1921
7467 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1926
7468 msgid "If C<directory> is not a directory, then this command returns an error."
7472 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1929
7473 msgid "The returned list is sorted."
7477 #: ../fish/guestfish-actions.pod:1257
7478 msgid "See also L</find0>."
7479 msgstr "Див. також L</find0>."
7482 #: ../fish/guestfish-actions.pod:1262
7487 #: ../fish/guestfish-actions.pod:1264
7490 " find0 directory (files|-)\n"
7493 " find0 каталог (файли|-)\n"
7497 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1949
7499 "This command lists out all files and directories, recursively, starting at "
7500 "C<directory>, placing the resulting list in the external file called "
7505 #: ../fish/guestfish-actions.pod:1270
7507 "This command works the same way as L</find> with the following exceptions:"
7511 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1960
7512 msgid "The resulting list is written to an external file."
7516 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1964
7518 "Items (filenames) in the result are separated by C<\\0> characters. See "
7519 "L<find(1)> option I<-print0>."
7523 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1969
7524 msgid "This command is not limited in the number of names that it can return."
7528 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1974
7529 msgid "The result list is not sorted."
7533 #: ../fish/guestfish-actions.pod:1297
7534 msgid "findfs-label"
7535 msgstr "findfs-label"
7538 #: ../fish/guestfish-actions.pod:1299
7541 " findfs-label label\n"
7544 " findfs-label мітка\n"
7548 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1988
7550 "This command searches the filesystems and returns the one which has the "
7551 "given label. An error is returned if no such filesystem can be found."
7555 #: ../fish/guestfish-actions.pod:1305
7556 msgid "To find the label of a filesystem, use L</vfs-label>."
7557 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7560 #: ../fish/guestfish-actions.pod:1307
7562 msgstr "findfs-uuid"
7565 #: ../fish/guestfish-actions.pod:1309
7568 " findfs-uuid uuid\n"
7571 " findfs-uuid uuid\n"
7575 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2005
7577 "This command searches the filesystems and returns the one which has the "
7578 "given UUID. An error is returned if no such filesystem can be found."
7582 #: ../fish/guestfish-actions.pod:1315
7583 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7584 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7587 #: ../fish/guestfish-actions.pod:1317
7592 #: ../fish/guestfish-actions.pod:1319
7595 " fsck fstype device\n"
7598 " fsck тип_файлової_системи пристрій\n"
7602 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2023
7604 "This runs the filesystem checker (fsck) on C<device> which should have "
7605 "filesystem type C<fstype>."
7609 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2026
7611 "The returned integer is the status. See L<fsck(8)> for the list of status "
7612 "codes from C<fsck>."
7616 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2035
7617 msgid "Multiple status codes can be summed together."
7621 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2039
7623 "A non-zero return code can mean \"success\", for example if errors have been "
7624 "corrected on the filesystem."
7628 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2044
7629 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7633 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2049
7635 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7639 #: ../fish/guestfish-actions.pod:1349
7644 #: ../fish/guestfish-actions.pod:1351
7654 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2060
7656 "Return the additional kernel options which are added to the guest kernel "
7661 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2063
7662 msgid "If C<NULL> then no options are added."
7666 #: ../fish/guestfish-actions.pod:1358
7667 msgid "get-attach-method"
7668 msgstr "get-attach-method"
7671 #: ../fish/guestfish-actions.pod:1360
7674 " get-attach-method\n"
7677 " get-attach-method\n"
7681 #: ../fish/guestfish-actions.pod:1362
7682 msgid "Return the current attach method. See L</set-attach-method>."
7686 #: ../fish/guestfish-actions.pod:1364
7687 msgid "get-autosync"
7688 msgstr "get-autosync"
7691 #: ../fish/guestfish-actions.pod:1366
7701 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2088
7702 msgid "Get the autosync flag."
7706 #: ../fish/guestfish-actions.pod:1370
7711 #: ../fish/guestfish-actions.pod:1372
7721 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2099
7722 msgid "Return the direct appliance mode flag."
7726 #: ../fish/guestfish-actions.pod:1376
7728 msgstr "get-e2label"
7731 #: ../fish/guestfish-actions.pod:1378
7734 " get-e2label device\n"
7737 " get-e2label пристрій\n"
7741 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2118
7743 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7747 #: ../fish/guestfish-actions.pod:1383
7749 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7754 #: ../fish/guestfish-actions.pod:1390
7759 #: ../fish/guestfish-actions.pod:1392
7762 " get-e2uuid device\n"
7765 " get-e2uuid пристрій\n"
7769 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2139
7771 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7775 #: ../fish/guestfish-actions.pod:1397
7777 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7782 #: ../fish/guestfish-actions.pod:1404
7784 msgstr "get-memsize"
7787 #: ../fish/guestfish-actions.pod:1406
7797 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2152
7799 "This gets the memory size in megabytes allocated to the qemu subprocess."
7803 #: ../fish/guestfish-actions.pod:1411
7805 "If L</set-memsize> was not called on this handle, and if "
7806 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7807 "value for memsize."
7811 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
7812 #: ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4327
7813 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:2251
7814 #: ../src/guestfs-actions.pod:6430 ../src/guestfs-actions.pod:6556
7816 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7820 #: ../fish/guestfish-actions.pod:1418
7822 msgstr "get-network"
7825 #: ../fish/guestfish-actions.pod:1420
7835 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2171
7836 msgid "This returns the enable network flag."
7840 #: ../fish/guestfish-actions.pod:1424
7845 #: ../fish/guestfish-actions.pod:1426
7855 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2182
7856 msgid "Return the current search path."
7860 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2184
7862 "This is always non-NULL. If it wasn't set already, then this will return "
7867 #: ../fish/guestfish-actions.pod:1433
7872 #: ../fish/guestfish-actions.pod:1435
7880 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2197
7881 msgid "This returns the process group flag."
7885 #: ../fish/guestfish-actions.pod:1439
7890 #: ../fish/guestfish-actions.pod:1441
7895 #: ../fish/guestfish-actions.pod:1443
7905 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2208
7907 "Return the process ID of the qemu subprocess. If there is no qemu "
7908 "subprocess, then this will return an error."
7912 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2211
7913 msgid "This is an internal call used for debugging and testing."
7917 #: ../fish/guestfish-actions.pod:1450
7922 #: ../fish/guestfish-actions.pod:1452
7932 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2222
7933 msgid "Return the current qemu binary."
7937 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2224
7939 "This is always non-NULL. If it wasn't set already, then this will return "
7940 "the default qemu binary name."
7944 #: ../fish/guestfish-actions.pod:1459
7945 msgid "get-recovery-proc"
7946 msgstr "get-recovery-proc"
7949 #: ../fish/guestfish-actions.pod:1461
7952 " get-recovery-proc\n"
7955 " get-recovery-proc\n"
7959 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2237
7960 msgid "Return the recovery process enabled flag."
7964 #: ../fish/guestfish-actions.pod:1465
7966 msgstr "get-selinux"
7969 #: ../fish/guestfish-actions.pod:1467
7979 #: ../fish/guestfish-actions.pod:1469
7981 "This returns the current setting of the selinux flag which is passed to the "
7982 "appliance at boot time. See L</set-selinux>."
7986 #: ../fish/guestfish-actions.pod:1475
7993 #: ../fish/guestfish-actions.pod:1477
8006 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2263
8007 msgid "This returns the number of virtual CPUs assigned to the appliance."
8011 #: ../fish/guestfish-actions.pod:1481
8016 #: ../fish/guestfish-actions.pod:1483
8026 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2272
8028 "This returns the current state as an opaque integer. This is only useful "
8029 "for printing debug and internal error messages."
8033 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434
8034 #: ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490
8035 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2275
8036 #: ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:3610
8037 #: ../src/guestfs-actions.pod:3671 ../src/guestfs-actions.pod:3698
8038 msgid "For more information on states, see L<guestfs(3)>."
8042 #: ../fish/guestfish-actions.pod:1490
8047 #: ../fish/guestfish-actions.pod:1492
8057 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2286
8058 msgid "Return the command trace flag."
8062 #: ../fish/guestfish-actions.pod:1496
8067 #: ../fish/guestfish-actions.pod:1498
8077 #: ../fish/guestfish-actions.pod:1500
8079 "Return the current umask. By default the umask is C<022> unless it has been "
8080 "set by calling L</umask>."
8084 #: ../fish/guestfish-actions.pod:1503
8086 msgstr "get-verbose"
8089 #: ../fish/guestfish-actions.pod:1505
8099 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2309
8100 msgid "This returns the verbose messages flag."
8104 #: ../fish/guestfish-actions.pod:1509
8109 #: ../fish/guestfish-actions.pod:1511
8119 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2320
8120 msgid "This gets the SELinux security context of the daemon."
8124 #: ../fish/guestfish-actions.pod:1515
8125 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8129 #: ../fish/guestfish-actions.pod:1518
8134 #: ../fish/guestfish-actions.pod:1520
8137 " getxattr path name\n"
8140 " getxattr шлях назва\n"
8144 #: ../fish/guestfish-actions.pod:1522
8146 "Get a single extended attribute from file C<path> named C<name>. This call "
8147 "follows symlinks. If you want to lookup an extended attribute for the "
8148 "symlink itself, use L</lgetxattr>."
8152 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
8154 "Normally it is better to get all extended attributes from a file in one go "
8155 "by calling L</getxattrs>. However some Linux filesystem implementations are "
8156 "buggy and do not provide a way to list out attributes. For these "
8157 "filesystems (notably ntfs-3g) you have to know the names of the extended "
8158 "attributes you want in advance and call this function."
8162 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586
8163 #: ../src/guestfs-actions.pod:2349 ../src/guestfs-actions.pod:3831
8165 "Extended attribute values are blobs of binary data. If there is no extended "
8166 "attribute named C<name>, this returns an error."
8170 #: ../fish/guestfish-actions.pod:1536
8171 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8172 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8175 #: ../fish/guestfish-actions.pod:1538
8180 #: ../fish/guestfish-actions.pod:1540
8190 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2366
8192 "This call lists the extended attributes of the file or directory C<path>."
8196 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2369
8198 "At the system call level, this is a combination of the L<listxattr(2)> and "
8199 "L<getxattr(2)> calls."
8203 #: ../fish/guestfish-actions.pod:1548
8204 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8205 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
8208 #: ../fish/guestfish-actions.pod:1550
8210 msgstr "glob-expand"
8213 #: ../fish/guestfish-actions.pod:1552
8216 " glob-expand pattern\n"
8219 " glob-expand шаблон\n"
8223 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2386
8225 "This command searches for all the pathnames matching C<pattern> according to "
8226 "the wildcard expansion rules used by the shell."
8230 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2390
8232 "If no paths match, then this returns an empty list (note: not an error)."
8236 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2393
8238 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8239 "GLOB_BRACE>. See that manual page for more details."
8243 #: ../fish/guestfish-actions.pod:1565
8248 #: ../fish/guestfish-actions.pod:1567
8251 " grep regex path\n"
8254 " grepi формальний_вираз шлях\n"
8258 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2410
8259 msgid "This calls the external C<grep> program and returns the matching lines."
8263 #: ../fish/guestfish-actions.pod:1575
8268 #: ../fish/guestfish-actions.pod:1577
8271 " grepi regex path\n"
8274 " grepi формальний_вираз шлях\n"
8278 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2429
8280 "This calls the external C<grep -i> program and returns the matching lines."
8284 #: ../fish/guestfish-actions.pod:1585
8285 msgid "grub-install"
8286 msgstr "grub-install"
8289 #: ../fish/guestfish-actions.pod:1587
8292 " grub-install root device\n"
8295 " grub-install кореневий пристрій\n"
8299 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2448
8301 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8302 "with the root directory being C<root>."
8306 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2457
8308 "There is currently no way in the API to install grub2, which is used by most "
8309 "modern Linux guests. It is possible to run the grub2 command from the "
8310 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8314 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2464
8316 "This uses C<grub-install> from the host. Unfortunately grub is not always "
8317 "compatible with itself, so this only works in rather narrow circumstances. "
8318 "Careful testing with each guest version is advisable."
8322 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2471
8324 "If grub-install reports the error \"No suitable drive was found in the "
8325 "generated device map.\" it may be that you need to create a C</boot/grub/"
8326 "device.map> file first that contains the mapping between grub device names "
8327 "and Linux device names. It is usually sufficient to create a file "
8332 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2478
8340 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2480
8341 msgid "replacing C</dev/vda> with the name of the installation device."
8345 #: ../fish/guestfish-actions.pod:1625
8350 #: ../fish/guestfish-actions.pod:1627
8360 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2494
8362 "This command returns up to the first 10 lines of a file as a list of strings."
8366 #: ../fish/guestfish-actions.pod:1635
8371 #: ../fish/guestfish-actions.pod:1637
8374 " head-n nrlines path\n"
8379 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2513
8381 "If the parameter C<nrlines> is a positive number, this returns the first "
8382 "C<nrlines> lines of the file C<path>."
8386 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2516
8388 "If the parameter C<nrlines> is a negative number, this returns lines from "
8389 "the file C<path>, excluding the last C<nrlines> lines."
8393 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4717
8394 #: ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:7142
8395 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8399 #: ../fish/guestfish-actions.pod:1650
8404 #: ../fish/guestfish-actions.pod:1652
8414 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2536
8416 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
8417 "readable, canonical hex dump of the file."
8421 #: ../fish/guestfish-actions.pod:1660
8426 #: ../fish/guestfish-actions.pod:1662
8429 " initrd-cat initrdpath filename\n"
8432 " initrd-cat шлях_initrd назва_файла\n"
8436 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2555
8438 "This command unpacks the file C<filename> from the initrd file called "
8439 "C<initrdpath>. The filename must be given I<without> the initial C</> "
8444 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2559
8446 "For example, in guestfish you could use the following command to examine the "
8447 "boot script (usually called C</init>) contained in a Linux initrd or "
8452 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2563
8455 " initrd-cat /boot/initrd-<version>.img init\n"
8460 #: ../fish/guestfish-actions.pod:1674
8461 msgid "See also L</initrd-list>."
8462 msgstr "Див. також L</initrd-list>."
8465 #: ../fish/guestfish-actions.pod:1679
8467 msgstr "initrd-list"
8470 #: ../fish/guestfish-actions.pod:1681
8473 " initrd-list path\n"
8476 " initrd-list шлях\n"
8480 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2582
8481 msgid "This command lists out files contained in an initrd."
8485 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2584
8487 "The files are listed without any initial C</> character. The files are "
8488 "listed in the order they appear (not necessarily alphabetical). Directory "
8489 "names are listed as separate items."
8493 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2588
8495 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8496 "initrd. We I<only> support the newer initramfs format (compressed cpio "
8501 #: ../fish/guestfish-actions.pod:1693
8502 msgid "inotify-add-watch"
8503 msgstr "inotify-add-watch"
8506 #: ../fish/guestfish-actions.pod:1695
8509 " inotify-add-watch path mask\n"
8512 " inotify-add-watch шлях маска\n"
8516 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2605
8517 msgid "Watch C<path> for the events listed in C<mask>."
8521 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2607
8523 "Note that if C<path> is a directory then events within that directory are "
8524 "watched, but this does I<not> happen recursively (in subdirectories)."
8528 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2611
8530 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8531 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8535 #: ../fish/guestfish-actions.pod:1707
8536 msgid "inotify-close"
8537 msgstr "inotify-close"
8540 #: ../fish/guestfish-actions.pod:1709
8550 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2624
8552 "This closes the inotify handle which was previously opened by inotify_init. "
8553 "It removes all watches, throws away any pending events, and deallocates all "
8558 #: ../fish/guestfish-actions.pod:1715
8559 msgid "inotify-files"
8560 msgstr "inotify-files"
8563 #: ../fish/guestfish-actions.pod:1717
8573 #: ../fish/guestfish-actions.pod:1719
8575 "This function is a helpful wrapper around L</inotify-read> which just "
8576 "returns a list of pathnames of objects that were touched. The returned "
8577 "pathnames are sorted and deduplicated."
8581 #: ../fish/guestfish-actions.pod:1723
8582 msgid "inotify-init"
8583 msgstr "inotify-init"
8586 #: ../fish/guestfish-actions.pod:1725
8589 " inotify-init maxevents\n"
8594 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2653
8596 "This command creates a new inotify handle. The inotify subsystem can be "
8597 "used to notify events which happen to objects in the guest filesystem."
8601 #: ../fish/guestfish-actions.pod:1731
8603 "C<maxevents> is the maximum number of events which will be queued up between "
8604 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
8605 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
8606 "default was 16384 events. Beyond this limit, the kernel throws away events, "
8607 "but records the fact that it threw them away by setting a flag "
8608 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8612 #: ../fish/guestfish-actions.pod:1741
8614 "Before any events are generated, you have to add some watches to the "
8615 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8616 "L</inotify-watch-all>."
8620 #: ../fish/guestfish-actions.pod:1747
8622 "Queued up events should be read periodically by calling L</inotify-read> (or "
8623 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
8624 "If you don't read the events out often enough then you risk the internal "
8625 "queue overflowing."
8629 #: ../fish/guestfish-actions.pod:1754
8631 "The handle should be closed after use by calling L</inotify-close>. This "
8632 "also removes any watches automatically."
8636 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2684
8638 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8639 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
8640 "that there is one global inotify handle per libguestfs instance."
8644 #: ../fish/guestfish-actions.pod:1763
8645 msgid "inotify-read"
8646 msgstr "inotify-read"
8649 #: ../fish/guestfish-actions.pod:1765
8659 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2698
8661 "Return the complete queue of events that have happened since the previous "
8666 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2701
8667 msgid "If no events have happened, this returns an empty list."
8671 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2703
8673 "I<Note>: In order to make sure that all events have been read, you must call "
8674 "this function repeatedly until it returns an empty list. The reason is that "
8675 "the call will read events up to the maximum appliance-to-host message size "
8676 "and leave remaining events in the queue."
8680 #: ../fish/guestfish-actions.pod:1778
8681 msgid "inotify-rm-watch"
8682 msgstr "inotify-rm-watch"
8685 #: ../fish/guestfish-actions.pod:1780
8688 " inotify-rm-watch wd\n"
8693 #: ../fish/guestfish-actions.pod:1782
8694 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
8698 #: ../fish/guestfish-actions.pod:1785
8699 msgid "inspect-get-arch"
8700 msgstr "inspect-get-arch"
8703 #: ../fish/guestfish-actions.pod:1787
8706 " inspect-get-arch root\n"
8709 " inspect-get-arch корінь\n"
8713 #: ../fish/guestfish-actions.pod:1789
8715 "This returns the architecture of the inspected operating system. The "
8716 "possible return values are listed under L</file-architecture>."
8720 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2738
8722 "If the architecture could not be determined, then the string C<unknown> is "
8727 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883
8728 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974
8729 #: ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119
8730 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154
8731 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226
8732 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252
8733 #: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272
8734 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380
8735 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2741
8736 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2939
8737 #: ../src/guestfs-actions.pod:2958 ../src/guestfs-actions.pod:3089
8738 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3200
8739 #: ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3274
8740 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3334
8741 #: ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3371
8742 #: ../src/guestfs-actions.pod:3387 ../src/guestfs-actions.pod:3405
8743 #: ../src/guestfs-actions.pod:3507 ../src/guestfs-actions.pod:3548
8744 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8748 #: ../fish/guestfish-actions.pod:1798
8749 msgid "inspect-get-distro"
8750 msgstr "inspect-get-distro"
8753 #: ../fish/guestfish-actions.pod:1800
8756 " inspect-get-distro root\n"
8759 " inspect-get-distro корінь\n"
8763 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2754
8765 "This returns the distro (distribution) of the inspected operating system."
8769 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2757
8770 msgid "Currently defined distros are:"
8774 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2761
8775 msgid "\"archlinux\""
8776 msgstr "\"archlinux\""
8779 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2763
8781 msgstr "Arch Linux."
8784 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2765
8789 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2767
8794 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2769
8799 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2771
8804 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2773
8809 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2775
8814 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2777
8819 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2779
8824 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2781
8825 msgid "\"linuxmint\""
8826 msgstr "\"linuxmint\""
8829 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2783
8831 msgstr "Linux Mint."
8834 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2785
8835 msgid "\"mandriva\""
8836 msgstr "\"mandriva\""
8839 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2787
8844 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2789
8849 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2791
8854 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2793
8859 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2795
8864 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2797
8865 msgid "\"redhat-based\""
8866 msgstr "\"redhat-based\""
8869 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2799
8870 msgid "Some Red Hat-derived distro."
8871 msgstr "Дистрибутив, що походить від Red Hat."
8874 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2801
8879 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2803
8880 msgid "Red Hat Enterprise Linux."
8884 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2805
8885 msgid "\"scientificlinux\""
8889 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2807
8890 msgid "Scientific Linux."
8894 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2809
8895 msgid "\"slackware\""
8899 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2811
8904 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2813
8906 #| msgid "\"linux\""
8907 msgid "\"ttylinux\""
8911 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2815
8913 #| msgid "\"linux\""
8918 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2817
8923 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2819
8928 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953
8929 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2821
8930 #: ../src/guestfs-actions.pod:2930 ../src/guestfs-actions.pod:3305
8932 msgstr "\"unknown\""
8935 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2823
8936 msgid "The distro could not be determined."
8937 msgstr "Дистрибутив, тип якого не вдалося визначити."
8940 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209
8941 #: ../src/guestfs-actions.pod:2825 ../src/guestfs-actions.pod:3297
8943 msgstr "\"windows\""
8946 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2827
8948 "Windows does not have distributions. This string is returned if the OS type "
8953 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959
8954 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2832
8955 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
8957 "Future versions of libguestfs may return other strings here. The caller "
8958 "should be prepared to handle any string."
8962 #: ../fish/guestfish-actions.pod:1885
8963 msgid "inspect-get-drive-mappings"
8967 #: ../fish/guestfish-actions.pod:1887
8970 " inspect-get-drive-mappings root\n"
8975 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2848
8977 "This call is useful for Windows which uses a primitive system of assigning "
8978 "drive letters (like \"C:\") to partitions. This inspection API examines the "
8979 "Windows Registry to find out how disks/partitions are mapped to drive "
8980 "letters, and returns a hash table as in the example below:"
8984 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2854
8994 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2858
8996 "Note that keys are drive letters. For Windows, the key is case insensitive "
8997 "and just contains the drive letter, without the customary colon separator "
9002 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2862
9004 "In future we may support other operating systems that also used drive "
9005 "letters, but the keys for those might not be case insensitive and might be "
9006 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
9011 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2867
9013 "For Windows guests, currently only hard drive mappings are returned. "
9014 "Removable disks (eg. DVD-ROMs) are ignored."
9018 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2870
9020 "For guests that do not use drive mappings, or if the drive mappings could "
9021 "not be determined, this returns an empty hash table."
9025 #: ../fish/guestfish-actions.pod:1914
9027 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9028 "get-mountpoints>, L</inspect-get-filesystems>."
9032 #: ../fish/guestfish-actions.pod:1918
9033 msgid "inspect-get-filesystems"
9034 msgstr "inspect-get-filesystems"
9037 #: ../fish/guestfish-actions.pod:1920
9040 " inspect-get-filesystems root\n"
9043 " inspect-get-filesystems корінь\n"
9047 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2891
9049 "This returns a list of all the filesystems that we think are associated with "
9050 "this operating system. This includes the root filesystem, other ordinary "
9051 "filesystems, and non-mounted devices like swap partitions."
9055 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2896
9057 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9058 "to be shared between operating systems."
9062 #: ../fish/guestfish-actions.pod:1930
9064 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9069 #: ../fish/guestfish-actions.pod:1933
9070 msgid "inspect-get-format"
9071 msgstr "inspect-get-format"
9074 #: ../fish/guestfish-actions.pod:1935
9077 " inspect-get-format root\n"
9080 " inspect-get-format корінь\n"
9084 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2914
9086 "This returns the format of the inspected operating system. You can use it "
9087 "to detect install images, live CDs and similar."
9091 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2917
9092 msgid "Currently defined formats are:"
9096 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2921
9097 msgid "\"installed\""
9098 msgstr "\"installed\""
9101 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2923
9102 msgid "This is an installed operating system."
9103 msgstr "Це встановлена операційна система."
9106 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2925
9107 msgid "\"installer\""
9111 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2927
9113 "The disk image being inspected is not an installed operating system, but a "
9114 "I<bootable> install disk, live CD, or similar."
9118 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2932
9119 msgid "The format of this disk image is not known."
9123 #: ../fish/guestfish-actions.pod:1964
9124 msgid "inspect-get-hostname"
9125 msgstr "inspect-get-hostname"
9128 #: ../fish/guestfish-actions.pod:1966
9131 " inspect-get-hostname root\n"
9134 " inspect-get-hostname корінь\n"
9138 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
9140 "This function returns the hostname of the operating system as found by "
9141 "inspection of the guest's configuration files."
9145 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2955
9147 "If the hostname could not be determined, then the string C<unknown> is "
9152 #: ../fish/guestfish-actions.pod:1976
9153 msgid "inspect-get-icon"
9157 #: ../fish/guestfish-actions.pod:1978
9160 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9165 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2981
9167 "This function returns an icon corresponding to the inspected operating "
9168 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
9169 "to PNG if necessary)."
9173 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2985
9175 "If it was not possible to get an icon this function returns a zero-length "
9176 "(non-NULL) buffer. I<Callers must check for this case>."
9180 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2988
9182 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9183 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9184 "this file will be returned. You can disable favicons by passing the "
9185 "optional C<favicon> boolean as false (default is true)."
9189 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:2994
9191 "If finding the favicon fails, then we look in other places in the guest for "
9196 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:2997
9198 "If the optional C<highquality> boolean is true then only high quality icons "
9199 "are returned, which means only icons of high resolution with an alpha "
9200 "channel. The default (false) is to return any icon we can, even if it is of "
9201 "substandard quality."
9205 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3008
9207 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9208 "before you call this, since it needs to read information from the guest "
9209 "filesystem during the call."
9213 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3014
9215 "B<Security:> The icon data comes from the untrusted guest, and should be "
9216 "treated with caution. PNG files have been known to contain exploits. "
9217 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9218 "trying to process or display the icon."
9222 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3022
9224 "The PNG image returned can be any size. It might not be square. Libguestfs "
9225 "tries to return the largest, highest quality icon available. The "
9226 "application must scale the icon to the required size."
9230 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3029
9232 "Extracting icons from Windows guests requires the external C<wrestool> "
9233 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9234 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
9235 "installed separately."
9239 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3036
9241 "Operating system icons are usually trademarks. Seek legal advice before "
9242 "using trademarks in applications."
9246 #: ../fish/guestfish-actions.pod:2042
9247 msgid "inspect-get-major-version"
9248 msgstr "inspect-get-major-version"
9251 #: ../fish/guestfish-actions.pod:2044
9254 " inspect-get-major-version root\n"
9257 " inspect-get-major-version корінь\n"
9261 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3077
9263 "This returns the major version number of the inspected operating system."
9267 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3080
9269 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9270 "popular public names used by the operating system. Notably the operating "
9271 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9272 "1). You can find out the real versions corresponding to releases of Windows "
9273 "by consulting Wikipedia or MSDN."
9277 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067
9278 #: ../src/guestfs-actions.pod:3087 ../src/guestfs-actions.pod:3104
9279 msgid "If the version could not be determined, then C<0> is returned."
9283 #: ../fish/guestfish-actions.pod:2060
9284 msgid "inspect-get-minor-version"
9285 msgstr "inspect-get-minor-version"
9288 #: ../fish/guestfish-actions.pod:2062
9291 " inspect-get-minor-version root\n"
9294 " inspect-get-minor-version корінь\n"
9298 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3101
9300 "This returns the minor version number of the inspected operating system."
9304 #: ../fish/guestfish-actions.pod:2069
9306 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9307 "get-major-version>."
9311 #: ../fish/guestfish-actions.pod:2072
9312 msgid "inspect-get-mountpoints"
9313 msgstr "inspect-get-mountpoints"
9316 #: ../fish/guestfish-actions.pod:2074
9319 " inspect-get-mountpoints root\n"
9322 " inspect-get-mountpoints корінь\n"
9326 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3119
9328 "This returns a hash of where we think the filesystems associated with this "
9329 "operating system should be mounted. Callers should note that this is at "
9330 "best an educated guess made by reading configuration files such as C</etc/"
9331 "fstab>. I<In particular note> that this may return filesystems which are "
9332 "non-existent or not mountable and callers should be prepared to handle or "
9333 "ignore failures if they try to mount them."
9337 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3128
9339 "Each element in the returned hashtable has a key which is the path of the "
9340 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9341 "mounted there (eg. C</dev/sda1>)."
9345 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3133
9347 "Non-mounted devices such as swap devices are I<not> returned in this list."
9351 #: ../fish/guestfish-actions.pod:2093
9353 "For operating systems like Windows which still use drive letters, this call "
9354 "will only return an entry for the first drive \"mounted on\" C</>. For "
9355 "information about the mapping of drive letters to partitions, see L</inspect-"
9356 "get-drive-mappings>."
9360 #: ../fish/guestfish-actions.pod:2099
9362 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9367 #: ../fish/guestfish-actions.pod:2102
9368 msgid "inspect-get-package-format"
9369 msgstr "inspect-get-package-format"
9372 #: ../fish/guestfish-actions.pod:2104
9375 " inspect-get-package-format root\n"
9378 " inspect-get-package-format корінь\n"
9382 #: ../fish/guestfish-actions.pod:2106
9384 "This function and L</inspect-get-package-management> return the package "
9385 "format and package management tool used by the inspected operating system. "
9386 "For example for Fedora these functions would return C<rpm> (package format) "
9387 "and C<yum> (package management)."
9391 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3165
9393 "This returns the string C<unknown> if we could not determine the package "
9394 "format I<or> if the operating system does not have a real packaging system "
9399 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3169
9401 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>. "
9402 "Future versions of libguestfs may return other strings."
9406 #: ../fish/guestfish-actions.pod:2121
9407 msgid "inspect-get-package-management"
9408 msgstr "inspect-get-package-management"
9411 #: ../fish/guestfish-actions.pod:2123
9414 " inspect-get-package-management root\n"
9417 " inspect-get-package-management корінь\n"
9421 #: ../fish/guestfish-actions.pod:2125
9423 "L</inspect-get-package-format> and this function return the package format "
9424 "and package management tool used by the inspected operating system. For "
9425 "example for Fedora these functions would return C<rpm> (package format) and "
9426 "C<yum> (package management)."
9430 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3191
9432 "This returns the string C<unknown> if we could not determine the package "
9433 "management tool I<or> if the operating system does not have a real packaging "
9434 "system (eg. Windows)."
9438 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3195
9440 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9441 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>. Future versions of "
9442 "libguestfs may return other strings."
9446 #: ../fish/guestfish-actions.pod:2142
9447 msgid "inspect-get-product-name"
9448 msgstr "inspect-get-product-name"
9451 #: ../fish/guestfish-actions.pod:2144
9454 " inspect-get-product-name root\n"
9457 " inspect-get-product-name корінь\n"
9461 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3213
9463 "This returns the product name of the inspected operating system. The "
9464 "product name is generally some freeform string which can be displayed to the "
9465 "user, but should not be parsed by programs."
9469 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3218
9471 "If the product name could not be determined, then the string C<unknown> is "
9476 #: ../fish/guestfish-actions.pod:2156
9477 msgid "inspect-get-product-variant"
9481 #: ../fish/guestfish-actions.pod:2158
9484 " inspect-get-product-variant root\n"
9489 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
9490 msgid "This returns the product variant of the inspected operating system."
9494 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3237
9496 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9497 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9498 "is usually a string such as C<Client> or C<Server> (other values are "
9499 "possible). This can be used to distinguish consumer and enterprise versions "
9500 "of Windows that have the same version number (for example, Windows 7 and "
9501 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9502 "the latter is C<Server>)."
9506 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3246
9508 "For enterprise Linux guests, in future we intend this to return the product "
9509 "variant such as C<Desktop>, C<Server> and so on. But this is not "
9510 "implemented at present."
9514 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3250
9516 "If the product variant could not be determined, then the string C<unknown> "
9521 #: ../fish/guestfish-actions.pod:2179
9523 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9524 "get-product-name>, L</inspect-get-major-version>."
9528 #: ../fish/guestfish-actions.pod:2183
9529 msgid "inspect-get-roots"
9530 msgstr "inspect-get-roots"
9533 #: ../fish/guestfish-actions.pod:2185
9536 " inspect-get-roots\n"
9539 " inspect-get-roots\n"
9543 #: ../fish/guestfish-actions.pod:2187
9545 "This function is a convenient way to get the list of root devices, as "
9546 "returned from a previous call to L</inspect-os>, but without redoing the "
9547 "whole inspection process."
9551 #: ../fish/guestfish-actions.pod:2191
9553 "This returns an empty list if either no root devices were found or the "
9554 "caller has not called L</inspect-os>."
9558 #: ../fish/guestfish-actions.pod:2196
9559 msgid "inspect-get-type"
9560 msgstr "inspect-get-type"
9563 #: ../fish/guestfish-actions.pod:2198
9566 " inspect-get-type root\n"
9569 " inspect-get-type корінь\n"
9573 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3288
9575 "This returns the type of the inspected operating system. Currently defined "
9580 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3293
9585 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3295
9586 msgid "Any Linux-based operating system."
9590 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3299
9591 msgid "Any Microsoft Windows operating system."
9595 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3301
9597 msgstr "\"freebsd\""
9600 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3303
9605 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3307
9606 msgid "The operating system type could not be determined."
9610 #: ../fish/guestfish-actions.pod:2228
9611 msgid "inspect-get-windows-current-control-set"
9615 #: ../fish/guestfish-actions.pod:2230
9618 " inspect-get-windows-current-control-set root\n"
9623 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3327
9625 "This returns the Windows CurrentControlSet of the inspected guest. The "
9626 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9630 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3330
9632 "This call assumes that the guest is Windows and that the Registry could be "
9633 "examined by inspection. If this is not the case then an error is returned."
9637 #: ../fish/guestfish-actions.pod:2241
9638 msgid "inspect-get-windows-systemroot"
9639 msgstr "inspect-get-windows-systemroot"
9642 #: ../fish/guestfish-actions.pod:2243
9645 " inspect-get-windows-systemroot root\n"
9648 " inspect-get-windows-systemroot корінь\n"
9652 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3347
9654 "This returns the Windows systemroot of the inspected guest. The systemroot "
9655 "is a directory path such as C</WINDOWS>."
9659 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3350
9661 "This call assumes that the guest is Windows and that the systemroot could be "
9662 "determined by inspection. If this is not the case then an error is returned."
9666 #: ../fish/guestfish-actions.pod:2254
9667 msgid "inspect-is-live"
9668 msgstr "inspect-is-live"
9671 #: ../fish/guestfish-actions.pod:2256
9674 " inspect-is-live root\n"
9677 " inspect-is-live корінь\n"
9681 #: ../fish/guestfish-actions.pod:2258
9683 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9684 "then this returns true if a live image was detected on the disk."
9688 #: ../fish/guestfish-actions.pod:2264
9689 msgid "inspect-is-multipart"
9690 msgstr "inspect-is-multipart"
9693 #: ../fish/guestfish-actions.pod:2266
9696 " inspect-is-multipart root\n"
9699 " inspect-is-multipart корінь\n"
9703 #: ../fish/guestfish-actions.pod:2268
9705 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9706 "then this returns true if the disk is part of a set."
9710 #: ../fish/guestfish-actions.pod:2274
9711 msgid "inspect-is-netinst"
9712 msgstr "inspect-is-netinst"
9715 #: ../fish/guestfish-actions.pod:2276
9718 " inspect-is-netinst root\n"
9721 " inspect-is-netinst корінь\n"
9725 #: ../fish/guestfish-actions.pod:2278
9727 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9728 "then this returns true if the disk is a network installer, ie. not a self-"
9729 "contained install CD but one which is likely to require network access to "
9730 "complete the install."
9734 #: ../fish/guestfish-actions.pod:2286
9735 msgid "inspect-list-applications"
9736 msgstr "inspect-list-applications"
9739 #: ../fish/guestfish-actions.pod:2288
9742 " inspect-list-applications root\n"
9745 " inspect-list-applications кореневий_каталог\n"
9749 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3417
9750 msgid "Return the list of applications installed in the operating system."
9754 #: ../fish/guestfish-actions.pod:2292
9756 "I<Note:> This call works differently from other parts of the inspection "
9757 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9758 "then mount up the disks, before calling this. Listing applications is a "
9759 "significantly more difficult operation which requires access to the full "
9760 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
9761 "are just returning data cached in the libguestfs handle, this call actually "
9762 "reads parts of the mounted filesystems during the call."
9766 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3429
9768 "This returns an empty list if the inspection code was not able to determine "
9769 "the list of applications."
9773 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3432
9774 msgid "The application structure contains the following fields:"
9778 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3436
9780 msgstr "C<app_name>"
9783 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3438
9785 "The name of the application. For Red Hat-derived and Debian-derived Linux "
9786 "guests, this is the package name."
9790 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3441
9791 msgid "C<app_display_name>"
9792 msgstr "C<app_display_name>"
9795 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3443
9797 "The display name of the application, sometimes localized to the install "
9798 "language of the guest operating system."
9802 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3446
9804 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
9805 "to display something can use C<app_name> instead."
9809 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3449
9810 msgid "C<app_epoch>"
9811 msgstr "C<app_epoch>"
9814 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3451
9816 "For package managers which use epochs, this contains the epoch of the "
9817 "package (an integer). If unavailable, this is returned as C<0>."
9821 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3454
9822 msgid "C<app_version>"
9823 msgstr "C<app_version>"
9826 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3456
9828 "The version string of the application or package. If unavailable this is "
9829 "returned as an empty string C<\"\">."
9833 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3459
9834 msgid "C<app_release>"
9835 msgstr "C<app_release>"
9838 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3461
9840 "The release string of the application or package, for package managers that "
9841 "use this. If unavailable this is returned as an empty string C<\"\">."
9845 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3465
9846 msgid "C<app_install_path>"
9847 msgstr "C<app_install_path>"
9850 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3467
9852 "The installation path of the application (on operating systems such as "
9853 "Windows which use installation paths). This path is in the format used by "
9854 "the guest operating system, it is not a libguestfs path."
9858 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3472
9859 msgid "If unavailable this is returned as an empty string C<\"\">."
9863 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3474
9864 msgid "C<app_trans_path>"
9865 msgstr "C<app_trans_path>"
9868 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3476
9870 "The install path translated into a libguestfs path. If unavailable this is "
9871 "returned as an empty string C<\"\">."
9875 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3479
9876 msgid "C<app_publisher>"
9877 msgstr "C<app_publisher>"
9880 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3481
9882 "The name of the publisher of the application, for package managers that use "
9883 "this. If unavailable this is returned as an empty string C<\"\">."
9887 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3485
9892 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3487
9894 "The URL (eg. upstream URL) of the application. If unavailable this is "
9895 "returned as an empty string C<\"\">."
9899 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3490
9900 msgid "C<app_source_package>"
9901 msgstr "C<app_source_package>"
9904 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3492
9906 "For packaging systems which support this, the name of the source package. "
9907 "If unavailable this is returned as an empty string C<\"\">."
9911 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3495
9912 msgid "C<app_summary>"
9913 msgstr "C<app_summary>"
9916 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3497
9918 "A short (usually one line) description of the application or package. If "
9919 "unavailable this is returned as an empty string C<\"\">."
9923 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3500
9924 msgid "C<app_description>"
9925 msgstr "C<app_description>"
9928 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3502
9930 "A longer description of the application or package. If unavailable this is "
9931 "returned as an empty string C<\"\">."
9935 #: ../fish/guestfish-actions.pod:2382
9940 #: ../fish/guestfish-actions.pod:2384
9950 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
9952 "This function uses other libguestfs functions and certain heuristics to "
9953 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9954 "for operating systems."
9958 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3524
9959 msgid "The list returned is empty if no operating systems were found."
9963 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3526
9965 "If one operating system was found, then this returns a list with a single "
9966 "element, which is the name of the root filesystem of this operating system. "
9967 "It is also possible for this function to return a list containing more than "
9968 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9969 "element being the root filesystem of one of the operating systems."
9973 #: ../fish/guestfish-actions.pod:2399
9975 "You can pass the root string(s) returned to other L</inspect-get-*> "
9976 "functions in order to query further information about each operating system, "
9977 "such as the name and version."
9981 #: ../fish/guestfish-actions.pod:2404
9983 "This function uses other libguestfs features such as L</mount-ro> and L</"
9984 "umount-all> in order to mount and unmount filesystems and look at the "
9985 "contents. This should be called with no disks currently mounted. The "
9986 "function may also use Augeas, so any existing Augeas handle will be closed."
9990 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3544
9992 "This function cannot decrypt encrypted disks. The caller must do that first "
9993 "(supplying the necessary keys) if the disk is encrypted."
9997 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614
9998 #: ../fish/guestfish-actions.pod:2673
9999 msgid "See also L</list-filesystems>."
10000 msgstr "Див. також L</list-filesystems>."
10003 #: ../fish/guestfish-actions.pod:2418
10004 msgid "is-blockdev"
10005 msgstr "is-blockdev"
10008 #: ../fish/guestfish-actions.pod:2420
10011 " is-blockdev path\n"
10014 " is-blockdev шлях\n"
10018 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3564
10020 "This returns C<true> if and only if there is a block device with the given "
10025 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443
10026 #: ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471
10027 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515
10028 #: ../fish/guestfish-actions.pod:2524
10029 msgid "See also L</stat>."
10030 msgstr "Див. також L</stat>."
10033 #: ../fish/guestfish-actions.pod:2427
10038 #: ../fish/guestfish-actions.pod:2429
10048 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3578
10050 "This returns true iff this handle is busy processing a command (in the "
10055 #: ../fish/guestfish-actions.pod:2436
10057 msgstr "is-chardev"
10060 #: ../fish/guestfish-actions.pod:2438
10063 " is-chardev path\n"
10066 " is-chardev шлях\n"
10070 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3593
10072 "This returns C<true> if and only if there is a character device with the "
10073 "given C<path> name."
10077 #: ../fish/guestfish-actions.pod:2445
10082 #: ../fish/guestfish-actions.pod:2447
10092 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3607
10094 "This returns true iff this handle is being configured (in the C<CONFIG> "
10099 #: ../fish/guestfish-actions.pod:2454
10104 #: ../fish/guestfish-actions.pod:2456
10114 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3622
10116 "This returns C<true> if and only if there is a directory with the given "
10117 "C<path> name. Note that it returns false for other objects like files."
10121 #: ../fish/guestfish-actions.pod:2464
10126 #: ../fish/guestfish-actions.pod:2466
10136 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3638
10138 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
10139 "given C<path> name."
10143 #: ../fish/guestfish-actions.pod:2473
10148 #: ../fish/guestfish-actions.pod:2475
10158 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3653
10160 "This returns C<true> if and only if there is a regular file with the given "
10161 "C<path> name. Note that it returns false for other objects like directories."
10165 #: ../fish/guestfish-actions.pod:2483
10166 msgid "is-launching"
10167 msgstr "is-launching"
10170 #: ../fish/guestfish-actions.pod:2485
10180 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3668
10182 "This returns true iff this handle is launching the subprocess (in the "
10183 "C<LAUNCHING> state)."
10187 #: ../fish/guestfish-actions.pod:2492
10192 #: ../fish/guestfish-actions.pod:2494
10198 " is-lv пристрій\n"
10202 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3683
10204 "This command tests whether C<device> is a logical volume, and returns true "
10205 "iff this is the case."
10209 #: ../fish/guestfish-actions.pod:2499
10214 #: ../fish/guestfish-actions.pod:2501
10224 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3695
10226 "This returns true iff this handle is ready to accept commands (in the "
10231 #: ../fish/guestfish-actions.pod:2508
10236 #: ../fish/guestfish-actions.pod:2510
10239 " is-socket path\n"
10242 " is-socket шлях\n"
10246 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3710
10248 "This returns C<true> if and only if there is a Unix domain socket with the "
10249 "given C<path> name."
10253 #: ../fish/guestfish-actions.pod:2517
10255 msgstr "is-symlink"
10258 #: ../fish/guestfish-actions.pod:2519
10261 " is-symlink path\n"
10264 " is-symlink шлях\n"
10268 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3725
10270 "This returns C<true> if and only if there is a symbolic link with the given "
10275 #: ../fish/guestfish-actions.pod:2526
10280 #: ../fish/guestfish-actions.pod:2528
10288 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3740
10290 "This returns true iff the file exists and the file is empty or it contains "
10295 #: ../fish/guestfish-actions.pod:2533
10296 msgid "is-zero-device"
10300 #: ../fish/guestfish-actions.pod:2535
10303 " is-zero-device device\n"
10308 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3753
10309 msgid "This returns true iff the device exists and contains all zero bytes."
10313 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3755
10314 msgid "Note that for large devices this can take a long time to run."
10318 #: ../fish/guestfish-actions.pod:2541
10319 msgid "kill-subprocess"
10320 msgstr "kill-subprocess"
10323 #: ../fish/guestfish-actions.pod:2543
10326 " kill-subprocess\n"
10329 " kill-subprocess\n"
10333 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3766
10334 msgid "This kills the qemu subprocess. You should never need to call this."
10338 #: ../fish/guestfish-actions.pod:2547
10343 #: ../fish/guestfish-actions.pod:2549
10348 #: ../fish/guestfish-actions.pod:2551
10358 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3777
10360 "Internally libguestfs is implemented by running a virtual machine using "
10365 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3780
10367 "You should call this after configuring the handle (eg. adding drives) but "
10368 "before performing any actions."
10372 #: ../fish/guestfish-actions.pod:2559
10377 #: ../fish/guestfish-actions.pod:2561
10380 " lchown owner group path\n"
10383 " lchown власник група шлях\n"
10387 #: ../fish/guestfish-actions.pod:2563
10389 "Change the file owner to C<owner> and group to C<group>. This is like L</"
10390 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10395 #: ../fish/guestfish-actions.pod:2571
10400 #: ../fish/guestfish-actions.pod:2573
10403 " lgetxattr path name\n"
10406 " lgetxattr шлях назва\n"
10410 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3820
10412 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
10413 "is a symlink, then this call returns an extended attribute from the symlink."
10417 #: ../fish/guestfish-actions.pod:2589
10418 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10419 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10422 #: ../fish/guestfish-actions.pod:2591
10424 msgstr "lgetxattrs"
10427 #: ../fish/guestfish-actions.pod:2593
10430 " lgetxattrs path\n"
10433 " lgetxattrs шлях\n"
10437 #: ../fish/guestfish-actions.pod:2595
10439 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10440 "it returns the extended attributes of the link itself."
10444 #: ../fish/guestfish-actions.pod:2599
10449 #: ../fish/guestfish-actions.pod:2601
10457 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3863
10459 "List all 9p filesystems attached to the guest. A list of mount tags is "
10464 #: ../fish/guestfish-actions.pod:2606
10465 msgid "list-devices"
10466 msgstr "list-devices"
10469 #: ../fish/guestfish-actions.pod:2608
10479 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3877
10480 msgid "List all the block devices."
10484 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3879
10485 msgid "The full block device names are returned, eg. C</dev/sda>."
10489 #: ../fish/guestfish-actions.pod:2616
10490 msgid "list-dm-devices"
10494 #: ../fish/guestfish-actions.pod:2618
10497 " list-dm-devices\n"
10502 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3894
10503 msgid "List all device mapper devices."
10507 #: ../fish/guestfish-actions.pod:2622
10509 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10510 "previous call to L</luks-open>."
10514 #: ../fish/guestfish-actions.pod:2625
10516 "Device mapper devices which correspond to logical volumes are I<not> "
10517 "returned in this list. Call L</lvs> if you want to list logical volumes."
10521 #: ../fish/guestfish-actions.pod:2629
10522 msgid "list-filesystems"
10523 msgstr "list-filesystems"
10526 #: ../fish/guestfish-actions.pod:2631
10529 " list-filesystems\n"
10532 " list-filesystems\n"
10536 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3914
10538 "This inspection command looks for filesystems on partitions, block devices "
10539 "and logical volumes, returning a list of devices containing filesystems and "
10544 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3918
10546 "The return value is a hash, where the keys are the devices containing "
10547 "filesystems, and the values are the filesystem types. For example:"
10551 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3922
10554 " \"/dev/sda1\" => \"ntfs\"\n"
10555 " \"/dev/sda2\" => \"ext2\"\n"
10556 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10557 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10562 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3927
10564 "The value can have the special value \"unknown\", meaning the content of the "
10565 "device is undetermined or empty. \"swap\" means a Linux swap partition."
10569 #: ../fish/guestfish-actions.pod:2650
10571 "This command runs other libguestfs commands, which might include L</mount> "
10572 "and L</umount>, and therefore you should use this soon after launch and only "
10573 "when nothing is mounted."
10577 #: ../fish/guestfish-actions.pod:2654
10579 "Not all of the filesystems returned will be mountable. In particular, swap "
10580 "partitions are returned in the list. Also this command does not check that "
10581 "each filesystem found is valid and mountable, and some filesystems might be "
10582 "mountable but require special options. Filesystems may not all belong to a "
10583 "single logical operating system (use L</inspect-os> to look for OSes)."
10587 #: ../fish/guestfish-actions.pod:2662
10588 msgid "list-partitions"
10589 msgstr "list-partitions"
10592 #: ../fish/guestfish-actions.pod:2664
10595 " list-partitions\n"
10598 " list-partitions\n"
10602 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3956
10603 msgid "List all the partitions detected on all block devices."
10607 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3958
10608 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10612 #: ../fish/guestfish-actions.pod:2670
10614 "This does not return logical volumes. For that you will need to call L</"
10619 #: ../fish/guestfish-actions.pod:2675
10624 #: ../fish/guestfish-actions.pod:2677
10634 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3977
10636 "List the files in C<directory> (relative to the root directory, there is no "
10637 "cwd) in the format of 'ls -la'."
10641 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3980
10643 "This command is mostly useful for interactive sessions. It is I<not> "
10644 "intended that you try to parse the output string."
10648 #: ../fish/guestfish-actions.pod:2685
10653 #: ../fish/guestfish-actions.pod:2687
10656 " ln target linkname\n"
10659 " ln призначення назва_посилання\n"
10663 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:3995
10664 msgid "This command creates a hard link using the C<ln> command."
10668 #: ../fish/guestfish-actions.pod:2691
10673 #: ../fish/guestfish-actions.pod:2693
10676 " ln-f target linkname\n"
10679 " ln-f призначення назва_посилання\n"
10683 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4008
10685 "This command creates a hard link using the C<ln -f> command. The I<-f> "
10686 "option removes the link (C<linkname>) if it exists already."
10690 #: ../fish/guestfish-actions.pod:2698
10695 #: ../fish/guestfish-actions.pod:2700
10698 " ln-s target linkname\n"
10701 " ln-s призначення назва_посилання\n"
10705 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4022
10706 msgid "This command creates a symbolic link using the C<ln -s> command."
10710 #: ../fish/guestfish-actions.pod:2704
10715 #: ../fish/guestfish-actions.pod:2706
10718 " ln-sf target linkname\n"
10721 " ln-sf призначення назва_посилання\n"
10725 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4035
10727 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10728 "option removes the link (C<linkname>) if it exists already."
10732 #: ../fish/guestfish-actions.pod:2711
10733 msgid "lremovexattr"
10734 msgstr "lremovexattr"
10737 #: ../fish/guestfish-actions.pod:2713
10740 " lremovexattr xattr path\n"
10745 #: ../fish/guestfish-actions.pod:2715
10747 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10748 "it removes an extended attribute of the link itself."
10752 #: ../fish/guestfish-actions.pod:2719
10757 #: ../fish/guestfish-actions.pod:2721
10767 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4063
10769 "List the files in C<directory> (relative to the root directory, there is no "
10770 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
10774 #: ../fish/guestfish-actions.pod:2727
10776 "This command is mostly useful for interactive sessions. Programs should "
10777 "probably use L</readdir> instead."
10781 #: ../fish/guestfish-actions.pod:2730
10786 #: ../fish/guestfish-actions.pod:2732
10789 " lsetxattr xattr val vallen path\n"
10794 #: ../fish/guestfish-actions.pod:2734
10796 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10797 "sets an extended attribute of the link itself."
10801 #: ../fish/guestfish-actions.pod:2738
10806 #: ../fish/guestfish-actions.pod:2740
10816 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4552
10817 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:6882
10818 msgid "Returns file information for the given C<path>."
10822 #: ../fish/guestfish-actions.pod:2744
10824 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10825 "the link is stat-ed, not the file it refers to."
10829 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4105
10830 msgid "This is the same as the C<lstat(2)> system call."
10834 #: ../fish/guestfish-actions.pod:2750
10839 #: ../fish/guestfish-actions.pod:2752
10842 " lstatlist path 'names ...'\n"
10847 #: ../fish/guestfish-actions.pod:2754
10849 "This call allows you to perform the L</lstat> operation on multiple files, "
10850 "where all files are in the directory C<path>. C<names> is the list of files "
10851 "from this directory."
10855 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4124
10857 "On return you get a list of stat structs, with a one-to-one correspondence "
10858 "to the C<names> list. If any name did not exist or could not be lstat'd, "
10859 "then the C<ino> field of that structure is set to C<-1>."
10863 #: ../fish/guestfish-actions.pod:2763
10865 "This call is intended for programs that want to efficiently list a directory "
10866 "contents without making many round-trips. See also L</lxattrlist> for a "
10867 "similarly efficient call for getting extended attributes. Very long "
10868 "directory listings might cause the protocol message size to be exceeded, "
10869 "causing this call to fail. The caller must split up such requests into "
10870 "smaller groups of names."
10874 #: ../fish/guestfish-actions.pod:2771
10875 msgid "luks-add-key"
10876 msgstr "luks-add-key"
10879 #: ../fish/guestfish-actions.pod:2773
10882 " luks-add-key device keyslot\n"
10887 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4152
10889 "This command adds a new key on LUKS device C<device>. C<key> is any "
10890 "existing key, and is used to access the device. C<newkey> is the new key to "
10891 "add. C<keyslot> is the key slot that will be replaced."
10895 #: ../fish/guestfish-actions.pod:2780
10897 "Note that if C<keyslot> already contains a key, then this command will "
10898 "fail. You have to use L</luks-kill-slot> first to remove that key."
10902 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806
10903 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833
10904 #: ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
10906 "This command has one or more key or passphrase parameters. Guestfish will "
10907 "prompt for these separately."
10911 #: ../fish/guestfish-actions.pod:2787
10913 msgstr "luks-close"
10916 #: ../fish/guestfish-actions.pod:2789
10919 " luks-close device\n"
10922 " luks-close пристрій\n"
10926 #: ../fish/guestfish-actions.pod:2791
10928 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10929 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
10930 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10935 #: ../fish/guestfish-actions.pod:2797
10936 msgid "luks-format"
10937 msgstr "luks-format"
10940 #: ../fish/guestfish-actions.pod:2799
10943 " luks-format device keyslot\n"
10948 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4193
10950 "This command erases existing data on C<device> and formats the device as a "
10951 "LUKS encrypted device. C<key> is the initial key, which is added to key "
10952 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
10956 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822
10957 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3560
10958 #: ../fish/guestfish-actions.pod:4086 ../fish/guestfish-actions.pod:4423
10959 #: ../fish/guestfish-actions.pod:4446 ../fish/guestfish-actions.pod:4468
10960 #: ../fish/guestfish-actions.pod:5214 ../src/guestfs-actions.pod:4200
10961 #: ../src/guestfs-actions.pod:4223 ../src/guestfs-actions.pod:4366
10962 #: ../src/guestfs-actions.pod:5459 ../src/guestfs-actions.pod:6247
10963 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:6726
10964 #: ../src/guestfs-actions.pod:6759 ../src/guestfs-actions.pod:7958
10966 "B<This command is dangerous. Without careful use you can easily destroy all "
10971 #: ../fish/guestfish-actions.pod:2812
10972 msgid "luks-format-cipher"
10973 msgstr "luks-format-cipher"
10976 #: ../fish/guestfish-actions.pod:2814
10979 " luks-format-cipher device keyslot cipher\n"
10984 #: ../fish/guestfish-actions.pod:2816
10986 "This command is the same as L</luks-format> but it also allows you to set "
10987 "the C<cipher> used."
10991 #: ../fish/guestfish-actions.pod:2825
10992 msgid "luks-kill-slot"
10993 msgstr "luks-kill-slot"
10996 #: ../fish/guestfish-actions.pod:2827
10999 " luks-kill-slot device keyslot\n"
11004 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4240
11006 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11007 "device C<device>. C<key> must be one of the I<other> keys."
11011 #: ../fish/guestfish-actions.pod:2836
11016 #: ../fish/guestfish-actions.pod:2838
11019 " luks-open device mapname\n"
11024 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4260
11026 "This command opens a block device which has been encrypted according to the "
11027 "Linux Unified Key Setup (LUKS) standard."
11031 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4263
11032 msgid "C<device> is the encrypted block device or partition."
11036 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4265
11038 "The caller must supply one of the keys associated with the LUKS block "
11039 "device, in the C<key> parameter."
11043 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4268
11045 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
11046 "writes to this block device are decrypted from and encrypted to the "
11047 "underlying C<device> respectively."
11051 #: ../fish/guestfish-actions.pod:2852
11053 "If this block device contains LVM volume groups, then calling L</vgscan> "
11054 "followed by L</vg-activate-all> will make them visible."
11058 #: ../fish/guestfish-actions.pod:2856
11059 msgid "Use L</list-dm-devices> to list all device mapper devices."
11063 #: ../fish/guestfish-actions.pod:2862
11064 msgid "luks-open-ro"
11065 msgstr "luks-open-ro"
11068 #: ../fish/guestfish-actions.pod:2864
11071 " luks-open-ro device mapname\n"
11076 #: ../fish/guestfish-actions.pod:2866
11078 "This is the same as L</luks-open> except that a read-only mapping is created."
11082 #: ../fish/guestfish-actions.pod:2872
11087 #: ../fish/guestfish-actions.pod:2874
11090 " lvcreate logvol volgroup mbytes\n"
11095 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4314
11097 "This creates an LVM logical volume called C<logvol> on the volume group "
11098 "C<volgroup>, with C<size> megabytes."
11102 #: ../fish/guestfish-actions.pod:2879
11103 msgid "lvm-canonical-lv-name"
11104 msgstr "lvm-canonical-lv-name"
11107 #: ../fish/guestfish-actions.pod:2881
11110 " lvm-canonical-lv-name lvname\n"
11115 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4327
11117 "This converts alternative naming schemes for LVs that you might find to the "
11118 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
11123 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4331
11125 "This command returns an error if the C<lvname> parameter does not refer to a "
11130 #: ../fish/guestfish-actions.pod:2890
11131 msgid "See also L</is-lv>."
11132 msgstr "Див. також L</is-lv>."
11135 #: ../fish/guestfish-actions.pod:2892
11136 msgid "lvm-clear-filter"
11137 msgstr "lvm-clear-filter"
11140 #: ../fish/guestfish-actions.pod:2894
11143 " lvm-clear-filter\n"
11146 " lvm-clear-filter\n"
11150 #: ../fish/guestfish-actions.pod:2896
11152 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
11157 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930
11158 #: ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:4391
11160 "This command also clears the LVM cache and performs a volume group scan."
11164 #: ../fish/guestfish-actions.pod:2902
11165 msgid "lvm-remove-all"
11166 msgstr "lvm-remove-all"
11169 #: ../fish/guestfish-actions.pod:2904
11172 " lvm-remove-all\n"
11175 " lvm-remove-all\n"
11179 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4361
11181 "This command removes all LVM logical volumes, volume groups and physical "
11186 #: ../fish/guestfish-actions.pod:2912
11187 msgid "lvm-set-filter"
11188 msgstr "lvm-set-filter"
11191 #: ../fish/guestfish-actions.pod:2914
11194 " lvm-set-filter 'devices ...'\n"
11197 " lvm-set-filter 'пристрої...'\n"
11201 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4377
11203 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11204 "block devices in the list C<devices>, and will ignore all other attached "
11209 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4381
11211 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11212 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
11213 "there are two types of duplication possible: either cloned PVs/VGs which "
11214 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11215 "same name. In normal operation you cannot create this situation, but you "
11216 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
11217 "inside the LVM metadata."
11221 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4394
11222 msgid "You can filter whole block devices or individual partitions."
11226 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4396
11228 "You cannot use this if any VG is currently in use (eg. contains a mounted "
11229 "filesystem), even if you are not filtering out that VG."
11233 #: ../fish/guestfish-actions.pod:2939
11238 #: ../fish/guestfish-actions.pod:2941
11241 " lvremove device\n"
11244 " lvremove пристрій\n"
11248 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4410
11250 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11251 "LV, such as C</dev/VG/LV>."
11255 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4413
11257 "You can also remove all LVs in a volume group by specifying the VG name, C</"
11262 #: ../fish/guestfish-actions.pod:2949
11267 #: ../fish/guestfish-actions.pod:2951
11270 " lvrename logvol newlogvol\n"
11275 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4427
11276 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11280 #: ../fish/guestfish-actions.pod:2955
11285 #: ../fish/guestfish-actions.pod:2957
11288 " lvresize device mbytes\n"
11293 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4440
11295 "This resizes (expands or shrinks) an existing LVM logical volume to "
11296 "C<mbytes>. When reducing, data in the reduced part is lost."
11300 #: ../fish/guestfish-actions.pod:2963
11301 msgid "lvresize-free"
11302 msgstr "lvresize-free"
11305 #: ../fish/guestfish-actions.pod:2965
11308 " lvresize-free lv percent\n"
11313 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4455
11315 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11316 "remaining free space in the volume group. Commonly you would call this with "
11317 "pc = 100 which expands the logical volume as much as possible, using all "
11318 "remaining free space in the volume group."
11322 #: ../fish/guestfish-actions.pod:2973
11327 #: ../fish/guestfish-actions.pod:2975
11337 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4470
11339 "List all the logical volumes detected. This is the equivalent of the L<lvs"
11344 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4473
11346 "This returns a list of the logical volume device names (eg. C</dev/"
11347 "VolGroup00/LogVol00>)."
11351 #: ../fish/guestfish-actions.pod:2983
11352 msgid "See also L</lvs-full>, L</list-filesystems>."
11353 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
11356 #: ../fish/guestfish-actions.pod:2985
11361 #: ../fish/guestfish-actions.pod:2987
11371 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4489
11373 "List all the logical volumes detected. This is the equivalent of the L<lvs"
11374 "(8)> command. The \"full\" version includes all fields."
11378 #: ../fish/guestfish-actions.pod:2992
11383 #: ../fish/guestfish-actions.pod:2994
11389 " lvuuid пристрій\n"
11393 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4504
11394 msgid "This command returns the UUID of the LVM LV C<device>."
11398 #: ../fish/guestfish-actions.pod:2998
11400 msgstr "lxattrlist"
11403 #: ../fish/guestfish-actions.pod:3000
11406 " lxattrlist path 'names ...'\n"
11411 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4518
11413 "This call allows you to get the extended attributes of multiple files, where "
11414 "all files are in the directory C<path>. C<names> is the list of files from "
11419 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4522
11421 "On return you get a flat list of xattr structs which must be interpreted "
11422 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
11423 "C<attrval> in this struct is zero-length to indicate there was an error "
11424 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11425 "number (the number of following attributes for this file, which could be C<"
11426 "\"0\">). Then after the first xattr struct are the zero or more attributes "
11427 "for the first named file. This repeats for the second and subsequent files."
11431 #: ../fish/guestfish-actions.pod:3016
11433 "This call is intended for programs that want to efficiently list a directory "
11434 "contents without making many round-trips. See also L</lstatlist> for a "
11435 "similarly efficient call for getting standard stats. Very long directory "
11436 "listings might cause the protocol message size to be exceeded, causing this "
11437 "call to fail. The caller must split up such requests into smaller groups of "
11442 #: ../fish/guestfish-actions.pod:3024
11447 #: ../fish/guestfish-actions.pod:3026
11457 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4552
11458 msgid "Create a directory named C<path>."
11462 #: ../fish/guestfish-actions.pod:3030
11464 msgstr "mkdir-mode"
11467 #: ../fish/guestfish-actions.pod:3032
11470 " mkdir-mode path mode\n"
11473 " mkdir-mode шлях режим\n"
11477 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4565
11479 "This command creates a directory, setting the initial permissions of the "
11480 "directory to C<mode>."
11484 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4568
11486 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11487 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
11492 #: ../fish/guestfish-actions.pod:3041
11493 msgid "See also L</mkdir>, L</umask>"
11494 msgstr "Див. також L</mkdir>, L</umask>"
11497 #: ../fish/guestfish-actions.pod:3043
11502 #: ../fish/guestfish-actions.pod:3045
11512 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4584
11514 "Create a directory named C<path>, creating any parent directories as "
11515 "necessary. This is like the C<mkdir -p> shell command."
11519 #: ../fish/guestfish-actions.pod:3050
11524 #: ../fish/guestfish-actions.pod:3052
11527 " mkdtemp template\n"
11530 " mkdtemp шаблон\n"
11534 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4597
11536 "This command creates a temporary directory. The C<template> parameter "
11537 "should be a full pathname for the temporary directory name with the final "
11538 "six characters being \"XXXXXX\"."
11542 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4602
11544 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11545 "being suitable for Windows filesystems."
11549 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4605
11550 msgid "The name of the temporary directory that was created is returned."
11554 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4608
11555 msgid "The temporary directory is created with mode 0700 and is owned by root."
11559 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4611
11561 "The caller is responsible for deleting the temporary directory and its "
11562 "contents after use."
11566 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4614
11567 msgid "See also: L<mkdtemp(3)>"
11571 #: ../fish/guestfish-actions.pod:3073
11576 #: ../fish/guestfish-actions.pod:3075
11579 " mke2fs-J fstype blocksize device journal\n"
11584 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4630
11586 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11587 "C<journal>. It is equivalent to the command:"
11591 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4634
11594 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11597 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11601 #: ../fish/guestfish-actions.pod:3083
11602 msgid "See also L</mke2journal>."
11603 msgstr "Див. також L</mke2journal>."
11606 #: ../fish/guestfish-actions.pod:3085
11611 #: ../fish/guestfish-actions.pod:3087
11614 " mke2fs-JL fstype blocksize device label\n"
11619 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4651
11621 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11622 "the journal labeled C<label>."
11626 #: ../fish/guestfish-actions.pod:3092
11627 msgid "See also L</mke2journal-L>."
11628 msgstr "Див. також L</mke2journal-L>."
11631 #: ../fish/guestfish-actions.pod:3094
11636 #: ../fish/guestfish-actions.pod:3096
11639 " mke2fs-JU fstype blocksize device uuid\n"
11644 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4669
11646 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11647 "the journal with UUID C<uuid>."
11651 #: ../fish/guestfish-actions.pod:3101
11652 msgid "See also L</mke2journal-U>."
11653 msgstr "Див. також L</mke2journal-U>."
11656 #: ../fish/guestfish-actions.pod:3103
11657 msgid "mke2journal"
11658 msgstr "mke2journal"
11661 #: ../fish/guestfish-actions.pod:3105
11664 " mke2journal blocksize device\n"
11669 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4685
11671 "This creates an ext2 external journal on C<device>. It is equivalent to the "
11676 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4688
11679 " mke2fs -O journal_dev -b blocksize device\n"
11684 #: ../fish/guestfish-actions.pod:3112
11685 msgid "mke2journal-L"
11686 msgstr "mke2journal-L"
11689 #: ../fish/guestfish-actions.pod:3114
11692 " mke2journal-L blocksize label device\n"
11697 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4702
11698 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11702 #: ../fish/guestfish-actions.pod:3118
11703 msgid "mke2journal-U"
11704 msgstr "mke2journal-U"
11707 #: ../fish/guestfish-actions.pod:3120
11710 " mke2journal-U blocksize uuid device\n"
11715 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4716
11716 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11720 #: ../fish/guestfish-actions.pod:3124
11725 #: ../fish/guestfish-actions.pod:3126
11728 " mkfifo mode path\n"
11731 " mkfifo режим шлях\n"
11735 #: ../fish/guestfish-actions.pod:3128
11737 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
11738 "is just a convenient wrapper around L</mknod>."
11742 #: ../fish/guestfish-actions.pod:3134
11747 #: ../fish/guestfish-actions.pod:3136
11750 " mkfs fstype device\n"
11753 " mkfs тип_файлової_системи пристрій\n"
11757 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4746
11759 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11760 "volume). The filesystem type is C<fstype>, for example C<ext3>."
11764 #: ../fish/guestfish-actions.pod:3142
11769 #: ../fish/guestfish-actions.pod:3144
11772 " mkfs-b fstype blocksize device\n"
11777 #: ../fish/guestfish-actions.pod:3146
11779 "This call is similar to L</mkfs>, but it allows you to control the block "
11780 "size of the resulting filesystem. Supported block sizes depend on the "
11781 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11785 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178
11786 #: ../src/guestfs-actions.pod:4774 ../src/guestfs-actions.pod:4812
11788 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11793 #: ../fish/guestfish-actions.pod:3154
11795 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11800 #: ../fish/guestfish-actions.pod:3161
11805 #: ../fish/guestfish-actions.pod:3163
11808 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11813 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4799
11815 "This function creates a filesystem on C<device>. The filesystem type is "
11816 "C<fstype>, for example C<ext3>."
11820 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4806
11821 msgid "C<blocksize>"
11822 msgstr "C<blocksize>"
11825 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4808
11827 "The filesystem block size. Supported block sizes depend on the filesystem "
11828 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11833 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4815
11834 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11838 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4817
11839 msgid "C<features>"
11840 msgstr "C<features>"
11843 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4819
11844 msgid "This passes the I<-O> parameter to the external mkfs program."
11848 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4821
11850 "For certain filesystem types, this allows extra filesystem features to be "
11851 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11855 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4825
11857 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11862 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4828
11867 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4830
11869 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11870 "sets the inode size (only for ext2/3/4 filesystems at present)."
11874 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4833
11875 msgid "C<sectorsize>"
11879 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4835
11881 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11882 "sets sector size for ufs filesystem."
11886 #: ../fish/guestfish-actions.pod:3208
11887 msgid "mkmountpoint"
11888 msgstr "mkmountpoint"
11891 #: ../fish/guestfish-actions.pod:3210
11894 " mkmountpoint exemptpath\n"
11899 #: ../fish/guestfish-actions.pod:3212
11901 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11902 "to create extra mountpoints before mounting the first filesystem."
11906 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4878
11908 "These calls are I<only> necessary in some very limited circumstances, mainly "
11909 "the case where you want to mount a mix of unrelated and/or read-only "
11910 "filesystems together."
11914 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4882
11916 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11917 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11918 "inside that. You can unpack this as follows in guestfish:"
11922 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4887
11925 " add-ro Fedora-11-i686-Live.iso\n"
11927 " mkmountpoint /cd\n"
11928 " mkmountpoint /sqsh\n"
11929 " mkmountpoint /ext3fs\n"
11930 " mount /dev/sda /cd\n"
11931 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11932 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11935 " add-ro Fedora-11-i686-Live.iso\n"
11937 " mkmountpoint /cd\n"
11938 " mkmountpoint /sqsh\n"
11939 " mkmountpoint /ext3fs\n"
11940 " mount /dev/sda /cd\n"
11941 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11942 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11946 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4896
11947 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11951 #: ../fish/guestfish-actions.pod:3236
11953 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
11954 "unexpected errors if you try to mix these calls. It is safest to manually "
11955 "unmount filesystems and remove mountpoints after use."
11959 #: ../fish/guestfish-actions.pod:3240
11961 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11962 "for this to work for manual mountpoints, you must ensure that the innermost "
11963 "mountpoints have the longest pathnames, as in the example code above."
11967 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4907
11969 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11973 #: ../fish/guestfish-actions.pod:3247
11975 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11976 "L</umount-all> to be called when the handle is closed which can also trigger "
11981 #: ../fish/guestfish-actions.pod:3251
11986 #: ../fish/guestfish-actions.pod:3253
11989 " mknod mode devmajor devminor path\n"
11994 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4926
11996 "This call creates block or character special devices, or named pipes (FIFOs)."
12000 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4929
12002 "The C<mode> parameter should be the mode, using the standard constants. "
12003 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12004 "used when creating block and character special devices."
12008 #: ../fish/guestfish-actions.pod:3263
12010 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12011 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12012 "regular file). These constants are available in the standard Linux header "
12013 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12014 "wrappers around this command which bitwise OR in the appropriate constant "
12019 #: ../fish/guestfish-actions.pod:3273
12024 #: ../fish/guestfish-actions.pod:3275
12027 " mknod-b mode devmajor devminor path\n"
12032 #: ../fish/guestfish-actions.pod:3277
12034 "This call creates a block device node called C<path> with mode C<mode> and "
12035 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
12036 "wrapper around L</mknod>."
12040 #: ../fish/guestfish-actions.pod:3283
12045 #: ../fish/guestfish-actions.pod:3285
12048 " mknod-c mode devmajor devminor path\n"
12053 #: ../fish/guestfish-actions.pod:3287
12055 "This call creates a char 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:3293
12066 #: ../fish/guestfish-actions.pod:3295
12072 " mkswap пристрій\n"
12076 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4992
12077 msgid "Create a swap partition on C<device>."
12081 #: ../fish/guestfish-actions.pod:3299
12086 #: ../fish/guestfish-actions.pod:3301
12089 " mkswap-L label device\n"
12092 " mkswap-L мітка пристрій\n"
12096 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5005
12097 msgid "Create a swap partition on C<device> with label C<label>."
12101 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5007
12103 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
12104 "sda>), just to a partition. This appears to be a limitation of the kernel "
12109 #: ../fish/guestfish-actions.pod:3309
12114 #: ../fish/guestfish-actions.pod:3311
12117 " mkswap-U uuid device\n"
12120 " mkswap-U uuid пристрій\n"
12124 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5022
12125 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12129 #: ../fish/guestfish-actions.pod:3315
12130 msgid "mkswap-file"
12131 msgstr "mkswap-file"
12134 #: ../fish/guestfish-actions.pod:3317
12137 " mkswap-file path\n"
12140 " mkswap-file шлях\n"
12144 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5034
12145 msgid "Create a swap file."
12146 msgstr "Створити файл резервної пам’яті."
12149 #: ../fish/guestfish-actions.pod:3321
12151 "This command just writes a swap file signature to an existing file. To "
12152 "create the file itself, use something like L</fallocate>."
12156 #: ../fish/guestfish-actions.pod:3324
12161 #: ../fish/guestfish-actions.pod:3326
12164 " modprobe modulename\n"
12167 " modprobe назва_модуля\n"
12171 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5049
12172 msgid "This loads a kernel module in the appliance."
12176 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5051
12178 "The kernel module must have been whitelisted when libguestfs was built (see "
12179 "C<appliance/kmod.whitelist.in> in the source)."
12183 #: ../fish/guestfish-actions.pod:3333
12188 #: ../fish/guestfish-actions.pod:3335
12191 " mount device mountpoint\n"
12194 " mount пристрій точка_монтування\n"
12198 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5065
12200 "Mount a guest disk at a position in the filesystem. Block devices are named "
12201 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
12202 "those block devices contain partitions, they will have the usual names (eg. "
12203 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
12207 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5071
12209 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12210 "mounted on C</> before others can be mounted. Other filesystems can only be "
12211 "mounted on directories which already exist."
12215 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5076
12217 "The mounted filesystem is writable, if we have sufficient permissions on the "
12218 "underlying device."
12222 #: ../fish/guestfish-actions.pod:3351
12224 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12225 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
12226 "problems for users. If your program might need to work with older versions "
12227 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12228 "first parameter if you don't want any options)."
12232 #: ../fish/guestfish-actions.pod:3358
12237 #: ../fish/guestfish-actions.pod:3360
12240 " mount-9p mounttag mountpoint [options:..]\n"
12245 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5105
12247 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12252 #: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5108
12254 "If required, C<trans=virtio> will be automatically added to the options. "
12255 "Any other options required can be passed in the optional C<options> "
12260 #: ../fish/guestfish-actions.pod:3371
12262 msgstr "mount-loop"
12265 #: ../fish/guestfish-actions.pod:3373
12268 " mount-loop file mountpoint\n"
12273 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5147
12275 "This command lets you mount C<file> (a filesystem image in a file) on a "
12276 "mount point. It is entirely equivalent to the command C<mount -o loop file "
12281 #: ../fish/guestfish-actions.pod:3379
12282 msgid "mount-options"
12283 msgstr "mount-options"
12286 #: ../fish/guestfish-actions.pod:3381
12289 " mount-options options device mountpoint\n"
12294 #: ../fish/guestfish-actions.pod:3383
12296 "This is the same as the L</mount> command, but it allows you to set the "
12297 "mount options as for the L<mount(8)> I<-o> flag."
12301 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5167
12303 "If the C<options> parameter is an empty string, then no options are passed "
12304 "(all options default to whatever the filesystem uses)."
12308 #: ../fish/guestfish-actions.pod:3391
12313 #: ../fish/guestfish-actions.pod:3393
12316 " mount-ro device mountpoint\n"
12319 " mount-ro пристрій точка_монтування\n"
12323 #: ../fish/guestfish-actions.pod:3395
12325 "This is the same as the L</mount> command, but it mounts the filesystem with "
12326 "the read-only (I<-o ro>) flag."
12330 #: ../fish/guestfish-actions.pod:3398
12335 #: ../fish/guestfish-actions.pod:3400
12338 " mount-vfs options vfstype device mountpoint\n"
12343 #: ../fish/guestfish-actions.pod:3402
12345 "This is the same as the L</mount> command, but it allows you to set both the "
12346 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12350 #: ../fish/guestfish-actions.pod:3406
12351 msgid "mountpoints"
12352 msgstr "mountpoints"
12355 #: ../fish/guestfish-actions.pod:3408
12365 #: ../fish/guestfish-actions.pod:3410
12367 "This call is similar to L</mounts>. That call returns a list of devices. "
12368 "This one returns a hash table (map) of device name to directory where the "
12369 "device is mounted."
12373 #: ../fish/guestfish-actions.pod:3414
12378 #: ../fish/guestfish-actions.pod:3416
12388 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5228
12390 "This returns the list of currently mounted filesystems. It returns the list "
12391 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12395 #: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5231
12396 msgid "Some internal mounts are not shown."
12400 #: ../fish/guestfish-actions.pod:3423
12401 msgid "See also: L</mountpoints>"
12402 msgstr "Див. також L</mountpoints>"
12405 #: ../fish/guestfish-actions.pod:3425
12410 #: ../fish/guestfish-actions.pod:3427
12416 " mv джерело призначення\n"
12420 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5248
12422 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12423 "destination filename or destination directory."
12427 #: ../fish/guestfish-actions.pod:3432
12428 msgid "ntfs-3g-probe"
12429 msgstr "ntfs-3g-probe"
12432 #: ../fish/guestfish-actions.pod:3434
12435 " ntfs-3g-probe true|false device\n"
12440 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5262
12442 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12443 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
12444 "write, and some cannot be mounted at all)."
12448 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5266
12450 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
12451 "can be mounted read-write. Set it to false if you want to test if the "
12452 "volume can be mounted read-only."
12456 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5270
12458 "The return value is an integer which C<0> if the operation would succeed, or "
12459 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12463 #: ../fish/guestfish-actions.pod:3448
12465 msgstr "ntfsresize"
12468 #: ../fish/guestfish-actions.pod:3450
12471 " ntfsresize device\n"
12474 " ntfsresize пристрій\n"
12478 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3476
12479 #: ../src/guestfs-actions.pod:5291 ../src/guestfs-actions.pod:5323
12481 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12482 "size of the underlying device."
12486 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5294
12488 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12489 "consistency check (for safety). You have to boot into Windows to perform "
12490 "this check and clear this condition. Furthermore, ntfsresize refuses to "
12491 "resize filesystems which have been marked in this way. So in effect it is "
12492 "not possible to call ntfsresize multiple times on a single filesystem "
12493 "without booting into Windows between each resize."
12497 #: ../fish/guestfish-actions.pod:3463 ../fish/guestfish-actions.pod:3502
12498 #: ../src/guestfs-actions.pod:5302 ../src/guestfs-actions.pod:5349
12499 msgid "See also L<ntfsresize(8)>."
12503 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3513
12505 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12510 #: ../fish/guestfish-actions.pod:3472
12511 msgid "ntfsresize-opts"
12515 #: ../fish/guestfish-actions.pod:3474
12518 " ntfsresize-opts device [size:..] [force:..]\n"
12523 #: ../fish/guestfish-actions.pod:3485 ../src/guestfs-actions.pod:5332
12525 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
12526 "resized to fit the container (eg. partition)."
12530 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5335
12535 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5337
12537 "If this option is true, then force the resize of the filesystem even if the "
12538 "filesystem is marked as requiring a consistency check."
12542 #: ../fish/guestfish-actions.pod:3493
12544 "After the resize operation, the filesystem is always marked as requiring a "
12545 "consistency check (for safety). You have to boot into Windows to perform "
12546 "this check and clear this condition. If you I<don't> set the C<force> "
12547 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12548 "a single filesystem without booting into Windows between each resize."
12552 #: ../fish/guestfish-actions.pod:3506
12553 msgid "ntfsresize-size"
12554 msgstr "ntfsresize-size"
12557 #: ../fish/guestfish-actions.pod:3508
12560 " ntfsresize-size device size\n"
12565 #: ../fish/guestfish-actions.pod:3510
12567 "This command is the same as L</ntfsresize> except that it allows you to "
12568 "specify the new size (in bytes) explicitly."
12572 #: ../fish/guestfish-actions.pod:3520
12577 #: ../fish/guestfish-actions.pod:3522
12580 " part-add device prlogex startsect endsect\n"
12585 #: ../fish/guestfish-actions.pod:3524
12587 "This command adds a partition to C<device>. If there is no partition table "
12588 "on the device, call L</part-init> first."
12592 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5410
12594 "The C<prlogex> parameter is the type of partition. Normally you should pass "
12595 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12596 "C<logical>) and C<e> (or C<extended>) partition types."
12600 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5415
12602 "C<startsect> and C<endsect> are the start and end of the partition in "
12603 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
12604 "from the end of the disk (C<-1> is the last sector)."
12608 #: ../fish/guestfish-actions.pod:3536
12610 "Creating a partition which covers the whole disk is not so easy. Use L</"
12611 "part-disk> to do that."
12615 #: ../fish/guestfish-actions.pod:3539
12620 #: ../fish/guestfish-actions.pod:3541
12623 " part-del device partnum\n"
12628 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5433
12629 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12633 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5435
12635 "Note that in the case of MBR partitioning, deleting an extended partition "
12636 "also deletes any logical partitions it contains."
12640 #: ../fish/guestfish-actions.pod:3549
12645 #: ../fish/guestfish-actions.pod:3551
12648 " part-disk device parttype\n"
12651 " part-disk пристрій тип_розділу\n"
12655 #: ../fish/guestfish-actions.pod:3553
12657 "This command is simply a combination of L</part-init> followed by L</part-"
12658 "add> to create a single primary partition covering the whole disk."
12662 #: ../fish/guestfish-actions.pod:3557
12664 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12665 "possible values are described in L</part-init>."
12669 #: ../fish/guestfish-actions.pod:3563
12670 msgid "part-get-bootable"
12671 msgstr "part-get-bootable"
12674 #: ../fish/guestfish-actions.pod:3565
12677 " part-get-bootable device partnum\n"
12682 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5471
12684 "This command returns true if the partition C<partnum> on C<device> has the "
12685 "bootable flag set."
12689 #: ../fish/guestfish-actions.pod:3570
12690 msgid "See also L</part-set-bootable>."
12691 msgstr "Див. також L</part-set-bootable>."
12694 #: ../fish/guestfish-actions.pod:3572
12695 msgid "part-get-mbr-id"
12696 msgstr "part-get-mbr-id"
12699 #: ../fish/guestfish-actions.pod:3574
12702 " part-get-mbr-id device partnum\n"
12707 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5487
12709 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12710 "partition C<partnum>."
12714 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3723
12716 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
12717 "undefined results for other partition table types (see L</part-get-"
12722 #: ../fish/guestfish-actions.pod:3583
12723 msgid "part-get-parttype"
12724 msgstr "part-get-parttype"
12727 #: ../fish/guestfish-actions.pod:3585
12730 " part-get-parttype device\n"
12733 " part-get-parttype пристрій\n"
12737 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5504
12739 "This command examines the partition table on C<device> and returns the "
12740 "partition table type (format) being used."
12744 #: ../fish/guestfish-actions.pod:3590
12746 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12747 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
12748 "possible, although unusual. See L</part-init> for a full list."
12752 #: ../fish/guestfish-actions.pod:3595
12757 #: ../fish/guestfish-actions.pod:3597
12760 " part-init device parttype\n"
12765 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5524
12767 "This creates an empty partition table on C<device> of one of the partition "
12768 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
12769 "(for large disks)."
12773 #: ../fish/guestfish-actions.pod:3603
12775 "Initially there are no partitions. Following this, you should call L</part-"
12776 "add> for each partition required."
12780 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5531
12781 msgid "Possible values for C<parttype> are:"
12785 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5535
12790 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5537
12795 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5539
12796 msgid "Intel EFI / GPT partition table."
12800 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5541
12802 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12803 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
12804 "the C<mbr> format."
12808 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5545
12813 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5547
12818 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5549
12820 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12821 "Windows. This partition type will B<only> work for device sizes up to 2 "
12822 "TB. For large disks we recommend using C<gpt>."
12826 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5556
12828 "Other partition table types that may work but are not supported include:"
12832 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5561
12837 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5563
12838 msgid "AIX disk labels."
12839 msgstr "Мітки дисків AIX."
12842 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5565
12844 #| msgid "B<amiga> | B<rdb>"
12846 msgstr "B<amiga> | B<rdb>"
12849 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5567
12854 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5569
12855 msgid "Amiga \"Rigid Disk Block\" format."
12856 msgstr "Формат \"Rigid Disk Block\" Amiga."
12859 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5571
12864 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5573
12865 msgid "BSD disk labels."
12866 msgstr "Мітки дисків BSD."
12869 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5575
12874 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5577
12875 msgid "DASD, used on IBM mainframes."
12876 msgstr "DASD, використовувалися у мейнфреймах IBM."
12879 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5579
12884 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5581
12885 msgid "MIPS/SGI volumes."
12886 msgstr "Томи MIPS/SGI."
12889 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5583
12894 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5585
12895 msgid "Old Mac partition format. Modern Macs use C<gpt>."
12896 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12899 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5587
12904 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5589
12905 msgid "NEC PC-98 format, common in Japan apparently."
12906 msgstr "Формат NEC PC-98, поширений у Японії."
12909 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5591
12914 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5593
12915 msgid "Sun disk labels."
12916 msgstr "Мітки дисків Sun."
12919 #: ../fish/guestfish-actions.pod:3672
12924 #: ../fish/guestfish-actions.pod:3674
12927 " part-list device\n"
12930 " part-list device\n"
12934 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5607
12936 "This command parses the partition table on C<device> and returns the list of "
12937 "partitions found."
12941 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5610
12942 msgid "The fields in the returned structure are:"
12946 #: ../fish/guestfish-actions.pod:3683 ../src/guestfs-actions.pod:5614
12947 msgid "B<part_num>"
12948 msgstr "B<part_num>"
12951 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5616
12952 msgid "Partition number, counting from 1."
12956 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5618
12957 msgid "B<part_start>"
12958 msgstr "B<part_start>"
12961 #: ../fish/guestfish-actions.pod:3689
12963 "Start of the partition I<in bytes>. To get sectors you have to divide by "
12964 "the device's sector size, see L</blockdev-getss>."
12968 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5623
12969 msgid "B<part_end>"
12970 msgstr "B<part_end>"
12973 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5625
12974 msgid "End of the partition in bytes."
12978 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5627
12979 msgid "B<part_size>"
12980 msgstr "B<part_size>"
12983 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5629
12984 msgid "Size of the partition in bytes."
12988 #: ../fish/guestfish-actions.pod:3702
12989 msgid "part-set-bootable"
12990 msgstr "part-set-bootable"
12993 #: ../fish/guestfish-actions.pod:3704
12996 " part-set-bootable device partnum true|false\n"
13001 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5647
13003 "This sets the bootable flag on partition numbered C<partnum> on device "
13004 "C<device>. Note that partitions are numbered from 1."
13008 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5650
13010 "The bootable flag is used by some operating systems (notably Windows) to "
13011 "determine which partition to boot from. It is by no means universally "
13016 #: ../fish/guestfish-actions.pod:3713
13017 msgid "part-set-mbr-id"
13018 msgstr "part-set-mbr-id"
13021 #: ../fish/guestfish-actions.pod:3715
13024 " part-set-mbr-id device partnum idbyte\n"
13029 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5666
13031 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13032 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
13033 "documentation are in fact hexadecimal numbers, but usually documented "
13034 "without any leading \"0x\" which might be confusing."
13038 #: ../fish/guestfish-actions.pod:3727
13039 msgid "part-set-name"
13040 msgstr "part-set-name"
13043 #: ../fish/guestfish-actions.pod:3729
13046 " part-set-name device partnum name\n"
13051 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5688
13053 "This sets the partition name on partition numbered C<partnum> on device "
13054 "C<device>. Note that partitions are numbered from 1."
13058 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5691
13060 "The partition name can only be set on certain types of partition table. "
13061 "This works on C<gpt> but not on C<mbr> partitions."
13065 #: ../fish/guestfish-actions.pod:3737
13066 msgid "part-to-dev"
13067 msgstr "part-to-dev"
13070 #: ../fish/guestfish-actions.pod:3739
13073 " part-to-dev partition\n"
13076 " part-to-dev розділ\n"
13080 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5704
13082 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13083 "partition number, returning the device name (eg. \"/dev/sdb\")."
13087 #: ../fish/guestfish-actions.pod:3745
13089 "The named partition must exist, for example as a string returned from L</"
13090 "list-partitions>."
13094 #: ../fish/guestfish-actions.pod:3748
13095 msgid "ping-daemon"
13096 msgstr "ping-daemon"
13099 #: ../fish/guestfish-actions.pod:3750
13109 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5721
13111 "This is a test probe into the guestfs daemon running inside the qemu "
13112 "subprocess. Calling this function checks that the daemon responds to the "
13113 "ping message, without affecting the daemon or attached block device(s) in "
13118 #: ../fish/guestfish-actions.pod:3757
13123 #: ../fish/guestfish-actions.pod:3759
13126 " pread path count offset\n"
13131 #: ../fish/guestfish-actions.pod:3761 ../src/guestfs-actions.pod:5739
13133 "This command lets you read part of a file. It reads C<count> bytes of the "
13134 "file, starting at C<offset>, from file C<path>."
13138 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3779
13139 #: ../src/guestfs-actions.pod:5742 ../src/guestfs-actions.pod:5768
13141 "This may read fewer bytes than requested. For further details see the "
13142 "L<pread(2)> system call."
13146 #: ../fish/guestfish-actions.pod:3767
13147 msgid "See also L</pwrite>, L</pread-device>."
13148 msgstr "Див. також L</pwrite>, L</pread-device>."
13151 #: ../fish/guestfish-actions.pod:3772
13152 msgid "pread-device"
13153 msgstr "pread-device"
13156 #: ../fish/guestfish-actions.pod:3774
13159 " pread-device device count offset\n"
13164 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5765
13166 "This command lets you read part of a file. It reads C<count> bytes of "
13167 "C<device>, starting at C<offset>."
13171 #: ../fish/guestfish-actions.pod:3782
13172 msgid "See also L</pread>."
13173 msgstr "Див. також L</pread>."
13176 #: ../fish/guestfish-actions.pod:3787
13181 #: ../fish/guestfish-actions.pod:3789
13184 " pvcreate device\n"
13187 " pvcreate пристрій\n"
13191 #: ../fish/guestfish-actions.pod:3791 ../src/guestfs-actions.pod:5788
13193 "This creates an LVM physical volume on the named C<device>, where C<device> "
13194 "should usually be a partition name such as C</dev/sda1>."
13198 #: ../fish/guestfish-actions.pod:3795
13203 #: ../fish/guestfish-actions.pod:3797
13206 " pvremove device\n"
13209 " pvremove пристрій\n"
13213 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5802
13215 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13220 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5805
13222 "The implementation uses the C<pvremove> command which refuses to wipe "
13223 "physical volumes that contain any volume groups, so you have to remove those "
13228 #: ../fish/guestfish-actions.pod:3806
13233 #: ../fish/guestfish-actions.pod:3808
13236 " pvresize device\n"
13239 " pvresize пристрій\n"
13243 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5819
13245 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13246 "the new size of the underlying device."
13250 #: ../fish/guestfish-actions.pod:3813
13251 msgid "pvresize-size"
13252 msgstr "pvresize-size"
13255 #: ../fish/guestfish-actions.pod:3815
13258 " pvresize-size device size\n"
13263 #: ../fish/guestfish-actions.pod:3817
13265 "This command is the same as L</pvresize> except that it allows you to "
13266 "specify the new size (in bytes) explicitly."
13270 #: ../fish/guestfish-actions.pod:3820
13275 #: ../fish/guestfish-actions.pod:3822
13285 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5845
13287 "List all the physical volumes detected. This is the equivalent of the L<pvs"
13292 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5848
13294 "This returns a list of just the device names that contain PVs (eg. C</dev/"
13299 #: ../fish/guestfish-actions.pod:3830
13300 msgid "See also L</pvs-full>."
13301 msgstr "Див. також L</pvs-full>."
13304 #: ../fish/guestfish-actions.pod:3832
13309 #: ../fish/guestfish-actions.pod:3834
13319 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5864
13321 "List all the physical volumes detected. This is the equivalent of the L<pvs"
13322 "(8)> command. The \"full\" version includes all fields."
13326 #: ../fish/guestfish-actions.pod:3839
13331 #: ../fish/guestfish-actions.pod:3841
13337 " pvuuid пристрій\n"
13341 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:5879
13342 msgid "This command returns the UUID of the LVM PV C<device>."
13346 #: ../fish/guestfish-actions.pod:3845
13351 #: ../fish/guestfish-actions.pod:3847
13354 " pwrite path content offset\n"
13359 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5895
13361 "This command writes to part of a file. It writes the data buffer C<content> "
13362 "to the file C<path> starting at offset C<offset>."
13366 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:5898
13368 "This command implements the L<pwrite(2)> system call, and like that system "
13369 "call it may not write the full data requested. The return value is the "
13370 "number of bytes that were actually written to the file. This could even be "
13371 "0, although short writes are unlikely for regular files in ordinary "
13376 #: ../fish/guestfish-actions.pod:3858
13377 msgid "See also L</pread>, L</pwrite-device>."
13378 msgstr "Див. також L</pread>, L</pwrite-device>."
13381 #: ../fish/guestfish-actions.pod:3863
13382 msgid "pwrite-device"
13383 msgstr "pwrite-device"
13386 #: ../fish/guestfish-actions.pod:3865
13389 " pwrite-device device content offset\n"
13394 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5922
13396 "This command writes to part of a device. It writes the data buffer "
13397 "C<content> to C<device> starting at offset C<offset>."
13401 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5925
13403 "This command implements the L<pwrite(2)> system call, and like that system "
13404 "call it may not write the full data requested (although short writes to disk "
13405 "devices and partitions are probably impossible with standard Linux kernels)."
13409 #: ../fish/guestfish-actions.pod:3875
13410 msgid "See also L</pwrite>."
13411 msgstr "Див. також L</pwrite>."
13414 #: ../fish/guestfish-actions.pod:3880
13419 #: ../fish/guestfish-actions.pod:3882
13422 " read-file path\n"
13425 " read-file шлях\n"
13429 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5946
13430 msgid "This calls returns the contents of the file C<path> as a buffer."
13434 #: ../fish/guestfish-actions.pod:3887
13436 "Unlike L</cat>, this function can correctly handle files that contain "
13437 "embedded ASCII NUL characters. However unlike L</download>, this function "
13438 "is limited in the total size of file that can be handled."
13442 #: ../fish/guestfish-actions.pod:3895
13444 msgstr "read-lines"
13447 #: ../fish/guestfish-actions.pod:3897
13450 " read-lines path\n"
13453 " read-lines шлях\n"
13457 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5971
13459 "The file contents are returned as a list of lines. Trailing C<LF> and "
13460 "C<CRLF> character sequences are I<not> returned."
13464 #: ../fish/guestfish-actions.pod:3904
13466 "Note that this function cannot correctly handle binary files (specifically, "
13467 "files containing C<\\0> character which is treated as end of line). For "
13468 "those you need to use the L</read-file> function which has a more complex "
13473 #: ../fish/guestfish-actions.pod:3909
13478 #: ../fish/guestfish-actions.pod:3911
13484 " readdir каталог\n"
13488 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5991
13489 msgid "This returns the list of directory entries in directory C<dir>."
13493 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5993
13495 "All entries in the directory are returned, including C<.> and C<..>. The "
13496 "entries are I<not> sorted, but returned in the same order as the underlying "
13501 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5997
13503 "Also this call returns basic file type information about each file. The "
13504 "C<ftyp> field will contain one of the following characters:"
13508 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6002
13513 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6004
13514 msgid "Block special"
13515 msgstr "Блоковий особливий"
13518 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6006
13523 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6008
13524 msgid "Char special"
13525 msgstr "Символьний особливий"
13528 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6010
13533 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6012
13538 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6014
13543 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6016
13544 msgid "FIFO (named pipe)"
13545 msgstr "FIFO (іменований канал)"
13548 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6018
13553 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6020
13554 msgid "Symbolic link"
13555 msgstr "Символічне посилання"
13558 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6022
13563 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6024
13564 msgid "Regular file"
13565 msgstr "Звичайний файл"
13568 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6026
13573 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6028
13578 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6030
13583 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6032
13584 msgid "Unknown file type"
13585 msgstr "Невідомий тип файла"
13588 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6034
13593 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6036
13595 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13599 #: ../fish/guestfish-actions.pod:3963
13601 "This function is primarily intended for use by programs. To get a simple "
13602 "list of names, use L</ls>. To get a printable directory for human "
13603 "consumption, use L</ll>."
13607 #: ../fish/guestfish-actions.pod:3967
13612 #: ../fish/guestfish-actions.pod:3969
13622 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6057
13623 msgid "This command reads the target of a symbolic link."
13627 #: ../fish/guestfish-actions.pod:3973
13628 msgid "readlinklist"
13629 msgstr "readlinklist"
13632 #: ../fish/guestfish-actions.pod:3975
13635 " readlinklist path 'names ...'\n"
13640 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6071
13642 "This call allows you to do a C<readlink> operation on multiple files, where "
13643 "all files are in the directory C<path>. C<names> is the list of files from "
13648 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6075
13650 "On return you get a list of strings, with a one-to-one correspondence to the "
13651 "C<names> list. Each string is the value of the symbolic link."
13655 #: ../fish/guestfish-actions.pod:3985 ../src/guestfs-actions.pod:6079
13657 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13658 "result string is the empty string C<\"\">. However the whole operation is "
13659 "completed even if there were C<readlink(2)> errors, and so you can call this "
13660 "function with names where you don't know if they are symbolic links already "
13661 "(albeit slightly less efficient)."
13665 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6086
13667 "This call is intended for programs that want to efficiently list a directory "
13668 "contents without making many round-trips. Very long directory listings "
13669 "might cause the protocol message size to be exceeded, causing this call to "
13670 "fail. The caller must split up such requests into smaller groups of names."
13674 #: ../fish/guestfish-actions.pod:3999
13679 #: ../fish/guestfish-actions.pod:4001
13689 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6105
13691 "Return the canonicalized absolute pathname of C<path>. The returned path "
13692 "has no C<.>, C<..> or symbolic link path elements."
13696 #: ../fish/guestfish-actions.pod:4006
13697 msgid "removexattr"
13698 msgstr "removexattr"
13701 #: ../fish/guestfish-actions.pod:4008
13704 " removexattr xattr path\n"
13709 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6120
13711 "This call removes the extended attribute named C<xattr> of the file C<path>."
13715 #: ../fish/guestfish-actions.pod:4013
13716 msgid "See also: L</lremovexattr>, L<attr(5)>."
13717 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13720 #: ../fish/guestfish-actions.pod:4015
13725 #: ../fish/guestfish-actions.pod:4017
13728 " resize2fs device\n"
13731 " resize2fs пристрій\n"
13735 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6135
13737 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13738 "underlying device."
13742 #: ../fish/guestfish-actions.pod:4022
13744 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13745 "before calling this command. For unknown reasons C<resize2fs> sometimes "
13746 "gives an error about this and sometimes not. In any case, it is always safe "
13747 "to call L</e2fsck-f> before calling this function."
13751 #: ../fish/guestfish-actions.pod:4028
13752 msgid "resize2fs-M"
13753 msgstr "resize2fs-M"
13756 #: ../fish/guestfish-actions.pod:4030
13759 " resize2fs-M device\n"
13762 " resize2fs-M пристрій\n"
13766 #: ../fish/guestfish-actions.pod:4032
13768 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13769 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
13774 #: ../fish/guestfish-actions.pod:4036
13776 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13777 "and read the C<Block size> and C<Block count> values. These two numbers, "
13778 "multiplied together, give the resulting size of the minimal filesystem in "
13783 #: ../fish/guestfish-actions.pod:4041
13784 msgid "resize2fs-size"
13785 msgstr "resize2fs-size"
13788 #: ../fish/guestfish-actions.pod:4043
13791 " resize2fs-size device size\n"
13796 #: ../fish/guestfish-actions.pod:4045
13798 "This command is the same as L</resize2fs> except that it allows you to "
13799 "specify the new size (in bytes) explicitly."
13803 #: ../fish/guestfish-actions.pod:4048
13808 #: ../fish/guestfish-actions.pod:4050
13818 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6187
13819 msgid "Remove the single file C<path>."
13823 #: ../fish/guestfish-actions.pod:4054
13828 #: ../fish/guestfish-actions.pod:4056
13838 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6199
13840 "Remove the file or directory C<path>, recursively removing the contents if "
13841 "its a directory. This is like the C<rm -rf> shell command."
13845 #: ../fish/guestfish-actions.pod:4062
13850 #: ../fish/guestfish-actions.pod:4064
13860 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6213
13861 msgid "Remove the single directory C<path>."
13865 #: ../fish/guestfish-actions.pod:4068
13866 msgid "rmmountpoint"
13867 msgstr "rmmountpoint"
13870 #: ../fish/guestfish-actions.pod:4070
13873 " rmmountpoint exemptpath\n"
13878 #: ../fish/guestfish-actions.pod:4072
13880 "This calls removes a mountpoint that was previously created with L</"
13881 "mkmountpoint>. See L</mkmountpoint> for full details."
13885 #: ../fish/guestfish-actions.pod:4076
13886 msgid "scrub-device"
13887 msgstr "scrub-device"
13890 #: ../fish/guestfish-actions.pod:4078
13893 " scrub-device device\n"
13896 " scrub-device пристрій\n"
13900 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6239
13902 "This command writes patterns over C<device> to make data retrieval more "
13907 #: ../fish/guestfish-actions.pod:4083 ../fish/guestfish-actions.pod:4098
13908 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6242
13909 #: ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
13911 "It is an interface to the L<scrub(1)> program. See that manual page for "
13916 #: ../fish/guestfish-actions.pod:4089
13918 msgstr "scrub-file"
13921 #: ../fish/guestfish-actions.pod:4091
13924 " scrub-file file\n"
13927 " scrub-file файл\n"
13931 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6258
13933 "This command writes patterns over a file to make data retrieval more "
13938 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6261
13939 msgid "The file is I<removed> after scrubbing."
13943 #: ../fish/guestfish-actions.pod:4101
13944 msgid "scrub-freespace"
13945 msgstr "scrub-freespace"
13948 #: ../fish/guestfish-actions.pod:4103
13951 " scrub-freespace dir\n"
13954 " scrub-freespace каталог\n"
13958 #: ../fish/guestfish-actions.pod:4105
13960 "This command creates the directory C<dir> and then fills it with files until "
13961 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13962 "deletes them. The intention is to scrub any free space on the partition "
13963 "containing C<dir>."
13967 #: ../fish/guestfish-actions.pod:4114
13969 msgstr "set-append"
13972 #: ../fish/guestfish-actions.pod:4116
13977 #: ../fish/guestfish-actions.pod:4118
13980 " set-append append\n"
13985 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6295
13987 "This function is used to add additional options to the guest kernel command "
13992 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6298
13994 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13995 "environment variable."
13999 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6301
14001 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14002 "(libguestfs always adds a few of its own)."
14006 #: ../fish/guestfish-actions.pod:4129
14007 msgid "set-attach-method"
14008 msgstr "set-attach-method"
14011 #: ../fish/guestfish-actions.pod:4131
14012 msgid "attach-method"
14016 #: ../fish/guestfish-actions.pod:4133
14019 " set-attach-method attachmethod\n"
14024 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6314
14026 "Set the method that libguestfs uses to connect to the back end guestfsd "
14027 "daemon. Possible methods are:"
14031 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6319
14032 #: ../src/guestfs.pod:2826
14033 msgid "C<appliance>"
14034 msgstr "C<appliance>"
14037 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6321
14039 "Launch an appliance and connect to it. This is the ordinary method and the "
14044 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6324
14045 msgid "C<unix:I<path>>"
14046 msgstr "C<unix:I<шлях>>"
14049 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6326
14050 msgid "Connect to the Unix domain socket I<path>."
14051 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
14054 #: ../fish/guestfish-actions.pod:4149 ../src/guestfs-actions.pod:6328
14056 "This method lets you connect to an existing daemon or (using virtio-serial) "
14057 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
14058 "RUNNING DAEMONS>."
14062 #: ../fish/guestfish-actions.pod:4155
14063 msgid "set-autosync"
14064 msgstr "set-autosync"
14067 #: ../fish/guestfish-actions.pod:4157
14072 #: ../fish/guestfish-actions.pod:4159
14075 " set-autosync true|false\n"
14078 " set-autosync true|false\n"
14082 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6344
14084 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
14085 "effort attempt to make filesystems consistent and synchronized when the "
14086 "handle is closed (also if the program exits without closing handles)."
14090 #: ../fish/guestfish-actions.pod:4166 ../src/guestfs-actions.pod:6349
14092 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14093 "disabled by default)."
14097 #: ../fish/guestfish-actions.pod:4169
14099 msgstr "set-direct"
14102 #: ../fish/guestfish-actions.pod:4171
14107 #: ../fish/guestfish-actions.pod:4173
14110 " set-direct true|false\n"
14113 " set-direct true|false\n"
14117 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6362
14119 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14120 "passed directly through to the appliance once it is launched."
14124 #: ../fish/guestfish-actions.pod:4179
14126 "One consequence of this is that log messages aren't caught by the library "
14127 "and handled by L</set-log-message-callback>, but go straight to stdout."
14131 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6370
14132 msgid "You probably don't want to use this unless you know what you are doing."
14136 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6373
14137 msgid "The default is disabled."
14141 #: ../fish/guestfish-actions.pod:4188
14142 msgid "set-e2label"
14143 msgstr "set-e2label"
14146 #: ../fish/guestfish-actions.pod:4190
14149 " set-e2label device label\n"
14154 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6386
14156 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14157 "C<label>. Filesystem labels are limited to 16 characters."
14161 #: ../fish/guestfish-actions.pod:4196
14163 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14164 "label on a filesystem."
14168 #: ../fish/guestfish-actions.pod:4199
14170 msgstr "set-e2uuid"
14173 #: ../fish/guestfish-actions.pod:4201
14176 " set-e2uuid device uuid\n"
14181 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6404
14183 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14184 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
14185 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14189 #: ../fish/guestfish-actions.pod:4208
14191 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14192 "UUID of a filesystem."
14196 #: ../fish/guestfish-actions.pod:4211
14197 msgid "set-memsize"
14198 msgstr "set-memsize"
14201 #: ../fish/guestfish-actions.pod:4213
14206 #: ../fish/guestfish-actions.pod:4215
14209 " set-memsize memsize\n"
14214 #: ../fish/guestfish-actions.pod:4217
14216 "This sets the memory size in megabytes allocated to the qemu subprocess. "
14217 "This only has any effect if called before L</launch>."
14221 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6426
14223 "You can also change this by setting the environment variable "
14224 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14228 #: ../fish/guestfish-actions.pod:4228
14229 msgid "set-network"
14230 msgstr "set-network"
14233 #: ../fish/guestfish-actions.pod:4230
14238 #: ../fish/guestfish-actions.pod:4232
14241 " set-network true|false\n"
14244 " set-network true|false\n"
14248 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6443
14250 "If C<network> is true, then the network is enabled in the libguestfs "
14251 "appliance. The default is false."
14255 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6446
14257 "This affects whether commands are able to access the network (see L<guestfs"
14258 "(3)/RUNNING COMMANDS>)."
14262 #: ../fish/guestfish-actions.pod:4240
14264 "You must call this before calling L</launch>, otherwise it has no effect."
14268 #: ../fish/guestfish-actions.pod:4243
14273 #: ../fish/guestfish-actions.pod:4247
14276 " set-path searchpath\n"
14281 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6462
14282 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14286 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6464
14288 "The default is C<$libdir/guestfs> unless overridden by setting "
14289 "C<LIBGUESTFS_PATH> environment variable."
14293 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6467
14294 msgid "Setting C<path> to C<NULL> restores the default path."
14298 #: ../fish/guestfish-actions.pod:4256
14303 #: ../fish/guestfish-actions.pod:4258
14308 #: ../fish/guestfish-actions.pod:4260
14311 " set-pgroup true|false\n"
14316 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6479
14318 "If C<pgroup> is true, child processes are placed into their own process "
14323 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6482
14325 "The practical upshot of this is that signals like C<SIGINT> (from users "
14326 "pressing C<^C>) won't be received by the child process."
14330 #: ../fish/guestfish-actions.pod:4268 ../src/guestfs-actions.pod:6485
14332 "The default for this flag is false, because usually you want C<^C> to kill "
14337 #: ../fish/guestfish-actions.pod:4271
14342 #: ../fish/guestfish-actions.pod:4273
14347 #: ../fish/guestfish-actions.pod:4275
14357 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6498
14358 msgid "Set the qemu binary that we will use."
14362 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6500
14364 "The default is chosen when the library was compiled by the configure script."
14368 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6503
14370 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14375 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6506
14376 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14380 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6508
14382 "Note that you should call this function as early as possible after creating "
14383 "the handle. This is because some pre-launch operations depend on testing "
14384 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
14385 "don't retest features, and so you might see inconsistent results. Using the "
14386 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14387 "the qemu binary at the same time as the handle is created."
14391 #: ../fish/guestfish-actions.pod:4295
14392 msgid "set-recovery-proc"
14393 msgstr "set-recovery-proc"
14396 #: ../fish/guestfish-actions.pod:4297
14397 msgid "recovery-proc"
14398 msgstr "recovery-proc"
14401 #: ../fish/guestfish-actions.pod:4299
14404 " set-recovery-proc true|false\n"
14407 " set-recovery-proc true|false\n"
14411 #: ../fish/guestfish-actions.pod:4301
14413 "If this is called with the parameter C<false> then L</launch> does not "
14414 "create a recovery process. The purpose of the recovery process is to stop "
14415 "runaway qemu processes in the case where the main program aborts abruptly."
14419 #: ../fish/guestfish-actions.pod:4306
14421 "This only has any effect if called before L</launch>, and the default is "
14426 #: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6534
14428 "About the only time when you would want to disable this is if the main "
14429 "process will fork itself into the background (\"daemonize\" itself). In "
14430 "this case the recovery process thinks that the main program has disappeared "
14431 "and so kills qemu, which is not very helpful."
14435 #: ../fish/guestfish-actions.pod:4315
14436 msgid "set-selinux"
14437 msgstr "set-selinux"
14440 #: ../fish/guestfish-actions.pod:4317
14445 #: ../fish/guestfish-actions.pod:4319
14448 " set-selinux true|false\n"
14451 " set-selinux true|false\n"
14455 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6550
14457 "This sets the selinux flag that is passed to the appliance at boot time. "
14458 "The default is C<selinux=0> (disabled)."
14462 #: ../fish/guestfish-actions.pod:4324 ../src/guestfs-actions.pod:6553
14464 "Note that if SELinux is enabled, it is always in Permissive mode "
14465 "(C<enforcing=0>)."
14469 #: ../fish/guestfish-actions.pod:4330
14471 #| msgid "set-path"
14476 #: ../fish/guestfish-actions.pod:4332
14481 #: ../fish/guestfish-actions.pod:4334
14484 #| " set-qemu qemu\n"
14494 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6569
14496 "Change the number of virtual CPUs assigned to the appliance. The default is "
14497 "C<1>. Increasing this may improve performance, though often it has no "
14502 #: ../fish/guestfish-actions.pod:4340
14503 msgid "This function must be called before L</launch>."
14507 #: ../fish/guestfish-actions.pod:4342
14512 #: ../fish/guestfish-actions.pod:4344
14517 #: ../fish/guestfish-actions.pod:4346
14520 " set-trace true|false\n"
14523 " set-trace true|false\n"
14527 #: ../fish/guestfish-actions.pod:4348 ../src/guestfs-actions.pod:6583
14529 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14530 "return values are traced."
14534 #: ../fish/guestfish-actions.pod:4351 ../src/guestfs-actions.pod:6586
14536 "If you want to trace C API calls into libguestfs (and other libraries) then "
14537 "possibly a better way is to use the external ltrace(1) command."
14541 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6590
14543 "Command traces are disabled unless the environment variable "
14544 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14548 #: ../fish/guestfish-actions.pod:4358
14550 "Trace messages are normally sent to C<stderr>, unless you register a "
14551 "callback to send them somewhere else (see L</set-event-callback>)."
14555 #: ../fish/guestfish-actions.pod:4362
14556 msgid "set-verbose"
14557 msgstr "set-verbose"
14560 #: ../fish/guestfish-actions.pod:4364
14565 #: ../fish/guestfish-actions.pod:4366
14568 " set-verbose true|false\n"
14571 " set-verbose true|false\n"
14575 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6607
14576 msgid "If C<verbose> is true, this turns on verbose messages."
14580 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6609
14582 "Verbose messages are disabled unless the environment variable "
14583 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14587 #: ../fish/guestfish-actions.pod:4373
14589 "Verbose messages are normally sent to C<stderr>, unless you register a "
14590 "callback to send them somewhere else (see L</set-event-callback>)."
14594 #: ../fish/guestfish-actions.pod:4377
14599 #: ../fish/guestfish-actions.pod:4379
14602 " setcon context\n"
14605 " setcon контекст\n"
14609 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6626
14611 "This sets the SELinux security context of the daemon to the string "
14616 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6629
14617 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14621 #: ../fish/guestfish-actions.pod:4386
14626 #: ../fish/guestfish-actions.pod:4388
14629 " setxattr xattr val vallen path\n"
14634 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6644
14636 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14637 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
14641 #: ../fish/guestfish-actions.pod:4394
14642 msgid "See also: L</lsetxattr>, L<attr(5)>."
14643 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14646 #: ../fish/guestfish-actions.pod:4396
14651 #: ../fish/guestfish-actions.pod:4398
14654 " sfdisk device cyls heads sectors 'lines ...'\n"
14659 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6671
14661 "This is a direct interface to the L<sfdisk(8)> program for creating "
14662 "partitions on block devices."
14666 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6674
14667 msgid "C<device> should be a block device, for example C</dev/sda>."
14671 #: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:6676
14673 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14674 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14675 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
14676 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
14677 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14678 "the kernel) cannot work out the right geometry and you will need to tell it."
14682 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6684
14684 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
14685 "refer to the L<sfdisk(8)> manpage."
14689 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6687
14691 "To create a single partition occupying the whole disk, you would pass "
14692 "C<lines> as a single element list, when the single element being the string "
14697 #: ../fish/guestfish-actions.pod:4420
14698 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14699 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14702 #: ../fish/guestfish-actions.pod:4426 ../fish/guestfish-actions.pod:4449
14703 #: ../fish/guestfish-actions.pod:4471
14705 "I<This function is deprecated.> In new code, use the L</part_add> call "
14710 #: ../fish/guestfish-actions.pod:4433
14715 #: ../fish/guestfish-actions.pod:4435
14718 " sfdiskM device 'lines ...'\n"
14723 #: ../fish/guestfish-actions.pod:4437
14725 "This is a simplified interface to the L</sfdisk> command, where partition "
14726 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14727 "you don't need to specify the cyls, heads and sectors parameters which were "
14728 "rarely if ever used anyway."
14732 #: ../fish/guestfish-actions.pod:4443
14733 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14735 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14738 #: ../fish/guestfish-actions.pod:4456
14743 #: ../fish/guestfish-actions.pod:4458
14746 " sfdisk-N device partnum cyls heads sectors line\n"
14751 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6749
14753 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14754 "(note: C<n> counts from 1)."
14758 #: ../fish/guestfish-actions.pod:4463
14760 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
14761 "cyls/heads/sectors parameters."
14765 #: ../fish/guestfish-actions.pod:4466
14766 msgid "See also: L</part-add>"
14767 msgstr "Див. також L</part-add>"
14770 #: ../fish/guestfish-actions.pod:4478
14771 msgid "sfdisk-disk-geometry"
14772 msgstr "sfdisk-disk-geometry"
14775 #: ../fish/guestfish-actions.pod:4480
14778 " sfdisk-disk-geometry device\n"
14781 " sfdisk-disk-geometry пристрій\n"
14785 #: ../fish/guestfish-actions.pod:4482
14787 "This displays the disk geometry of C<device> read from the partition table. "
14788 "Especially in the case where the underlying block device has been resized, "
14789 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14790 "kernel-geometry>)."
14794 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4496
14795 #: ../src/guestfs-actions.pod:6775 ../src/guestfs-actions.pod:6791
14796 msgid "The result is in human-readable format, and not designed to be parsed."
14800 #: ../fish/guestfish-actions.pod:4490
14801 msgid "sfdisk-kernel-geometry"
14802 msgstr "sfdisk-kernel-geometry"
14805 #: ../fish/guestfish-actions.pod:4492
14808 " sfdisk-kernel-geometry device\n"
14811 " sfdisk-kernel-geometry пристрій\n"
14815 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6789
14816 msgid "This displays the kernel's idea of the geometry of C<device>."
14820 #: ../fish/guestfish-actions.pod:4499
14825 #: ../fish/guestfish-actions.pod:4501
14828 " sfdisk-l device\n"
14831 " sfdisk-l пристрій\n"
14835 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6812
14837 "This displays the partition table on C<device>, in the human-readable output "
14838 "of the L<sfdisk(8)> command. It is not intended to be parsed."
14842 #: ../fish/guestfish-actions.pod:4507
14843 msgid "See also: L</part-list>"
14844 msgstr "Див. також L</part-list>"
14847 #: ../fish/guestfish-actions.pod:4509
14849 "I<This function is deprecated.> In new code, use the L</part_list> call "
14854 #: ../fish/guestfish-actions.pod:4516
14859 #: ../fish/guestfish-actions.pod:4518
14869 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6829
14871 "This call runs a command from the guest filesystem via the guest's C</bin/"
14876 #: ../fish/guestfish-actions.pod:4523
14877 msgid "This is like L</command>, but passes the command to:"
14881 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6834
14884 " /bin/sh -c \"command\"\n"
14889 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6836
14891 "Depending on the guest's shell, this usually results in wildcards being "
14892 "expanded, shell expressions being interpolated and so on."
14896 #: ../fish/guestfish-actions.pod:4531
14897 msgid "All the provisos about L</command> apply to this call."
14901 #: ../fish/guestfish-actions.pod:4533
14906 #: ../fish/guestfish-actions.pod:4535
14909 " sh-lines command\n"
14912 " sh-lines команда\n"
14916 #: ../fish/guestfish-actions.pod:4537
14917 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14921 #: ../fish/guestfish-actions.pod:4540
14922 msgid "See also: L</command-lines>"
14923 msgstr "Див. також L</command-lines>"
14926 #: ../fish/guestfish-actions.pod:4542
14931 #: ../fish/guestfish-actions.pod:4544
14937 " sleep час_у_секундах\n"
14941 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6870
14942 msgid "Sleep for C<secs> seconds."
14946 #: ../fish/guestfish-actions.pod:4548
14951 #: ../fish/guestfish-actions.pod:4550
14961 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6884
14962 msgid "This is the same as the C<stat(2)> system call."
14966 #: ../fish/guestfish-actions.pod:4556
14971 #: ../fish/guestfish-actions.pod:4558
14981 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6898
14983 "Returns file system statistics for any mounted file system. C<path> should "
14984 "be a file or directory in the mounted file system (typically it is the mount "
14985 "point itself, but it doesn't need to be)."
14989 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6902
14990 msgid "This is the same as the C<statvfs(2)> system call."
14994 #: ../fish/guestfish-actions.pod:4566
14999 #: ../fish/guestfish-actions.pod:4568
15009 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6916
15011 "This runs the L<strings(1)> command on a file and returns the list of "
15012 "printable strings found."
15016 #: ../fish/guestfish-actions.pod:4576
15021 #: ../fish/guestfish-actions.pod:4578
15024 " strings-e encoding path\n"
15027 " strings-e кодування шлях\n"
15031 #: ../fish/guestfish-actions.pod:4580
15033 "This is like the L</strings> command, but allows you to specify the encoding "
15034 "of strings that are looked for in the source file C<path>."
15038 #: ../fish/guestfish-actions.pod:4584 ../src/guestfs-actions.pod:6939
15039 msgid "Allowed encodings are:"
15040 msgstr "Можливими кодуваннями є:"
15043 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6943
15048 #: ../fish/guestfish-actions.pod:4590
15050 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15051 "ISO-8859-X (this is what L</strings> uses)."
15055 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6948
15060 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:6950
15061 msgid "Single 8-bit-byte characters."
15062 msgstr "Окремі 8-бітові-байтові символи."
15065 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6952
15070 #: ../fish/guestfish-actions.pod:4599 ../src/guestfs-actions.pod:6954
15071 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15075 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6957
15076 msgid "l (lower case letter L)"
15080 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6959
15082 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
15083 "examining binaries in Windows guests."
15087 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6962
15092 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6964
15093 msgid "32-bit big endian such as UCS-4BE."
15097 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6966
15102 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6968
15103 msgid "32-bit little endian such as UCS-4LE."
15107 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6972
15108 msgid "The returned strings are transcoded to UTF-8."
15112 #: ../fish/guestfish-actions.pod:4622
15113 msgid "swapoff-device"
15114 msgstr "swapoff-device"
15117 #: ../fish/guestfish-actions.pod:4624
15120 " swapoff-device device\n"
15123 " swapoff-device пристрій\n"
15127 #: ../fish/guestfish-actions.pod:4626
15129 "This command disables the libguestfs appliance swap device or partition "
15130 "named C<device>. See L</swapon-device>."
15134 #: ../fish/guestfish-actions.pod:4630
15135 msgid "swapoff-file"
15136 msgstr "swapoff-file"
15139 #: ../fish/guestfish-actions.pod:4632
15142 " swapoff-file file\n"
15145 " swapoff-file файл\n"
15149 #: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7003
15150 msgid "This command disables the libguestfs appliance swap on file."
15154 #: ../fish/guestfish-actions.pod:4636
15155 msgid "swapoff-label"
15156 msgstr "swapoff-label"
15159 #: ../fish/guestfish-actions.pod:4638
15162 " swapoff-label label\n"
15165 " swapoff-label мітка\n"
15169 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:7015
15171 "This command disables the libguestfs appliance swap on labeled swap "
15176 #: ../fish/guestfish-actions.pod:4643
15177 msgid "swapoff-uuid"
15178 msgstr "swapoff-uuid"
15181 #: ../fish/guestfish-actions.pod:4645
15184 " swapoff-uuid uuid\n"
15187 " swapoff-uuid uuid\n"
15191 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7028
15193 "This command disables the libguestfs appliance swap partition with the given "
15198 #: ../fish/guestfish-actions.pod:4650
15199 msgid "swapon-device"
15200 msgstr "swapon-device"
15203 #: ../fish/guestfish-actions.pod:4652
15206 " swapon-device device\n"
15209 " swapon-device пристрій\n"
15213 #: ../fish/guestfish-actions.pod:4654
15215 "This command enables the libguestfs appliance to use the swap device or "
15216 "partition named C<device>. The increased memory is made available for all "
15217 "commands, for example those run using L</command> or L</sh>."
15221 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7046
15223 "Note that you should not swap to existing guest swap partitions unless you "
15224 "know what you are doing. They may contain hibernation information, or other "
15225 "information that the guest doesn't want you to trash. You also risk leaking "
15226 "information about the host to the guest this way. Instead, attach a new "
15227 "host device to the guest and swap on that."
15231 #: ../fish/guestfish-actions.pod:4666
15232 msgid "swapon-file"
15233 msgstr "swapon-file"
15236 #: ../fish/guestfish-actions.pod:4668
15239 " swapon-file file\n"
15242 " swapon-file файл\n"
15246 #: ../fish/guestfish-actions.pod:4670
15248 "This command enables swap to a file. See L</swapon-device> for other notes."
15252 #: ../fish/guestfish-actions.pod:4673
15253 msgid "swapon-label"
15254 msgstr "swapon-label"
15257 #: ../fish/guestfish-actions.pod:4675
15260 " swapon-label label\n"
15263 " swapon-label мітка\n"
15267 #: ../fish/guestfish-actions.pod:4677
15269 "This command enables swap to a labeled swap partition. See L</swapon-"
15270 "device> for other notes."
15274 #: ../fish/guestfish-actions.pod:4680
15275 msgid "swapon-uuid"
15276 msgstr "swapon-uuid"
15279 #: ../fish/guestfish-actions.pod:4682
15282 " swapon-uuid uuid\n"
15285 " swapon-uuid uuid\n"
15289 #: ../fish/guestfish-actions.pod:4684
15291 "This command enables swap to a swap partition with the given UUID. See L</"
15292 "swapon-device> for other notes."
15296 #: ../fish/guestfish-actions.pod:4687
15301 #: ../fish/guestfish-actions.pod:4689
15311 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7101
15313 "This syncs the disk, so that any writes are flushed through to the "
15314 "underlying disk image."
15318 #: ../fish/guestfish-actions.pod:4694 ../src/guestfs-actions.pod:7104
15320 "You should always call this if you have modified a disk image, before "
15321 "closing the handle."
15325 #: ../fish/guestfish-actions.pod:4697
15330 #: ../fish/guestfish-actions.pod:4699
15340 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7117
15342 "This command returns up to the last 10 lines of a file as a list of strings."
15346 #: ../fish/guestfish-actions.pod:4707
15351 #: ../fish/guestfish-actions.pod:4709
15354 " tail-n nrlines path\n"
15359 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7136
15361 "If the parameter C<nrlines> is a positive number, this returns the last "
15362 "C<nrlines> lines of the file C<path>."
15366 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7139
15368 "If the parameter C<nrlines> is a negative number, this returns lines from "
15369 "the file C<path>, starting with the C<-nrlines>th line."
15373 #: ../fish/guestfish-actions.pod:4722
15378 #: ../fish/guestfish-actions.pod:4724
15381 " tar-in (tarfile|-) directory\n"
15384 " tar-in (файл_tar|-) каталог\n"
15388 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7160
15390 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15391 "tar file) into C<directory>."
15395 #: ../fish/guestfish-actions.pod:4729
15396 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15400 #: ../fish/guestfish-actions.pod:4734
15405 #: ../fish/guestfish-actions.pod:4736
15408 " tar-out directory (tarfile|-)\n"
15411 " tar-out каталог (файл tar|-)\n"
15415 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7177
15417 "This command packs the contents of C<directory> and downloads it to local "
15422 #: ../fish/guestfish-actions.pod:4741
15423 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15427 #: ../fish/guestfish-actions.pod:4746
15432 #: ../fish/guestfish-actions.pod:4748
15435 " tgz-in (tarball|-) directory\n"
15438 " tgz-in (архів tar|-) каталог\n"
15442 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7194
15444 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15445 "tar file) into C<directory>."
15449 #: ../fish/guestfish-actions.pod:4753
15450 msgid "To upload an uncompressed tarball, use L</tar-in>."
15454 #: ../fish/guestfish-actions.pod:4757
15459 #: ../fish/guestfish-actions.pod:4759
15462 " tgz-out directory (tarball|-)\n"
15465 " tgz-out каталог (архів tar|-)\n"
15469 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7210
15471 "This command packs the contents of C<directory> and downloads it to local "
15476 #: ../fish/guestfish-actions.pod:4764
15477 msgid "To download an uncompressed tarball, use L</tar-out>."
15481 #: ../fish/guestfish-actions.pod:4768
15486 #: ../fish/guestfish-actions.pod:4770
15496 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7225
15498 "Touch acts like the L<touch(1)> command. It can be used to update the "
15499 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15504 #: ../fish/guestfish-actions.pod:4776 ../src/guestfs-actions.pod:7229
15506 "This command only works on regular files, and will fail on other file types "
15507 "such as directories, symbolic links, block special etc."
15511 #: ../fish/guestfish-actions.pod:4779
15516 #: ../fish/guestfish-actions.pod:4781
15526 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7242
15528 "This command truncates C<path> to a zero-length file. The file must exist "
15533 #: ../fish/guestfish-actions.pod:4786
15534 msgid "truncate-size"
15535 msgstr "truncate-size"
15538 #: ../fish/guestfish-actions.pod:4788
15541 " truncate-size path size\n"
15544 " truncate-size шлях розмір\n"
15548 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7256
15550 "This command truncates C<path> to size C<size> bytes. The file must exist "
15555 #: ../fish/guestfish-actions.pod:4793
15557 "If the current file size is less than C<size> then the file is extended to "
15558 "the required size with zero bytes. This creates a sparse file (ie. disk "
15559 "blocks are not allocated for the file until you write to it). To create a "
15560 "non-sparse file of zeroes, use L</fallocate64> instead."
15564 #: ../fish/guestfish-actions.pod:4799
15569 #: ../fish/guestfish-actions.pod:4801
15572 " tune2fs-l device\n"
15575 " tune2fs-l пристрій\n"
15579 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7275
15581 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15586 #: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7278
15588 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
15589 "for more details. The list of fields returned isn't clearly defined, and "
15590 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15591 "and the filesystem itself."
15595 #: ../fish/guestfish-actions.pod:4811
15600 #: ../fish/guestfish-actions.pod:4813
15603 " txz-in (tarball|-) directory\n"
15606 " txz-in (архів tar|-) каталог\n"
15610 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7298
15612 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15613 "tar file) into C<directory>."
15617 #: ../fish/guestfish-actions.pod:4820
15622 #: ../fish/guestfish-actions.pod:4822
15625 " txz-out directory (tarball|-)\n"
15628 " txz-out каталог (архів tar|-)\n"
15632 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7312
15634 "This command packs the contents of C<directory> and downloads it to local "
15635 "file C<tarball> (as an xz compressed tar archive)."
15639 #: ../fish/guestfish-actions.pod:4829
15644 #: ../fish/guestfish-actions.pod:4831
15654 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7325
15656 "This function sets the mask used for creating new files and device nodes to "
15661 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7328
15663 "Typical umask values would be C<022> which creates new files with "
15664 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15665 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15669 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7333
15671 "The default umask is C<022>. This is important because it means that "
15672 "directories and device nodes will be created with C<0644> or C<0755> mode "
15673 "even if you specify C<0777>."
15677 #: ../fish/guestfish-actions.pod:4845
15678 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15679 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15682 #: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7340
15683 msgid "This call returns the previous umask."
15687 #: ../fish/guestfish-actions.pod:4850
15692 #: ../fish/guestfish-actions.pod:4852
15697 #: ../fish/guestfish-actions.pod:4854
15700 " umount pathordevice\n"
15703 " umount шлях_або_пристрій\n"
15707 #: ../fish/guestfish-actions.pod:4856 ../src/guestfs-actions.pod:7352
15709 "This unmounts the given filesystem. The filesystem may be specified either "
15710 "by its mountpoint (path) or the device which contains the filesystem."
15714 #: ../fish/guestfish-actions.pod:4860
15716 msgstr "umount-all"
15719 #: ../fish/guestfish-actions.pod:4862
15720 msgid "unmount-all"
15721 msgstr "unmount-all"
15724 #: ../fish/guestfish-actions.pod:4864
15734 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7365
15735 msgid "This unmounts all mounted filesystems."
15739 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7367
15740 msgid "Some internal mounts are not unmounted by this call."
15744 #: ../fish/guestfish-actions.pod:4870
15749 #: ../fish/guestfish-actions.pod:4872
15752 " upload (filename|-) remotefilename\n"
15755 " upload (назва_файла|-) назва_віддаленого_файла\n"
15759 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4887
15760 #: ../src/guestfs-actions.pod:7380 ../src/guestfs-actions.pod:7404
15761 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15765 #: ../fish/guestfish-actions.pod:4879
15766 msgid "See also L</download>."
15767 msgstr "Див. також L</download>."
15770 #: ../fish/guestfish-actions.pod:4883
15771 msgid "upload-offset"
15772 msgstr "upload-offset"
15775 #: ../fish/guestfish-actions.pod:4885
15778 " upload-offset (filename|-) remotefilename offset\n"
15781 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15785 #: ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:7407
15787 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
15788 "The intention is to overwrite parts of existing files or devices, although "
15789 "if a non-existant file is specified then it is created with a \"hole\" "
15790 "before C<offset>. The size of the data written is implicit in the size of "
15791 "the source C<filename>."
15795 #: ../fish/guestfish-actions.pod:4897
15797 "Note that there is no limit on the amount of data that can be uploaded with "
15798 "this call, unlike with L</pwrite>, and this call always writes the full "
15799 "amount unless an error occurs."
15803 #: ../fish/guestfish-actions.pod:4902
15804 msgid "See also L</upload>, L</pwrite>."
15805 msgstr "Див. також L</upload>, L</pwrite>."
15808 #: ../fish/guestfish-actions.pod:4906
15813 #: ../fish/guestfish-actions.pod:4908
15816 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15821 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7440
15822 msgid "This command sets the timestamps of a file with nanosecond precision."
15826 #: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7443
15828 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15833 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7446
15835 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15836 "nanoseconds from the epoch."
15840 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7449
15842 "If the C<*nsecs> field contains the special value C<-1> then the "
15843 "corresponding timestamp is set to the current time. (The C<*secs> field is "
15844 "ignored in this case)."
15848 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7453
15850 "If the C<*nsecs> field contains the special value C<-2> then the "
15851 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
15856 #: ../fish/guestfish-actions.pod:4927
15861 #: ../fish/guestfish-actions.pod:4929
15871 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7466
15873 "Return the libguestfs version number that the program is linked against."
15877 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7469
15879 "Note that because of dynamic linking this is not necessarily the version of "
15880 "libguestfs that you compiled against. You can compile the program, and then "
15881 "at runtime dynamically link against a completely different C<libguestfs.so> "
15886 #: ../fish/guestfish-actions.pod:4939 ../src/guestfs-actions.pod:7474
15888 "This call was added in version C<1.0.58>. In previous versions of "
15889 "libguestfs there was no way to get the version number. From C code you can "
15890 "use dynamic linker functions to find out if this symbol exists (if it "
15891 "doesn't, then it's an earlier version)."
15895 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7480
15897 "The call returns a structure with four elements. The first three (C<major>, "
15898 "C<minor> and C<release>) are numbers and correspond to the usual version "
15899 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
15900 "but may be used for distro-specific information."
15904 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7486
15906 "To construct the original version string: C<$major.$minor.$release$extra>"
15910 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7489
15911 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15915 #: ../fish/guestfish-actions.pod:4956
15917 "I<Note:> Don't use this call to test for availability of features. In "
15918 "enterprise distributions we backport features from later versions into "
15919 "earlier versions, making this an unreliable way to test for features. Use "
15920 "L</available> instead."
15924 #: ../fish/guestfish-actions.pod:4962
15929 #: ../fish/guestfish-actions.pod:4964
15932 " vfs-label device\n"
15935 " vfs-label пристрій\n"
15939 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7509
15940 msgid "This returns the filesystem label of the filesystem on C<device>."
15944 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7512
15945 msgid "If the filesystem is unlabeled, this returns the empty string."
15949 #: ../fish/guestfish-actions.pod:4971
15950 msgid "To find a filesystem from the label, use L</findfs-label>."
15954 #: ../fish/guestfish-actions.pod:4973
15959 #: ../fish/guestfish-actions.pod:4975
15962 " vfs-type device\n"
15965 " vfs-type пристрій\n"
15969 #: ../fish/guestfish-actions.pod:4977 ../src/guestfs-actions.pod:7527
15971 "This command gets the filesystem type corresponding to the filesystem on "
15976 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7530
15978 "For most filesystems, the result is the name of the Linux VFS module which "
15979 "would be used to mount this filesystem if you mounted it without specifying "
15980 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
15984 #: ../fish/guestfish-actions.pod:4985
15989 #: ../fish/guestfish-actions.pod:4987
15992 " vfs-uuid device\n"
15995 " vfs-uuid пристрій\n"
15999 #: ../fish/guestfish-actions.pod:4989 ../src/guestfs-actions.pod:7546
16000 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16004 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7549
16005 msgid "If the filesystem does not have a UUID, this returns the empty string."
16009 #: ../fish/guestfish-actions.pod:4994
16010 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16014 #: ../fish/guestfish-actions.pod:4996
16015 msgid "vg-activate"
16016 msgstr "vg-activate"
16019 #: ../fish/guestfish-actions.pod:4998
16022 " vg-activate true|false 'volgroups ...'\n"
16027 #: ../fish/guestfish-actions.pod:5000 ../src/guestfs-actions.pod:7565
16029 "This command activates or (if C<activate> is false) deactivates all logical "
16030 "volumes in the listed volume groups C<volgroups>."
16034 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7568
16035 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16039 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7570
16041 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16042 "activated or deactivated."
16046 #: ../fish/guestfish-actions.pod:5008
16047 msgid "vg-activate-all"
16048 msgstr "vg-activate-all"
16051 #: ../fish/guestfish-actions.pod:5010
16054 " vg-activate-all true|false\n"
16057 " vg-activate-all true|false\n"
16061 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7583
16063 "This command activates or (if C<activate> is false) deactivates all logical "
16064 "volumes in all volume groups."
16068 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7586
16069 msgid "This command is the same as running C<vgchange -a y|n>"
16073 #: ../fish/guestfish-actions.pod:5017
16078 #: ../fish/guestfish-actions.pod:5019
16081 " vgcreate volgroup 'physvols ...'\n"
16086 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7599
16088 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16089 "of physical volumes C<physvols>."
16093 #: ../fish/guestfish-actions.pod:5024
16098 #: ../fish/guestfish-actions.pod:5026
16101 " vglvuuids vgname\n"
16106 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7612
16108 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16109 "volumes created in this volume group."
16113 #: ../fish/guestfish-actions.pod:5031
16115 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16116 "logical volumes and volume groups."
16120 #: ../fish/guestfish-actions.pod:5034
16121 msgid "See also L</vgpvuuids>."
16122 msgstr "Див. також L</vgpvuuids>."
16125 #: ../fish/guestfish-actions.pod:5036
16130 #: ../fish/guestfish-actions.pod:5038
16133 " vgpvuuids vgname\n"
16138 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7632
16140 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16141 "volumes that this volume group resides on."
16145 #: ../fish/guestfish-actions.pod:5043
16147 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16148 "physical volumes and volume groups."
16152 #: ../fish/guestfish-actions.pod:5046
16153 msgid "See also L</vglvuuids>."
16154 msgstr "Див. також L</vglvuuids>."
16157 #: ../fish/guestfish-actions.pod:5048
16162 #: ../fish/guestfish-actions.pod:5050
16165 " vgremove vgname\n"
16170 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7652
16171 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16175 #: ../fish/guestfish-actions.pod:5054 ../src/guestfs-actions.pod:7654
16177 "This also forcibly removes all logical volumes in the volume group (if any)."
16181 #: ../fish/guestfish-actions.pod:5057
16186 #: ../fish/guestfish-actions.pod:5059
16189 " vgrename volgroup newvolgroup\n"
16194 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7668
16195 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16199 #: ../fish/guestfish-actions.pod:5063
16204 #: ../fish/guestfish-actions.pod:5065
16214 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7679
16216 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
16221 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7682
16223 "This returns a list of just the volume group names that were detected (eg. "
16228 #: ../fish/guestfish-actions.pod:5073
16229 msgid "See also L</vgs-full>."
16230 msgstr "Див. також L</vgs-full>."
16233 #: ../fish/guestfish-actions.pod:5075
16238 #: ../fish/guestfish-actions.pod:5077
16248 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7698
16250 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
16251 "> command. The \"full\" version includes all fields."
16255 #: ../fish/guestfish-actions.pod:5082
16260 #: ../fish/guestfish-actions.pod:5084
16270 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7712
16272 "This rescans all block devices and rebuilds the list of LVM physical "
16273 "volumes, volume groups and logical volumes."
16277 #: ../fish/guestfish-actions.pod:5089
16282 #: ../fish/guestfish-actions.pod:5091
16290 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7725
16291 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16295 #: ../fish/guestfish-actions.pod:5095
16300 #: ../fish/guestfish-actions.pod:5097
16310 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7765
16312 "This command counts the characters in a file, using the C<wc -c> external "
16317 #: ../fish/guestfish-actions.pod:5102
16322 #: ../fish/guestfish-actions.pod:5104
16332 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7778
16334 "This command counts the lines in a file, using the C<wc -l> external command."
16338 #: ../fish/guestfish-actions.pod:5109
16343 #: ../fish/guestfish-actions.pod:5111
16353 #: ../fish/guestfish-actions.pod:5113 ../src/guestfs-actions.pod:7791
16355 "This command counts the words in a file, using the C<wc -w> external command."
16359 #: ../fish/guestfish-actions.pod:5116
16364 #: ../fish/guestfish-actions.pod:5118
16367 " write path content\n"
16370 " write шлях дані\n"
16374 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7806
16376 "This call creates a file called C<path>. The content of the file is the "
16377 "string C<content> (which can contain any 8 bit data)."
16381 #: ../fish/guestfish-actions.pod:5123
16382 msgid "See also L</write-append>."
16386 #: ../fish/guestfish-actions.pod:5128
16387 msgid "write-append"
16391 #: ../fish/guestfish-actions.pod:5130
16394 " write-append path content\n"
16399 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7826
16401 "This call appends C<content> to the end of file C<path>. If C<path> does "
16402 "not exist, then a new file is created."
16406 #: ../fish/guestfish-actions.pod:5135
16407 msgid "See also L</write>."
16411 #: ../fish/guestfish-actions.pod:5140
16413 msgstr "write-file"
16416 #: ../fish/guestfish-actions.pod:5142
16419 " write-file path content size\n"
16424 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7853
16426 "This call creates a file called C<path>. The contents of the file is the "
16427 "string C<content> (which can contain any 8 bit data), with length C<size>."
16431 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7857
16433 "As a special case, if C<size> is C<0> then the length is calculated using "
16434 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16438 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7861
16440 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16441 "I<not> work, even if the length is specified."
16445 #: ../fish/guestfish-actions.pod:5158
16447 "I<This function is deprecated.> In new code, use the L</write> call instead."
16451 #: ../fish/guestfish-actions.pod:5165
16456 #: ../fish/guestfish-actions.pod:5167
16459 " zegrep regex path\n"
16462 " zegrep формальний_вираз шлях\n"
16466 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7878
16468 "This calls the external C<zegrep> program and returns the matching lines."
16472 #: ../fish/guestfish-actions.pod:5175
16477 #: ../fish/guestfish-actions.pod:5177
16480 " zegrepi regex path\n"
16485 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7897
16487 "This calls the external C<zegrep -i> program and returns the matching lines."
16491 #: ../fish/guestfish-actions.pod:5185
16496 #: ../fish/guestfish-actions.pod:5187
16506 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7915
16507 msgid "This command writes zeroes over the first few blocks of C<device>."
16511 #: ../fish/guestfish-actions.pod:5191 ../src/guestfs-actions.pod:7917
16513 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16514 "securely wipe the device). It should be sufficient to remove any partition "
16515 "tables, filesystem superblocks and so on."
16519 #: ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5210
16520 #: ../src/guestfs-actions.pod:7921 ../src/guestfs-actions.pod:7947
16522 "If blocks are already zero, then this command avoids writing zeroes. This "
16523 "prevents the underlying device from becoming non-sparse or growing "
16528 #: ../fish/guestfish-actions.pod:5199
16529 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16533 #: ../fish/guestfish-actions.pod:5202
16534 msgid "zero-device"
16535 msgstr "zero-device"
16538 #: ../fish/guestfish-actions.pod:5204
16541 " zero-device device\n"
16544 " zero-device пристрій\n"
16548 #: ../fish/guestfish-actions.pod:5206
16550 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
16551 "which just zeroes the first few blocks of a device."
16555 #: ../fish/guestfish-actions.pod:5217
16560 #: ../fish/guestfish-actions.pod:5219
16563 " zerofree device\n"
16566 " zerofree пристрій\n"
16570 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:7969
16572 "This runs the I<zerofree> program on C<device>. This program claims to zero "
16573 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16574 "possible to compress the filesystem more effectively."
16578 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:7974
16579 msgid "You should B<not> run this program if the filesystem is mounted."
16583 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:7977
16585 "It is possible that using this program can damage the filesystem or data on "
16590 #: ../fish/guestfish-actions.pod:5232
16595 #: ../fish/guestfish-actions.pod:5234
16598 " zfgrep pattern path\n"
16601 " zfgrep шаблон шлях\n"
16605 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7991
16607 "This calls the external C<zfgrep> program and returns the matching lines."
16611 #: ../fish/guestfish-actions.pod:5242
16616 #: ../fish/guestfish-actions.pod:5244
16619 " zfgrepi pattern path\n"
16622 " zfgrepi шаблон шлях\n"
16626 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8010
16628 "This calls the external C<zfgrep -i> program and returns the matching lines."
16632 #: ../fish/guestfish-actions.pod:5252
16637 #: ../fish/guestfish-actions.pod:5254
16640 " zfile meth path\n"
16643 " zfile метод шлях\n"
16647 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8036
16649 "This command runs C<file> after first decompressing C<path> using C<method>."
16653 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8039
16654 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16658 #: ../fish/guestfish-actions.pod:5261
16660 "Since 1.0.63, use L</file> instead which can now process compressed files."
16664 #: ../fish/guestfish-actions.pod:5264
16666 "I<This function is deprecated.> In new code, use the L</file> call instead."
16670 #: ../fish/guestfish-actions.pod:5271
16675 #: ../fish/guestfish-actions.pod:5273
16678 " zgrep regex path\n"
16681 " zgrep формальний_вираз шлях\n"
16685 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8056
16687 "This calls the external C<zgrep> program and returns the matching lines."
16691 #: ../fish/guestfish-actions.pod:5281
16696 #: ../fish/guestfish-actions.pod:5283
16699 " zgrepi regex path\n"
16702 " zgrepi формальний_вираз шлях\n"
16706 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8075
16708 "This calls the external C<zgrep -i> program and returns the matching lines."
16712 #: ../fish/guestfish-commands.pod:1
16717 #: ../fish/guestfish-commands.pod:3
16722 #: ../fish/guestfish-commands.pod:5
16725 " alloc filename size\n"
16730 #: ../fish/guestfish-commands.pod:7
16732 "This creates an empty (zeroed) file of the given size, and then adds so it "
16733 "can be further examined."
16737 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16738 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16742 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16743 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16747 #: ../fish/guestfish-commands.pod:14
16749 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
16750 "image, see L</PREPARED DISK IMAGES>."
16754 #: ../fish/guestfish-commands.pod:17
16759 #: ../fish/guestfish-commands.pod:19
16762 " copy-in local [local ...] /remotedir\n"
16767 #: ../fish/guestfish-commands.pod:21
16769 "C<copy-in> copies local files or directories recursively into the disk "
16770 "image, placing them in the directory called C</remotedir> (which must "
16771 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
16772 "other commands as necessary."
16776 #: ../fish/guestfish-commands.pod:26
16778 "Multiple local files and directories can be specified, but the last "
16779 "parameter must always be a remote directory. Wildcards cannot be used."
16783 #: ../fish/guestfish-commands.pod:30
16788 #: ../fish/guestfish-commands.pod:32
16791 " copy-out remote [remote ...] localdir\n"
16796 #: ../fish/guestfish-commands.pod:34
16798 "C<copy-out> copies remote files or directories recursively out of the disk "
16799 "image, placing them on the host disk in a local directory called C<localdir> "
16800 "(which must exist). This guestfish meta-command turns into a sequence of L</"
16801 "download>, L</tar-out> and other commands as necessary."
16805 #: ../fish/guestfish-commands.pod:40
16807 "Multiple remote files and directories can be specified, but the last "
16808 "parameter must always be a local directory. To download to the current "
16809 "directory, use C<.> as in:"
16813 #: ../fish/guestfish-commands.pod:44
16816 " copy-out /home .\n"
16819 " copy-out /home .\n"
16823 #: ../fish/guestfish-commands.pod:46
16825 "Wildcards cannot be used in the ordinary command, but you can use them with "
16826 "the help of L</glob> like this:"
16830 #: ../fish/guestfish-commands.pod:49
16833 " glob copy-out /home/* .\n"
16836 " glob copy-out /home/* .\n"
16840 #: ../fish/guestfish-commands.pod:51
16845 #: ../fish/guestfish-commands.pod:53
16848 " display filename\n"
16853 #: ../fish/guestfish-commands.pod:55
16855 "Use C<display> (a graphical display program) to display an image file. It "
16856 "downloads the file, and runs C<display> on it."
16860 #: ../fish/guestfish-commands.pod:58
16862 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16863 "environment variable. For example to use the GNOME display program:"
16867 #: ../fish/guestfish-commands.pod:61
16870 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16875 #: ../fish/guestfish-commands.pod:63
16876 msgid "See also L<display(1)>."
16880 #: ../fish/guestfish-commands.pod:65
16885 #: ../fish/guestfish-commands.pod:67
16888 " echo [params ...]\n"
16891 " echo [параметри...]\n"
16895 #: ../fish/guestfish-commands.pod:69
16896 msgid "This echos the parameters to the terminal."
16900 #: ../fish/guestfish-commands.pod:71
16905 #: ../fish/guestfish-commands.pod:73
16910 #: ../fish/guestfish-commands.pod:75
16915 #: ../fish/guestfish-commands.pod:77
16921 " edit назва_файла\n"
16925 #: ../fish/guestfish-commands.pod:79
16927 "This is used to edit a file. It downloads the file, edits it locally using "
16928 "your editor, then uploads the result."
16932 #: ../fish/guestfish-commands.pod:82
16934 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
16935 "or C<emacs> you will get those corresponding editors."
16939 #: ../fish/guestfish-commands.pod:86
16944 #: ../fish/guestfish-commands.pod:88
16947 " glob command args...\n"
16950 " glob команда параметри...\n"
16954 #: ../fish/guestfish-commands.pod:90
16956 "Expand wildcards in any paths in the args list, and run C<command> "
16957 "repeatedly on each matching path."
16961 #: ../fish/guestfish-commands.pod:93
16962 msgid "See L</WILDCARDS AND GLOBBING>."
16963 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16966 #: ../fish/guestfish-commands.pod:95
16971 #: ../fish/guestfish-commands.pod:97
16974 " hexedit <filename|device>\n"
16975 " hexedit <filename|device> <max>\n"
16976 " hexedit <filename|device> <start> <max>\n"
16981 #: ../fish/guestfish-commands.pod:101
16983 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16988 #: ../fish/guestfish-commands.pod:104
16990 "This command works by downloading potentially the whole file or device, "
16991 "editing it locally, then uploading it. If the file or device is large, you "
16992 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16993 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
16994 "usual modifiers allowed such as C<1M> (1 megabyte)."
16998 #: ../fish/guestfish-commands.pod:111
16999 msgid "For example to edit the first few sectors of a disk you might do:"
17003 #: ../fish/guestfish-commands.pod:114
17006 " hexedit /dev/sda 1M\n"
17009 " hexedit /dev/sda 1M\n"
17013 #: ../fish/guestfish-commands.pod:116
17015 "which would allow you to edit anywhere within the first megabyte of the disk."
17019 #: ../fish/guestfish-commands.pod:119
17020 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17024 #: ../fish/guestfish-commands.pod:121
17027 " hexedit /dev/sda1 0x400 0x400\n"
17030 " hexedit /dev/sda1 0x400 0x400\n"
17034 #: ../fish/guestfish-commands.pod:123
17035 msgid "(assuming the superblock is in the standard location)."
17039 #: ../fish/guestfish-commands.pod:125
17041 "This command requires the external L<hexedit(1)> program. You can specify "
17042 "another program to use by setting the C<HEXEDITOR> environment variable."
17046 #: ../fish/guestfish-commands.pod:129
17047 msgid "See also L</hexdump>."
17048 msgstr "Див. також L</hexdump>."
17051 #: ../fish/guestfish-commands.pod:131
17056 #: ../fish/guestfish-commands.pod:133
17064 #: ../fish/guestfish-commands.pod:135
17066 "Change the local directory, ie. the current directory of guestfish itself."
17070 #: ../fish/guestfish-commands.pod:138
17071 msgid "Note that C<!cd> won't do what you might expect."
17075 #: ../fish/guestfish-commands.pod:140
17080 #: ../fish/guestfish-commands.pod:142
17085 #: ../fish/guestfish-commands.pod:144
17095 #: ../fish/guestfish-commands.pod:146
17096 msgid "Opens the manual page for guestfish."
17100 #: ../fish/guestfish-commands.pod:148
17105 #: ../fish/guestfish-commands.pod:150
17110 #: ../fish/guestfish-commands.pod:152
17118 #: ../fish/guestfish-commands.pod:154
17126 #: ../fish/guestfish-commands.pod:156
17127 msgid "This is used to view a file."
17131 #: ../fish/guestfish-commands.pod:158
17133 "The default viewer is C<$PAGER>. However if you use the alternate command "
17134 "C<less> you will get the C<less> command specifically."
17138 #: ../fish/guestfish-commands.pod:161
17143 #: ../fish/guestfish-commands.pod:163
17151 #: ../fish/guestfish-commands.pod:165
17153 "Close and reopen the libguestfs handle. It is not necessary to use this "
17154 "normally, because the handle is closed properly when guestfish exits. "
17155 "However this is occasionally useful for testing."
17159 #: ../fish/guestfish-commands.pod:169
17164 #: ../fish/guestfish-commands.pod:171
17167 " setenv VAR value\n"
17172 #: ../fish/guestfish-commands.pod:173
17173 msgid "Set the environment variable C<VAR> to the string C<value>."
17177 #: ../fish/guestfish-commands.pod:175
17179 "To print the value of an environment variable use a shell command such as:"
17183 #: ../fish/guestfish-commands.pod:178
17191 #: ../fish/guestfish-commands.pod:180
17196 #: ../fish/guestfish-commands.pod:182
17199 " sparse filename size\n"
17204 #: ../fish/guestfish-commands.pod:184
17206 "This creates an empty sparse file of the given size, and then adds so it can "
17207 "be further examined."
17211 #: ../fish/guestfish-commands.pod:187
17213 "In all respects it works the same as the L</alloc> command, except that the "
17214 "image file is allocated sparsely, which means that disk blocks are not "
17215 "assigned to the file until they are needed. Sparse disk files only use "
17216 "space when written to, but they are slower and there is a danger you could "
17217 "run out of real disk space during a write operation."
17221 #: ../fish/guestfish-commands.pod:197
17226 #: ../fish/guestfish-commands.pod:199
17236 #: ../fish/guestfish-commands.pod:201
17238 "This command returns a list of the optional groups known to the daemon, and "
17239 "indicates which ones are supported by this build of the libguestfs appliance."
17243 #: ../fish/guestfish-commands.pod:205
17244 msgid "See also L<guestfs(3)/AVAILABILITY>."
17248 #: ../fish/guestfish-commands.pod:207
17253 #: ../fish/guestfish-commands.pod:209
17256 " time command args...\n"
17261 #: ../fish/guestfish-commands.pod:211
17263 "Run the command as usual, but print the elapsed time afterwards. This can "
17264 "be useful for benchmarking operations."
17268 #: ../fish/guestfish-commands.pod:214
17273 #: ../fish/guestfish-commands.pod:216
17281 #: ../fish/guestfish-commands.pod:218
17282 msgid "Remove C<VAR> from the environment."
17286 #: ../fish/guestfish.pod:5
17287 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17291 #: ../fish/guestfish.pod:9
17294 " guestfish [--options] [commands]\n"
17299 #: ../fish/guestfish.pod:11
17307 #: ../fish/guestfish.pod:13
17310 " guestfish [--ro|--rw] -a disk.img\n"
17315 #: ../fish/guestfish.pod:15
17318 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17323 #: ../fish/guestfish.pod:17
17326 " guestfish -d libvirt-domain\n"
17331 #: ../fish/guestfish.pod:19
17334 " guestfish [--ro|--rw] -a disk.img -i\n"
17339 #: ../fish/guestfish.pod:21
17342 " guestfish -d libvirt-domain -i\n"
17347 #: ../fish/guestfish.pod:25
17349 "Using guestfish in read/write mode on live virtual machines can be "
17350 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
17351 "option to use guestfish safely if the disk image or virtual machine might be "
17356 #: ../fish/guestfish.pod:32
17358 "Guestfish is a shell and command-line tool for examining and modifying "
17359 "virtual machine filesystems. It uses libguestfs and exposes all of the "
17360 "functionality of the guestfs API, see L<guestfs(3)>."
17364 #: ../fish/guestfish.pod:36
17366 "Guestfish gives you structured access to the libguestfs API, from shell "
17367 "scripts or the command line or interactively. If you want to rescue a "
17368 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17373 #: ../fish/guestfish.pod:43
17374 msgid "As an interactive shell"
17378 #: ../fish/guestfish.pod:45
17386 #: ../fish/guestfish.pod:47
17389 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17390 " editing virtual machine filesystems.\n"
17395 #: ../fish/guestfish.pod:50
17398 " Type: 'help' for a list of commands\n"
17399 " 'man' to read the manual\n"
17400 " 'quit' to quit the shell\n"
17405 #: ../fish/guestfish.pod:54
17408 " ><fs> add-ro disk.img\n"
17410 " ><fs> list-filesystems\n"
17411 " /dev/sda1: ext4\n"
17412 " /dev/vg_guest/lv_root: ext4\n"
17413 " /dev/vg_guest/lv_swap: swap\n"
17414 " ><fs> mount /dev/vg_guest/lv_root /\n"
17415 " ><fs> cat /etc/fstab\n"
17417 " # Created by anaconda\n"
17424 #: ../fish/guestfish.pod:67
17425 msgid "From shell scripts"
17429 #: ../fish/guestfish.pod:69
17430 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17434 #: ../fish/guestfish.pod:71
17437 " guestfish <<_EOF_\n"
17440 " mount /dev/vg_guest/lv_root /\n"
17441 " write /etc/motd \"Welcome, new users\"\n"
17447 #: ../fish/guestfish.pod:78
17448 msgid "List the LVM logical volumes in a disk image:"
17452 #: ../fish/guestfish.pod:80
17455 " guestfish -a disk.img --ro <<_EOF_\n"
17463 #: ../fish/guestfish.pod:85
17464 msgid "List all the filesystems in a disk image:"
17468 #: ../fish/guestfish.pod:87
17471 " guestfish -a disk.img --ro <<_EOF_\n"
17473 " list-filesystems\n"
17479 #: ../fish/guestfish.pod:92
17480 msgid "On one command line"
17484 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17485 msgid "Update C</etc/resolv.conf> in a guest:"
17489 #: ../fish/guestfish.pod:96
17493 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17494 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17499 #: ../fish/guestfish.pod:100
17500 msgid "Edit C</boot/grub/grub.conf> interactively:"
17504 #: ../fish/guestfish.pod:102
17507 " guestfish --rw --add disk.img \\\n"
17508 " --mount /dev/vg_guest/lv_root \\\n"
17509 " --mount /dev/sda1:/boot \\\n"
17510 " edit /boot/grub/grub.conf\n"
17515 #: ../fish/guestfish.pod:107
17516 msgid "Mount disks automatically"
17520 #: ../fish/guestfish.pod:109
17522 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17526 #: ../fish/guestfish.pod:112
17529 " guestfish --ro -a disk.img -i cat /etc/group\n"
17534 #: ../fish/guestfish.pod:114
17537 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17542 #: ../fish/guestfish.pod:116
17543 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17547 #: ../fish/guestfish.pod:118
17550 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17555 #: ../fish/guestfish.pod:120
17556 msgid "As a script interpreter"
17560 #: ../fish/guestfish.pod:122
17561 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17565 #: ../fish/guestfish.pod:124
17568 " #!/usr/bin/guestfish -f\n"
17569 " sparse test1.img 100M\n"
17571 " part-disk /dev/sda mbr\n"
17572 " mkfs ext2 /dev/sda1\n"
17577 #: ../fish/guestfish.pod:130
17578 msgid "Start with a prepared disk"
17582 #: ../fish/guestfish.pod:132
17584 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17585 "single ext2-formatted partition:"
17589 #: ../fish/guestfish.pod:135
17592 " guestfish -N fs\n"
17597 #: ../fish/guestfish.pod:137
17598 msgid "To list what is available do:"
17602 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17605 " guestfish -N help | less\n"
17610 #: ../fish/guestfish.pod:141
17611 msgid "Remote control"
17612 msgstr "Дистанційне керування"
17615 #: ../fish/guestfish.pod:143
17618 " eval \"`guestfish --listen`\"\n"
17619 " guestfish --remote add-ro disk.img\n"
17620 " guestfish --remote run\n"
17621 " guestfish --remote lvs\n"
17624 " eval \"`guestfish --listen`\"\n"
17625 " guestfish --remote add-ro disk.img\n"
17626 " guestfish --remote run\n"
17627 " guestfish --remote lvs\n"
17631 #: ../fish/guestfish.pod:154
17632 msgid "Displays general help on options."
17636 #: ../fish/guestfish.pod:158
17637 msgid "B<--cmd-help>"
17638 msgstr "B<--cmd-help>"
17641 #: ../fish/guestfish.pod:160
17642 msgid "Lists all available guestfish commands."
17646 #: ../fish/guestfish.pod:162
17648 msgstr "B<-h команда>"
17651 #: ../fish/guestfish.pod:164
17652 msgid "B<--cmd-help cmd>"
17653 msgstr "B<--cmd-help команда>"
17656 #: ../fish/guestfish.pod:166
17657 msgid "Displays detailed help on a single command C<cmd>."
17661 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17662 msgid "B<-a image>"
17663 msgstr "B<-a образ>"
17666 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17667 msgid "B<--add image>"
17668 msgstr "B<--add образ>"
17671 #: ../fish/guestfish.pod:172
17672 msgid "Add a block device or virtual machine image to the shell."
17676 #: ../fish/guestfish.pod:177
17678 "Using this flag is mostly equivalent to using the C<add> command, with "
17679 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17680 "the I<--format=...> flag was given."
17684 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17686 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17687 "URI to use. The default is to use the default libvirt connection."
17691 #: ../fish/guestfish.pod:189
17696 #: ../fish/guestfish.pod:191
17698 "If using the I<--listen> option and a csh-like shell, use this option. See "
17699 "section L</REMOTE CONTROL AND CSH> below."
17703 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17704 msgid "B<-d libvirt-domain>"
17705 msgstr "B<-d домен-libvirt>"
17708 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17709 msgid "B<--domain libvirt-domain>"
17710 msgstr "B<--domain домен-libvirt>"
17713 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17715 "Add disks from the named libvirt domain. If the I<--ro> option is also "
17716 "used, then any libvirt domain can be used. However in write mode, only "
17717 "libvirt domains which are shut down can be named here."
17721 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17722 msgid "Domain UUIDs can be used instead of names."
17726 #: ../fish/guestfish.pod:204
17728 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17729 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17730 "if the I<--format:...> flag was given."
17734 #: ../fish/guestfish.pod:208
17739 #: ../fish/guestfish.pod:210
17740 msgid "B<--no-dest-paths>"
17741 msgstr "B<--no-dest-paths>"
17744 #: ../fish/guestfish.pod:212
17746 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
17747 "to hit the tab key to complete paths on the guest filesystem, but this "
17748 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17749 "allow this feature to be disabled."
17753 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17755 "When prompting for keys and passphrases, guestfish normally turns echoing "
17756 "off so you cannot see what you are typing. If you are not worried about "
17757 "Tempest attacks and there is no one else in the room you can specify this "
17758 "flag to see what you are typing."
17762 #: ../fish/guestfish.pod:224
17764 msgstr "B<-f файл>"
17767 #: ../fish/guestfish.pod:226
17768 msgid "B<--file file>"
17769 msgstr "B<--file файл>"
17772 #: ../fish/guestfish.pod:228
17773 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
17777 #: ../fish/guestfish.pod:231
17780 " #!/usr/bin/guestfish -f\n"
17783 " #!/usr/bin/guestfish -f\n"
17787 #: ../fish/guestfish.pod:244
17790 " guestfish --format=raw -a disk.img\n"
17793 " guestfish --format=raw -a disk.img\n"
17797 #: ../fish/guestfish.pod:248
17800 " guestfish --format=raw -a disk.img --format -a another.img\n"
17803 " guestfish --format=raw -a disk.img --format -a another.img\n"
17807 #: ../fish/guestfish.pod:253
17809 "If you have untrusted raw-format guest disk images, you should use this "
17810 "option to specify the disk format. This avoids a possible security problem "
17811 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
17815 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17816 msgid "B<--inspector>"
17817 msgstr "B<--inspector>"
17820 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17822 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17823 "system and mount filesystems as they would be mounted on the real virtual "
17828 #: ../fish/guestfish.pod:266
17829 msgid "Typical usage is either:"
17833 #: ../fish/guestfish.pod:268
17836 " guestfish -d myguest -i\n"
17839 " guestfish -d myguest -i\n"
17843 #: ../fish/guestfish.pod:270
17844 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17848 #: ../fish/guestfish.pod:272
17851 " guestfish --ro -d myguest -i\n"
17854 " guestfish --ro -d myguest -i\n"
17858 #: ../fish/guestfish.pod:274
17859 msgid "(for active domains, readonly), or specify the block device directly:"
17863 #: ../fish/guestfish.pod:276
17866 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17869 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17873 #: ../fish/guestfish.pod:278
17875 "Note that the command line syntax changed slightly over older versions of "
17876 "guestfish. You can still use the old syntax:"
17880 #: ../fish/guestfish.pod:281
17883 " guestfish [--ro] -i disk.img\n"
17886 " guestfish [--ro] -i disk.img\n"
17890 #: ../fish/guestfish.pod:283
17893 " guestfish [--ro] -i libvirt-domain\n"
17898 #: ../fish/guestfish.pod:285
17900 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17901 "then using other commands to mount the filesystems that were found."
17905 #: ../fish/guestfish.pod:294
17906 msgid "B<--listen>"
17907 msgstr "B<--listen>"
17910 #: ../fish/guestfish.pod:296
17912 "Fork into the background and listen for remote commands. See section L</"
17913 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17917 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17922 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17924 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
17925 "ATTACHING TO RUNNING DAEMONS>)."
17929 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17930 msgid "B<-m dev[:mountpoint[:options]]>"
17934 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17935 msgid "B<--mount dev[:mountpoint[:options]]>"
17939 #: ../fish/guestfish.pod:308
17940 msgid "Mount the named partition or logical volume on the given mountpoint."
17944 #: ../fish/guestfish.pod:310
17945 msgid "If the mountpoint is omitted, it defaults to C</>."
17949 #: ../fish/guestfish.pod:312
17950 msgid "You have to mount something on C</> before most commands will work."
17954 #: ../fish/guestfish.pod:314
17956 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17961 #: ../fish/guestfish.pod:317
17963 "If you don't know what filesystems a disk image contains, you can either run "
17964 "guestfish without this option, then list the partitions, filesystems and LVs "
17965 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17966 "commands), or you can use the L<virt-filesystems(1)> program."
17970 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17972 "The third (and rarely used) part of the mount parameter is the list of mount "
17973 "options used to mount the underlying filesystem. If this is not given, then "
17974 "the mount options are either the empty string or C<ro> (the latter if the "
17975 "I<--ro> flag is used). By specifying the mount options, you override this "
17976 "default choice. Probably the only time you would use this is to enable ACLs "
17977 "and/or extended attributes if the filesystem can support them:"
17981 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17984 " -m /dev/sda1:/:acl,user_xattr\n"
17989 #: ../fish/guestfish.pod:333
17990 msgid "Using this flag is equivalent to using the C<mount-options> command."
17994 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17995 #: ../resize/virt-resize.pod:358
18000 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
18001 msgid "B<--no-sync>"
18002 msgstr "B<--no-sync>"
18005 #: ../fish/guestfish.pod:339
18007 "Disable autosync. This is enabled by default. See the discussion of "
18008 "autosync in the L<guestfs(3)> manpage."
18012 #: ../fish/guestfish.pod:342
18017 #: ../fish/guestfish.pod:344
18018 msgid "B<--new type>"
18019 msgstr "B<--new тип>"
18022 #: ../fish/guestfish.pod:346
18024 msgstr "B<-N help>"
18027 #: ../fish/guestfish.pod:348
18029 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
18030 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18031 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
18036 #: ../fish/guestfish.pod:353
18037 msgid "B<--progress-bars>"
18038 msgstr "B<--progress-bars>"
18041 #: ../fish/guestfish.pod:355
18042 msgid "Enable progress bars, even when guestfish is used non-interactively."
18046 #: ../fish/guestfish.pod:357
18048 "Progress bars are enabled by default when guestfish is used as an "
18049 "interactive shell."
18053 #: ../fish/guestfish.pod:360
18054 msgid "B<--no-progress-bars>"
18055 msgstr "B<--no-progress-bars>"
18058 #: ../fish/guestfish.pod:362
18059 msgid "Disable progress bars."
18063 #: ../fish/guestfish.pod:364
18064 msgid "B<--remote[=pid]>"
18065 msgstr "B<--remote[=pid]>"
18068 #: ../fish/guestfish.pod:366
18070 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
18071 "CONTROL GUESTFISH OVER A SOCKET> below."
18075 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
18076 #: ../rescue/virt-rescue.pod:161
18081 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
18082 #: ../rescue/virt-rescue.pod:163
18087 #: ../fish/guestfish.pod:373
18089 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18090 "mounts are done read-only."
18094 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18096 "The option must always be used if the disk image or virtual machine might be "
18097 "running, and is generally recommended in cases where you don't need write "
18098 "access to the disk."
18102 #: ../fish/guestfish.pod:380
18104 "Note that prepared disk images created with I<-N> are not affected by this "
18105 "option. Also commands like C<add> are not affected - you have to specify "
18106 "the C<readonly:true> option explicitly if you need it."
18110 #: ../fish/guestfish.pod:384
18111 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18115 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
18116 #: ../rescue/virt-rescue.pod:173
18117 msgid "B<--selinux>"
18118 msgstr "B<--selinux>"
18121 #: ../fish/guestfish.pod:388
18122 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
18126 #: ../fish/guestfish.pod:394
18128 "Enable very verbose messages. This is particularly useful if you find a bug."
18132 #: ../fish/guestfish.pod:401
18133 msgid "Display the guestfish / libguestfs version number and exit."
18137 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
18138 #: ../rescue/virt-rescue.pod:194
18143 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
18144 #: ../rescue/virt-rescue.pod:196
18149 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
18151 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18152 "mounts are done read-write."
18156 #: ../fish/guestfish.pod:410
18157 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18161 #: ../fish/guestfish.pod:414
18162 msgid "Echo each command before executing it."
18166 #: ../fish/guestfish.pod:418
18167 msgid "COMMANDS ON COMMAND LINE"
18171 #: ../fish/guestfish.pod:420
18173 "Any additional (non-option) arguments are treated as commands to execute."
18177 #: ../fish/guestfish.pod:423
18179 "Commands to execute should be separated by a colon (C<:>), where the colon "
18180 "is a separate parameter. Thus:"
18184 #: ../fish/guestfish.pod:426
18187 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18192 #: ../fish/guestfish.pod:428
18194 "If there are no additional arguments, then we enter a shell, either an "
18195 "interactive shell with a prompt (if the input is a terminal) or a non-"
18196 "interactive shell."
18200 #: ../fish/guestfish.pod:432
18202 "In either command line mode or non-interactive shell, the first command that "
18203 "gives an error causes the whole shell to exit. In interactive mode (with a "
18204 "prompt) if a command fails, you can continue to enter commands."
18208 #: ../fish/guestfish.pod:437
18209 msgid "USING launch (OR run)"
18213 #: ../fish/guestfish.pod:439
18215 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18216 "then launch it, then mount any disks you need, and finally issue actions/"
18217 "commands. So the general order of the day is:"
18221 #: ../fish/guestfish.pod:447
18222 msgid "add or -a/--add"
18226 #: ../fish/guestfish.pod:451
18227 msgid "launch (aka run)"
18231 #: ../fish/guestfish.pod:455
18232 msgid "mount or -m/--mount"
18236 #: ../fish/guestfish.pod:459
18237 msgid "any other commands"
18241 #: ../fish/guestfish.pod:463
18243 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
18244 "guest before mounting or performing any other commands."
18248 #: ../fish/guestfish.pod:466
18250 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18251 "I<--new> options were given then C<run> is done automatically, simply "
18252 "because guestfish can't perform the action you asked for without doing this."
18256 #: ../fish/guestfish.pod:471
18257 msgid "OPENING DISKS FOR READ AND WRITE"
18261 #: ../fish/guestfish.pod:473
18263 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18264 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18265 "I<-i> and I<-m> open disk images read-only or for writing."
18269 #: ../fish/guestfish.pod:478
18271 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18272 "opening disk images supplied on the command line for write. To open a disk "
18273 "image read-only you have to do I<-a image --ro>."
18277 #: ../fish/guestfish.pod:482
18279 "This matters: If you accidentally open a live VM disk image writable then "
18280 "you will cause irreversible disk corruption."
18284 #: ../fish/guestfish.pod:485
18286 "In a future libguestfs we intend to change the default the other way. Disk "
18287 "images will be opened read-only. You will have to either specify "
18288 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18289 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18290 "access for disk images specified by those other command line options."
18294 #: ../fish/guestfish.pod:492
18296 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18297 "which does nothing (it is already the default). However it is highly "
18298 "recommended that you use this option to indicate that you need write access, "
18299 "and prepare your scripts for the day when this option will be required for "
18304 #: ../fish/guestfish.pod:498
18306 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18307 "other libguestfs program apart from guestfish and guestmount."
18311 #: ../fish/guestfish.pod:501
18316 #: ../fish/guestfish.pod:503
18318 "You can quote ordinary parameters using either single or double quotes. For "
18323 #: ../fish/guestfish.pod:506
18326 " add \"file with a space.img\"\n"
18331 #: ../fish/guestfish.pod:508
18334 " rm '/file name'\n"
18339 #: ../fish/guestfish.pod:510
18347 #: ../fish/guestfish.pod:512
18349 "A few commands require a list of strings to be passed. For these, use a "
18350 "whitespace-separated list, enclosed in quotes. Strings containing "
18351 "whitespace to be passed through must be enclosed in single quotes. A "
18352 "literal single quote must be escaped with a backslash."
18356 #: ../fish/guestfish.pod:517
18359 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18360 " command \"/bin/echo 'foo bar'\"\n"
18361 " command \"/bin/echo \\'foo\\'\"\n"
18366 #: ../fish/guestfish.pod:521
18367 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18371 #: ../fish/guestfish.pod:523
18373 "In double-quoted arguments (only) use backslash to insert special characters:"
18377 #: ../fish/guestfish.pod:528
18382 #: ../fish/guestfish.pod:530
18383 msgid "Alert (bell) character."
18387 #: ../fish/guestfish.pod:532
18392 #: ../fish/guestfish.pod:534
18393 msgid "Backspace character."
18397 #: ../fish/guestfish.pod:536
18402 #: ../fish/guestfish.pod:538
18403 msgid "Form feed character."
18407 #: ../fish/guestfish.pod:540
18412 #: ../fish/guestfish.pod:542
18413 msgid "Newline character."
18417 #: ../fish/guestfish.pod:544
18422 #: ../fish/guestfish.pod:546
18423 msgid "Carriage return character."
18427 #: ../fish/guestfish.pod:548
18432 #: ../fish/guestfish.pod:550
18433 msgid "Horizontal tab character."
18437 #: ../fish/guestfish.pod:552
18442 #: ../fish/guestfish.pod:554
18443 msgid "Vertical tab character."
18447 #: ../fish/guestfish.pod:556
18452 #: ../fish/guestfish.pod:558
18453 msgid "A literal double quote character."
18457 #: ../fish/guestfish.pod:560
18462 #: ../fish/guestfish.pod:562
18464 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
18469 #: ../fish/guestfish.pod:565
18474 #: ../fish/guestfish.pod:567
18476 "A character with hex value I<hh>. There must be precisely 2 hex digits."
18480 #: ../fish/guestfish.pod:570
18482 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18487 #: ../fish/guestfish.pod:573
18492 #: ../fish/guestfish.pod:575
18493 msgid "A literal backslash character."
18497 #: ../fish/guestfish.pod:579
18498 msgid "OPTIONAL ARGUMENTS"
18502 #: ../fish/guestfish.pod:581
18504 "Some commands take optional arguments. These arguments appear in this "
18505 "documentation as C<[argname:..]>. You can use them as in these examples:"
18509 #: ../fish/guestfish.pod:585
18512 " add-drive-opts filename\n"
18517 #: ../fish/guestfish.pod:587
18520 " add-drive-opts filename readonly:true\n"
18525 #: ../fish/guestfish.pod:589
18528 " add-drive-opts filename format:qcow2 readonly:false\n"
18533 #: ../fish/guestfish.pod:591
18535 "Each optional argument can appear at most once. All optional arguments must "
18536 "appear after the required ones."
18540 #: ../fish/guestfish.pod:594
18545 #: ../fish/guestfish.pod:596
18547 "This section applies to all commands which can take integers as parameters."
18551 #: ../fish/guestfish.pod:599
18552 msgid "SIZE SUFFIX"
18556 #: ../fish/guestfish.pod:601
18558 "When the command takes a parameter measured in bytes, you can use one of the "
18559 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18563 #: ../fish/guestfish.pod:607
18564 msgid "B<k> or B<K> or B<KiB>"
18565 msgstr "B<k>, B<K> або B<KiB>"
18568 #: ../fish/guestfish.pod:609
18569 msgid "The size in kilobytes (multiplied by 1024)."
18573 #: ../fish/guestfish.pod:611
18578 #: ../fish/guestfish.pod:613
18579 msgid "The size in SI 1000 byte units."
18583 #: ../fish/guestfish.pod:615
18584 msgid "B<M> or B<MiB>"
18585 msgstr "B<M> або B<MiB>"
18588 #: ../fish/guestfish.pod:617
18589 msgid "The size in megabytes (multiplied by 1048576)."
18593 #: ../fish/guestfish.pod:619
18598 #: ../fish/guestfish.pod:621
18599 msgid "The size in SI 1000000 byte units."
18603 #: ../fish/guestfish.pod:623
18604 msgid "B<G> or B<GiB>"
18605 msgstr "B<G> або B<GiB>"
18608 #: ../fish/guestfish.pod:625
18609 msgid "The size in gigabytes (multiplied by 2**30)."
18610 msgstr "Розмір у гігабайтах (з множником 2**30)."
18613 #: ../fish/guestfish.pod:627
18618 #: ../fish/guestfish.pod:629
18619 msgid "The size in SI 10**9 byte units."
18620 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18623 #: ../fish/guestfish.pod:631
18624 msgid "B<T> or B<TiB>"
18625 msgstr "B<T> або B<TiB>"
18628 #: ../fish/guestfish.pod:633
18629 msgid "The size in terabytes (multiplied by 2**40)."
18630 msgstr "Розмір у терабайтах (з множником 2**40)."
18633 #: ../fish/guestfish.pod:635
18638 #: ../fish/guestfish.pod:637
18639 msgid "The size in SI 10**12 byte units."
18643 #: ../fish/guestfish.pod:639
18644 msgid "B<P> or B<PiB>"
18645 msgstr "B<P> або B<PiB>"
18648 #: ../fish/guestfish.pod:641
18649 msgid "The size in petabytes (multiplied by 2**50)."
18653 #: ../fish/guestfish.pod:643
18658 #: ../fish/guestfish.pod:645
18659 msgid "The size in SI 10**15 byte units."
18663 #: ../fish/guestfish.pod:647
18664 msgid "B<E> or B<EiB>"
18665 msgstr "B<E> або B<EiB>"
18668 #: ../fish/guestfish.pod:649
18669 msgid "The size in exabytes (multiplied by 2**60)."
18673 #: ../fish/guestfish.pod:651
18678 #: ../fish/guestfish.pod:653
18679 msgid "The size in SI 10**18 byte units."
18683 #: ../fish/guestfish.pod:655
18684 msgid "B<Z> or B<ZiB>"
18685 msgstr "B<Z> або B<ZiB>"
18688 #: ../fish/guestfish.pod:657
18689 msgid "The size in zettabytes (multiplied by 2**70)."
18693 #: ../fish/guestfish.pod:659
18698 #: ../fish/guestfish.pod:661
18699 msgid "The size in SI 10**21 byte units."
18703 #: ../fish/guestfish.pod:663
18704 msgid "B<Y> or B<YiB>"
18705 msgstr "B<Y> або B<YiB>"
18708 #: ../fish/guestfish.pod:665
18709 msgid "The size in yottabytes (multiplied by 2**80)."
18713 #: ../fish/guestfish.pod:667
18718 #: ../fish/guestfish.pod:669
18719 msgid "The size in SI 10**24 byte units."
18723 #: ../fish/guestfish.pod:675
18726 " truncate-size /file 1G\n"
18731 #: ../fish/guestfish.pod:677
18732 msgid "would truncate the file to 1 gigabyte."
18736 #: ../fish/guestfish.pod:679
18738 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18739 "the parameter to L</memsize> is specified in megabytes already). Adding a "
18740 "suffix will probably not do what you expect."
18744 #: ../fish/guestfish.pod:683
18745 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18749 #: ../fish/guestfish.pod:685
18751 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18752 "octal number or C<0x> to prefix a hexadecimal number. For example:"
18756 #: ../fish/guestfish.pod:688
18759 " 1234 decimal number 1234\n"
18760 " 02322 octal number, equivalent to decimal 1234\n"
18761 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
18766 #: ../fish/guestfish.pod:692
18768 "When using the C<chmod> command, you almost always want to specify an octal "
18769 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18770 "L<chmod(1)> program):"
18774 #: ../fish/guestfish.pod:696
18777 " chmod 0777 /public # OK\n"
18778 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
18783 #: ../fish/guestfish.pod:699
18785 "Commands that return numbers usually print them in decimal, but some "
18786 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18787 "octal, preceeded by C<0>)."
18791 #: ../fish/guestfish.pod:703
18792 msgid "WILDCARDS AND GLOBBING"
18796 #: ../fish/guestfish.pod:705
18798 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18799 "(globbing) by default. So for example the following will not do what you "
18804 #: ../fish/guestfish.pod:709
18812 #: ../fish/guestfish.pod:711
18814 "Assuming you don't have a directory called literally C</home/*> then the "
18815 "above command will return an error."
18819 #: ../fish/guestfish.pod:714
18820 msgid "To perform wildcard expansion, use the C<glob> command."
18824 #: ../fish/guestfish.pod:716
18827 " glob rm-rf /home/*\n"
18832 #: ../fish/guestfish.pod:718
18834 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18835 "many times), equivalent to:"
18839 #: ../fish/guestfish.pod:721
18842 " rm-rf /home/jim\n"
18843 " rm-rf /home/joe\n"
18844 " rm-rf /home/mary\n"
18849 #: ../fish/guestfish.pod:725
18850 msgid "C<glob> only works on simple guest paths and not on device names."
18854 #: ../fish/guestfish.pod:727
18856 "If you have several parameters, each containing a wildcard, then glob will "
18857 "perform a Cartesian product."
18861 #: ../fish/guestfish.pod:730
18866 #: ../fish/guestfish.pod:732
18868 "Any line which starts with a I<#> character is treated as a comment and "
18869 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
18870 "a command. For example:"
18874 #: ../fish/guestfish.pod:736
18877 " # this is a comment\n"
18878 " # this is a comment\n"
18879 " foo # NOT a comment\n"
18884 #: ../fish/guestfish.pod:740
18885 msgid "Blank lines are also ignored."
18889 #: ../fish/guestfish.pod:742
18890 msgid "RUNNING COMMANDS LOCALLY"
18894 #: ../fish/guestfish.pod:744
18896 "Any line which starts with a I<!> character is treated as a command sent to "
18897 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
18901 #: ../fish/guestfish.pod:748
18905 " tgz-out /remote local/remote-data.tar.gz\n"
18910 #: ../fish/guestfish.pod:751
18912 "will create a directory C<local> on the host, and then export the contents "
18913 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
18914 "(See C<tgz-out>)."
18918 #: ../fish/guestfish.pod:755
18920 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
18921 "effect, due to the way that subprocesses work in Unix."
18925 #: ../fish/guestfish.pod:758
18926 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18930 #: ../fish/guestfish.pod:760
18932 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18933 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18934 "and executed as guestfish commands."
18938 #: ../fish/guestfish.pod:764
18940 "Thus you can use shell script to construct arbitrary guestfish commands "
18941 "which are then parsed by guestfish."
18945 #: ../fish/guestfish.pod:767
18947 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18948 "through C</foo.100>) using guestfish commands alone. However this is simple "
18949 "if we use a shell script to create the guestfish commands for us:"
18953 #: ../fish/guestfish.pod:772
18956 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18961 #: ../fish/guestfish.pod:774
18962 msgid "or with names like C</foo.001>:"
18966 #: ../fish/guestfish.pod:776
18969 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18974 #: ../fish/guestfish.pod:778
18976 "When using guestfish interactively it can be helpful to just run the shell "
18977 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18978 "ordinary I<!> local command), see what guestfish commands it would run, and "
18979 "when you are happy with those prepend the C<E<lt>> character to run the "
18980 "guestfish commands for real."
18984 #: ../fish/guestfish.pod:784
18989 #: ../fish/guestfish.pod:786
18991 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18992 "command (a guestfish command) to the second command (any host command). For "
18997 #: ../fish/guestfish.pod:790
19000 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19005 #: ../fish/guestfish.pod:792
19007 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19008 "program). The above command would list all accounts in the guest filesystem "
19009 "which have UID 0, ie. root accounts including backdoors. Other examples:"
19013 #: ../fish/guestfish.pod:797
19016 " hexdump /bin/ls | head\n"
19017 " list-devices | tail -1\n"
19018 " tgz-out / - | tar ztf -\n"
19023 #: ../fish/guestfish.pod:801
19025 "The space before the pipe symbol is required, any space after the pipe "
19026 "symbol is optional. Everything after the pipe symbol is just passed "
19027 "straight to the host shell, so it can contain redirections, globs and "
19028 "anything else that makes sense on the host side."
19032 #: ../fish/guestfish.pod:806
19034 "To use a literal argument which begins with a pipe symbol, you have to quote "
19039 #: ../fish/guestfish.pod:809
19047 #: ../fish/guestfish.pod:811
19048 msgid "HOME DIRECTORIES"
19052 #: ../fish/guestfish.pod:813
19054 "If a parameter starts with the character C<~> then the tilde may be expanded "
19055 "as a home directory path (either C<~> for the current user's home directory, "
19056 "or C<~user> for another user)."
19060 #: ../fish/guestfish.pod:817
19062 "Note that home directory expansion happens for users known I<on the host>, "
19063 "not in the guest filesystem."
19067 #: ../fish/guestfish.pod:820
19069 "To use a literal argument which begins with a tilde, you have to quote it, "
19074 #: ../fish/guestfish.pod:823
19082 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
19083 msgid "ENCRYPTED DISKS"
19084 msgstr "ЗАШИФРОВАНІ ДИСКИ"
19087 #: ../fish/guestfish.pod:827
19089 "Libguestfs has some support for Linux guests encrypted according to the "
19090 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19091 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
19092 "LUKS is supported."
19096 #: ../fish/guestfish.pod:832
19097 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19101 #: ../fish/guestfish.pod:834
19104 " ><fs> vfs-type /dev/sda2\n"
19110 #: ../fish/guestfish.pod:837
19112 "Then open those devices using L</luks-open>. This creates a device-mapper "
19113 "device called C</dev/mapper/luksdev>."
19117 #: ../fish/guestfish.pod:840
19120 " ><fs> luks-open /dev/sda2 luksdev\n"
19121 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19126 #: ../fish/guestfish.pod:843
19128 "Finally you have to tell LVM to scan for volume groups on the newly created "
19133 #: ../fish/guestfish.pod:846
19137 " vg-activate-all true\n"
19142 #: ../fish/guestfish.pod:849
19143 msgid "The logical volume(s) can now be mounted in the usual way."
19147 #: ../fish/guestfish.pod:851
19149 "Before closing a LUKS device you must unmount any logical volumes on it and "
19150 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19151 "one. Then you can close the mapper device:"
19155 #: ../fish/guestfish.pod:855
19158 " vg-activate false /dev/VG\n"
19159 " luks-close /dev/mapper/luksdev\n"
19164 #: ../fish/guestfish.pod:860
19166 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19167 "letters and paths (with some limitations). The following commands are "
19172 #: ../fish/guestfish.pod:864
19175 " file /WINDOWS/system32/config/system.LOG\n"
19180 #: ../fish/guestfish.pod:866
19183 " file win:\\windows\\system32\\config\\system.log\n"
19188 #: ../fish/guestfish.pod:868
19191 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19196 #: ../fish/guestfish.pod:870
19198 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19199 "where the drive is mounted, prepending that to the path, changing all "
19200 "backslash characters to forward slash, then resolving the result using L</"
19201 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
19202 "the parameter might be rewritten like this:"
19206 #: ../fish/guestfish.pod:876
19209 " win:e:\\foo\\bar => /e/FOO/bar\n"
19214 #: ../fish/guestfish.pod:878
19215 msgid "This only works in argument positions that expect a path."
19219 #: ../fish/guestfish.pod:880
19220 msgid "UPLOADING AND DOWNLOADING FILES"
19224 #: ../fish/guestfish.pod:882
19226 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19227 "others which upload from or download to a local file, you can use the "
19228 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
19232 #: ../fish/guestfish.pod:886
19240 #: ../fish/guestfish.pod:888
19242 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19246 #: ../fish/guestfish.pod:891
19249 " tar-out /etc - | tar tf -\n"
19254 #: ../fish/guestfish.pod:893
19256 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19257 "command (see L</PIPES>)."
19261 #: ../fish/guestfish.pod:896
19263 "When using C<-> to read from stdin, the input is read up to the end of "
19264 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
19265 "some arbitrary end marker:"
19269 #: ../fish/guestfish.pod:900
19272 " upload -<<END /foo\n"
19281 #: ../fish/guestfish.pod:906
19283 "Any string of characters can be used instead of C<END>. The end marker must "
19284 "appear on a line of its own, without any preceeding or following characters "
19285 "(not even spaces)."
19289 #: ../fish/guestfish.pod:910
19291 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19292 "upload local files (so-called \"FileIn\" parameters in the generator)."
19296 #: ../fish/guestfish.pod:913
19297 msgid "EXIT ON ERROR BEHAVIOUR"
19301 #: ../fish/guestfish.pod:915
19303 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19304 "taking commands from a human over a tty), and will exit on the first error "
19305 "in non-interactive mode (scripts, commands given on the command line)."
19309 #: ../fish/guestfish.pod:920
19311 "If you prefix a command with a I<-> character, then that command will not "
19312 "cause guestfish to exit, even if that (one) command returns an error."
19316 #: ../fish/guestfish.pod:924
19317 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19321 #: ../fish/guestfish.pod:926
19323 "Guestfish can be remote-controlled over a socket. This is useful "
19324 "particularly in shell scripts where you want to make several different "
19325 "changes to a filesystem, but you don't want the overhead of starting up a "
19326 "guestfish process each time."
19330 #: ../fish/guestfish.pod:931
19331 msgid "Start a guestfish server process using:"
19335 #: ../fish/guestfish.pod:933
19338 " eval \"`guestfish --listen`\"\n"
19343 #: ../fish/guestfish.pod:935
19344 msgid "and then send it commands by doing:"
19348 #: ../fish/guestfish.pod:937
19351 " guestfish --remote cmd [...]\n"
19356 #: ../fish/guestfish.pod:939
19357 msgid "To cause the server to exit, send it the exit command:"
19361 #: ../fish/guestfish.pod:943
19363 "Note that the server will normally exit if there is an error in a command. "
19364 "You can change this in the usual way. See section L</EXIT ON ERROR "
19369 #: ../fish/guestfish.pod:947
19370 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19374 #: ../fish/guestfish.pod:949
19376 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19377 "is how the I<--remote> option knows where to send the commands. You can "
19378 "have several guestfish listener processes running using:"
19382 #: ../fish/guestfish.pod:953
19385 " eval \"`guestfish --listen`\"\n"
19386 " pid1=$GUESTFISH_PID\n"
19387 " eval \"`guestfish --listen`\"\n"
19388 " pid2=$GUESTFISH_PID\n"
19390 " guestfish --remote=$pid1 cmd\n"
19391 " guestfish --remote=$pid2 cmd\n"
19396 #: ../fish/guestfish.pod:961
19397 msgid "REMOTE CONTROL AND CSH"
19401 #: ../fish/guestfish.pod:963
19403 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19408 #: ../fish/guestfish.pod:966
19411 " eval \"`guestfish --listen --csh`\"\n"
19416 #: ../fish/guestfish.pod:968
19417 msgid "REMOTE CONTROL DETAILS"
19421 #: ../fish/guestfish.pod:970
19423 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19424 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19425 "and C<$PID> is the process ID of the server."
19429 #: ../fish/guestfish.pod:974
19430 msgid "Guestfish client and server versions must match exactly."
19434 #: ../fish/guestfish.pod:976
19435 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19439 #: ../fish/guestfish.pod:978
19441 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19442 "context hangs, ie. don't do (note the backquotes):"
19446 #: ../fish/guestfish.pod:981
19449 #| " guestfish --ro -d myguest -i\n"
19452 " a=`guestfish --remote run`\n"
19455 " guestfish --ro -d myguest -i\n"
19459 #: ../fish/guestfish.pod:983
19461 "Since the C<run> command produces no output on stdout, this is not useful "
19462 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
19467 #: ../fish/guestfish.pod:987
19468 msgid "PREPARED DISK IMAGES"
19472 #: ../fish/guestfish.pod:989
19474 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19475 "preformatted disk images that guestfish can make for you to save typing. "
19476 "This is particularly useful for testing purposes. This option is used "
19477 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19478 "can be mixed with I<-a>)."
19482 #: ../fish/guestfish.pod:995
19484 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19485 "the second and so on. Existing files in the current directory are "
19490 #: ../fish/guestfish.pod:999
19492 "The type briefly describes how the disk should be sized, partitioned, how "
19493 "filesystem(s) should be created, and how content should be added. "
19494 "Optionally the type can be followed by extra parameters, separated by C<:> "
19495 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
19496 "allocated disk, containing a single partition, with the partition formatted "
19497 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19502 #: ../fish/guestfish.pod:1007
19503 msgid "To list the available types and any extra parameters they take, run:"
19507 #: ../fish/guestfish.pod:1011
19509 "Note that the prepared filesystem is not mounted. You would usually have to "
19510 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19514 #: ../fish/guestfish.pod:1015
19516 "If any I<-N> or I<--new> options are given, the guest is automatically "
19521 #: ../fish/guestfish.pod:1020
19522 msgid "Create a 100MB disk with an ext4-formatted partition:"
19526 #: ../fish/guestfish.pod:1022
19529 " guestfish -N fs:ext4\n"
19534 #: ../fish/guestfish.pod:1024
19535 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19539 #: ../fish/guestfish.pod:1026
19542 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19547 #: ../fish/guestfish.pod:1028
19548 msgid "Create a blank 200MB disk:"
19552 #: ../fish/guestfish.pod:1030
19555 " guestfish -N disk:200M\n"
19560 #: ../fish/guestfish.pod:1032
19561 msgid "PROGRESS BARS"
19565 #: ../fish/guestfish.pod:1034
19567 "Some (not all) long-running commands send progress notification messages as "
19568 "they are running. Guestfish turns these messages into progress bars."
19572 #: ../fish/guestfish.pod:1038
19574 "When a command that supports progress bars takes longer than two seconds to "
19575 "run, and if progress bars are enabled, then you will see one appearing below "
19580 #: ../fish/guestfish.pod:1042
19583 " ><fs> copy-size /large-file /another-file 2048M\n"
19584 " / 10% [#####-----------------------------------------] 00:30\n"
19589 #: ../fish/guestfish.pod:1045
19591 "The spinner on the left hand side moves round once for every progress "
19592 "notification received from the backend. This is a (reasonably) golden "
19593 "assurance that the command is \"doing something\" even if the progress bar "
19594 "is not moving, because the command is able to send the progress "
19595 "notifications. When the bar reaches 100% and the command finishes, the "
19596 "spinner disappears."
19600 #: ../fish/guestfish.pod:1052
19602 "Progress bars are enabled by default when guestfish is used interactively. "
19603 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19604 "and you can disable them completely using I<--no-progress-bars>."
19608 #: ../fish/guestfish.pod:1057
19609 msgid "GUESTFISH COMMANDS"
19613 #: ../fish/guestfish.pod:1059
19615 "The commands in this section are guestfish convenience commands, in other "
19616 "words, they are not part of the L<guestfs(3)> API."
19620 #: ../fish/guestfish.pod:1062
19625 #: ../fish/guestfish.pod:1064
19637 #: ../fish/guestfish.pod:1067
19638 msgid "Without any parameter, this provides general help."
19639 msgstr "Без параметра показує загальну довідкову інформацію."
19642 #: ../fish/guestfish.pod:1069
19643 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19647 #: ../fish/guestfish.pod:1071
19648 msgid "quit | exit"
19652 #: ../fish/guestfish.pod:1073
19653 msgid "This exits guestfish. You can also use C<^D> key."
19657 #: ../fish/guestfish.pod:1075
19658 msgid "@FISH_COMMANDS@"
19662 #: ../fish/guestfish.pod:1077
19667 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1505
19672 #: ../fish/guestfish.pod:1083
19674 "guestfish returns 0 if the commands completed without error, or 1 if there "
19679 #: ../fish/guestfish.pod:1090
19684 #: ../fish/guestfish.pod:1092
19686 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
19691 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3110
19692 msgid "FEBOOTSTRAP_KERNEL"
19696 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3112
19697 msgid "FEBOOTSTRAP_MODULES"
19701 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3114
19703 "These two environment variables allow the kernel that libguestfs uses in the "
19704 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19705 "most recent host kernel is chosen. For more information about kernel "
19706 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
19707 "available in febootstrap E<ge> 3.8."
19711 #: ../fish/guestfish.pod:1105
19712 msgid "GUESTFISH_DISPLAY_IMAGE"
19716 #: ../fish/guestfish.pod:1107
19718 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
19719 "If not set, it uses L<display(1)>."
19723 #: ../fish/guestfish.pod:1110
19724 msgid "GUESTFISH_PID"
19728 #: ../fish/guestfish.pod:1112
19730 "Used with the I<--remote> option to specify the remote guestfish process to "
19731 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19735 #: ../fish/guestfish.pod:1116
19740 #: ../fish/guestfish.pod:1118
19742 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
19743 "not specified, the external L<hexedit(1)> program is used."
19747 #: ../fish/guestfish.pod:1122
19752 #: ../fish/guestfish.pod:1124
19754 "If compiled with GNU readline support, various files in the home directory "
19755 "can be used. See L</FILES>."
19759 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3120
19760 msgid "LIBGUESTFS_APPEND"
19764 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3122
19765 msgid "Pass additional options to the guest kernel."
19769 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3124
19770 msgid "LIBGUESTFS_DEBUG"
19771 msgstr "LIBGUESTFS_DEBUG"
19774 #: ../fish/guestfish.pod:1133
19776 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
19777 "effect as using the B<-v> option."
19781 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3129
19782 msgid "LIBGUESTFS_MEMSIZE"
19783 msgstr "LIBGUESTFS_MEMSIZE"
19786 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3131
19788 "Set the memory allocated to the qemu process, in megabytes. For example:"
19792 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3134
19795 " LIBGUESTFS_MEMSIZE=700\n"
19798 " LIBGUESTFS_MEMSIZE=700\n"
19802 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3136
19803 msgid "LIBGUESTFS_PATH"
19807 #: ../fish/guestfish.pod:1145
19809 "Set the path that guestfish uses to search for kernel and initrd.img. See "
19810 "the discussion of paths in L<guestfs(3)>."
19814 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3141
19815 msgid "LIBGUESTFS_QEMU"
19819 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3143
19821 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
19822 "which was found at compile time by the configure script is used."
19826 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3149
19827 msgid "LIBGUESTFS_TRACE"
19831 #: ../fish/guestfish.pod:1156
19832 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19836 #: ../fish/guestfish.pod:1158
19838 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19841 #: ../fish/guestfish.pod:1160
19843 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
19848 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3154
19853 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3156
19855 "Location of temporary directory, defaults to C</tmp> except for the cached "
19856 "supermin appliance which defaults to C</var/tmp>."
19860 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3159
19862 "If libguestfs was compiled to use the supermin appliance then the real "
19863 "appliance is cached in this directory, shared between all handles belonging "
19864 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
19865 "use in case C</var/tmp> is not large enough."
19869 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19870 #: ../rescue/virt-rescue.pod:273
19875 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19876 #: ../rescue/virt-rescue.pod:277
19877 msgid "$HOME/.libguestfs-tools.rc"
19881 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19882 #: ../rescue/virt-rescue.pod:279
19883 msgid "/etc/libguestfs-tools.conf"
19887 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19888 #: ../rescue/virt-rescue.pod:281
19890 "This configuration file controls the default read-only or read-write mode "
19891 "(I<--ro> or I<--rw>)."
19895 #: ../fish/guestfish.pod:1187
19896 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19900 #: ../fish/guestfish.pod:1189
19901 msgid "$HOME/.guestfish"
19905 #: ../fish/guestfish.pod:1191
19907 "If compiled with GNU readline support, then the command history is saved in "
19912 #: ../fish/guestfish.pod:1194
19913 msgid "$HOME/.inputrc"
19917 #: ../fish/guestfish.pod:1196
19918 msgid "/etc/inputrc"
19922 #: ../fish/guestfish.pod:1198
19924 "If compiled with GNU readline support, then these files can be used to "
19925 "configure readline. For further information, please see L<readline(3)/"
19926 "INITIALIZATION FILE>."
19930 #: ../fish/guestfish.pod:1202
19931 msgid "To write rules which only apply to guestfish, use:"
19935 #: ../fish/guestfish.pod:1204
19945 #: ../fish/guestfish.pod:1208
19947 "Variables that you can set in inputrc that change the behaviour of guestfish "
19948 "in useful ways include:"
19952 #: ../fish/guestfish.pod:1213
19953 msgid "completion-ignore-case (default: on)"
19957 #: ../fish/guestfish.pod:1215
19959 "By default, guestfish will ignore case when tab-completing paths on the "
19964 #: ../fish/guestfish.pod:1218
19967 " set completion-ignore-case off\n"
19972 #: ../fish/guestfish.pod:1220
19973 msgid "to make guestfish case sensitive."
19977 #: ../fish/guestfish.pod:1224
19982 #: ../fish/guestfish.pod:1226
19983 msgid "test2.img (etc)"
19987 #: ../fish/guestfish.pod:1228
19989 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19990 "will be created in the file C<test1.img> in the current directory. The "
19991 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
19992 "the same name will be overwritten."
19996 #: ../fish/guestfish.pod:1237
19998 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19999 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
20000 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
20001 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
20002 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
20003 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
20007 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3246
20008 #: ../test-tool/libguestfs-test-tool.pod:112
20009 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
20013 #: ../fish/virt-copy-in.pod:5
20015 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20019 #: ../fish/virt-copy-in.pod:9
20022 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20027 #: ../fish/virt-copy-in.pod:11
20030 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20035 #: ../fish/virt-copy-in.pod:15
20037 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20038 "causing disk corruption. The virtual machine must be shut down before you "
20039 "use this command."
20043 #: ../fish/virt-copy-in.pod:21
20045 "C<virt-copy-in> copies files and directories from the local disk into a "
20046 "virtual machine disk image or named libvirt domain."
20050 #: ../fish/virt-copy-in.pod:24
20052 "You can give one of more filenames and directories on the command line. "
20053 "Directories are copied in recursively. The final parameter must be the "
20054 "destination directory in the disk image which must be an absolute path "
20055 "starting with a C</> character."
20059 #: ../fish/virt-copy-in.pod:33
20062 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20067 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20068 msgid "Upload a home directory to a guest:"
20072 #: ../fish/virt-copy-in.pod:37
20075 " virt-copy-in -d MyGuest skel /home\n"
20080 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20081 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20082 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20086 #: ../fish/virt-copy-in.pod:41
20088 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20089 "> C<copy-in> command. For anything more complex than a trivial copy, you "
20090 "are probably better off using guestfish directly."
20094 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20095 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20097 "Since the shell script just passes options straight to guestfish, read "
20098 "L<guestfish(1)> to see the full list of options."
20102 #: ../fish/virt-copy-in.pod:52
20105 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20106 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20107 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20108 #| "libguestfs.org/>."
20110 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20111 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20113 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20114 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20115 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20119 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20120 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20122 #| msgid "Copyright (C) 2009 Red Hat Inc."
20123 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
20124 msgstr "© Red Hat Inc., 2009"
20127 #: ../fish/virt-copy-out.pod:5
20129 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20134 #: ../fish/virt-copy-out.pod:9
20137 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20142 #: ../fish/virt-copy-out.pod:11
20145 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20150 #: ../fish/virt-copy-out.pod:15
20152 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20153 "image or named libvirt domain."
20157 #: ../fish/virt-copy-out.pod:18
20159 "You can give one of more filenames and directories on the command line. "
20160 "Directories are copied out recursively."
20164 #: ../fish/virt-copy-out.pod:23
20165 msgid "Download the home directories from a virtual machine:"
20169 #: ../fish/virt-copy-out.pod:25
20173 " virt-copy-out -d MyGuest /home homes\n"
20178 #: ../fish/virt-copy-out.pod:30
20180 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20181 "> C<copy-out> command. For anything more complex than a trivial copy, you "
20182 "are probably better off using guestfish directly."
20186 #: ../fish/virt-copy-out.pod:41
20189 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20190 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20191 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20192 #| "libguestfs.org/>."
20194 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
20195 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20197 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20198 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20199 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20203 #: ../fish/virt-tar-in.pod:5
20204 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20208 #: ../fish/virt-tar-in.pod:9
20211 " virt-tar-in -a disk.img data.tar /destination\n"
20216 #: ../fish/virt-tar-in.pod:11
20219 " virt-tar-in -d domain data.tar /destination\n"
20224 #: ../fish/virt-tar-in.pod:13
20227 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20232 #: ../fish/virt-tar-in.pod:17
20234 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20235 "causing disk corruption. The virtual machine must be shut down before you "
20236 "use this command."
20240 #: ../fish/virt-tar-in.pod:23
20242 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20243 "image or named libvirt domain."
20247 #: ../fish/virt-tar-in.pod:26
20249 "The first parameter is the tar file. Use C<-> to read the tar file from "
20250 "standard input. The second parameter is the absolute target directory to "
20255 #: ../fish/virt-tar-in.pod:34
20258 " virt-tar-in -d MyGuest homes.tar /home\n"
20263 #: ../fish/virt-tar-in.pod:38
20265 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20266 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
20267 "probably better off using guestfish directly."
20271 #: ../fish/virt-tar-in.pod:49
20274 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20275 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20276 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20277 #| "libguestfs.org/>."
20279 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20280 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
20283 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20284 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20285 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20289 #: ../fish/virt-tar-out.pod:5
20291 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20295 #: ../fish/virt-tar-out.pod:9
20298 " virt-tar-out -a disk.img /dir files.tar\n"
20303 #: ../fish/virt-tar-out.pod:11
20306 " virt-tar-out -d domain /dir files.tar\n"
20311 #: ../fish/virt-tar-out.pod:13
20314 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20319 #: ../fish/virt-tar-out.pod:17
20321 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20325 #: ../fish/virt-tar-out.pod:20
20327 "The first parameter is the absolute path of the virtual machine directory. "
20328 "The second parameter is the tar file to write. Use C<-> to write to "
20333 #: ../fish/virt-tar-out.pod:26
20334 msgid "Download the home directories from a guest:"
20338 #: ../fish/virt-tar-out.pod:28
20341 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20346 #: ../fish/virt-tar-out.pod:32
20348 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20349 "> C<tar-out> command. For anything more complex than a trivial copy, you "
20350 "are probably better off using guestfish directly."
20354 #: ../fish/virt-tar-out.pod:43
20357 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20358 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20359 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20360 #| "libguestfs.org/>."
20362 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20363 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20365 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20366 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20367 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20371 #: ../fuse/guestmount.pod:5
20373 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20377 #: ../fuse/guestmount.pod:9
20380 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20385 #: ../fuse/guestmount.pod:11
20388 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20393 #: ../fuse/guestmount.pod:13
20396 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20401 #: ../fuse/guestmount.pod:17
20403 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20404 "machines. If you do this, you risk disk corruption in the VM."
20408 #: ../fuse/guestmount.pod:22
20410 "The guestmount program can be used to mount virtual machine filesystems and "
20411 "other disk images on the host. It uses libguestfs for access to the guest "
20412 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20413 "a mountable device."
20417 #: ../fuse/guestmount.pod:27
20419 "Along with other options, you have to give at least one device (I<-a> "
20420 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20421 "option) or use the I<-i> inspection option. How this works is better "
20422 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20427 #: ../fuse/guestmount.pod:33
20429 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
20430 "by you, and the filesystem will not be visible to any other users unless you "
20431 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
20432 "the filesystem, use the C<fusermount -u> command."
20436 #: ../fuse/guestmount.pod:41
20438 "For a typical Windows guest which has its main filesystem on the first "
20443 #: ../fuse/guestmount.pod:44
20446 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20451 #: ../fuse/guestmount.pod:46
20453 "For a typical Linux guest which has a /boot filesystem on the first "
20454 "partition, and the root filesystem on a logical volume:"
20458 #: ../fuse/guestmount.pod:49
20461 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20466 #: ../fuse/guestmount.pod:51
20467 msgid "To get libguestfs to detect guest mountpoints for you:"
20471 #: ../fuse/guestmount.pod:53
20474 " guestmount -a guest.img -i --ro /mnt\n"
20479 #: ../fuse/guestmount.pod:55
20480 msgid "For a libvirt guest called \"Guest\" you could do:"
20484 #: ../fuse/guestmount.pod:57
20487 " guestmount -d Guest -i --ro /mnt\n"
20492 #: ../fuse/guestmount.pod:59
20494 "If you don't know what filesystems are contained in a guest or disk image, "
20495 "use L<virt-filesystems(1)> first:"
20499 #: ../fuse/guestmount.pod:62
20502 " virt-filesystems MyGuest\n"
20507 #: ../fuse/guestmount.pod:64
20509 "If you want to trace the libguestfs calls but without excessive debugging "
20510 "information, we recommend:"
20514 #: ../fuse/guestmount.pod:67
20517 " guestmount [...] --trace /mnt\n"
20522 #: ../fuse/guestmount.pod:69
20523 msgid "If you want to debug the program, we recommend:"
20527 #: ../fuse/guestmount.pod:71
20530 " guestmount [...] --trace --verbose /mnt\n"
20535 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20536 #: ../resize/virt-resize.pod:544
20541 #: ../fuse/guestmount.pod:75
20542 msgid "Other users cannot see the filesystem by default"
20546 #: ../fuse/guestmount.pod:77
20548 "If you mount a filesystem as one user (eg. root), then other users will not "
20549 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
20550 "option when mounting:"
20554 #: ../fuse/guestmount.pod:81
20557 " sudo guestmount [...] -o allow_other /mnt\n"
20562 #: ../fuse/guestmount.pod:91
20563 msgid "Add a block device or virtual machine image."
20567 #: ../fuse/guestmount.pod:114
20568 msgid "B<--dir-cache-timeout N>"
20569 msgstr "B<--dir-cache-timeout N>"
20572 #: ../fuse/guestmount.pod:116
20574 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20575 "seconds. The readdir cache [actually, there are several semi-independent "
20576 "caches] is populated after a readdir(2) call with the stat and extended "
20577 "attributes of the files in the directory, in anticipation that they will be "
20578 "requested soon after."
20582 #: ../fuse/guestmount.pod:122
20584 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20585 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20586 "requests, only cache existing ones."
20590 #: ../fuse/guestmount.pod:142
20592 "If you have untrusted raw-format guest disk images, you should use this "
20593 "option to specify the disk format. This avoids a possible security problem "
20594 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
20595 "guestfs_add_drive_opts>."
20599 #: ../fuse/guestmount.pod:147
20600 msgid "B<--fuse-help>"
20601 msgstr "B<--fuse-help>"
20604 #: ../fuse/guestmount.pod:149
20605 msgid "Display help on special FUSE options (see I<-o> below)."
20609 #: ../fuse/guestmount.pod:153
20610 msgid "Display brief help and exit."
20614 #: ../fuse/guestmount.pod:177
20616 "Mount the named partition or logical volume on the given mountpoint B<in the "
20617 "guest> (this has nothing to do with mountpoints in the host)."
20621 #: ../fuse/guestmount.pod:180
20623 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
20624 "something on C</>."
20628 #: ../fuse/guestmount.pod:197
20630 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20631 "unmounted. If you specify this option, then we don't attempt to sync the "
20632 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
20636 #: ../fuse/guestmount.pod:202
20638 #| msgid "B<--partition>"
20639 msgid "B<-o option>"
20640 msgstr "B<--partition>"
20643 #: ../fuse/guestmount.pod:204
20645 #| msgid "B<--partition>"
20646 msgid "B<--option option>"
20647 msgstr "B<--partition>"
20650 #: ../fuse/guestmount.pod:206
20651 msgid "Pass extra options to FUSE."
20655 #: ../fuse/guestmount.pod:208
20657 "To get a list of all the extra options supported by FUSE, use the command "
20658 "below. Note that only the FUSE I<-o> options can be passed, and only some "
20659 "of them are a good idea."
20663 #: ../fuse/guestmount.pod:212
20666 " guestmount --fuse-help\n"
20671 #: ../fuse/guestmount.pod:214
20672 msgid "Some potentially useful FUSE options:"
20676 #: ../fuse/guestmount.pod:218
20677 msgid "B<-o allow_other>"
20681 #: ../fuse/guestmount.pod:220
20682 msgid "Allow other users to see the filesystem."
20686 #: ../fuse/guestmount.pod:222
20687 msgid "B<-o attr_timeout=N>"
20688 msgstr "B<-o attr_timeout=N>"
20691 #: ../fuse/guestmount.pod:224
20692 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20696 #: ../fuse/guestmount.pod:226
20697 msgid "B<-o kernel_cache>"
20701 #: ../fuse/guestmount.pod:228
20703 "Allow the kernel to cache files (reduces the number of reads that have to go "
20704 "through the L<guestfs(3)> API). This is generally a good idea if you can "
20705 "afford the extra memory usage."
20709 #: ../fuse/guestmount.pod:232
20710 msgid "B<-o uid=N> B<-o gid=N>"
20714 #: ../fuse/guestmount.pod:234
20716 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20717 "the chosen values."
20721 #: ../fuse/guestmount.pod:243
20723 "Add devices and mount everything read-only. Also disallow writes and make "
20724 "the disk appear read-only to FUSE."
20728 #: ../fuse/guestmount.pod:246
20730 "This is highly recommended if you are not going to edit the guest disk. If "
20731 "the guest is running and this option is I<not> supplied, then there is a "
20732 "strong risk of disk corruption in the guest. We try to prevent this from "
20733 "happening, but it is not always possible."
20737 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20738 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20742 #: ../fuse/guestmount.pod:255
20743 msgid "Enable SELinux support for the guest."
20747 #: ../fuse/guestmount.pod:261
20748 msgid "Enable verbose messages from underlying libguestfs."
20752 #: ../fuse/guestmount.pod:267
20753 msgid "Display the program version and exit."
20757 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20758 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
20759 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20763 #: ../fuse/guestmount.pod:280
20770 #: ../fuse/guestmount.pod:282
20771 msgid "Trace libguestfs calls and entry into each FUSE function."
20775 #: ../fuse/guestmount.pod:284
20776 msgid "This also stops the daemon from forking into the background."
20780 #: ../fuse/guestmount.pod:310
20782 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20783 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20788 #: ../fuse/guestmount.pod:325
20789 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
20793 #: ../inspector/virt-inspector.pod:5
20795 "virt-inspector - Display operating system version and other information "
20796 "about a virtual machine"
20800 #: ../inspector/virt-inspector.pod:9
20803 #| " virt-list-partitions [--options] domname\n"
20806 " virt-inspector [--options] -d domname\n"
20809 " virt-list-partitions [--параметри] назва_домену\n"
20813 #: ../inspector/virt-inspector.pod:11
20816 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20819 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20822 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20826 #: ../inspector/virt-inspector.pod:15
20829 #| " virt-list-partitions [--options] domname\n"
20832 " virt-inspector domname\n"
20835 " virt-list-partitions [--параметри] назва_домену\n"
20839 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20842 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20845 " virt-inspector disk.img [disk.img ...]\n"
20848 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20852 #: ../inspector/virt-inspector.pod:21
20854 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20855 "determine the version of the operating system and other information about "
20856 "the virtual machine."
20860 #: ../inspector/virt-inspector.pod:25
20861 msgid "Virt-inspector produces XML output for feeding into other programs."
20865 #: ../inspector/virt-inspector.pod:27
20867 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20868 "the libvirt domain (see: C<virsh list --all>)."
20872 #: ../inspector/virt-inspector.pod:30
20874 "You can also run virt-inspector directly on disk images from a single "
20875 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
20876 "has several block devices, in which case you should list several I<-a> "
20877 "options one after another, with the first corresponding to the guest's C</"
20878 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20882 #: ../inspector/virt-inspector.pod:37
20884 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20885 "keys and similar."
20889 #: ../inspector/virt-inspector.pod:40
20891 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
20892 "inspect several virtual machines, you have to run virt-inspector several "
20893 "times (for example, from a shell script for-loop)."
20897 #: ../inspector/virt-inspector.pod:45
20899 "Because virt-inspector needs direct access to guest images, it won't "
20900 "normally work over remote libvirt connections."
20904 #: ../inspector/virt-inspector.pod:48
20906 "All of the information available from virt-inspector is also available "
20907 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
20908 "The same information can also be fetched using guestfish or via libguestfs "
20909 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20910 "WITH OTHER PROGRAMMING LANGUAGES>)."
20914 #: ../inspector/virt-inspector.pod:81
20916 "Libvirt is only used if you specify a C<domname> on the command line. If "
20917 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20922 #: ../inspector/virt-inspector.pod:94
20924 "When prompting for keys and passphrases, virt-inspector normally turns "
20925 "echoing off so you cannot see what you are typing. If you are not worried "
20926 "about Tempest attacks and there is no one else in the room you can specify "
20927 "this flag to see what you are typing."
20931 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20932 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20933 #: ../tools/virt-win-reg.pl:144
20935 "Specify the format of disk images given on the command line. If this is "
20936 "omitted then the format is autodetected from the content of the disk image."
20940 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20941 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20942 #: ../tools/virt-win-reg.pl:148
20944 "If disk images are requested from libvirt, then this program asks libvirt "
20945 "for this information. In this case, the value of the format parameter is "
20950 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20951 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
20952 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20953 #: ../tools/virt-win-reg.pl:152
20955 "If working with untrusted raw-format guest disk images, you should ensure "
20956 "the format is always specified."
20960 #: ../inspector/virt-inspector.pod:139
20961 msgid "Previous versions of virt-inspector allowed you to write either:"
20965 #: ../inspector/virt-inspector.pod:145
20968 #| " inspect-get-hostname root\n"
20971 " virt-inspector guestname\n"
20974 " inspect-get-hostname корінь\n"
20978 #: ../inspector/virt-inspector.pod:153
20983 #: ../inspector/virt-inspector.pod:155
20985 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20986 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
20987 "just an overview."
20991 #: ../inspector/virt-inspector.pod:159
20993 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20994 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
20995 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20996 "which is vanishingly rare in real world VMs."
21000 #: ../inspector/virt-inspector.pod:164
21001 msgid "E<lt>operatingsystemE<gt>"
21005 #: ../inspector/virt-inspector.pod:166
21007 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21008 "describe the operating system, its architecture, the descriptive \"product "
21009 "name\" string, the type of OS and so on, as in this example:"
21013 #: ../inspector/virt-inspector.pod:170
21016 " <operatingsystems>\n"
21017 " <operatingsystem>\n"
21018 " <root>/dev/sda2</root>\n"
21019 " <name>windows</name>\n"
21020 " <arch>i386</arch>\n"
21021 " <distro>windows</distro>\n"
21022 " <product_name>Windows 7 Enterprise</product_name>\n"
21023 " <product_variant>Client</product_variant>\n"
21024 " <major_version>6</major_version>\n"
21025 " <minor_version>1</minor_version>\n"
21026 " <windows_systemroot>/Windows</windows_systemroot>\n"
21027 " <format>installed</format>\n"
21032 #: ../inspector/virt-inspector.pod:183
21034 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21035 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21036 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21037 "architecture. The other fields are fairly self-explanatory, but because "
21038 "these fields are taken directly from the libguestfs inspection API you can "
21039 "find precise information from L<guestfs(3)/INSPECTION>."
21043 #: ../inspector/virt-inspector.pod:191
21045 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21046 "of view of libguestfs (block devices may have completely different names "
21047 "inside the VM itself)."
21051 #: ../inspector/virt-inspector.pod:195
21053 #| msgid "mountpoints"
21054 msgid "E<lt>mountpointsE<gt>"
21055 msgstr "mountpoints"
21058 #: ../inspector/virt-inspector.pod:197
21060 "Un*x-like guests typically have multiple filesystems which are mounted at "
21061 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21062 "element which looks like this:"
21066 #: ../inspector/virt-inspector.pod:201
21069 " <operatingsystems>\n"
21070 " <operatingsystem>\n"
21073 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21074 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21075 " </mountpoints>\n"
21080 #: ../inspector/virt-inspector.pod:209
21082 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21083 "and may have completely different names inside the guest. Only mountable "
21084 "filesystems appear in this list, not things like swap devices."
21088 #: ../inspector/virt-inspector.pod:214
21090 #| msgid "list-filesystems"
21091 msgid "E<lt>filesystemsE<gt>"
21092 msgstr "list-filesystems"
21095 #: ../inspector/virt-inspector.pod:216
21097 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21098 "filesystems belonging to the guest, including swap and empty partitions. "
21099 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21100 "this OS or shared with this OS and other OSes)."
21104 #: ../inspector/virt-inspector.pod:222
21105 msgid "You might see something like this:"
21109 #: ../inspector/virt-inspector.pod:224
21112 " <operatingsystems>\n"
21113 " <operatingsystem>\n"
21116 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21117 " <type>ext4</type>\n"
21118 " <label>Fedora-13-x86_64</label>\n"
21119 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21125 #: ../inspector/virt-inspector.pod:234
21127 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21128 "the label, and the UUID."
21132 #: ../inspector/virt-inspector.pod:237
21133 msgid "E<lt>applicationsE<gt>"
21137 #: ../inspector/virt-inspector.pod:239
21139 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21140 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21145 #: ../inspector/virt-inspector.pod:243
21147 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
21148 "Typical values would be C<rpm> and C<deb>."
21152 #: ../inspector/virt-inspector.pod:246
21154 "E<lt>package_managementE<gt>, if present, describes the package manager. "
21155 "Typical values include C<yum>, C<up2date> and C<apt>"
21159 #: ../inspector/virt-inspector.pod:249
21160 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21164 #: ../inspector/virt-inspector.pod:252
21167 " <operatingsystems>\n"
21168 " <operatingsystem>\n"
21170 " <applications>\n"
21172 " <name>coreutils</name>\n"
21173 " <version>8.5</version>\n"
21174 " <release>1</release>\n"
21175 " </application>\n"
21180 #: ../inspector/virt-inspector.pod:262
21182 "The version and release fields may not be available for some types guests. "
21183 "Other fields are possible, see L<guestfs(3)/"
21184 "guestfs_inspect_list_applications>."
21188 #: ../inspector/virt-inspector.pod:266
21189 msgid "E<lt>drive_mappingsE<gt>"
21193 #: ../inspector/virt-inspector.pod:268
21195 "For operating systems like Windows which use drive letters, virt-inspector "
21196 "is able to find out how drive letters map to filesystems."
21200 #: ../inspector/virt-inspector.pod:272
21203 " <operatingsystems>\n"
21204 " <operatingsystem>\n"
21206 " <drive_mappings>\n"
21207 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21208 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21209 " </drive_mappings>\n"
21214 #: ../inspector/virt-inspector.pod:280
21216 "In the example above, drive C maps to the filesystem on the second partition "
21217 "on the first disk, and drive E maps to the filesystem on the first partition "
21218 "on the second disk."
21222 #: ../inspector/virt-inspector.pod:284
21224 "Note that this only covers permanent local filesystem mappings, not things "
21225 "like network shares. Furthermore NTFS volume mount points may not be listed "
21230 #: ../inspector/virt-inspector.pod:288
21232 #| msgid "B<-s E<lt>NE<gt>>"
21233 msgid "E<lt>iconE<gt>"
21234 msgstr "B<-s E<lt>NE<gt>>"
21237 #: ../inspector/virt-inspector.pod:290
21239 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
21240 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
21241 "very large and high quality."
21245 #: ../inspector/virt-inspector.pod:294
21248 " <operatingsystems>\n"
21249 " <operatingsystem>\n"
21252 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21253 " [... many lines of base64 data ...]\n"
21259 #: ../inspector/virt-inspector.pod:302
21261 "To display the icon, you have to extract it and convert the base64 data back "
21262 "to a binary file. Use an XPath query or simply an editor to extract the "
21263 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21268 #: ../inspector/virt-inspector.pod:307
21271 " base64 -i -d < icon.data > icon.png\n"
21276 #: ../inspector/virt-inspector.pod:309
21277 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21281 #: ../inspector/virt-inspector.pod:311
21283 "Virt-inspector can detect some operating system installers on install disks, "
21284 "live CDs, bootable USB keys and more."
21288 #: ../inspector/virt-inspector.pod:314
21290 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21291 "fields may be present to indicate a live CD, network installer, or one part "
21292 "of a multipart CD. For example:"
21296 #: ../inspector/virt-inspector.pod:318
21299 " <operatingsystems>\n"
21300 " <operatingsystem>\n"
21301 " <root>/dev/sda</root>\n"
21302 " <name>linux</name>\n"
21303 " <arch>i386</arch>\n"
21304 " <distro>ubuntu</distro>\n"
21305 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
21306 " <major_version>10</major_version>\n"
21307 " <minor_version>10</minor_version>\n"
21308 " <format>installer</format>\n"
21314 #: ../inspector/virt-inspector.pod:330
21315 msgid "USING XPATH"
21319 #: ../inspector/virt-inspector.pod:332
21321 "You can use the XPath query language to select parts of the XML. We "
21322 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
21326 #: ../inspector/virt-inspector.pod:338
21329 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21331 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21332 " <type>ext4</type>\n"
21338 #: ../inspector/virt-inspector.pod:344
21341 " $ virt-inspector -d Guest | \\\n"
21342 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21348 #: ../inspector/virt-inspector.pod:348
21351 " $ virt-inspector -d Guest | \\\n"
21352 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21353 " [displays the guest icon, if there is one]\n"
21358 #: ../inspector/virt-inspector.pod:359
21359 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21363 #: ../inspector/virt-inspector.pod:361
21365 "Early versions of libguestfs shipped with a different virt-inspector program "
21366 "written in Perl (the current version is written in C). The XML output of "
21367 "the Perl virt-inspector was different and it could also output in other "
21368 "formats like text."
21372 #: ../inspector/virt-inspector.pod:366
21374 "The old virt-inspector is no longer supported or shipped with libguestfs."
21378 #: ../inspector/virt-inspector.pod:369
21380 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21381 "versions of virt-inspector with different names:"
21385 #: ../inspector/virt-inspector.pod:372
21388 " virt-inspector Old Perl version.\n"
21389 " virt-inspector2 New C version.\n"
21394 #: ../inspector/virt-inspector.pod:382
21397 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21398 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21399 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21401 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21402 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21404 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21405 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21406 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21409 #: ../inspector/virt-inspector.pod:399
21410 msgid "Matthew Booth L<mbooth@redhat.com>"
21414 #: ../java/examples/guestfs-java.pod:5
21415 msgid "guestfs-java - How to use libguestfs from Java"
21419 #: ../java/examples/guestfs-java.pod:9
21422 " import com.redhat.et.libguestfs.*;\n"
21427 #: ../java/examples/guestfs-java.pod:11
21430 " GuestFS g = new GuestFS ();\n"
21431 " g.add_drive_opts (\"disk.img\", null);\n"
21437 #: ../java/examples/guestfs-java.pod:17
21439 "This manual page documents how to call libguestfs from the Java programming "
21440 "language. This page just documents the differences from the C API and gives "
21441 "some examples. If you are not familiar with using libguestfs, you also need "
21442 "to read L<guestfs(3)>."
21446 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21447 msgid "CLOSING THE HANDLE"
21451 #: ../java/examples/guestfs-java.pod:24
21453 "The handle is closed when it is reaped by the garbage collector. Because "
21454 "libguestfs handles include a lot of state, it is also possible to close (and "
21455 "hence free) them explicitly by calling the C<close> method."
21459 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21460 #: ../python/examples/guestfs-python.pod:21
21461 #: ../ruby/examples/guestfs-ruby.pod:22
21468 #: ../java/examples/guestfs-java.pod:31
21470 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21471 "exception. This has a single parameter which is the error message (a "
21476 #: ../java/examples/guestfs-java.pod:35
21477 msgid "Calling any method on a closed handle raises the same exception."
21481 #: ../java/examples/guestfs-java.pod:47
21484 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21485 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21486 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21488 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
21489 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21490 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21492 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21493 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21494 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21497 #: ../ocaml/examples/guestfs-ocaml.pod:5
21498 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21502 #: ../ocaml/examples/guestfs-ocaml.pod:9
21503 msgid "Module style:"
21507 #: ../ocaml/examples/guestfs-ocaml.pod:11
21510 " let g = Guestfs.create () in\n"
21511 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21512 " Guestfs.launch g;\n"
21517 #: ../ocaml/examples/guestfs-ocaml.pod:15
21518 msgid "Object-oriented style:"
21522 #: ../ocaml/examples/guestfs-ocaml.pod:17
21525 " let g = new Guestfs.guestfs () in\n"
21526 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21532 #: ../ocaml/examples/guestfs-ocaml.pod:21
21535 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21537 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21542 #: ../ocaml/examples/guestfs-ocaml.pod:27
21544 "This manual page documents how to call libguestfs from the OCaml programming "
21545 "language. This page just documents the differences from the C API and gives "
21546 "some examples. If you are not familiar with using libguestfs, you also need "
21547 "to read L<guestfs(3)>."
21551 #: ../ocaml/examples/guestfs-ocaml.pod:32
21552 msgid "PROGRAMMING STYLES"
21556 #: ../ocaml/examples/guestfs-ocaml.pod:34
21558 "There are two different programming styles supported by the OCaml bindings. "
21559 "You can use a module style, with each C function mapped to an OCaml function:"
21563 #: ../ocaml/examples/guestfs-ocaml.pod:38
21566 #| " int guestfs_last_errno (guestfs_h *g);\n"
21569 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21572 " int guestfs_last_errno (guestfs_h *g);\n"
21576 #: ../ocaml/examples/guestfs-ocaml.pod:40
21581 #: ../ocaml/examples/guestfs-ocaml.pod:42
21584 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21589 #: ../ocaml/examples/guestfs-ocaml.pod:44
21591 "Alternately you can use an object-oriented style, calling methods on the "
21592 "class C<Guestfs.guestfs>:"
21596 #: ../ocaml/examples/guestfs-ocaml.pod:47
21599 " method set_verbose : bool -> unit\n"
21604 #: ../ocaml/examples/guestfs-ocaml.pod:49
21606 "The object-oriented style is usually briefer, and the minor performance "
21607 "penalty isn't noticable in the general overhead of performing libguestfs "
21612 #: ../ocaml/examples/guestfs-ocaml.pod:55
21614 "The handle is closed when it is reaped by the garbage collector. Because "
21615 "libguestfs handles include a lot of state, it is also possible to close (and "
21616 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21621 #: ../ocaml/examples/guestfs-ocaml.pod:62
21623 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21624 "exception. This has a single parameter which is the error message (a "
21629 #: ../ocaml/examples/guestfs-ocaml.pod:66
21631 "Calling any function/method on a closed handle raises C<Guestfs."
21632 "Handle_closed>. The single parameter is the name of the function that you "
21637 #: ../ocaml/examples/guestfs-ocaml.pod:80
21640 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21641 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21642 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21644 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21645 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21646 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21648 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21649 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21650 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21653 #: ../perl/examples/guestfs-perl.pod:5
21654 msgid "guestfs-perl - How to use libguestfs from Perl"
21658 #: ../perl/examples/guestfs-perl.pod:9
21661 " use Sys::Guestfs;\n"
21666 #: ../perl/examples/guestfs-perl.pod:11
21669 " my $h = Sys::Guestfs->new ();\n"
21670 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21671 " $h->launch ();\n"
21672 " $h->mount_options ('', '/dev/sda1', '/');\n"
21673 " $h->touch ('/hello');\n"
21679 #: ../perl/examples/guestfs-perl.pod:20
21681 "This manual page documents how to call libguestfs from the Perl programming "
21682 "language. This page just documents the differences from the C API and gives "
21683 "some examples. If you are not familiar with using libguestfs, you also need "
21684 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
21688 #: ../perl/examples/guestfs-perl.pod:26
21693 #: ../perl/examples/guestfs-perl.pod:28
21695 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21700 #: ../perl/examples/guestfs-perl.pod:41
21703 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21704 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21705 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21707 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
21708 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
21709 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21711 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21712 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21713 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21716 #: ../python/examples/guestfs-python.pod:5
21717 msgid "guestfs-python - How to use libguestfs from Python"
21721 #: ../python/examples/guestfs-python.pod:9
21724 " import guestfs\n"
21725 " g = guestfs.GuestFS ()\n"
21726 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21732 #: ../python/examples/guestfs-python.pod:16
21734 "This manual page documents how to call libguestfs from the Python "
21735 "programming language. This page just documents the differences from the C "
21736 "API and gives some examples. If you are not familiar with using libguestfs, "
21737 "you also need to read L<guestfs(3)>."
21741 #: ../python/examples/guestfs-python.pod:23
21743 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21744 "single string argument which is the error message."
21748 #: ../python/examples/guestfs-python.pod:26
21749 msgid "MORE DOCUMENTATION"
21753 #: ../python/examples/guestfs-python.pod:28
21758 #: ../python/examples/guestfs-python.pod:30
21762 " >>> import guestfs\n"
21763 " >>> help (guestfs)\n"
21768 #: ../python/examples/guestfs-python.pod:44
21771 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21772 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21773 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21775 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21776 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
21777 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21779 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21780 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21781 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21784 #: ../rescue/virt-rescue.pod:5
21785 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21789 #: ../rescue/virt-rescue.pod:9
21792 #| " virt-list-partitions [--options] domname\n"
21795 " virt-rescue [--options] -d domname\n"
21798 " virt-list-partitions [--параметри] назва_домену\n"
21802 #: ../rescue/virt-rescue.pod:11
21805 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21808 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21811 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21815 #: ../rescue/virt-rescue.pod:15
21818 #| " virt-list-partitions [--options] domname\n"
21821 " virt-rescue [--options] domname\n"
21824 " virt-list-partitions [--параметри] назва_домену\n"
21828 #: ../rescue/virt-rescue.pod:17
21831 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21834 " virt-rescue [--options] disk.img [disk.img ...]\n"
21837 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21841 #: ../rescue/virt-rescue.pod:21
21843 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
21844 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
21845 "you from doing this, but doesn't catch all cases."
21849 #: ../rescue/virt-rescue.pod:25
21851 "However if you use the I<--ro> (read only) option, then you can attach a "
21852 "shell to a live virtual machine. The results might be strange or "
21853 "inconsistent at times but you won't get disk corruption."
21857 #: ../rescue/virt-rescue.pod:31
21859 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21860 "need for a CD. virt-rescue gives you a rescue shell and some simple "
21861 "recovery tools which you can use to examine or rescue a virtual machine or "
21866 #: ../rescue/virt-rescue.pod:36
21868 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21869 "on disk image(s):"
21873 #: ../rescue/virt-rescue.pod:39
21876 " virt-rescue -d GuestName\n"
21881 #: ../rescue/virt-rescue.pod:41
21884 " virt-rescue --ro -a /path/to/disk.img\n"
21889 #: ../rescue/virt-rescue.pod:43
21892 " virt-rescue -a /dev/sdc\n"
21897 #: ../rescue/virt-rescue.pod:45
21898 msgid "For live VMs you I<must> use the --ro option."
21902 #: ../rescue/virt-rescue.pod:47
21904 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21905 "in an interactive bash shell where you can use many ordinary Linux "
21906 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21907 "appliance. You must mount the virtual machine's filesystems by hand. There "
21908 "is an empty directory called C</sysroot> where you can mount filesystems."
21912 #: ../rescue/virt-rescue.pod:54
21914 "In the example below, we list logical volumes, then choose one to mount "
21915 "under C</sysroot>:"
21919 #: ../rescue/virt-rescue.pod:57
21923 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
21924 " lv_root vg_f11x64 -wi-a- 8.83G\n"
21925 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21926 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21927 " ><rescue> ls /sysroot\n"
21932 #: ../rescue/virt-rescue.pod:64
21934 "If you don't know what filesystems are available on the virtual machine then "
21935 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21939 #: ../rescue/virt-rescue.pod:70
21941 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21942 "virtual machine. For example you can use it on a blank file if you want to "
21943 "partition that file (although we would recommend using L<guestfish(1)> "
21944 "instead as it is more suitable for this purpose). You can even use virt-"
21945 "rescue on things like SD cards."
21949 #: ../rescue/virt-rescue.pod:76
21951 "Virt-rescue does not require root. You only need to run it as root if you "
21952 "need root to open the disk image."
21956 #: ../rescue/virt-rescue.pod:79
21958 "This tool is just designed for quick interactive hacking on a virtual "
21959 "machine. For more structured access to a virtual machine disk image, you "
21960 "should use L<guestfs(3)>. To get a structured shell that you can use to "
21961 "make scripted changes to guests, use L<guestfish(1)>."
21965 #: ../rescue/virt-rescue.pod:103
21966 msgid "B<--append kernelopts>"
21970 #: ../rescue/virt-rescue.pod:105
21971 msgid "Pass additional options to the rescue kernel."
21975 #: ../rescue/virt-rescue.pod:135
21978 #| " guestfish --format=raw -a disk.img\n"
21981 " virt-rescue --format=raw -a disk.img\n"
21984 " guestfish --format=raw -a disk.img\n"
21988 #: ../rescue/virt-rescue.pod:139
21991 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21994 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21997 " guestfish --format=raw -a disk.img --format -a another.img\n"
22001 #: ../rescue/virt-rescue.pod:148
22006 #: ../rescue/virt-rescue.pod:150
22008 #| msgid "B<--merge>"
22009 msgid "B<--memsize MB>"
22010 msgstr "B<--merge>"
22013 #: ../rescue/virt-rescue.pod:152
22015 "Change the amount of memory allocated to the rescue system. The default is "
22016 "set by libguestfs and is small but adequate for running system tools. The "
22017 "occasional program might need more memory. The parameter is specified in "
22022 #: ../rescue/virt-rescue.pod:157
22024 #| msgid "B<--inspector>"
22025 msgid "B<--network>"
22026 msgstr "B<--inspector>"
22029 #: ../rescue/virt-rescue.pod:159
22030 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
22034 #: ../rescue/virt-rescue.pod:165
22035 msgid "Open the image read-only."
22039 #: ../rescue/virt-rescue.pod:175
22041 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
22042 "SELINUX> before using this option."
22046 #: ../rescue/virt-rescue.pod:178
22048 #| msgid "B<--csh>"
22053 #: ../rescue/virt-rescue.pod:180
22054 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22058 #: ../rescue/virt-rescue.pod:198
22060 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22061 "are done read-write."
22065 #: ../rescue/virt-rescue.pod:211
22066 msgid "Previous versions of virt-rescue allowed you to write either:"
22070 #: ../rescue/virt-rescue.pod:213
22073 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22076 " virt-rescue disk.img [disk.img ...]\n"
22079 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22083 #: ../rescue/virt-rescue.pod:217
22086 #| " file-architecture filename\n"
22089 " virt-rescue guestname\n"
22092 " file-architecture назва_файла\n"
22096 #: ../rescue/virt-rescue.pod:225
22101 #: ../rescue/virt-rescue.pod:227
22103 "Adding the I<--network> option enables QEMU user networking in the rescue "
22104 "appliance. There are some differences between user networking and ordinary "
22109 #: ../rescue/virt-rescue.pod:233
22110 msgid "ping does not work"
22114 #: ../rescue/virt-rescue.pod:235
22116 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22117 "send the ping packets, and because virt-rescue must be able to run as non-"
22118 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
22119 "The ping command will appear to resolve addresses but will not be able to "
22120 "send or receive any packets. This does not mean that the network is not "
22125 #: ../rescue/virt-rescue.pod:242
22126 msgid "cannot receive connections"
22130 #: ../rescue/virt-rescue.pod:244
22131 msgid "QEMU user networking cannot receive incoming connections."
22135 #: ../rescue/virt-rescue.pod:246
22136 msgid "making TCP connections"
22140 #: ../rescue/virt-rescue.pod:248
22142 "The virt-rescue appliance needs to be small and so does not include many "
22143 "network tools. In particular there is no L<telnet(1)> command. You can "
22144 "make TCP connections from the shell using the magical C</dev/tcp/"
22145 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22149 #: ../rescue/virt-rescue.pod:253
22152 " exec 3<>/dev/tcp/redhat.com/80\n"
22153 " echo \"GET /\" >&3\n"
22159 #: ../rescue/virt-rescue.pod:257
22160 msgid "See L<bash(1)> for more details."
22164 #: ../rescue/virt-rescue.pod:263
22166 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
22167 "ENVIRONMENT VARIABLES> for the complete list."
22171 #: ../rescue/virt-rescue.pod:290
22174 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22175 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22176 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22178 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22179 "libguestfs.org/>."
22181 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22182 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22183 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22186 #: ../resize/virt-resize.pod:5
22187 msgid "virt-resize - Resize a virtual machine disk"
22191 #: ../resize/virt-resize.pod:9
22194 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22195 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22196 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22201 #: ../resize/virt-resize.pod:15
22203 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22204 "larger or smaller overall, and resizing or deleting any partitions contained "
22209 #: ../resize/virt-resize.pod:19
22211 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
22212 "not> be used on live virtual machines - for consistent results, shut the "
22213 "virtual machine down before resizing it."
22217 #: ../resize/virt-resize.pod:23
22219 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22220 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22224 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
22225 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1287 ../src/guestfs.pod:1426
22226 #: ../src/guestfs.pod:2604
22231 #: ../resize/virt-resize.pod:33
22233 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22234 "fill the extra 5GB of space."
22238 #: ../resize/virt-resize.pod:36
22241 " virt-filesystems --long -h --all -a olddisk\n"
22246 #: ../resize/virt-resize.pod:38
22249 " truncate -r olddisk newdisk\n"
22250 " truncate -s +5G newdisk\n"
22255 #: ../resize/virt-resize.pod:41
22258 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22259 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22264 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
22265 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1291 ../src/guestfs.pod:1430
22266 #: ../src/guestfs.pod:2629
22271 #: ../resize/virt-resize.pod:46
22273 "As above, but make the /boot partition 200MB bigger, while giving the "
22274 "remaining space to /dev/sda2:"
22278 #: ../resize/virt-resize.pod:49
22281 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22282 " olddisk newdisk\n"
22287 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
22288 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1436
22293 #: ../resize/virt-resize.pod:54
22295 "As in the first example, but expand a logical volume as the final step. "
22296 "This is what you would typically use for Linux guests that use LVM:"
22300 #: ../resize/virt-resize.pod:58
22303 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22304 " olddisk newdisk\n"
22309 #: ../resize/virt-resize.pod:61
22314 #: ../resize/virt-resize.pod:63
22316 "As in the first example, but the output format will be qcow2 instead of a "
22321 #: ../resize/virt-resize.pod:66
22324 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22325 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22330 #: ../resize/virt-resize.pod:71
22331 msgid "DETAILED USAGE"
22335 #: ../resize/virt-resize.pod:73
22336 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22340 #: ../resize/virt-resize.pod:77
22341 msgid "1. Shut down the virtual machine"
22345 #: ../resize/virt-resize.pod:79
22346 msgid "2. Locate input disk image"
22350 #: ../resize/virt-resize.pod:81
22352 "Locate the input disk image (ie. the file or device on the host containing "
22353 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
22354 "dumpxml> like this to find the disk image name:"
22358 #: ../resize/virt-resize.pod:85
22361 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22362 " Found 1 nodes:\n"
22364 " <source dev=\"/dev/vg/lv_guest\" />\n"
22369 #: ../resize/virt-resize.pod:90
22370 msgid "3. Look at current sizing"
22374 #: ../resize/virt-resize.pod:92
22375 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22379 #: ../resize/virt-resize.pod:95
22382 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22383 " Name Type Size Parent\n"
22384 " /dev/sda1 partition 101M /dev/sda\n"
22385 " /dev/sda2 partition 7.9G /dev/sda\n"
22386 " /dev/sda device 8.0G -\n"
22391 #: ../resize/virt-resize.pod:101
22393 "(This example is a virtual machine with an 8 GB disk which we would like to "
22394 "expand up to 10 GB)."
22398 #: ../resize/virt-resize.pod:104
22399 msgid "4. Create output disk"
22403 #: ../resize/virt-resize.pod:106
22405 "Virt-resize cannot do in-place disk modifications. You have to have space "
22406 "to store the resized output disk."
22410 #: ../resize/virt-resize.pod:109
22412 "To store the resized disk image in a file, create a file of a suitable size:"
22416 #: ../resize/virt-resize.pod:112
22419 " # rm -f outdisk\n"
22420 " # truncate -s 10G outdisk\n"
22425 #: ../resize/virt-resize.pod:115
22426 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22430 #: ../resize/virt-resize.pod:117
22433 " # lvcreate -L 10G -n lv_name vg_name\n"
22438 #: ../resize/virt-resize.pod:119
22439 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22443 #: ../resize/virt-resize.pod:121
22446 " # virsh pool-list\n"
22447 " # virsh vol-create-as poolname newvol 10G\n"
22452 #: ../resize/virt-resize.pod:124
22457 #: ../resize/virt-resize.pod:126
22459 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22460 "file) and the output disk. The output disk is the one created in the "
22465 #: ../resize/virt-resize.pod:130
22468 " # virt-resize indisk outdisk\n"
22473 #: ../resize/virt-resize.pod:132
22475 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22476 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
22477 "larger, then an extra, empty partition is created at the end of the disk "
22478 "covering the extra space. If C<outdisk> is smaller, then it will give an "
22483 #: ../resize/virt-resize.pod:138
22485 "More realistically you'd want to expand existing partitions in the disk "
22486 "image by passing extra options (for the full list see the L</OPTIONS> "
22491 #: ../resize/virt-resize.pod:142
22493 "L</--expand> is the most useful option. It expands the named partition "
22494 "within the disk to fill any extra space:"
22498 #: ../resize/virt-resize.pod:145
22501 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22506 #: ../resize/virt-resize.pod:147
22508 "(In this case, an extra partition is I<not> created at the end of the disk, "
22509 "because there will be no unused space)."
22513 #: ../resize/virt-resize.pod:150
22515 "L</--resize> is the other commonly used option. The following would "
22516 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22517 "rest of the available space:"
22521 #: ../resize/virt-resize.pod:154
22524 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22525 " indisk outdisk\n"
22530 #: ../resize/virt-resize.pod:157
22532 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22533 "if virt-resize knows how, it will resize the contents, the equivalent of "
22534 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22535 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
22536 "filesystems, so you would have to online resize them after booting the guest."
22540 #: ../resize/virt-resize.pod:164
22541 msgid "Other options are covered below."
22545 #: ../resize/virt-resize.pod:166
22550 #: ../resize/virt-resize.pod:168
22551 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22555 #: ../resize/virt-resize.pod:170
22556 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22560 #: ../resize/virt-resize.pod:172
22563 #| " edit filename\n"
22566 " # virsh edit guestname\n"
22569 " edit назва_файла\n"
22573 #: ../resize/virt-resize.pod:174
22575 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22576 "html#elementsDisks>"
22580 #: ../resize/virt-resize.pod:177
22581 msgid "Then start up the domain with the new, resized disk:"
22585 #: ../resize/virt-resize.pod:179
22588 #| " ln-s target linkname\n"
22591 " # virsh start guestname\n"
22594 " ln-s призначення назва_посилання\n"
22598 #: ../resize/virt-resize.pod:181
22600 "and check that it still works. See also the L</NOTES> section below for "
22601 "additional information."
22605 #: ../resize/virt-resize.pod:184
22606 msgid "7. Resize LVs etc inside the guest"
22610 #: ../resize/virt-resize.pod:186
22611 msgid "(This can also be done offline using L<guestfish(1)>)"
22615 #: ../resize/virt-resize.pod:188
22617 "Once the guest has booted you should see the new space available, at least "
22618 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
22619 "may need to resize LVs inside PVs, and also resize filesystem types that "
22620 "virt-resize does not know how to expand."
22624 #: ../resize/virt-resize.pod:195
22625 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22629 #: ../resize/virt-resize.pod:197
22631 "Shrinking is somewhat more complex than expanding, and only an overview is "
22636 #: ../resize/virt-resize.pod:200
22638 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22639 "filesystems). The user has to shrink content before passing the disk image "
22640 "to virt-resize, and virt-resize will check that the content has been shrunk "
22645 #: ../resize/virt-resize.pod:205
22646 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22650 #: ../resize/virt-resize.pod:207
22652 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22653 "steps 3 and 4 above to allocate a new disk image."
22657 #: ../resize/virt-resize.pod:210
22659 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22663 #: ../resize/virt-resize.pod:213
22664 msgid "IGNORING OR DELETING PARTITIONS"
22668 #: ../resize/virt-resize.pod:215
22670 "virt-resize also gives a convenient way to ignore or delete partitions when "
22671 "copying from the input disk to the output disk. Ignoring a partition speeds "
22672 "up the copy where you don't care about the existing contents of a "
22673 "partition. Deleting a partition removes it completely, but note that it "
22674 "also renumbers any partitions after the one which is deleted, which can "
22675 "leave some guests unbootable."
22679 #: ../resize/virt-resize.pod:222
22680 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22684 #: ../resize/virt-resize.pod:224
22686 "If the input disk is in qcow2 format, then you may prefer that the output is "
22687 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
22688 "the fly. The output format is simply determined by the format of the empty "
22689 "output container that you provide. Thus to create qcow2 output, use:"
22693 #: ../resize/virt-resize.pod:230
22696 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22701 #: ../resize/virt-resize.pod:232
22702 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22706 #: ../resize/virt-resize.pod:234
22707 msgid "Similarly, to get non-sparse raw output use:"
22711 #: ../resize/virt-resize.pod:236
22714 #| " fallocate path len\n"
22717 " fallocate -l size outdisk\n"
22720 " fallocate шлях довжина\n"
22724 #: ../resize/virt-resize.pod:238
22726 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22727 "dev/zero of=outdisk bs=1M count=..>)"
22731 #: ../resize/virt-resize.pod:247
22732 msgid "Display help."
22736 #: ../resize/virt-resize.pod:249
22741 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22742 #: ../tools/virt-win-reg.pl:120
22744 msgstr "B<--debug>"
22747 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22748 msgid "Enable debugging messages."
22752 #: ../resize/virt-resize.pod:255
22754 #| msgid "B<--no-dest-paths>"
22755 msgid "B<--delete part>"
22756 msgstr "B<--no-dest-paths>"
22759 #: ../resize/virt-resize.pod:257
22761 "Delete the named partition. It would be more accurate to describe this as "
22762 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22763 "the original disk image is left intact."
22767 #: ../resize/virt-resize.pod:261
22769 "Note that when you delete a partition, then anything contained in the "
22770 "partition is also deleted. Furthermore, this causes any partitions that "
22771 "come after to be I<renumbered>, which can easily make your guest unbootable."
22775 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22776 #: ../resize/virt-resize.pod:454
22777 msgid "You can give this option multiple times."
22781 #: ../resize/virt-resize.pod:268
22783 #| msgid "B<--partition>"
22784 msgid "B<--expand part>"
22785 msgstr "B<--partition>"
22788 #: ../resize/virt-resize.pod:270
22790 "Expand the named partition so it uses up all extra space (space left over "
22791 "after any other resize changes that you request have been done)."
22795 #: ../resize/virt-resize.pod:273
22797 "If virt-resize knows how, it will expand the direct content of the "
22798 "partition. For example, if the partition is an LVM PV, it will expand the "
22799 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
22800 "content it doesn't know about alone."
22804 #: ../resize/virt-resize.pod:278
22805 msgid "Currently virt-resize can resize:"
22809 #: ../resize/virt-resize.pod:284
22810 msgid "ext2, ext3 and ext4 filesystems."
22814 #: ../resize/virt-resize.pod:288
22815 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22819 #: ../resize/virt-resize.pod:290
22821 "The filesystem must have been shut down consistently last time it was used. "
22822 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22823 "consistency check, so at the first boot after resizing Windows will check "
22828 #: ../resize/virt-resize.pod:297
22830 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
22831 "inside the PV, but see the I<--LV-expand> option. The user could also "
22832 "resize LVs as desired after boot."
22836 #: ../resize/virt-resize.pod:303
22837 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22841 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22842 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22846 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22847 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22848 #: ../tools/virt-win-reg.pl:142
22849 msgid "B<--format> raw"
22853 #: ../resize/virt-resize.pod:311
22855 "Specify the format of the input disk image. If this flag is not given then "
22856 "it is auto-detected from the image itself."
22860 #: ../resize/virt-resize.pod:317
22862 "Note that this option I<does not> affect the output format. See L</QCOW2 "
22863 "AND NON-SPARSE RAW FORMATS>."
22867 #: ../resize/virt-resize.pod:320
22869 #| msgid "B<--format>"
22870 msgid "B<--ignore part>"
22871 msgstr "B<--format>"
22874 #: ../resize/virt-resize.pod:322
22876 "Ignore the named partition. Effectively this means the partition is "
22877 "allocated on the destination disk, but the content is not copied across from "
22878 "the source disk. The content of the partition will be blank (all zero "
22883 #: ../resize/virt-resize.pod:329
22884 msgid "B<--LV-expand logvol>"
22888 #: ../resize/virt-resize.pod:331
22890 "This takes the logical volume and, as a final step, expands it to fill all "
22891 "the space available in its volume group. A typical usage, assuming a Linux "
22892 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22893 "lv_root> would be:"
22897 #: ../resize/virt-resize.pod:336
22900 " virt-resize indisk outdisk \\\n"
22901 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22906 #: ../resize/virt-resize.pod:339
22908 "This would first expand the partition (and PV), and then expand the root "
22909 "device to fill the extra space in the PV."
22913 #: ../resize/virt-resize.pod:342
22915 "The contents of the LV are also resized if virt-resize knows how to do "
22916 "that. You can stop virt-resize from trying to expand the content by using "
22917 "the option I<--no-expand-content>."
22921 #: ../resize/virt-resize.pod:346
22922 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22926 #: ../resize/virt-resize.pod:348
22928 "You can give this option multiple times, I<but> it doesn't make sense to do "
22929 "this unless the logical volumes you specify are all in different volume "
22934 #: ../resize/virt-resize.pod:352
22936 #| msgid "B<-h> | B<--human-readable>"
22937 msgid "B<--machine-readable>"
22938 msgstr "B<-h> | B<--human-readable>"
22941 #: ../resize/virt-resize.pod:354
22943 "This option is used to make the output more machine friendly when being "
22944 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
22948 #: ../resize/virt-resize.pod:360
22950 #| msgid "B<--debug>"
22951 msgid "B<--dryrun>"
22952 msgstr "B<--debug>"
22955 #: ../resize/virt-resize.pod:362
22956 msgid "Print a summary of what would be done, but don't do anything."
22960 #: ../resize/virt-resize.pod:364
22961 msgid "B<--no-copy-boot-loader>"
22965 #: ../resize/virt-resize.pod:366
22967 "By default, virt-resize copies over some sectors at the start of the disk "
22968 "(up to the beginning of the first partition). Commonly these sectors "
22969 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22970 "in order for the guest to boot correctly."
22974 #: ../resize/virt-resize.pod:371
22976 "If you specify this flag, then this initial copy is not done. You may need "
22977 "to reinstall the boot loader in this case."
22981 #: ../resize/virt-resize.pod:374
22983 #| msgid "B<--partition>"
22984 msgid "B<--no-extra-partition>"
22985 msgstr "B<--partition>"
22988 #: ../resize/virt-resize.pod:376
22990 "By default, virt-resize creates an extra partition if there is any extra, "
22991 "unused space after all resizing has happened. Use this option to prevent "
22992 "the extra partition from being created. If you do this then the extra space "
22993 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22994 "tool in the guest."
22998 #: ../resize/virt-resize.pod:382
23000 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23005 #: ../resize/virt-resize.pod:385
23007 #| msgid "B<--no-dest-paths>"
23008 msgid "B<--no-expand-content>"
23009 msgstr "B<--no-dest-paths>"
23012 #: ../resize/virt-resize.pod:387
23014 "By default, virt-resize will try to expand the direct contents of "
23015 "partitions, if it knows how (see I<--expand> option above)."
23019 #: ../resize/virt-resize.pod:390
23021 "If you give the I<--no-expand-content> option then virt-resize will not "
23026 #: ../resize/virt-resize.pod:393
23028 #| msgid "ntfsresize-size"
23029 msgid "B<--ntfsresize-force>"
23030 msgstr "ntfsresize-size"
23033 #: ../resize/virt-resize.pod:395
23035 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23036 "the NTFS disk is marked as needing a consistency check. You have to use "
23037 "this option if you want to resize a Windows guest multiple times without "
23038 "booting into Windows between each resize."
23042 #: ../resize/virt-resize.pod:401
23044 #| msgid "B<--format>"
23045 msgid "B<--output-format> raw"
23046 msgstr "B<--format>"
23049 #: ../resize/virt-resize.pod:403
23051 "Specify the format of the output disk image. If this flag is not given then "
23052 "it is auto-detected from the image itself."
23056 #: ../resize/virt-resize.pod:409
23058 "Note that this option I<does not create> the output format. This option "
23059 "just tells libguestfs what it is so it doesn't try to guess it. You still "
23060 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
23061 "SPARSE RAW FORMATS>."
23065 #: ../resize/virt-resize.pod:414
23070 #: ../resize/virt-resize.pod:416
23072 #| msgid "B<--live>"
23077 #: ../resize/virt-resize.pod:418
23078 msgid "Don't print the summary."
23082 #: ../resize/virt-resize.pod:420
23084 #| msgid "B<part_size>"
23085 msgid "B<--resize part=size>"
23086 msgstr "B<part_size>"
23089 #: ../resize/virt-resize.pod:422
23091 "Resize the named partition (expanding or shrinking it) so that it has the "
23096 #: ../resize/virt-resize.pod:425
23098 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23099 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23100 "size; or as a relative number or percentage. For example:"
23104 #: ../resize/virt-resize.pod:431
23107 #| " hexedit /dev/sda 1M\n"
23110 " --resize /dev/sda2=10G\n"
23113 " hexedit /dev/sda 1M\n"
23117 #: ../resize/virt-resize.pod:433
23120 #| " pvresize device\n"
23123 " --resize /dev/sda4=90%\n"
23126 " pvresize пристрій\n"
23130 #: ../resize/virt-resize.pod:435
23133 #| " hexedit /dev/sda 1M\n"
23136 " --resize /dev/sda2=+1G\n"
23139 " hexedit /dev/sda 1M\n"
23143 #: ../resize/virt-resize.pod:437
23146 #| " hexedit /dev/sda 1M\n"
23149 " --resize /dev/sda2=-200M\n"
23152 " hexedit /dev/sda 1M\n"
23156 #: ../resize/virt-resize.pod:439
23159 #| " hexedit /dev/sda 1M\n"
23162 " --resize /dev/sda1=+128K\n"
23165 " hexedit /dev/sda 1M\n"
23169 #: ../resize/virt-resize.pod:441
23172 #| " hexedit /dev/sda 1M\n"
23175 " --resize /dev/sda1=+10%\n"
23178 " hexedit /dev/sda 1M\n"
23182 #: ../resize/virt-resize.pod:443
23185 #| " hexedit /dev/sda 1M\n"
23188 " --resize /dev/sda1=-10%\n"
23191 " hexedit /dev/sda 1M\n"
23195 #: ../resize/virt-resize.pod:445
23197 "You can increase the size of any partition. Virt-resize will expand the "
23198 "direct content of the partition if it knows how (see I<--expand> below)."
23202 #: ../resize/virt-resize.pod:449
23204 "You can only I<decrease> the size of partitions that contain filesystems or "
23205 "PVs which have already been shrunk. Virt-resize will check this has been "
23206 "done before proceeding, or else will print an error (see also I<--resize-"
23211 #: ../resize/virt-resize.pod:456
23212 msgid "B<--resize-force part=size>"
23216 #: ../resize/virt-resize.pod:458
23218 "This is the same as I<--resize> except that it will let you decrease the "
23219 "size of any partition. Generally this means you will lose any data which "
23220 "was at the end of the partition you shrink, but you may not care about that "
23221 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23222 "as a swap partition)."
23226 #: ../resize/virt-resize.pod:464
23227 msgid "See also the I<--ignore> option."
23231 #: ../resize/virt-resize.pod:466
23233 #| msgid "B<--partition>"
23234 msgid "B<--shrink part>"
23235 msgstr "B<--partition>"
23238 #: ../resize/virt-resize.pod:468
23240 "Shrink the named partition until the overall disk image fits in the "
23241 "destination. The named partition B<must> contain a filesystem or PV which "
23242 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23243 "online tools). Virt-resize will check this and give an error if it has not "
23248 #: ../resize/virt-resize.pod:474
23250 "The amount by which the overall disk must be shrunk (after carrying out all "
23251 "other operations requested by the user) is called the \"deficit\". For "
23252 "example, a straight copy (assume no other operations) from a 5GB disk image "
23253 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
23254 "would give an error unless the user specified a partition to shrink and that "
23255 "partition had more than a gigabyte of free space."
23259 #: ../resize/virt-resize.pod:492
23260 msgid "MACHINE READABLE OUTPUT"
23264 #: ../resize/virt-resize.pod:494
23266 "The I<--machine-readable> option can be used to make the output more machine "
23267 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23272 #: ../resize/virt-resize.pod:498
23273 msgid "There are two ways to use this option."
23277 #: ../resize/virt-resize.pod:500
23279 "Firstly use the option on its own to query the capabilities of the virt-"
23280 "resize binary. Typical output looks like this:"
23284 #: ../resize/virt-resize.pod:503
23287 " $ virt-resize --machine-readable\n"
23289 " ntfsresize-force\n"
23297 #: ../resize/virt-resize.pod:510
23299 "A list of features is printed, one per line, and the program exits with "
23304 #: ../resize/virt-resize.pod:513
23306 "Secondly use the option in conjunction with other options to make the "
23307 "regular program output more machine friendly."
23311 #: ../resize/virt-resize.pod:516
23312 msgid "At the moment this means:"
23316 #: ../resize/virt-resize.pod:522
23318 "Progress bar messages can be parsed from stdout by looking for this regular "
23323 #: ../resize/virt-resize.pod:525
23326 " ^[0-9]+/[0-9]+$\n"
23331 #: ../resize/virt-resize.pod:529
23333 "The calling program should treat messages sent to stdout (except for "
23334 "progress bar messages) as status messages. They can be logged and/or "
23335 "displayed to the user."
23339 #: ../resize/virt-resize.pod:535
23341 "The calling program should treat messages sent to stderr as error messages. "
23342 "In addition, virt-resize exits with a non-zero status code if there was a "
23347 #: ../resize/virt-resize.pod:541
23349 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
23350 "readable> option and will return an error."
23354 #: ../resize/virt-resize.pod:546
23355 msgid "\"Partition 1 does not end on cylinder boundary.\""
23359 #: ../resize/virt-resize.pod:548
23361 "Virt-resize aligns partitions to multiples of 64 sectors. Usually this "
23362 "means the partitions will not be aligned to the ancient CHS geometry. "
23363 "However CHS geometry is meaningless for disks manufactured since the early "
23364 "1990s, and doubly so for virtual hard drives. Alignment of partitions to "
23365 "cylinders is not required by any modern operating system."
23369 #: ../resize/virt-resize.pod:555
23370 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23374 #: ../resize/virt-resize.pod:557
23376 "In Windows Vista and later versions, Microsoft switched to using a separate "
23377 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
23378 "and C</dev/sda2> is the main (C:) drive. We have not had any luck resizing "
23379 "the boot partition. Doing so seems to break the guest completely. However "
23380 "expanding the second partition (ie. C: drive) should work."
23384 #: ../resize/virt-resize.pod:564
23386 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23387 "NTFS partitions have been expanded. This is just a safety check and (unless "
23388 "it find errors) is nothing to worry about."
23392 #: ../resize/virt-resize.pod:568
23393 msgid "GUEST BOOT STUCK AT \"GRUB\""
23397 #: ../resize/virt-resize.pod:570
23399 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23400 "printing C<GRUB> on the console, try reinstalling grub. This sometimes "
23401 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23402 "although we think is to do with partition alignment."
23406 #: ../resize/virt-resize.pod:575
23409 " guestfish -i -a newdisk\n"
23410 " ><fs> cat /boot/grub/device.map\n"
23411 " # check the contents of this file are sensible or\n"
23412 " # edit the file if necessary\n"
23413 " ><fs> grub-install / /dev/vda\n"
23419 #: ../resize/virt-resize.pod:582
23421 "For more flexible guest reconfiguration, including if you need to specify "
23422 "other parameters to grub-install, use L<virt-rescue(1)>."
23426 #: ../resize/virt-resize.pod:585
23427 msgid "ALTERNATIVE TOOLS"
23431 #: ../resize/virt-resize.pod:587
23433 "There are several proprietary tools for resizing partitions. We won't "
23434 "mention any here."
23438 #: ../resize/virt-resize.pod:590
23440 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23441 "operations on disk images. They can resize and move partitions, but I don't "
23442 "think they can do anything with the contents, and they certainly don't "
23447 #: ../resize/virt-resize.pod:595
23449 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23450 "but at a much lower level. You will probably end up hand-calculating sector "
23451 "offsets, which is something that virt-resize was designed to avoid. If you "
23452 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23457 #: ../resize/virt-resize.pod:615
23459 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23460 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23461 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23462 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
23466 #: ../ruby/examples/guestfs-ruby.pod:5
23467 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23471 #: ../ruby/examples/guestfs-ruby.pod:9
23474 " require 'guestfs'\n"
23475 " g = Guestfs::Guestfs.new()\n"
23476 " g.add_drive_opts(\"disk.img\",\n"
23477 " :readonly => 1, :format => \"raw\")\n"
23483 #: ../ruby/examples/guestfs-ruby.pod:17
23485 "This manual page documents how to call libguestfs from the Ruby programming "
23486 "language. This page just documents the differences from the C API and gives "
23487 "some examples. If you are not familiar with using libguestfs, you also need "
23488 "to read L<guestfs(3)>."
23492 #: ../ruby/examples/guestfs-ruby.pod:24
23494 "Errors from libguestfs functions are mapped into the C<Error> exception. "
23495 "This has a single parameter which is the error message (a string)."
23499 #: ../ruby/examples/guestfs-ruby.pod:38
23502 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23503 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23504 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23506 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23507 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
23508 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23510 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23511 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23512 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23515 #: ../src/guestfs-actions.pod:1
23516 msgid "guestfs_add_cdrom"
23520 #: ../src/guestfs-actions.pod:3
23524 " guestfs_add_cdrom (guestfs_h *g,\n"
23525 " const char *filename);\n"
23530 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
23531 #: ../src/guestfs-actions.pod:270
23533 "I<This function is deprecated.> In new code, use the L</"
23534 "guestfs_add_drive_opts> call instead."
23538 #: ../src/guestfs-actions.pod:24
23540 "This call checks for the existence of C<filename>. This stops you from "
23541 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23542 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
23547 #: ../src/guestfs-actions.pod:31
23549 "If you just want to add an ISO file (often you use this as an efficient way "
23550 "to transfer large files into the guest), then you should probably use "
23551 "C<guestfs_add_drive_ro> instead."
23555 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
23556 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23557 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
23558 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23559 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23560 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23561 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23562 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23563 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23564 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23565 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23566 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23567 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23568 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1231
23569 #: ../src/guestfs-actions.pod:1275 ../src/guestfs-actions.pod:1293
23570 #: ../src/guestfs-actions.pod:1312 ../src/guestfs-actions.pod:1326
23571 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:1416
23572 #: ../src/guestfs-actions.pod:1447 ../src/guestfs-actions.pod:1472
23573 #: ../src/guestfs-actions.pod:1514 ../src/guestfs-actions.pod:1627
23574 #: ../src/guestfs-actions.pod:1654 ../src/guestfs-actions.pod:1869
23575 #: ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:1978
23576 #: ../src/guestfs-actions.pod:2484 ../src/guestfs-actions.pod:2628
23577 #: ../src/guestfs-actions.pod:2689 ../src/guestfs-actions.pod:2724
23578 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3783
23579 #: ../src/guestfs-actions.pod:3808 ../src/guestfs-actions.pod:3997
23580 #: ../src/guestfs-actions.pod:4011 ../src/guestfs-actions.pod:4024
23581 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4053
23582 #: ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4161
23583 #: ../src/guestfs-actions.pod:4181 ../src/guestfs-actions.pod:4198
23584 #: ../src/guestfs-actions.pod:4221 ../src/guestfs-actions.pod:4244
23585 #: ../src/guestfs-actions.pod:4279 ../src/guestfs-actions.pod:4298
23586 #: ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4352
23587 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4400
23588 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:4429
23589 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:4461
23590 #: ../src/guestfs-actions.pod:4554 ../src/guestfs-actions.pod:4574
23591 #: ../src/guestfs-actions.pod:4587 ../src/guestfs-actions.pod:4638
23592 #: ../src/guestfs-actions.pod:4656 ../src/guestfs-actions.pod:4674
23593 #: ../src/guestfs-actions.pod:4690 ../src/guestfs-actions.pod:4704
23594 #: ../src/guestfs-actions.pod:4718 ../src/guestfs-actions.pod:4735
23595 #: ../src/guestfs-actions.pod:4750 ../src/guestfs-actions.pod:4777
23596 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4913
23597 #: ../src/guestfs-actions.pod:4944 ../src/guestfs-actions.pod:4963
23598 #: ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:4994
23599 #: ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5024
23600 #: ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5054
23601 #: ../src/guestfs-actions.pod:5086 ../src/guestfs-actions.pod:5112
23602 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5171
23603 #: ../src/guestfs-actions.pod:5185 ../src/guestfs-actions.pod:5202
23604 #: ../src/guestfs-actions.pod:5251 ../src/guestfs-actions.pod:5304
23605 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5394
23606 #: ../src/guestfs-actions.pod:5422 ../src/guestfs-actions.pod:5439
23607 #: ../src/guestfs-actions.pod:5457 ../src/guestfs-actions.pod:5597
23608 #: ../src/guestfs-actions.pod:5654 ../src/guestfs-actions.pod:5676
23609 #: ../src/guestfs-actions.pod:5694 ../src/guestfs-actions.pod:5726
23610 #: ../src/guestfs-actions.pod:5792 ../src/guestfs-actions.pod:5809
23611 #: ../src/guestfs-actions.pod:5822 ../src/guestfs-actions.pod:5836
23612 #: ../src/guestfs-actions.pod:6125 ../src/guestfs-actions.pod:6144
23613 #: ../src/guestfs-actions.pod:6163 ../src/guestfs-actions.pod:6177
23614 #: ../src/guestfs-actions.pod:6189 ../src/guestfs-actions.pod:6203
23615 #: ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:6229
23616 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6266
23617 #: ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6304
23618 #: ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6352
23619 #: ../src/guestfs-actions.pod:6375 ../src/guestfs-actions.pod:6393
23620 #: ../src/guestfs-actions.pod:6412 ../src/guestfs-actions.pod:6433
23621 #: ../src/guestfs-actions.pod:6452 ../src/guestfs-actions.pod:6469
23622 #: ../src/guestfs-actions.pod:6488 ../src/guestfs-actions.pod:6516
23623 #: ../src/guestfs-actions.pod:6540 ../src/guestfs-actions.pod:6559
23624 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6597
23625 #: ../src/guestfs-actions.pod:6616 ../src/guestfs-actions.pod:6631
23626 #: ../src/guestfs-actions.pod:6650 ../src/guestfs-actions.pod:6694
23627 #: ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6757
23628 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6993
23629 #: ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7018
23630 #: ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7053
23631 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7079
23632 #: ../src/guestfs-actions.pod:7092 ../src/guestfs-actions.pod:7107
23633 #: ../src/guestfs-actions.pod:7166 ../src/guestfs-actions.pod:7183
23634 #: ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7215
23635 #: ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7245
23636 #: ../src/guestfs-actions.pod:7265 ../src/guestfs-actions.pod:7301
23637 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-actions.pod:7356
23638 #: ../src/guestfs-actions.pod:7369 ../src/guestfs-actions.pod:7387
23639 #: ../src/guestfs-actions.pod:7421 ../src/guestfs-actions.pod:7457
23640 #: ../src/guestfs-actions.pod:7573 ../src/guestfs-actions.pod:7588
23641 #: ../src/guestfs-actions.pod:7602 ../src/guestfs-actions.pod:7657
23642 #: ../src/guestfs-actions.pod:7670 ../src/guestfs-actions.pod:7715
23643 #: ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:7811
23644 #: ../src/guestfs-actions.pod:7831 ../src/guestfs-actions.pod:7864
23645 #: ../src/guestfs-actions.pod:7928 ../src/guestfs-actions.pod:7951
23646 #: ../src/guestfs-actions.pod:7980
23647 msgid "This function returns 0 on success or -1 on error."
23651 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23652 #: ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:2092
23653 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2313
23654 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3790
23655 #: ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:6354
23656 #: ../src/guestfs-actions.pod:6471 ../src/guestfs-actions.pod:6618
23657 #: ../src/guestfs-actions.pod:7109 ../src/guestfs-actions.pod:7234
23658 #: ../src/guestfs-actions.pod:7757
23659 msgid "(Added in 0.3)"
23663 #: ../src/guestfs-actions.pod:41
23664 msgid "guestfs_add_domain"
23668 #: ../src/guestfs-actions.pod:43
23672 " guestfs_add_domain (guestfs_h *g,\n"
23673 " const char *dom,\n"
23679 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23680 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
23681 #: ../src/guestfs-actions.pod:1211 ../src/guestfs-actions.pod:2973
23682 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5098
23683 #: ../src/guestfs-actions.pod:5315
23685 "You may supply a list of optional arguments to this call. Use zero or more "
23686 "of the following pairs of parameters, and terminate the list with C<-1> on "
23687 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
23691 #: ../src/guestfs-actions.pod:53
23694 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23695 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23696 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23697 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23698 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23703 #: ../src/guestfs-actions.pod:59
23705 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
23706 "It works by connecting to libvirt, requesting the domain and domain XML from "
23707 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23712 #: ../src/guestfs-actions.pod:94
23714 "The other optional parameters are passed directly through to "
23715 "C<guestfs_add_drive_opts>."
23719 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23720 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23721 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23722 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1492
23723 #: ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:2051
23724 #: ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:2213
23725 #: ../src/guestfs-actions.pod:2265 ../src/guestfs-actions.pod:2277
23726 #: ../src/guestfs-actions.pod:2300 ../src/guestfs-actions.pod:2615
23727 #: ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3109
23728 #: ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5494
23729 #: ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:5932
23730 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7768
23731 #: ../src/guestfs-actions.pod:7781 ../src/guestfs-actions.pod:7794
23732 msgid "On error this function returns -1."
23736 #: ../src/guestfs-actions.pod:99
23737 msgid "(Added in 1.7.4)"
23741 #: ../src/guestfs-actions.pod:101
23742 msgid "guestfs_add_domain_va"
23746 #: ../src/guestfs-actions.pod:103
23750 " guestfs_add_domain_va (guestfs_h *g,\n"
23751 " const char *dom,\n"
23752 " va_list args);\n"
23757 #: ../src/guestfs-actions.pod:108
23758 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23762 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23763 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23764 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23765 #: ../src/guestfs-actions.pod:1187 ../src/guestfs-actions.pod:1200
23766 #: ../src/guestfs-actions.pod:1244 ../src/guestfs-actions.pod:1257
23767 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:3069
23768 #: ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4866
23769 #: ../src/guestfs-actions.pod:5126 ../src/guestfs-actions.pod:5138
23770 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5375
23771 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23772 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23775 #: ../src/guestfs-actions.pod:112
23776 msgid "guestfs_add_domain_argv"
23777 msgstr "guestfs_add_domain_argv"
23780 #: ../src/guestfs-actions.pod:114
23784 " guestfs_add_domain_argv (guestfs_h *g,\n"
23785 " const char *dom,\n"
23786 " const struct guestfs_add_domain_argv *optargs);\n"
23791 #: ../src/guestfs-actions.pod:119
23792 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23796 #: ../src/guestfs-actions.pod:123
23797 msgid "guestfs_add_drive"
23801 #: ../src/guestfs-actions.pod:125
23805 " guestfs_add_drive (guestfs_h *g,\n"
23806 " const char *filename);\n"
23811 #: ../src/guestfs-actions.pod:129
23813 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23814 "optional parameters, so the disk is added writable, with the format being "
23815 "detected automatically."
23819 #: ../src/guestfs-actions.pod:133
23821 "Automatic detection of the format opens you up to a potential security hole "
23822 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
23823 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
23824 "you should think about replacing calls to this function with calls to "
23825 "C<guestfs_add_drive_opts>, and specifying the format."
23829 #: ../src/guestfs-actions.pod:144
23830 msgid "guestfs_add_drive_opts"
23834 #: ../src/guestfs-actions.pod:146
23838 " guestfs_add_drive_opts (guestfs_h *g,\n"
23839 " const char *filename,\n"
23845 #: ../src/guestfs-actions.pod:156
23848 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23849 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23850 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23855 #: ../src/guestfs-actions.pod:185
23857 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
23858 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
23859 "Possible formats include C<raw> and C<qcow2>."
23863 #: ../src/guestfs-actions.pod:196
23865 "This rarely-used option lets you emulate the behaviour of the deprecated "
23866 "C<guestfs_add_drive_with_if> call (q.v.)"
23870 #: ../src/guestfs-actions.pod:203
23871 msgid "(Added in 1.5.23)"
23875 #: ../src/guestfs-actions.pod:205
23876 msgid "guestfs_add_drive_opts_va"
23880 #: ../src/guestfs-actions.pod:207
23884 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23885 " const char *filename,\n"
23886 " va_list args);\n"
23891 #: ../src/guestfs-actions.pod:212
23892 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23896 #: ../src/guestfs-actions.pod:216
23897 msgid "guestfs_add_drive_opts_argv"
23901 #: ../src/guestfs-actions.pod:218
23905 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23906 " const char *filename,\n"
23907 " const struct guestfs_add_drive_opts_argv *optargs);\n"
23912 #: ../src/guestfs-actions.pod:223
23913 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23917 #: ../src/guestfs-actions.pod:227
23918 msgid "guestfs_add_drive_ro"
23922 #: ../src/guestfs-actions.pod:229
23926 " guestfs_add_drive_ro (guestfs_h *g,\n"
23927 " const char *filename);\n"
23932 #: ../src/guestfs-actions.pod:233
23934 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23935 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23936 "disk is added read-only, with the format being detected automatically."
23940 #: ../src/guestfs-actions.pod:240
23941 msgid "(Added in 1.0.38)"
23945 #: ../src/guestfs-actions.pod:242
23946 msgid "guestfs_add_drive_ro_with_if"
23950 #: ../src/guestfs-actions.pod:244
23954 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23955 " const char *filename,\n"
23956 " const char *iface);\n"
23961 #: ../src/guestfs-actions.pod:256
23963 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23964 "QEMU interface emulation to use at run time."
23968 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23969 #: ../src/guestfs-actions.pod:2574
23970 msgid "(Added in 1.0.84)"
23974 #: ../src/guestfs-actions.pod:263
23975 msgid "guestfs_add_drive_with_if"
23979 #: ../src/guestfs-actions.pod:265
23983 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23984 " const char *filename,\n"
23985 " const char *iface);\n"
23990 #: ../src/guestfs-actions.pod:277
23992 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23993 "QEMU interface emulation to use at run time."
23997 #: ../src/guestfs-actions.pod:284
23998 msgid "guestfs_aug_clear"
24002 #: ../src/guestfs-actions.pod:286
24006 " guestfs_aug_clear (guestfs_h *g,\n"
24007 " const char *augpath);\n"
24012 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2302
24013 msgid "(Added in 1.3.4)"
24017 #: ../src/guestfs-actions.pod:297
24018 msgid "guestfs_aug_close"
24022 #: ../src/guestfs-actions.pod:299
24026 " guestfs_aug_close (guestfs_h *g);\n"
24031 #: ../src/guestfs-actions.pod:302
24033 "Close the current Augeas handle and free up any resources used by it. After "
24034 "calling this, you have to call C<guestfs_aug_init> again before you can use "
24035 "any other Augeas functions."
24039 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
24040 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
24041 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
24042 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
24043 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
24044 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
24045 #: ../src/guestfs-actions.pod:5983
24046 msgid "(Added in 0.7)"
24050 #: ../src/guestfs-actions.pod:311
24051 msgid "guestfs_aug_defnode"
24055 #: ../src/guestfs-actions.pod:313
24058 " struct guestfs_int_bool *\n"
24059 " guestfs_aug_defnode (guestfs_h *g,\n"
24060 " const char *name,\n"
24061 " const char *expr,\n"
24062 " const char *val);\n"
24067 #: ../src/guestfs-actions.pod:322
24069 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24070 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
24071 "containing that single node."
24075 #: ../src/guestfs-actions.pod:330
24077 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
24078 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
24082 #: ../src/guestfs-actions.pod:336
24083 msgid "guestfs_aug_defvar"
24087 #: ../src/guestfs-actions.pod:338
24091 " guestfs_aug_defvar (guestfs_h *g,\n"
24092 " const char *name,\n"
24093 " const char *expr);\n"
24098 #: ../src/guestfs-actions.pod:354
24099 msgid "guestfs_aug_get"
24103 #: ../src/guestfs-actions.pod:356
24107 " guestfs_aug_get (guestfs_h *g,\n"
24108 " const char *augpath);\n"
24113 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
24114 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
24115 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
24116 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
24117 #: ../src/guestfs-actions.pod:1397 ../src/guestfs-actions.pod:1531
24118 #: ../src/guestfs-actions.pod:1719 ../src/guestfs-actions.pod:1831
24119 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2011
24120 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2121
24121 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2325
24122 #: ../src/guestfs-actions.pod:2539 ../src/guestfs-actions.pod:2743
24123 #: ../src/guestfs-actions.pod:2837 ../src/guestfs-actions.pod:2941
24124 #: ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:3174
24125 #: ../src/guestfs-actions.pod:3202 ../src/guestfs-actions.pod:3223
24126 #: ../src/guestfs-actions.pod:3257 ../src/guestfs-actions.pod:3316
24127 #: ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:3356
24128 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4336
24129 #: ../src/guestfs-actions.pod:4506 ../src/guestfs-actions.pod:4616
24130 #: ../src/guestfs-actions.pod:5512 ../src/guestfs-actions.pod:5711
24131 #: ../src/guestfs-actions.pod:5881 ../src/guestfs-actions.pod:6059
24132 #: ../src/guestfs-actions.pod:6108 ../src/guestfs-actions.pod:6778
24133 #: ../src/guestfs-actions.pod:6794 ../src/guestfs-actions.pod:6818
24134 #: ../src/guestfs-actions.pod:6842 ../src/guestfs-actions.pod:7516
24135 #: ../src/guestfs-actions.pod:7535 ../src/guestfs-actions.pod:7553
24136 #: ../src/guestfs-actions.pod:7727 ../src/guestfs-actions.pod:8044
24138 "This function returns a string, or NULL on error. I<The caller must free "
24139 "the returned string after use>."
24143 #: ../src/guestfs-actions.pod:368
24144 msgid "guestfs_aug_init"
24148 #: ../src/guestfs-actions.pod:370
24152 " guestfs_aug_init (guestfs_h *g,\n"
24153 " const char *root,\n"
24159 #: ../src/guestfs-actions.pod:379
24160 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24164 #: ../src/guestfs-actions.pod:404
24166 "This option is only useful when debugging Augeas lenses. Use of this option "
24167 "may require additional memory for the libguestfs appliance. You may need to "
24168 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24169 "C<guestfs_set_memsize>."
24173 #: ../src/guestfs-actions.pod:419
24174 msgid "Do not load the tree in C<guestfs_aug_init>."
24178 #: ../src/guestfs-actions.pod:423
24179 msgid "To close the handle, you can call C<guestfs_aug_close>."
24183 #: ../src/guestfs-actions.pod:431
24184 msgid "guestfs_aug_insert"
24188 #: ../src/guestfs-actions.pod:433
24192 " guestfs_aug_insert (guestfs_h *g,\n"
24193 " const char *augpath,\n"
24194 " const char *label,\n"
24200 #: ../src/guestfs-actions.pod:451
24201 msgid "guestfs_aug_load"
24205 #: ../src/guestfs-actions.pod:453
24209 " guestfs_aug_load (guestfs_h *g);\n"
24214 #: ../src/guestfs-actions.pod:465
24215 msgid "guestfs_aug_ls"
24219 #: ../src/guestfs-actions.pod:467
24223 " guestfs_aug_ls (guestfs_h *g,\n"
24224 " const char *augpath);\n"
24229 #: ../src/guestfs-actions.pod:471
24231 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24232 "sorting the resulting nodes into alphabetical order."
24236 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
24237 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
24238 #: ../src/guestfs-actions.pod:1546 ../src/guestfs-actions.pod:1565
24239 #: ../src/guestfs-actions.pod:1668 ../src/guestfs-actions.pod:1687
24240 #: ../src/guestfs-actions.pod:1933 ../src/guestfs-actions.pod:2397
24241 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:2432
24242 #: ../src/guestfs-actions.pod:2497 ../src/guestfs-actions.pod:2521
24243 #: ../src/guestfs-actions.pod:2592 ../src/guestfs-actions.pod:2641
24244 #: ../src/guestfs-actions.pod:2902 ../src/guestfs-actions.pod:3276
24245 #: ../src/guestfs-actions.pod:3552 ../src/guestfs-actions.pod:3866
24246 #: ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3903
24247 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4070
24248 #: ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:5235
24249 #: ../src/guestfs-actions.pod:5853 ../src/guestfs-actions.pod:5979
24250 #: ../src/guestfs-actions.pod:6093 ../src/guestfs-actions.pod:6858
24251 #: ../src/guestfs-actions.pod:6919 ../src/guestfs-actions.pod:6974
24252 #: ../src/guestfs-actions.pod:7120 ../src/guestfs-actions.pod:7144
24253 #: ../src/guestfs-actions.pod:7620 ../src/guestfs-actions.pod:7640
24254 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7881
24255 #: ../src/guestfs-actions.pod:7900 ../src/guestfs-actions.pod:7994
24256 #: ../src/guestfs-actions.pod:8013 ../src/guestfs-actions.pod:8059
24257 #: ../src/guestfs-actions.pod:8078
24259 "This function returns a NULL-terminated array of strings (like L<environ(3)"
24260 ">), or NULL if there was an error. I<The caller must free the strings and "
24261 "the array after use>."
24265 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
24266 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1603
24267 #: ../src/guestfs-actions.pod:3630 ../src/guestfs-actions.pod:3661
24268 #: ../src/guestfs-actions.pod:4319 ../src/guestfs-actions.pod:4369
24269 #: ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:4589
24270 #: ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:5239
24271 #: ../src/guestfs-actions.pod:5794 ../src/guestfs-actions.pod:6191
24272 #: ../src/guestfs-actions.pod:6205 ../src/guestfs-actions.pod:6217
24273 #: ../src/guestfs-actions.pod:6699 ../src/guestfs-actions.pod:7358
24274 #: ../src/guestfs-actions.pod:7371 ../src/guestfs-actions.pod:7604
24275 #: ../src/guestfs-actions.pod:7869
24276 msgid "(Added in 0.8)"
24280 #: ../src/guestfs-actions.pod:480
24281 msgid "guestfs_aug_match"
24285 #: ../src/guestfs-actions.pod:482
24289 " guestfs_aug_match (guestfs_h *g,\n"
24290 " const char *augpath);\n"
24295 #: ../src/guestfs-actions.pod:496
24296 msgid "guestfs_aug_mv"
24300 #: ../src/guestfs-actions.pod:498
24304 " guestfs_aug_mv (guestfs_h *g,\n"
24305 " const char *src,\n"
24306 " const char *dest);\n"
24311 #: ../src/guestfs-actions.pod:510
24312 msgid "guestfs_aug_rm"
24316 #: ../src/guestfs-actions.pod:512
24320 " guestfs_aug_rm (guestfs_h *g,\n"
24321 " const char *augpath);\n"
24326 #: ../src/guestfs-actions.pod:524
24327 msgid "guestfs_aug_save"
24331 #: ../src/guestfs-actions.pod:526
24335 " guestfs_aug_save (guestfs_h *g);\n"
24340 #: ../src/guestfs-actions.pod:531
24342 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
24347 #: ../src/guestfs-actions.pod:538
24348 msgid "guestfs_aug_set"
24352 #: ../src/guestfs-actions.pod:540
24356 " guestfs_aug_set (guestfs_h *g,\n"
24357 " const char *augpath,\n"
24358 " const char *val);\n"
24363 #: ../src/guestfs-actions.pod:547
24365 "In the Augeas API, it is possible to clear a node by setting the value to "
24366 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
24367 "this call. Instead you must use the C<guestfs_aug_clear> call."
24371 #: ../src/guestfs-actions.pod:556
24372 msgid "guestfs_available"
24376 #: ../src/guestfs-actions.pod:558
24380 " guestfs_available (guestfs_h *g,\n"
24381 " char *const *groups);\n"
24386 #: ../src/guestfs-actions.pod:566
24388 "The libguestfs groups, and the functions that those groups correspond to, "
24389 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
24390 "runtime by calling C<guestfs_available_all_groups>."
24394 #: ../src/guestfs-actions.pod:590
24395 msgid "You must call C<guestfs_launch> before calling this function."
24399 #: ../src/guestfs-actions.pod:612
24401 "This call was added in version C<1.0.80>. In previous versions of "
24402 "libguestfs all you could do would be to speculatively execute a command to "
24403 "find out if the daemon implemented it. See also C<guestfs_version>."
24407 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1348
24408 msgid "(Added in 1.0.80)"
24412 #: ../src/guestfs-actions.pod:623
24413 msgid "guestfs_available_all_groups"
24417 #: ../src/guestfs-actions.pod:625
24421 " guestfs_available_all_groups (guestfs_h *g);\n"
24426 #: ../src/guestfs-actions.pod:628
24428 "This command returns a list of all optional groups that this daemon knows "
24429 "about. Note this returns both supported and unsupported groups. To find "
24430 "out which ones the daemon can actually support you have to call "
24431 "C<guestfs_available> on each member of the returned list."
24435 #: ../src/guestfs-actions.pod:634
24436 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24440 #: ../src/guestfs-actions.pod:640
24441 msgid "(Added in 1.3.15)"
24445 #: ../src/guestfs-actions.pod:642
24446 msgid "guestfs_base64_in"
24450 #: ../src/guestfs-actions.pod:644
24454 " guestfs_base64_in (guestfs_h *g,\n"
24455 " const char *base64file,\n"
24456 " const char *filename);\n"
24461 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24462 msgid "(Added in 1.3.5)"
24466 #: ../src/guestfs-actions.pod:656
24467 msgid "guestfs_base64_out"
24471 #: ../src/guestfs-actions.pod:658
24475 " guestfs_base64_out (guestfs_h *g,\n"
24476 " const char *filename,\n"
24477 " const char *base64file);\n"
24482 #: ../src/guestfs-actions.pod:670
24483 msgid "guestfs_blockdev_flushbufs"
24487 #: ../src/guestfs-actions.pod:672
24491 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24492 " const char *device);\n"
24497 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
24498 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
24499 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
24500 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24501 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24502 msgid "(Added in 0.9.3)"
24506 #: ../src/guestfs-actions.pod:685
24507 msgid "guestfs_blockdev_getbsz"
24511 #: ../src/guestfs-actions.pod:687
24515 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24516 " const char *device);\n"
24521 #: ../src/guestfs-actions.pod:702
24522 msgid "guestfs_blockdev_getro"
24526 #: ../src/guestfs-actions.pod:704
24530 " guestfs_blockdev_getro (guestfs_h *g,\n"
24531 " const char *device);\n"
24536 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1586
24537 #: ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:2090
24538 #: ../src/guestfs-actions.pod:2101 ../src/guestfs-actions.pod:2173
24539 #: ../src/guestfs-actions.pod:2199 ../src/guestfs-actions.pod:2239
24540 #: ../src/guestfs-actions.pod:2254 ../src/guestfs-actions.pod:2288
24541 #: ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:3373
24542 #: ../src/guestfs-actions.pod:3389 ../src/guestfs-actions.pod:3407
24543 #: ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:3583
24544 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3612
24545 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3643
24546 #: ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3673
24547 #: ../src/guestfs-actions.pod:3686 ../src/guestfs-actions.pod:3700
24548 #: ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:3730
24549 #: ../src/guestfs-actions.pod:3743 ../src/guestfs-actions.pod:3757
24550 #: ../src/guestfs-actions.pod:5476
24551 msgid "This function returns a C truth value on success or -1 on error."
24555 #: ../src/guestfs-actions.pod:717
24556 msgid "guestfs_blockdev_getsize64"
24560 #: ../src/guestfs-actions.pod:719
24564 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24565 " const char *device);\n"
24570 #: ../src/guestfs-actions.pod:725
24571 msgid "See also C<guestfs_blockdev_getsz>."
24575 #: ../src/guestfs-actions.pod:733
24576 msgid "guestfs_blockdev_getss"
24580 #: ../src/guestfs-actions.pod:735
24584 " guestfs_blockdev_getss (guestfs_h *g,\n"
24585 " const char *device);\n"
24590 #: ../src/guestfs-actions.pod:742
24592 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24597 #: ../src/guestfs-actions.pod:751
24598 msgid "guestfs_blockdev_getsz"
24602 #: ../src/guestfs-actions.pod:753
24606 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24607 " const char *device);\n"
24612 #: ../src/guestfs-actions.pod:760
24614 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24615 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24619 #: ../src/guestfs-actions.pod:770
24620 msgid "guestfs_blockdev_rereadpt"
24624 #: ../src/guestfs-actions.pod:772
24628 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24629 " const char *device);\n"
24634 #: ../src/guestfs-actions.pod:784
24635 msgid "guestfs_blockdev_setbsz"
24639 #: ../src/guestfs-actions.pod:786
24643 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24644 " const char *device,\n"
24645 " int blocksize);\n"
24650 #: ../src/guestfs-actions.pod:802
24651 msgid "guestfs_blockdev_setro"
24655 #: ../src/guestfs-actions.pod:804
24659 " guestfs_blockdev_setro (guestfs_h *g,\n"
24660 " const char *device);\n"
24665 #: ../src/guestfs-actions.pod:816
24666 msgid "guestfs_blockdev_setrw"
24670 #: ../src/guestfs-actions.pod:818
24674 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24675 " const char *device);\n"
24680 #: ../src/guestfs-actions.pod:830
24681 msgid "guestfs_btrfs_filesystem_resize"
24685 #: ../src/guestfs-actions.pod:832
24689 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24690 " const char *mountpoint,\n"
24696 #: ../src/guestfs-actions.pod:842
24699 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24704 #: ../src/guestfs-actions.pod:865
24705 msgid "(Added in 1.11.17)"
24709 #: ../src/guestfs-actions.pod:867
24710 msgid "guestfs_btrfs_filesystem_resize_va"
24714 #: ../src/guestfs-actions.pod:869
24718 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24719 " const char *mountpoint,\n"
24720 " va_list args);\n"
24725 #: ../src/guestfs-actions.pod:874
24726 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24730 #: ../src/guestfs-actions.pod:878
24731 msgid "guestfs_btrfs_filesystem_resize_argv"
24735 #: ../src/guestfs-actions.pod:880
24739 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24740 " const char *mountpoint,\n"
24741 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24746 #: ../src/guestfs-actions.pod:885
24747 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24751 #: ../src/guestfs-actions.pod:889
24752 msgid "guestfs_case_sensitive_path"
24756 #: ../src/guestfs-actions.pod:891
24760 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24761 " const char *path);\n"
24766 #: ../src/guestfs-actions.pod:917
24768 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
24769 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24770 "how the directories were originally created under Windows)."
24774 #: ../src/guestfs-actions.pod:925
24775 msgid "See also C<guestfs_realpath>."
24779 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7538
24780 msgid "(Added in 1.0.75)"
24784 #: ../src/guestfs-actions.pod:932
24785 msgid "guestfs_cat"
24789 #: ../src/guestfs-actions.pod:934
24793 " guestfs_cat (guestfs_h *g,\n"
24794 " const char *path);\n"
24799 #: ../src/guestfs-actions.pod:940
24801 "Note that this function cannot correctly handle binary files (specifically, "
24802 "files containing C<\\0> character which is treated as end of string). For "
24803 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24804 "functions which have a more complex interface."
24808 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3887
24809 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:3986
24810 #: ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4482
24811 #: ../src/guestfs-actions.pod:4496 ../src/guestfs-actions.pod:5857
24812 #: ../src/guestfs-actions.pod:5871 ../src/guestfs-actions.pod:7691
24813 #: ../src/guestfs-actions.pod:7705
24814 msgid "(Added in 0.4)"
24818 #: ../src/guestfs-actions.pod:953
24819 msgid "guestfs_checksum"
24823 #: ../src/guestfs-actions.pod:955
24827 " guestfs_checksum (guestfs_h *g,\n"
24828 " const char *csumtype,\n"
24829 " const char *path);\n"
24834 #: ../src/guestfs-actions.pod:1001
24835 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24839 #: ../src/guestfs-actions.pod:1003
24840 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24844 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1423
24845 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:3585
24846 #: ../src/guestfs-actions.pod:3614 ../src/guestfs-actions.pod:3675
24847 #: ../src/guestfs-actions.pod:3702 ../src/guestfs-actions.pod:7394
24848 msgid "(Added in 1.0.2)"
24852 #: ../src/guestfs-actions.pod:1010
24853 msgid "guestfs_checksum_device"
24857 #: ../src/guestfs-actions.pod:1012
24861 " guestfs_checksum_device (guestfs_h *g,\n"
24862 " const char *csumtype,\n"
24863 " const char *device);\n"
24868 #: ../src/guestfs-actions.pod:1017
24870 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24871 "device named C<device>. For the types of checksums supported see the "
24872 "C<guestfs_checksum> command."
24876 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5306
24877 #: ../src/guestfs-actions.pod:5441 ../src/guestfs-actions.pod:5478
24878 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5678
24879 #: ../src/guestfs-actions.pod:7303 ../src/guestfs-actions.pod:7317
24880 #: ../src/guestfs-actions.pod:7717
24881 msgid "(Added in 1.3.2)"
24885 #: ../src/guestfs-actions.pod:1026
24886 msgid "guestfs_checksums_out"
24890 #: ../src/guestfs-actions.pod:1028
24894 " guestfs_checksums_out (guestfs_h *g,\n"
24895 " const char *csumtype,\n"
24896 " const char *directory,\n"
24897 " const char *sumsfile);\n"
24902 #: ../src/guestfs-actions.pod:1048
24903 msgid "(Added in 1.3.7)"
24907 #: ../src/guestfs-actions.pod:1050
24908 msgid "guestfs_chmod"
24912 #: ../src/guestfs-actions.pod:1052
24916 " guestfs_chmod (guestfs_h *g,\n"
24918 " const char *path);\n"
24923 #: ../src/guestfs-actions.pod:1070
24924 msgid "guestfs_chown"
24928 #: ../src/guestfs-actions.pod:1072
24932 " guestfs_chown (guestfs_h *g,\n"
24935 " const char *path);\n"
24940 #: ../src/guestfs-actions.pod:1088
24941 msgid "guestfs_command"
24945 #: ../src/guestfs-actions.pod:1090
24949 " guestfs_command (guestfs_h *g,\n"
24950 " char *const *arguments);\n"
24955 #: ../src/guestfs-actions.pod:1099
24957 "The single parameter is an argv-style list of arguments. The first element "
24958 "is the name of the program to run. Subsequent elements are parameters. The "
24959 "list must be non-empty (ie. must contain a program name). Note that the "
24960 "command runs directly, and is I<not> invoked via the shell (see "
24965 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24966 #: ../src/guestfs-actions.pod:1722
24967 msgid "(Added in 0.9.1)"
24971 #: ../src/guestfs-actions.pod:1132
24972 msgid "guestfs_command_lines"
24976 #: ../src/guestfs-actions.pod:1134
24980 " guestfs_command_lines (guestfs_h *g,\n"
24981 " char *const *arguments);\n"
24986 #: ../src/guestfs-actions.pod:1138
24988 "This is the same as C<guestfs_command>, but splits the result into a list of "
24993 #: ../src/guestfs-actions.pod:1141
24994 msgid "See also: C<guestfs_sh_lines>"
24998 #: ../src/guestfs-actions.pod:1152
25000 #| msgid "guestfs_zero_device"
25001 msgid "guestfs_compress_device_out"
25002 msgstr "guestfs_zero_device"
25005 #: ../src/guestfs-actions.pod:1154
25009 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25010 #| " const char *device,\n"
25011 #| " const char *key,\n"
25012 #| " int keyslot,\n"
25013 #| " const char *cipher);\n"
25017 " guestfs_compress_device_out (guestfs_h *g,\n"
25018 " const char *ctype,\n"
25019 " const char *device,\n"
25020 " const char *zdevice,\n"
25025 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25026 " const char *device,\n"
25027 " const char *key,\n"
25029 " const char *cipher);\n"
25033 #: ../src/guestfs-actions.pod:1166
25036 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25041 #: ../src/guestfs-actions.pod:1171
25043 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25044 "C<guestfs_compress_out>."
25048 #: ../src/guestfs-actions.pod:1176
25050 #| msgid "guestfs_zero_device"
25051 msgid "guestfs_compress_device_out_va"
25052 msgstr "guestfs_zero_device"
25055 #: ../src/guestfs-actions.pod:1178
25059 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25060 #| " const char *device,\n"
25061 #| " const char *key,\n"
25062 #| " int keyslot,\n"
25063 #| " const char *cipher);\n"
25067 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25068 " const char *ctype,\n"
25069 " const char *device,\n"
25070 " const char *zdevice,\n"
25071 " va_list args);\n"
25075 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25076 " const char *device,\n"
25077 " const char *key,\n"
25079 " const char *cipher);\n"
25083 #: ../src/guestfs-actions.pod:1185
25084 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25088 #: ../src/guestfs-actions.pod:1189
25090 #| msgid "guestfs_mkfs_opts_argv"
25091 msgid "guestfs_compress_device_out_argv"
25092 msgstr "guestfs_mkfs_opts_argv"
25095 #: ../src/guestfs-actions.pod:1191
25099 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25100 #| " const char *fstype,\n"
25101 #| " const char *device,\n"
25102 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
25106 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25107 " const char *ctype,\n"
25108 " const char *device,\n"
25109 " const char *zdevice,\n"
25110 " const struct guestfs_compress_device_out_argv *optargs);\n"
25114 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25115 " const char *fstype,\n"
25116 " const char *device,\n"
25117 " const struct guestfs_mkfs_opts_argv *optargs);\n"
25121 #: ../src/guestfs-actions.pod:1198
25122 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25126 #: ../src/guestfs-actions.pod:1202
25128 #| msgid "guestfs_create"
25129 msgid "guestfs_compress_out"
25130 msgstr "guestfs_create"
25133 #: ../src/guestfs-actions.pod:1204
25137 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25138 #| " const char *device,\n"
25139 #| " const char *key,\n"
25140 #| " const char *newkey,\n"
25141 #| " int keyslot);\n"
25145 " guestfs_compress_out (guestfs_h *g,\n"
25146 " const char *ctype,\n"
25147 " const char *file,\n"
25148 " const char *zfile,\n"
25153 " guestfs_luks_add_key (guestfs_h *g,\n"
25154 " const char *device,\n"
25155 " const char *key,\n"
25156 " const char *newkey,\n"
25161 #: ../src/guestfs-actions.pod:1216
25164 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
25169 #: ../src/guestfs-actions.pod:1233
25171 #| msgid "guestfs_mkfs_opts_va"
25172 msgid "guestfs_compress_out_va"
25173 msgstr "guestfs_mkfs_opts_va"
25176 #: ../src/guestfs-actions.pod:1235
25180 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25181 #| " const char *device,\n"
25182 #| " const char *key,\n"
25183 #| " const char *newkey,\n"
25184 #| " int keyslot);\n"
25188 " guestfs_compress_out_va (guestfs_h *g,\n"
25189 " const char *ctype,\n"
25190 " const char *file,\n"
25191 " const char *zfile,\n"
25192 " va_list args);\n"
25196 " guestfs_luks_add_key (guestfs_h *g,\n"
25197 " const char *device,\n"
25198 " const char *key,\n"
25199 " const char *newkey,\n"
25204 #: ../src/guestfs-actions.pod:1242
25205 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
25209 #: ../src/guestfs-actions.pod:1246
25211 #| msgid "guestfs_mkfs_opts_argv"
25212 msgid "guestfs_compress_out_argv"
25213 msgstr "guestfs_mkfs_opts_argv"
25216 #: ../src/guestfs-actions.pod:1248
25220 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25221 #| " const char *fstype,\n"
25222 #| " const char *device,\n"
25223 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
25227 " guestfs_compress_out_argv (guestfs_h *g,\n"
25228 " const char *ctype,\n"
25229 " const char *file,\n"
25230 " const char *zfile,\n"
25231 " const struct guestfs_compress_out_argv *optargs);\n"
25235 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25236 " const char *fstype,\n"
25237 " const char *device,\n"
25238 " const struct guestfs_mkfs_opts_argv *optargs);\n"
25242 #: ../src/guestfs-actions.pod:1255
25243 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
25247 #: ../src/guestfs-actions.pod:1259
25248 msgid "guestfs_config"
25252 #: ../src/guestfs-actions.pod:1261
25256 " guestfs_config (guestfs_h *g,\n"
25257 " const char *qemuparam,\n"
25258 " const char *qemuvalue);\n"
25263 #: ../src/guestfs-actions.pod:1279
25264 msgid "guestfs_copy_size"
25268 #: ../src/guestfs-actions.pod:1281
25272 " guestfs_copy_size (guestfs_h *g,\n"
25273 " const char *src,\n"
25274 " const char *dest,\n"
25275 " int64_t size);\n"
25280 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1418
25281 #: ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1494
25282 #: ../src/guestfs-actions.pod:1871 ../src/guestfs-actions.pod:1893
25283 #: ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:7389
25284 #: ../src/guestfs-actions.pod:7423 ../src/guestfs-actions.pod:7930
25285 #: ../src/guestfs-actions.pod:7953
25287 "This long-running command can generate progress notification messages so "
25288 "that the caller can display a progress bar or indicator. To receive these "
25289 "messages, the caller must register a progress event callback. See L<guestfs"
25290 "(3)/GUESTFS_EVENT_PROGRESS>."
25294 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:4509
25295 #: ../src/guestfs-actions.pod:5884 ../src/guestfs-actions.pod:7624
25296 #: ../src/guestfs-actions.pod:7644 ../src/guestfs-actions.pod:7730
25297 msgid "(Added in 1.0.87)"
25301 #: ../src/guestfs-actions.pod:1302
25306 #: ../src/guestfs-actions.pod:1304
25310 " guestfs_cp (guestfs_h *g,\n"
25311 " const char *src,\n"
25312 " const char *dest);\n"
25317 #: ../src/guestfs-actions.pod:1314 ../src/guestfs-actions.pod:1328
25318 #: ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:1474
25319 #: ../src/guestfs-actions.pod:1588 ../src/guestfs-actions.pod:5253
25320 #: ../src/guestfs-actions.pod:5728
25321 msgid "(Added in 1.0.18)"
25325 #: ../src/guestfs-actions.pod:1316
25326 msgid "guestfs_cp_a"
25330 #: ../src/guestfs-actions.pod:1318
25334 " guestfs_cp_a (guestfs_h *g,\n"
25335 " const char *src,\n"
25336 " const char *dest);\n"
25341 #: ../src/guestfs-actions.pod:1330
25346 #: ../src/guestfs-actions.pod:1332
25350 " guestfs_dd (guestfs_h *g,\n"
25351 " const char *src,\n"
25352 " const char *dest);\n"
25357 #: ../src/guestfs-actions.pod:1342
25359 "If the destination is a device, it must be as large or larger than the "
25360 "source file or device, otherwise the copy will fail. This command cannot do "
25361 "partial copies (see C<guestfs_copy_size>)."
25365 #: ../src/guestfs-actions.pod:1350
25370 #: ../src/guestfs-actions.pod:1352
25374 " guestfs_df (guestfs_h *g);\n"
25379 #: ../src/guestfs-actions.pod:1357 ../src/guestfs-actions.pod:1374
25381 "This command is mostly useful for interactive sessions. It is I<not> "
25382 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
25387 #: ../src/guestfs-actions.pod:1364 ../src/guestfs-actions.pod:1381
25388 #: ../src/guestfs-actions.pod:1499 ../src/guestfs-actions.pod:2504
25389 #: ../src/guestfs-actions.pod:2528 ../src/guestfs-actions.pod:2596
25390 #: ../src/guestfs-actions.pod:4619 ../src/guestfs-actions.pod:5153
25391 #: ../src/guestfs-actions.pod:7127 ../src/guestfs-actions.pod:7151
25392 #: ../src/guestfs-actions.pod:7770 ../src/guestfs-actions.pod:7783
25393 #: ../src/guestfs-actions.pod:7796
25394 msgid "(Added in 1.0.54)"
25398 #: ../src/guestfs-actions.pod:1366
25399 msgid "guestfs_df_h"
25403 #: ../src/guestfs-actions.pod:1368
25407 " guestfs_df_h (guestfs_h *g);\n"
25412 #: ../src/guestfs-actions.pod:1383
25413 msgid "guestfs_dmesg"
25417 #: ../src/guestfs-actions.pod:1385
25421 " guestfs_dmesg (guestfs_h *g);\n"
25426 #: ../src/guestfs-actions.pod:1392
25428 "Another way to get the same information is to enable verbose messages with "
25429 "C<guestfs_set_verbose> or by setting the environment variable "
25430 "C<LIBGUESTFS_DEBUG=1> before running the program."
25434 #: ../src/guestfs-actions.pod:1402
25435 msgid "guestfs_download"
25439 #: ../src/guestfs-actions.pod:1404
25443 " guestfs_download (guestfs_h *g,\n"
25444 " const char *remotefilename,\n"
25445 " const char *filename);\n"
25450 #: ../src/guestfs-actions.pod:1414
25451 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
25455 #: ../src/guestfs-actions.pod:1425
25456 msgid "guestfs_download_offset"
25460 #: ../src/guestfs-actions.pod:1427
25464 " guestfs_download_offset (guestfs_h *g,\n"
25465 " const char *remotefilename,\n"
25466 " const char *filename,\n"
25467 " int64_t offset,\n"
25468 " int64_t size);\n"
25473 #: ../src/guestfs-actions.pod:1440
25475 "Note that there is no limit on the amount of data that can be downloaded "
25476 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
25477 "full amount unless an error occurs."
25481 #: ../src/guestfs-actions.pod:1445
25482 msgid "See also C<guestfs_download>, C<guestfs_pread>."
25486 #: ../src/guestfs-actions.pod:1454 ../src/guestfs-actions.pod:7428
25487 msgid "(Added in 1.5.17)"
25491 #: ../src/guestfs-actions.pod:1456
25492 msgid "guestfs_drop_caches"
25496 #: ../src/guestfs-actions.pod:1458
25500 " guestfs_drop_caches (guestfs_h *g,\n"
25501 " int whattodrop);\n"
25506 #: ../src/guestfs-actions.pod:1476
25511 #: ../src/guestfs-actions.pod:1478
25515 " guestfs_du (guestfs_h *g,\n"
25516 " const char *path);\n"
25521 #: ../src/guestfs-actions.pod:1501
25522 msgid "guestfs_e2fsck_f"
25526 #: ../src/guestfs-actions.pod:1503
25530 " guestfs_e2fsck_f (guestfs_h *g,\n"
25531 " const char *device);\n"
25536 #: ../src/guestfs-actions.pod:1511
25538 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
25539 "Normally you should use C<guestfs_fsck>."
25543 #: ../src/guestfs-actions.pod:1516
25544 msgid "(Added in 1.0.29)"
25548 #: ../src/guestfs-actions.pod:1518
25549 msgid "guestfs_echo_daemon"
25553 #: ../src/guestfs-actions.pod:1520
25557 " guestfs_echo_daemon (guestfs_h *g,\n"
25558 " char *const *words);\n"
25563 #: ../src/guestfs-actions.pod:1529
25564 msgid "See also C<guestfs_ping_daemon>."
25568 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:2290
25569 #: ../src/guestfs-actions.pod:6599
25570 msgid "(Added in 1.0.69)"
25574 #: ../src/guestfs-actions.pod:1536
25575 msgid "guestfs_egrep"
25579 #: ../src/guestfs-actions.pod:1538
25583 " guestfs_egrep (guestfs_h *g,\n"
25584 " const char *regex,\n"
25585 " const char *path);\n"
25590 #: ../src/guestfs-actions.pod:1553 ../src/guestfs-actions.pod:1572
25591 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1675
25592 #: ../src/guestfs-actions.pod:1694 ../src/guestfs-actions.pod:2420
25593 #: ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2617
25594 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2645
25595 #: ../src/guestfs-actions.pod:2691 ../src/guestfs-actions.pod:2713
25596 #: ../src/guestfs-actions.pod:2726 ../src/guestfs-actions.pod:3999
25597 #: ../src/guestfs-actions.pod:4013 ../src/guestfs-actions.pod:4026
25598 #: ../src/guestfs-actions.pod:4040 ../src/guestfs-actions.pod:5041
25599 #: ../src/guestfs-actions.pod:6062 ../src/guestfs-actions.pod:6111
25600 #: ../src/guestfs-actions.pod:6995 ../src/guestfs-actions.pod:7007
25601 #: ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:7033
25602 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7068
25603 #: ../src/guestfs-actions.pod:7081 ../src/guestfs-actions.pod:7094
25604 #: ../src/guestfs-actions.pod:7888 ../src/guestfs-actions.pod:7907
25605 #: ../src/guestfs-actions.pod:8001 ../src/guestfs-actions.pod:8020
25606 #: ../src/guestfs-actions.pod:8066 ../src/guestfs-actions.pod:8085
25607 msgid "(Added in 1.0.66)"
25611 #: ../src/guestfs-actions.pod:1555
25612 msgid "guestfs_egrepi"
25616 #: ../src/guestfs-actions.pod:1557
25620 " guestfs_egrepi (guestfs_h *g,\n"
25621 " const char *regex,\n"
25622 " const char *path);\n"
25627 #: ../src/guestfs-actions.pod:1574
25628 msgid "guestfs_equal"
25632 #: ../src/guestfs-actions.pod:1576
25636 " guestfs_equal (guestfs_h *g,\n"
25637 " const char *file1,\n"
25638 " const char *file2);\n"
25643 #: ../src/guestfs-actions.pod:1590
25644 msgid "guestfs_exists"
25648 #: ../src/guestfs-actions.pod:1592
25652 " guestfs_exists (guestfs_h *g,\n"
25653 " const char *path);\n"
25658 #: ../src/guestfs-actions.pod:1599
25659 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
25663 #: ../src/guestfs-actions.pod:1605
25664 msgid "guestfs_fallocate"
25668 #: ../src/guestfs-actions.pod:1607
25672 " guestfs_fallocate (guestfs_h *g,\n"
25673 " const char *path,\n"
25679 #: ../src/guestfs-actions.pod:1612
25681 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
25686 #: ../src/guestfs-actions.pod:1631
25687 msgid "guestfs_fallocate64"
25691 #: ../src/guestfs-actions.pod:1633
25695 " guestfs_fallocate64 (guestfs_h *g,\n"
25696 " const char *path,\n"
25702 #: ../src/guestfs-actions.pod:1642
25704 "Note that this call allocates disk blocks for the file. To create a sparse "
25705 "file use C<guestfs_truncate_size> instead."
25709 #: ../src/guestfs-actions.pod:1645
25711 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25712 "oversight it only allowed 30 bit lengths to be specified, effectively "
25713 "limiting the maximum size of files created through that call to 1GB."
25717 #: ../src/guestfs-actions.pod:1656
25718 msgid "(Added in 1.3.17)"
25722 #: ../src/guestfs-actions.pod:1658
25723 msgid "guestfs_fgrep"
25727 #: ../src/guestfs-actions.pod:1660
25731 " guestfs_fgrep (guestfs_h *g,\n"
25732 " const char *pattern,\n"
25733 " const char *path);\n"
25738 #: ../src/guestfs-actions.pod:1677
25739 msgid "guestfs_fgrepi"
25743 #: ../src/guestfs-actions.pod:1679
25747 " guestfs_fgrepi (guestfs_h *g,\n"
25748 " const char *pattern,\n"
25749 " const char *path);\n"
25754 #: ../src/guestfs-actions.pod:1696
25755 msgid "guestfs_file"
25759 #: ../src/guestfs-actions.pod:1698
25763 " guestfs_file (guestfs_h *g,\n"
25764 " const char *path);\n"
25769 #: ../src/guestfs-actions.pod:1716
25771 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25772 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25776 #: ../src/guestfs-actions.pod:1724
25777 msgid "guestfs_file_architecture"
25781 #: ../src/guestfs-actions.pod:1726
25785 " guestfs_file_architecture (guestfs_h *g,\n"
25786 " const char *filename);\n"
25791 #: ../src/guestfs-actions.pod:1834 ../src/guestfs-actions.pod:1997
25792 #: ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2746
25793 #: ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:2906
25794 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3111
25795 #: ../src/guestfs-actions.pod:3151 ../src/guestfs-actions.pod:3226
25796 #: ../src/guestfs-actions.pod:3319 ../src/guestfs-actions.pod:3556
25797 #: ../src/guestfs-actions.pod:3688
25798 msgid "(Added in 1.5.3)"
25802 #: ../src/guestfs-actions.pod:1836
25803 msgid "guestfs_filesize"
25807 #: ../src/guestfs-actions.pod:1838
25811 " guestfs_filesize (guestfs_h *g,\n"
25812 " const char *file);\n"
25817 #: ../src/guestfs-actions.pod:1844
25819 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25820 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
25821 "devices, use C<guestfs_blockdev_getsize64>."
25825 #: ../src/guestfs-actions.pod:1850
25826 msgid "(Added in 1.0.82)"
25830 #: ../src/guestfs-actions.pod:1852
25831 msgid "guestfs_fill"
25835 #: ../src/guestfs-actions.pod:1854
25839 " guestfs_fill (guestfs_h *g,\n"
25842 " const char *path);\n"
25847 #: ../src/guestfs-actions.pod:1864
25849 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25850 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
25851 "bytes use C<guestfs_fill_pattern>."
25855 #: ../src/guestfs-actions.pod:1876
25856 msgid "(Added in 1.0.79)"
25860 #: ../src/guestfs-actions.pod:1878
25861 msgid "guestfs_fill_pattern"
25865 #: ../src/guestfs-actions.pod:1880
25869 " guestfs_fill_pattern (guestfs_h *g,\n"
25870 " const char *pattern,\n"
25872 " const char *path);\n"
25877 #: ../src/guestfs-actions.pod:1886
25879 "This function is like C<guestfs_fill> except that it creates a new file of "
25880 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
25881 "pattern is truncated if necessary to ensure the length of the file is "
25882 "exactly C<len> bytes."
25886 #: ../src/guestfs-actions.pod:1898
25887 msgid "(Added in 1.3.12)"
25891 #: ../src/guestfs-actions.pod:1900
25892 msgid "guestfs_find"
25896 #: ../src/guestfs-actions.pod:1902
25900 " guestfs_find (guestfs_h *g,\n"
25901 " const char *directory);\n"
25906 #: ../src/guestfs-actions.pod:1918
25908 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25912 #: ../src/guestfs-actions.pod:1931
25913 msgid "See also C<guestfs_find0>."
25917 #: ../src/guestfs-actions.pod:1940 ../src/guestfs-actions.pod:4446
25918 #: ../src/guestfs-actions.pod:6146
25919 msgid "(Added in 1.0.27)"
25923 #: ../src/guestfs-actions.pod:1942
25924 msgid "guestfs_find0"
25928 #: ../src/guestfs-actions.pod:1944
25932 " guestfs_find0 (guestfs_h *g,\n"
25933 " const char *directory,\n"
25934 " const char *files);\n"
25939 #: ../src/guestfs-actions.pod:1953
25941 "This command works the same way as C<guestfs_find> with the following "
25946 #: ../src/guestfs-actions.pod:1980
25947 msgid "(Added in 1.0.74)"
25951 #: ../src/guestfs-actions.pod:1982
25952 msgid "guestfs_findfs_label"
25956 #: ../src/guestfs-actions.pod:1984
25960 " guestfs_findfs_label (guestfs_h *g,\n"
25961 " const char *label);\n"
25966 #: ../src/guestfs-actions.pod:1992
25967 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25971 #: ../src/guestfs-actions.pod:1999
25972 msgid "guestfs_findfs_uuid"
25976 #: ../src/guestfs-actions.pod:2001
25980 " guestfs_findfs_uuid (guestfs_h *g,\n"
25981 " const char *uuid);\n"
25986 #: ../src/guestfs-actions.pod:2009
25987 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25991 #: ../src/guestfs-actions.pod:2016
25992 msgid "guestfs_fsck"
25996 #: ../src/guestfs-actions.pod:2018
26000 " guestfs_fsck (guestfs_h *g,\n"
26001 " const char *fstype,\n"
26002 " const char *device);\n"
26007 #: ../src/guestfs-actions.pod:2053 ../src/guestfs-actions.pod:7935
26008 msgid "(Added in 1.0.16)"
26012 #: ../src/guestfs-actions.pod:2055
26013 msgid "guestfs_get_append"
26017 #: ../src/guestfs-actions.pod:2057
26021 " guestfs_get_append (guestfs_h *g);\n"
26026 #: ../src/guestfs-actions.pod:2065
26028 "This function returns a string which may be NULL. There is no way to return "
26029 "an error from this function. The string is owned by the guest handle and "
26030 "must I<not> be freed."
26034 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:5824
26035 #: ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6762
26036 #: ../src/guestfs-actions.pod:6781 ../src/guestfs-actions.pod:6797
26037 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:7575
26038 #: ../src/guestfs-actions.pod:7590 ../src/guestfs-actions.pod:7982
26039 msgid "(Added in 1.0.26)"
26043 #: ../src/guestfs-actions.pod:2071
26044 msgid "guestfs_get_attach_method"
26048 #: ../src/guestfs-actions.pod:2073
26052 " guestfs_get_attach_method (guestfs_h *g);\n"
26057 #: ../src/guestfs-actions.pod:2076
26058 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
26062 #: ../src/guestfs-actions.pod:2081 ../src/guestfs-actions.pod:6336
26063 msgid "(Added in 1.9.8)"
26067 #: ../src/guestfs-actions.pod:2083
26068 msgid "guestfs_get_autosync"
26072 #: ../src/guestfs-actions.pod:2085
26076 " guestfs_get_autosync (guestfs_h *g);\n"
26081 #: ../src/guestfs-actions.pod:2094
26082 msgid "guestfs_get_direct"
26086 #: ../src/guestfs-actions.pod:2096
26090 " guestfs_get_direct (guestfs_h *g);\n"
26095 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:6377
26096 msgid "(Added in 1.0.72)"
26100 #: ../src/guestfs-actions.pod:2105
26101 msgid "guestfs_get_e2label"
26105 #: ../src/guestfs-actions.pod:2107
26109 " guestfs_get_e2label (guestfs_h *g,\n"
26110 " const char *device);\n"
26115 #: ../src/guestfs-actions.pod:2111
26117 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
26122 #: ../src/guestfs-actions.pod:2124 ../src/guestfs-actions.pod:2145
26123 #: ../src/guestfs-actions.pod:6395 ../src/guestfs-actions.pod:6414
26124 msgid "(Added in 1.0.15)"
26128 #: ../src/guestfs-actions.pod:2126
26129 msgid "guestfs_get_e2uuid"
26133 #: ../src/guestfs-actions.pod:2128
26137 " guestfs_get_e2uuid (guestfs_h *g,\n"
26138 " const char *device);\n"
26143 #: ../src/guestfs-actions.pod:2132
26145 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
26150 #: ../src/guestfs-actions.pod:2147
26151 msgid "guestfs_get_memsize"
26155 #: ../src/guestfs-actions.pod:2149
26159 " guestfs_get_memsize (guestfs_h *g);\n"
26164 #: ../src/guestfs-actions.pod:2155
26166 "If C<guestfs_set_memsize> was not called on this handle, and if "
26167 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26168 "value for memsize."
26172 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:4737
26173 #: ../src/guestfs-actions.pod:4946 ../src/guestfs-actions.pod:4965
26174 #: ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:4996
26175 #: ../src/guestfs-actions.pod:5013 ../src/guestfs-actions.pod:5026
26176 #: ../src/guestfs-actions.pod:6049 ../src/guestfs-actions.pod:6435
26177 #: ../src/guestfs-actions.pod:6729 ../src/guestfs-actions.pod:7344
26178 msgid "(Added in 1.0.55)"
26182 #: ../src/guestfs-actions.pod:2166
26183 msgid "guestfs_get_network"
26187 #: ../src/guestfs-actions.pod:2168
26191 " guestfs_get_network (guestfs_h *g);\n"
26196 #: ../src/guestfs-actions.pod:2175 ../src/guestfs-actions.pod:6454
26197 msgid "(Added in 1.5.4)"
26201 #: ../src/guestfs-actions.pod:2177
26202 msgid "guestfs_get_path"
26206 #: ../src/guestfs-actions.pod:2179
26210 " guestfs_get_path (guestfs_h *g);\n"
26215 #: ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:2227
26217 "This function returns a string, or NULL on error. The string is owned by "
26218 "the guest handle and must I<not> be freed."
26222 #: ../src/guestfs-actions.pod:2192
26223 msgid "guestfs_get_pgroup"
26227 #: ../src/guestfs-actions.pod:2194
26231 " guestfs_get_pgroup (guestfs_h *g);\n"
26236 #: ../src/guestfs-actions.pod:2201 ../src/guestfs-actions.pod:6490
26237 #: ../src/guestfs-actions.pod:7836
26239 #| msgid "(Added in 1.5.1)"
26240 msgid "(Added in 1.11.18)"
26241 msgstr "(Додано у 1.5.1)"
26244 #: ../src/guestfs-actions.pod:2203
26245 msgid "guestfs_get_pid"
26249 #: ../src/guestfs-actions.pod:2205
26253 " guestfs_get_pid (guestfs_h *g);\n"
26258 #: ../src/guestfs-actions.pod:2215
26259 msgid "(Added in 1.0.56)"
26263 #: ../src/guestfs-actions.pod:2217
26264 msgid "guestfs_get_qemu"
26268 #: ../src/guestfs-actions.pod:2219
26272 " guestfs_get_qemu (guestfs_h *g);\n"
26277 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:6518
26278 msgid "(Added in 1.0.6)"
26282 #: ../src/guestfs-actions.pod:2232
26283 msgid "guestfs_get_recovery_proc"
26287 #: ../src/guestfs-actions.pod:2234
26291 " guestfs_get_recovery_proc (guestfs_h *g);\n"
26296 #: ../src/guestfs-actions.pod:2241 ../src/guestfs-actions.pod:3810
26297 #: ../src/guestfs-actions.pod:4141 ../src/guestfs-actions.pod:4544
26298 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:5754
26299 #: ../src/guestfs-actions.pod:6097 ../src/guestfs-actions.pod:6542
26300 #: ../src/guestfs-actions.pod:7247 ../src/guestfs-actions.pod:7267
26301 #: ../src/guestfs-actions.pod:7459
26302 msgid "(Added in 1.0.77)"
26306 #: ../src/guestfs-actions.pod:2243
26307 msgid "guestfs_get_selinux"
26311 #: ../src/guestfs-actions.pod:2245
26315 " guestfs_get_selinux (guestfs_h *g);\n"
26320 #: ../src/guestfs-actions.pod:2248
26322 "This returns the current setting of the selinux flag which is passed to the "
26323 "appliance at boot time. See C<guestfs_set_selinux>."
26327 #: ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2328
26328 #: ../src/guestfs-actions.pod:6561 ../src/guestfs-actions.pod:6633
26329 msgid "(Added in 1.0.67)"
26333 #: ../src/guestfs-actions.pod:2258
26335 #| msgid "guestfs_zgrep"
26336 msgid "guestfs_get_smp"
26337 msgstr "guestfs_zgrep"
26340 #: ../src/guestfs-actions.pod:2260
26343 #| " int guestfs_last_errno (guestfs_h *g);\n"
26347 " guestfs_get_smp (guestfs_h *g);\n"
26350 " int guestfs_last_errno (guestfs_h *g);\n"
26354 #: ../src/guestfs-actions.pod:2267
26355 msgid "guestfs_get_state"
26359 #: ../src/guestfs-actions.pod:2269
26363 " guestfs_get_state (guestfs_h *g);\n"
26368 #: ../src/guestfs-actions.pod:2281
26369 msgid "guestfs_get_trace"
26373 #: ../src/guestfs-actions.pod:2283
26377 " guestfs_get_trace (guestfs_h *g);\n"
26382 #: ../src/guestfs-actions.pod:2292
26383 msgid "guestfs_get_umask"
26387 #: ../src/guestfs-actions.pod:2294
26391 " guestfs_get_umask (guestfs_h *g);\n"
26396 #: ../src/guestfs-actions.pod:2297
26398 "Return the current umask. By default the umask is C<022> unless it has been "
26399 "set by calling C<guestfs_umask>."
26403 #: ../src/guestfs-actions.pod:2304
26404 msgid "guestfs_get_verbose"
26408 #: ../src/guestfs-actions.pod:2306
26412 " guestfs_get_verbose (guestfs_h *g);\n"
26417 #: ../src/guestfs-actions.pod:2315
26418 msgid "guestfs_getcon"
26422 #: ../src/guestfs-actions.pod:2317
26426 " guestfs_getcon (guestfs_h *g);\n"
26431 #: ../src/guestfs-actions.pod:2322
26433 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
26437 #: ../src/guestfs-actions.pod:2330
26438 msgid "guestfs_getxattr"
26442 #: ../src/guestfs-actions.pod:2332
26446 " guestfs_getxattr (guestfs_h *g,\n"
26447 " const char *path,\n"
26448 " const char *name,\n"
26449 " size_t *size_r);\n"
26454 #: ../src/guestfs-actions.pod:2338
26456 "Get a single extended attribute from file C<path> named C<name>. This call "
26457 "follows symlinks. If you want to lookup an extended attribute for the "
26458 "symlink itself, use C<guestfs_lgetxattr>."
26462 #: ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:3824
26464 "Normally it is better to get all extended attributes from a file in one go "
26465 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
26466 "implementations are buggy and do not provide a way to list out attributes. "
26467 "For these filesystems (notably ntfs-3g) you have to know the names of the "
26468 "extended attributes you want in advance and call this function."
26472 #: ../src/guestfs-actions.pod:2352
26473 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
26477 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:2567
26478 #: ../src/guestfs-actions.pod:3041 ../src/guestfs-actions.pod:3836
26479 #: ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:5773
26480 #: ../src/guestfs-actions.pod:5954
26482 "This function returns a buffer, or NULL on error. The size of the returned "
26483 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
26488 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:3840
26489 msgid "(Added in 1.7.24)"
26493 #: ../src/guestfs-actions.pod:2360
26494 msgid "guestfs_getxattrs"
26498 #: ../src/guestfs-actions.pod:2362
26501 " struct guestfs_xattr_list *\n"
26502 " guestfs_getxattrs (guestfs_h *g,\n"
26503 " const char *path);\n"
26508 #: ../src/guestfs-actions.pod:2372
26509 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
26513 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:3852
26514 #: ../src/guestfs-actions.pod:4540
26516 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
26517 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
26521 #: ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:3856
26522 #: ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4091
26523 #: ../src/guestfs-actions.pod:6127 ../src/guestfs-actions.pod:6652
26524 #: ../src/guestfs-actions.pod:8047
26525 msgid "(Added in 1.0.59)"
26529 #: ../src/guestfs-actions.pod:2380
26530 msgid "guestfs_glob_expand"
26534 #: ../src/guestfs-actions.pod:2382
26538 " guestfs_glob_expand (guestfs_h *g,\n"
26539 " const char *pattern);\n"
26544 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:6845
26545 #: ../src/guestfs-actions.pod:6862
26546 msgid "(Added in 1.0.50)"
26550 #: ../src/guestfs-actions.pod:2403
26551 msgid "guestfs_grep"
26555 #: ../src/guestfs-actions.pod:2405
26559 " guestfs_grep (guestfs_h *g,\n"
26560 " const char *regex,\n"
26561 " const char *path);\n"
26566 #: ../src/guestfs-actions.pod:2422
26567 msgid "guestfs_grepi"
26571 #: ../src/guestfs-actions.pod:2424
26575 " guestfs_grepi (guestfs_h *g,\n"
26576 " const char *regex,\n"
26577 " const char *path);\n"
26582 #: ../src/guestfs-actions.pod:2441
26583 msgid "guestfs_grub_install"
26587 #: ../src/guestfs-actions.pod:2443
26591 " guestfs_grub_install (guestfs_h *g,\n"
26592 " const char *root,\n"
26593 " const char *device);\n"
26598 #: ../src/guestfs-actions.pod:2486
26599 msgid "(Added in 1.0.17)"
26603 #: ../src/guestfs-actions.pod:2488
26604 msgid "guestfs_head"
26608 #: ../src/guestfs-actions.pod:2490
26612 " guestfs_head (guestfs_h *g,\n"
26613 " const char *path);\n"
26618 #: ../src/guestfs-actions.pod:2506
26619 msgid "guestfs_head_n"
26623 #: ../src/guestfs-actions.pod:2508
26627 " guestfs_head_n (guestfs_h *g,\n"
26629 " const char *path);\n"
26634 #: ../src/guestfs-actions.pod:2530
26635 msgid "guestfs_hexdump"
26639 #: ../src/guestfs-actions.pod:2532
26643 " guestfs_hexdump (guestfs_h *g,\n"
26644 " const char *path);\n"
26649 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:6926
26650 #: ../src/guestfs-actions.pod:6981
26651 msgid "(Added in 1.0.22)"
26655 #: ../src/guestfs-actions.pod:2547
26656 msgid "guestfs_initrd_cat"
26660 #: ../src/guestfs-actions.pod:2549
26664 " guestfs_initrd_cat (guestfs_h *g,\n"
26665 " const char *initrdpath,\n"
26666 " const char *filename,\n"
26667 " size_t *size_r);\n"
26672 #: ../src/guestfs-actions.pod:2565
26673 msgid "See also C<guestfs_initrd_list>."
26677 #: ../src/guestfs-actions.pod:2576
26678 msgid "guestfs_initrd_list"
26682 #: ../src/guestfs-actions.pod:2578
26686 " guestfs_initrd_list (guestfs_h *g,\n"
26687 " const char *path);\n"
26692 #: ../src/guestfs-actions.pod:2598
26693 msgid "guestfs_inotify_add_watch"
26697 #: ../src/guestfs-actions.pod:2600
26701 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26702 " const char *path,\n"
26708 #: ../src/guestfs-actions.pod:2619
26709 msgid "guestfs_inotify_close"
26713 #: ../src/guestfs-actions.pod:2621
26717 " guestfs_inotify_close (guestfs_h *g);\n"
26722 #: ../src/guestfs-actions.pod:2632
26723 msgid "guestfs_inotify_files"
26727 #: ../src/guestfs-actions.pod:2634
26731 " guestfs_inotify_files (guestfs_h *g);\n"
26736 #: ../src/guestfs-actions.pod:2637
26738 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26739 "returns a list of pathnames of objects that were touched. The returned "
26740 "pathnames are sorted and deduplicated."
26744 #: ../src/guestfs-actions.pod:2647
26745 msgid "guestfs_inotify_init"
26749 #: ../src/guestfs-actions.pod:2649
26753 " guestfs_inotify_init (guestfs_h *g,\n"
26754 " int maxevents);\n"
26759 #: ../src/guestfs-actions.pod:2657
26761 "C<maxevents> is the maximum number of events which will be queued up between "
26762 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
26763 "passed as C<0>, then the kernel (or previously set) default is used. For "
26764 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
26765 "throws away events, but records the fact that it threw them away by setting "
26766 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26767 "C<guestfs_inotify_read>)."
26771 #: ../src/guestfs-actions.pod:2667
26773 "Before any events are generated, you have to add some watches to the "
26774 "internal watch list. See: C<guestfs_inotify_add_watch>, "
26775 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26779 #: ../src/guestfs-actions.pod:2673
26781 "Queued up events should be read periodically by calling "
26782 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26783 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
26784 "often enough then you risk the internal queue overflowing."
26788 #: ../src/guestfs-actions.pod:2680
26790 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
26791 "This also removes any watches automatically."
26795 #: ../src/guestfs-actions.pod:2693
26796 msgid "guestfs_inotify_read"
26800 #: ../src/guestfs-actions.pod:2695
26803 " struct guestfs_inotify_event_list *\n"
26804 " guestfs_inotify_read (guestfs_h *g);\n"
26809 #: ../src/guestfs-actions.pod:2709
26811 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26812 "there was an error. I<The caller must call "
26813 "C<guestfs_free_inotify_event_list> after use>."
26817 #: ../src/guestfs-actions.pod:2715
26818 msgid "guestfs_inotify_rm_watch"
26822 #: ../src/guestfs-actions.pod:2717
26826 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26832 #: ../src/guestfs-actions.pod:2721
26834 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
26838 #: ../src/guestfs-actions.pod:2728
26839 msgid "guestfs_inspect_get_arch"
26843 #: ../src/guestfs-actions.pod:2730
26847 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26848 " const char *root);\n"
26853 #: ../src/guestfs-actions.pod:2734
26855 "This returns the architecture of the inspected operating system. The "
26856 "possible return values are listed under C<guestfs_file_architecture>."
26860 #: ../src/guestfs-actions.pod:2748
26861 msgid "guestfs_inspect_get_distro"
26865 #: ../src/guestfs-actions.pod:2750
26869 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26870 " const char *root);\n"
26875 #: ../src/guestfs-actions.pod:2842
26876 msgid "guestfs_inspect_get_drive_mappings"
26880 #: ../src/guestfs-actions.pod:2844
26884 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26885 " const char *root);\n"
26890 #: ../src/guestfs-actions.pod:2873
26892 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26893 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26897 #: ../src/guestfs-actions.pod:2877 ../src/guestfs-actions.pod:3145
26898 #: ../src/guestfs-actions.pod:3943 ../src/guestfs-actions.pod:5215
26899 #: ../src/guestfs-actions.pod:7283
26901 "This function returns a NULL-terminated array of strings, or NULL if there "
26902 "was an error. The array of strings will always have length C<2n+1>, where "
26903 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
26904 "caller must free the strings and the array after use>."
26908 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3339
26909 msgid "(Added in 1.9.17)"
26913 #: ../src/guestfs-actions.pod:2885
26914 msgid "guestfs_inspect_get_filesystems"
26918 #: ../src/guestfs-actions.pod:2887
26922 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26923 " const char *root);\n"
26928 #: ../src/guestfs-actions.pod:2899
26930 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26931 "C<guestfs_inspect_get_mountpoints>."
26935 #: ../src/guestfs-actions.pod:2908
26936 msgid "guestfs_inspect_get_format"
26940 #: ../src/guestfs-actions.pod:2910
26944 " guestfs_inspect_get_format (guestfs_h *g,\n"
26945 " const char *root);\n"
26950 #: ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:3375
26951 #: ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3409
26952 #: ../src/guestfs-actions.pod:6165
26953 msgid "(Added in 1.9.4)"
26957 #: ../src/guestfs-actions.pod:2946
26958 msgid "guestfs_inspect_get_hostname"
26962 #: ../src/guestfs-actions.pod:2948
26966 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26967 " const char *root);\n"
26972 #: ../src/guestfs-actions.pod:2963
26973 msgid "(Added in 1.7.9)"
26977 #: ../src/guestfs-actions.pod:2965
26978 msgid "guestfs_inspect_get_icon"
26982 #: ../src/guestfs-actions.pod:2967
26986 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26987 " const char *root,\n"
26988 " size_t *size_r,\n"
26994 #: ../src/guestfs-actions.pod:2978
26997 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26998 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
27003 #: ../src/guestfs-actions.pod:3045 ../src/guestfs-actions.pod:3870
27004 #: ../src/guestfs-actions.pod:5114
27005 msgid "(Added in 1.11.12)"
27009 #: ../src/guestfs-actions.pod:3047
27010 msgid "guestfs_inspect_get_icon_va"
27014 #: ../src/guestfs-actions.pod:3049
27018 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
27019 " const char *root,\n"
27020 " size_t *size_r,\n"
27021 " va_list args);\n"
27026 #: ../src/guestfs-actions.pod:3055
27027 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
27031 #: ../src/guestfs-actions.pod:3059
27032 msgid "guestfs_inspect_get_icon_argv"
27036 #: ../src/guestfs-actions.pod:3061
27040 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
27041 " const char *root,\n"
27042 " size_t *size_r,\n"
27043 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
27048 #: ../src/guestfs-actions.pod:3067
27049 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
27053 #: ../src/guestfs-actions.pod:3071
27054 msgid "guestfs_inspect_get_major_version"
27058 #: ../src/guestfs-actions.pod:3073
27062 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
27063 " const char *root);\n"
27068 #: ../src/guestfs-actions.pod:3095
27069 msgid "guestfs_inspect_get_minor_version"
27073 #: ../src/guestfs-actions.pod:3097
27077 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
27078 " const char *root);\n"
27083 #: ../src/guestfs-actions.pod:3106
27085 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27086 "C<guestfs_inspect_get_major_version>."
27090 #: ../src/guestfs-actions.pod:3113
27091 msgid "guestfs_inspect_get_mountpoints"
27095 #: ../src/guestfs-actions.pod:3115
27099 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
27100 " const char *root);\n"
27105 #: ../src/guestfs-actions.pod:3136
27107 "For operating systems like Windows which still use drive letters, this call "
27108 "will only return an entry for the first drive \"mounted on\" C</>. For "
27109 "information about the mapping of drive letters to partitions, see "
27110 "C<guestfs_inspect_get_drive_mappings>."
27114 #: ../src/guestfs-actions.pod:3142
27116 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27117 "C<guestfs_inspect_get_filesystems>."
27121 #: ../src/guestfs-actions.pod:3153
27122 msgid "guestfs_inspect_get_package_format"
27126 #: ../src/guestfs-actions.pod:3155
27130 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
27131 " const char *root);\n"
27136 #: ../src/guestfs-actions.pod:3159
27138 "This function and C<guestfs_inspect_get_package_management> return the "
27139 "package format and package management tool used by the inspected operating "
27140 "system. For example for Fedora these functions would return C<rpm> (package "
27141 "format) and C<yum> (package management)."
27145 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3205
27146 msgid "(Added in 1.7.5)"
27150 #: ../src/guestfs-actions.pod:3179
27151 msgid "guestfs_inspect_get_package_management"
27155 #: ../src/guestfs-actions.pod:3181
27159 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
27160 " const char *root);\n"
27165 #: ../src/guestfs-actions.pod:3185
27167 "C<guestfs_inspect_get_package_format> and this function return the package "
27168 "format and package management tool used by the inspected operating system. "
27169 "For example for Fedora these functions would return C<rpm> (package format) "
27170 "and C<yum> (package management)."
27174 #: ../src/guestfs-actions.pod:3207
27175 msgid "guestfs_inspect_get_product_name"
27179 #: ../src/guestfs-actions.pod:3209
27183 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
27184 " const char *root);\n"
27189 #: ../src/guestfs-actions.pod:3228
27190 msgid "guestfs_inspect_get_product_variant"
27194 #: ../src/guestfs-actions.pod:3230
27198 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
27199 " const char *root);\n"
27204 #: ../src/guestfs-actions.pod:3253
27206 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27207 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
27211 #: ../src/guestfs-actions.pod:3260
27212 msgid "(Added in 1.9.13)"
27216 #: ../src/guestfs-actions.pod:3262
27217 msgid "guestfs_inspect_get_roots"
27221 #: ../src/guestfs-actions.pod:3264
27225 " guestfs_inspect_get_roots (guestfs_h *g);\n"
27230 #: ../src/guestfs-actions.pod:3267
27232 "This function is a convenient way to get the list of root devices, as "
27233 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
27234 "the whole inspection process."
27238 #: ../src/guestfs-actions.pod:3271
27240 "This returns an empty list if either no root devices were found or the "
27241 "caller has not called C<guestfs_inspect_os>."
27245 #: ../src/guestfs-actions.pod:3280
27246 msgid "(Added in 1.7.3)"
27250 #: ../src/guestfs-actions.pod:3282
27251 msgid "guestfs_inspect_get_type"
27255 #: ../src/guestfs-actions.pod:3284
27259 " guestfs_inspect_get_type (guestfs_h *g,\n"
27260 " const char *root);\n"
27265 #: ../src/guestfs-actions.pod:3321
27266 msgid "guestfs_inspect_get_windows_current_control_set"
27270 #: ../src/guestfs-actions.pod:3323
27274 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
27275 " const char *root);\n"
27280 #: ../src/guestfs-actions.pod:3341
27281 msgid "guestfs_inspect_get_windows_systemroot"
27285 #: ../src/guestfs-actions.pod:3343
27289 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
27290 " const char *root);\n"
27295 #: ../src/guestfs-actions.pod:3359
27296 msgid "(Added in 1.5.25)"
27300 #: ../src/guestfs-actions.pod:3361
27301 msgid "guestfs_inspect_is_live"
27305 #: ../src/guestfs-actions.pod:3363
27309 " guestfs_inspect_is_live (guestfs_h *g,\n"
27310 " const char *root);\n"
27315 #: ../src/guestfs-actions.pod:3367
27317 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27318 "disk), then this returns true if a live image was detected on the disk."
27322 #: ../src/guestfs-actions.pod:3377
27323 msgid "guestfs_inspect_is_multipart"
27327 #: ../src/guestfs-actions.pod:3379
27331 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
27332 " const char *root);\n"
27337 #: ../src/guestfs-actions.pod:3383
27339 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27340 "disk), then this returns true if the disk is part of a set."
27344 #: ../src/guestfs-actions.pod:3393
27345 msgid "guestfs_inspect_is_netinst"
27349 #: ../src/guestfs-actions.pod:3395
27353 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
27354 " const char *root);\n"
27359 #: ../src/guestfs-actions.pod:3399
27361 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27362 "disk), then this returns true if the disk is a network installer, ie. not a "
27363 "self-contained install CD but one which is likely to require network access "
27364 "to complete the install."
27368 #: ../src/guestfs-actions.pod:3411
27369 msgid "guestfs_inspect_list_applications"
27373 #: ../src/guestfs-actions.pod:3413
27376 " struct guestfs_application_list *\n"
27377 " guestfs_inspect_list_applications (guestfs_h *g,\n"
27378 " const char *root);\n"
27383 #: ../src/guestfs-actions.pod:3419
27385 "I<Note:> This call works differently from other parts of the inspection "
27386 "API. You have to call C<guestfs_inspect_os>, then "
27387 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
27388 "this. Listing applications is a significantly more difficult operation "
27389 "which requires access to the full filesystem. Also note that unlike the "
27390 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
27391 "the libguestfs handle, this call actually reads parts of the mounted "
27392 "filesystems during the call."
27396 #: ../src/guestfs-actions.pod:3509
27398 "This function returns a C<struct guestfs_application_list *>, or NULL if "
27399 "there was an error. I<The caller must call C<guestfs_free_application_list> "
27404 #: ../src/guestfs-actions.pod:3513
27405 msgid "(Added in 1.7.8)"
27409 #: ../src/guestfs-actions.pod:3515
27410 msgid "guestfs_inspect_os"
27414 #: ../src/guestfs-actions.pod:3517
27418 " guestfs_inspect_os (guestfs_h *g);\n"
27423 #: ../src/guestfs-actions.pod:3533
27425 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
27426 "functions in order to query further information about each operating system, "
27427 "such as the name and version."
27431 #: ../src/guestfs-actions.pod:3538
27433 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
27434 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
27435 "the contents. This should be called with no disks currently mounted. The "
27436 "function may also use Augeas, so any existing Augeas handle will be closed."
27440 #: ../src/guestfs-actions.pod:3550 ../src/guestfs-actions.pod:3881
27441 #: ../src/guestfs-actions.pod:3963
27442 msgid "See also C<guestfs_list_filesystems>."
27446 #: ../src/guestfs-actions.pod:3558
27447 msgid "guestfs_is_blockdev"
27451 #: ../src/guestfs-actions.pod:3560
27455 " guestfs_is_blockdev (guestfs_h *g,\n"
27456 " const char *path);\n"
27461 #: ../src/guestfs-actions.pod:3567 ../src/guestfs-actions.pod:3596
27462 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
27463 #: ../src/guestfs-actions.pod:3657 ../src/guestfs-actions.pod:3713
27464 #: ../src/guestfs-actions.pod:3728
27465 msgid "See also C<guestfs_stat>."
27469 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3600
27470 #: ../src/guestfs-actions.pod:3645 ../src/guestfs-actions.pod:3717
27471 #: ../src/guestfs-actions.pod:3732
27472 msgid "(Added in 1.5.10)"
27476 #: ../src/guestfs-actions.pod:3573
27477 msgid "guestfs_is_busy"
27481 #: ../src/guestfs-actions.pod:3575
27485 " guestfs_is_busy (guestfs_h *g);\n"
27490 #: ../src/guestfs-actions.pod:3587
27491 msgid "guestfs_is_chardev"
27495 #: ../src/guestfs-actions.pod:3589
27499 " guestfs_is_chardev (guestfs_h *g,\n"
27500 " const char *path);\n"
27505 #: ../src/guestfs-actions.pod:3602
27506 msgid "guestfs_is_config"
27510 #: ../src/guestfs-actions.pod:3604
27514 " guestfs_is_config (guestfs_h *g);\n"
27519 #: ../src/guestfs-actions.pod:3616
27520 msgid "guestfs_is_dir"
27524 #: ../src/guestfs-actions.pod:3618
27528 " guestfs_is_dir (guestfs_h *g,\n"
27529 " const char *path);\n"
27534 #: ../src/guestfs-actions.pod:3632
27535 msgid "guestfs_is_fifo"
27539 #: ../src/guestfs-actions.pod:3634
27543 " guestfs_is_fifo (guestfs_h *g,\n"
27544 " const char *path);\n"
27549 #: ../src/guestfs-actions.pod:3647
27550 msgid "guestfs_is_file"
27554 #: ../src/guestfs-actions.pod:3649
27558 " guestfs_is_file (guestfs_h *g,\n"
27559 " const char *path);\n"
27564 #: ../src/guestfs-actions.pod:3663
27565 msgid "guestfs_is_launching"
27569 #: ../src/guestfs-actions.pod:3665
27573 " guestfs_is_launching (guestfs_h *g);\n"
27578 #: ../src/guestfs-actions.pod:3677
27579 msgid "guestfs_is_lv"
27583 #: ../src/guestfs-actions.pod:3679
27587 " guestfs_is_lv (guestfs_h *g,\n"
27588 " const char *device);\n"
27593 #: ../src/guestfs-actions.pod:3690
27594 msgid "guestfs_is_ready"
27598 #: ../src/guestfs-actions.pod:3692
27602 " guestfs_is_ready (guestfs_h *g);\n"
27607 #: ../src/guestfs-actions.pod:3704
27608 msgid "guestfs_is_socket"
27612 #: ../src/guestfs-actions.pod:3706
27616 " guestfs_is_socket (guestfs_h *g,\n"
27617 " const char *path);\n"
27622 #: ../src/guestfs-actions.pod:3719
27623 msgid "guestfs_is_symlink"
27627 #: ../src/guestfs-actions.pod:3721
27631 " guestfs_is_symlink (guestfs_h *g,\n"
27632 " const char *path);\n"
27637 #: ../src/guestfs-actions.pod:3734
27638 msgid "guestfs_is_zero"
27642 #: ../src/guestfs-actions.pod:3736
27646 " guestfs_is_zero (guestfs_h *g,\n"
27647 " const char *path);\n"
27652 #: ../src/guestfs-actions.pod:3745 ../src/guestfs-actions.pod:3759
27653 msgid "(Added in 1.11.8)"
27657 #: ../src/guestfs-actions.pod:3747
27658 msgid "guestfs_is_zero_device"
27662 #: ../src/guestfs-actions.pod:3749
27666 " guestfs_is_zero_device (guestfs_h *g,\n"
27667 " const char *device);\n"
27672 #: ../src/guestfs-actions.pod:3761
27673 msgid "guestfs_kill_subprocess"
27677 #: ../src/guestfs-actions.pod:3763
27681 " guestfs_kill_subprocess (guestfs_h *g);\n"
27686 #: ../src/guestfs-actions.pod:3772
27687 msgid "guestfs_launch"
27691 #: ../src/guestfs-actions.pod:3774
27695 " guestfs_launch (guestfs_h *g);\n"
27700 #: ../src/guestfs-actions.pod:3792
27701 msgid "guestfs_lchown"
27705 #: ../src/guestfs-actions.pod:3794
27709 " guestfs_lchown (guestfs_h *g,\n"
27712 " const char *path);\n"
27717 #: ../src/guestfs-actions.pod:3800
27719 "Change the file owner to C<owner> and group to C<group>. This is like "
27720 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27721 "changed, not the target."
27725 #: ../src/guestfs-actions.pod:3812
27726 msgid "guestfs_lgetxattr"
27730 #: ../src/guestfs-actions.pod:3814
27734 " guestfs_lgetxattr (guestfs_h *g,\n"
27735 " const char *path,\n"
27736 " const char *name,\n"
27737 " size_t *size_r);\n"
27742 #: ../src/guestfs-actions.pod:3834
27743 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27747 #: ../src/guestfs-actions.pod:3842
27748 msgid "guestfs_lgetxattrs"
27752 #: ../src/guestfs-actions.pod:3844
27755 " struct guestfs_xattr_list *\n"
27756 " guestfs_lgetxattrs (guestfs_h *g,\n"
27757 " const char *path);\n"
27762 #: ../src/guestfs-actions.pod:3848
27764 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27765 "then it returns the extended attributes of the link itself."
27769 #: ../src/guestfs-actions.pod:3858
27770 msgid "guestfs_list_9p"
27774 #: ../src/guestfs-actions.pod:3860
27778 " guestfs_list_9p (guestfs_h *g);\n"
27783 #: ../src/guestfs-actions.pod:3872
27784 msgid "guestfs_list_devices"
27788 #: ../src/guestfs-actions.pod:3874
27792 " guestfs_list_devices (guestfs_h *g);\n"
27797 #: ../src/guestfs-actions.pod:3889
27798 msgid "guestfs_list_dm_devices"
27802 #: ../src/guestfs-actions.pod:3891
27806 " guestfs_list_dm_devices (guestfs_h *g);\n"
27811 #: ../src/guestfs-actions.pod:3896
27813 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27814 "previous call to C<guestfs_luks_open>."
27818 #: ../src/guestfs-actions.pod:3899
27820 "Device mapper devices which correspond to logical volumes are I<not> "
27821 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
27826 #: ../src/guestfs-actions.pod:3907 ../src/guestfs-actions.pod:5353
27827 msgid "(Added in 1.11.15)"
27831 #: ../src/guestfs-actions.pod:3909
27832 msgid "guestfs_list_filesystems"
27836 #: ../src/guestfs-actions.pod:3911
27840 " guestfs_list_filesystems (guestfs_h *g);\n"
27845 #: ../src/guestfs-actions.pod:3931
27847 "This command runs other libguestfs commands, which might include "
27848 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27849 "soon after launch and only when nothing is mounted."
27853 #: ../src/guestfs-actions.pod:3935
27855 "Not all of the filesystems returned will be mountable. In particular, swap "
27856 "partitions are returned in the list. Also this command does not check that "
27857 "each filesystem found is valid and mountable, and some filesystems might be "
27858 "mountable but require special options. Filesystems may not all belong to a "
27859 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27863 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5714
27864 msgid "(Added in 1.5.15)"
27868 #: ../src/guestfs-actions.pod:3951
27869 msgid "guestfs_list_partitions"
27870 msgstr "guestfs_list_partitions"
27873 #: ../src/guestfs-actions.pod:3953
27877 " guestfs_list_partitions (guestfs_h *g);\n"
27881 " guestfs_list_partitions (guestfs_h *g);\n"
27885 #: ../src/guestfs-actions.pod:3960
27887 "This does not return logical volumes. For that you will need to call "
27892 #: ../src/guestfs-actions.pod:3971
27894 msgstr "guestfs_ll"
27897 #: ../src/guestfs-actions.pod:3973
27901 " guestfs_ll (guestfs_h *g,\n"
27902 " const char *directory);\n"
27906 " guestfs_ll (guestfs_h *g,\n"
27907 " const char *directory);\n"
27911 #: ../src/guestfs-actions.pod:3988
27913 msgstr "guestfs_ln"
27916 #: ../src/guestfs-actions.pod:3990
27920 " guestfs_ln (guestfs_h *g,\n"
27921 " const char *target,\n"
27922 " const char *linkname);\n"
27926 " guestfs_ln (guestfs_h *g,\n"
27927 " const char *target,\n"
27928 " const char *linkname);\n"
27932 #: ../src/guestfs-actions.pod:4001
27933 msgid "guestfs_ln_f"
27934 msgstr "guestfs_ln_f"
27937 #: ../src/guestfs-actions.pod:4003
27941 " guestfs_ln_f (guestfs_h *g,\n"
27942 " const char *target,\n"
27943 " const char *linkname);\n"
27947 " guestfs_ln_f (guestfs_h *g,\n"
27948 " const char *target,\n"
27949 " const char *linkname);\n"
27953 #: ../src/guestfs-actions.pod:4015
27954 msgid "guestfs_ln_s"
27955 msgstr "guestfs_ln_s"
27958 #: ../src/guestfs-actions.pod:4017
27962 " guestfs_ln_s (guestfs_h *g,\n"
27963 " const char *target,\n"
27964 " const char *linkname);\n"
27968 " guestfs_ln_s (guestfs_h *g,\n"
27969 " const char *target,\n"
27970 " const char *linkname);\n"
27974 #: ../src/guestfs-actions.pod:4028
27975 msgid "guestfs_ln_sf"
27976 msgstr "guestfs_ln_sf"
27979 #: ../src/guestfs-actions.pod:4030
27983 " guestfs_ln_sf (guestfs_h *g,\n"
27984 " const char *target,\n"
27985 " const char *linkname);\n"
27989 " guestfs_ln_sf (guestfs_h *g,\n"
27990 " const char *target,\n"
27991 " const char *linkname);\n"
27995 #: ../src/guestfs-actions.pod:4042
27996 msgid "guestfs_lremovexattr"
27997 msgstr "guestfs_lremovexattr"
28000 #: ../src/guestfs-actions.pod:4044
28004 " guestfs_lremovexattr (guestfs_h *g,\n"
28005 " const char *xattr,\n"
28006 " const char *path);\n"
28010 " guestfs_lremovexattr (guestfs_h *g,\n"
28011 " const char *xattr,\n"
28012 " const char *path);\n"
28016 #: ../src/guestfs-actions.pod:4049
28018 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
28019 "link, then it removes an extended attribute of the link itself."
28023 #: ../src/guestfs-actions.pod:4057
28025 msgstr "guestfs_ls"
28028 #: ../src/guestfs-actions.pod:4059
28032 " guestfs_ls (guestfs_h *g,\n"
28033 " const char *directory);\n"
28037 " guestfs_ls (guestfs_h *g,\n"
28038 " const char *directory);\n"
28042 #: ../src/guestfs-actions.pod:4067
28044 "This command is mostly useful for interactive sessions. Programs should "
28045 "probably use C<guestfs_readdir> instead."
28049 #: ../src/guestfs-actions.pod:4076
28050 msgid "guestfs_lsetxattr"
28051 msgstr "guestfs_lsetxattr"
28054 #: ../src/guestfs-actions.pod:4078
28058 " guestfs_lsetxattr (guestfs_h *g,\n"
28059 " const char *xattr,\n"
28060 " const char *val,\n"
28062 " const char *path);\n"
28066 " guestfs_lsetxattr (guestfs_h *g,\n"
28067 " const char *xattr,\n"
28068 " const char *val,\n"
28070 " const char *path);\n"
28074 #: ../src/guestfs-actions.pod:4085
28076 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
28077 "then it sets an extended attribute of the link itself."
28081 #: ../src/guestfs-actions.pod:4093
28082 msgid "guestfs_lstat"
28083 msgstr "guestfs_lstat"
28086 #: ../src/guestfs-actions.pod:4095
28089 " struct guestfs_stat *\n"
28090 " guestfs_lstat (guestfs_h *g,\n"
28091 " const char *path);\n"
28094 " struct guestfs_stat *\n"
28095 " guestfs_lstat (guestfs_h *g,\n"
28096 " const char *path);\n"
28100 #: ../src/guestfs-actions.pod:4101
28102 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
28103 "link, then the link is stat-ed, not the file it refers to."
28107 #: ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:6886
28109 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
28110 "error. I<The caller must call C<guestfs_free_stat> after use>."
28114 #: ../src/guestfs-actions.pod:4111 ../src/guestfs-actions.pod:6890
28115 #: ../src/guestfs-actions.pod:6908 ../src/guestfs-actions.pod:7289
28116 msgid "(Added in 0.9.2)"
28117 msgstr "(Додано у 0.9.2)"
28120 #: ../src/guestfs-actions.pod:4113
28121 msgid "guestfs_lstatlist"
28122 msgstr "guestfs_lstatlist"
28125 #: ../src/guestfs-actions.pod:4115
28128 " struct guestfs_stat_list *\n"
28129 " guestfs_lstatlist (guestfs_h *g,\n"
28130 " const char *path,\n"
28131 " char *const *names);\n"
28134 " struct guestfs_stat_list *\n"
28135 " guestfs_lstatlist (guestfs_h *g,\n"
28136 " const char *path,\n"
28137 " char *const *names);\n"
28141 #: ../src/guestfs-actions.pod:4120
28143 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
28144 "files, where all files are in the directory C<path>. C<names> is the list "
28145 "of files from this directory."
28149 #: ../src/guestfs-actions.pod:4129
28151 "This call is intended for programs that want to efficiently list a directory "
28152 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
28153 "for a similarly efficient call for getting extended attributes. Very long "
28154 "directory listings might cause the protocol message size to be exceeded, "
28155 "causing this call to fail. The caller must split up such requests into "
28156 "smaller groups of names."
28160 #: ../src/guestfs-actions.pod:4137
28162 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
28163 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
28167 #: ../src/guestfs-actions.pod:4143
28168 msgid "guestfs_luks_add_key"
28169 msgstr "guestfs_luks_add_key"
28172 #: ../src/guestfs-actions.pod:4145
28176 " guestfs_luks_add_key (guestfs_h *g,\n"
28177 " const char *device,\n"
28178 " const char *key,\n"
28179 " const char *newkey,\n"
28184 " guestfs_luks_add_key (guestfs_h *g,\n"
28185 " const char *device,\n"
28186 " const char *key,\n"
28187 " const char *newkey,\n"
28192 #: ../src/guestfs-actions.pod:4157
28194 "Note that if C<keyslot> already contains a key, then this command will "
28195 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
28199 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4203
28200 #: ../src/guestfs-actions.pod:4226 ../src/guestfs-actions.pod:4246
28201 #: ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4300
28203 "This function takes a key or passphrase parameter which could contain "
28204 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
28209 #: ../src/guestfs-actions.pod:4167 ../src/guestfs-actions.pod:4207
28210 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4250
28211 msgid "(Added in 1.5.2)"
28212 msgstr "(Додано у 1.5.2)"
28215 #: ../src/guestfs-actions.pod:4169
28216 msgid "guestfs_luks_close"
28217 msgstr "guestfs_luks_close"
28220 #: ../src/guestfs-actions.pod:4171
28224 " guestfs_luks_close (guestfs_h *g,\n"
28225 " const char *device);\n"
28229 " guestfs_luks_close (guestfs_h *g,\n"
28230 " const char *device);\n"
28234 #: ../src/guestfs-actions.pod:4175
28236 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
28237 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
28238 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
28239 "underlying block device."
28243 #: ../src/guestfs-actions.pod:4183 ../src/guestfs-actions.pod:4285
28244 #: ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4354
28245 #: ../src/guestfs-actions.pod:4402
28246 msgid "(Added in 1.5.1)"
28247 msgstr "(Додано у 1.5.1)"
28250 #: ../src/guestfs-actions.pod:4185
28251 msgid "guestfs_luks_format"
28252 msgstr "guestfs_luks_format"
28255 #: ../src/guestfs-actions.pod:4187
28259 " guestfs_luks_format (guestfs_h *g,\n"
28260 " const char *device,\n"
28261 " const char *key,\n"
28266 " guestfs_luks_format (guestfs_h *g,\n"
28267 " const char *device,\n"
28268 " const char *key,\n"
28273 #: ../src/guestfs-actions.pod:4209
28274 msgid "guestfs_luks_format_cipher"
28275 msgstr "guestfs_luks_format_cipher"
28278 #: ../src/guestfs-actions.pod:4211
28282 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28283 " const char *device,\n"
28284 " const char *key,\n"
28286 " const char *cipher);\n"
28290 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28291 " const char *device,\n"
28292 " const char *key,\n"
28294 " const char *cipher);\n"
28298 #: ../src/guestfs-actions.pod:4218
28300 "This command is the same as C<guestfs_luks_format> but it also allows you to "
28301 "set the C<cipher> used."
28305 #: ../src/guestfs-actions.pod:4232
28306 msgid "guestfs_luks_kill_slot"
28307 msgstr "guestfs_luks_kill_slot"
28310 #: ../src/guestfs-actions.pod:4234
28314 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28315 " const char *device,\n"
28316 " const char *key,\n"
28321 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28322 " const char *device,\n"
28323 " const char *key,\n"
28328 #: ../src/guestfs-actions.pod:4252
28329 msgid "guestfs_luks_open"
28330 msgstr "guestfs_luks_open"
28333 #: ../src/guestfs-actions.pod:4254
28337 " guestfs_luks_open (guestfs_h *g,\n"
28338 " const char *device,\n"
28339 " const char *key,\n"
28340 " const char *mapname);\n"
28344 " guestfs_luks_open (guestfs_h *g,\n"
28345 " const char *device,\n"
28346 " const char *key,\n"
28347 " const char *mapname);\n"
28351 #: ../src/guestfs-actions.pod:4272
28353 "If this block device contains LVM volume groups, then calling "
28354 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
28359 #: ../src/guestfs-actions.pod:4276
28360 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
28364 #: ../src/guestfs-actions.pod:4287
28365 msgid "guestfs_luks_open_ro"
28366 msgstr "guestfs_luks_open_ro"
28369 #: ../src/guestfs-actions.pod:4289
28373 " guestfs_luks_open_ro (guestfs_h *g,\n"
28374 " const char *device,\n"
28375 " const char *key,\n"
28376 " const char *mapname);\n"
28380 " guestfs_luks_open_ro (guestfs_h *g,\n"
28381 " const char *device,\n"
28382 " const char *key,\n"
28383 " const char *mapname);\n"
28387 #: ../src/guestfs-actions.pod:4295
28389 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
28394 #: ../src/guestfs-actions.pod:4306
28395 msgid "guestfs_lvcreate"
28396 msgstr "guestfs_lvcreate"
28399 #: ../src/guestfs-actions.pod:4308
28403 " guestfs_lvcreate (guestfs_h *g,\n"
28404 " const char *logvol,\n"
28405 " const char *volgroup,\n"
28410 " guestfs_lvcreate (guestfs_h *g,\n"
28411 " const char *logvol,\n"
28412 " const char *volgroup,\n"
28417 #: ../src/guestfs-actions.pod:4321
28418 msgid "guestfs_lvm_canonical_lv_name"
28419 msgstr "guestfs_lvm_canonical_lv_name"
28422 #: ../src/guestfs-actions.pod:4323
28426 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28427 " const char *lvname);\n"
28431 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28432 " const char *lvname);\n"
28436 #: ../src/guestfs-actions.pod:4334
28437 msgid "See also C<guestfs_is_lv>."
28441 #: ../src/guestfs-actions.pod:4339
28442 msgid "(Added in 1.5.24)"
28443 msgstr "(Додано у 1.5.24)"
28446 #: ../src/guestfs-actions.pod:4341
28447 msgid "guestfs_lvm_clear_filter"
28448 msgstr "guestfs_lvm_clear_filter"
28451 #: ../src/guestfs-actions.pod:4343
28455 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28459 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28463 #: ../src/guestfs-actions.pod:4346
28465 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
28466 "see every block device."
28470 #: ../src/guestfs-actions.pod:4356
28471 msgid "guestfs_lvm_remove_all"
28472 msgstr "guestfs_lvm_remove_all"
28475 #: ../src/guestfs-actions.pod:4358
28479 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28483 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28487 #: ../src/guestfs-actions.pod:4371
28488 msgid "guestfs_lvm_set_filter"
28489 msgstr "guestfs_lvm_set_filter"
28492 #: ../src/guestfs-actions.pod:4373
28496 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28497 " char *const *devices);\n"
28501 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28502 " char *const *devices);\n"
28506 #: ../src/guestfs-actions.pod:4404
28507 msgid "guestfs_lvremove"
28508 msgstr "guestfs_lvremove"
28511 #: ../src/guestfs-actions.pod:4406
28515 " guestfs_lvremove (guestfs_h *g,\n"
28516 " const char *device);\n"
28520 " guestfs_lvremove (guestfs_h *g,\n"
28521 " const char *device);\n"
28525 #: ../src/guestfs-actions.pod:4418 ../src/guestfs-actions.pod:5811
28526 #: ../src/guestfs-actions.pod:7659
28527 msgid "(Added in 1.0.13)"
28528 msgstr "(Додано у 1.0.13)"
28531 #: ../src/guestfs-actions.pod:4420
28532 msgid "guestfs_lvrename"
28533 msgstr "guestfs_lvrename"
28536 #: ../src/guestfs-actions.pod:4422
28540 " guestfs_lvrename (guestfs_h *g,\n"
28541 " const char *logvol,\n"
28542 " const char *newlogvol);\n"
28546 " guestfs_lvrename (guestfs_h *g,\n"
28547 " const char *logvol,\n"
28548 " const char *newlogvol);\n"
28552 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7672
28553 msgid "(Added in 1.0.83)"
28554 msgstr "(Додано у 1.0.83)"
28557 #: ../src/guestfs-actions.pod:4433
28558 msgid "guestfs_lvresize"
28559 msgstr "guestfs_lvresize"
28562 #: ../src/guestfs-actions.pod:4435
28566 " guestfs_lvresize (guestfs_h *g,\n"
28567 " const char *device,\n"
28572 " guestfs_lvresize (guestfs_h *g,\n"
28573 " const char *device,\n"
28578 #: ../src/guestfs-actions.pod:4448
28579 msgid "guestfs_lvresize_free"
28580 msgstr "guestfs_lvresize_free"
28583 #: ../src/guestfs-actions.pod:4450
28587 " guestfs_lvresize_free (guestfs_h *g,\n"
28588 " const char *lv,\n"
28593 " guestfs_lvresize_free (guestfs_h *g,\n"
28594 " const char *lv,\n"
28599 #: ../src/guestfs-actions.pod:4463
28600 msgid "(Added in 1.3.3)"
28601 msgstr "(Додано у 1.3.3)"
28604 #: ../src/guestfs-actions.pod:4465
28605 msgid "guestfs_lvs"
28606 msgstr "guestfs_lvs"
28609 #: ../src/guestfs-actions.pod:4467
28613 " guestfs_lvs (guestfs_h *g);\n"
28617 " guestfs_lvs (guestfs_h *g);\n"
28621 #: ../src/guestfs-actions.pod:4476
28622 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
28626 #: ../src/guestfs-actions.pod:4484
28627 msgid "guestfs_lvs_full"
28628 msgstr "guestfs_lvs_full"
28631 #: ../src/guestfs-actions.pod:4486
28634 " struct guestfs_lvm_lv_list *\n"
28635 " guestfs_lvs_full (guestfs_h *g);\n"
28638 " struct guestfs_lvm_lv_list *\n"
28639 " guestfs_lvs_full (guestfs_h *g);\n"
28643 #: ../src/guestfs-actions.pod:4492
28645 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
28646 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
28650 #: ../src/guestfs-actions.pod:4498
28651 msgid "guestfs_lvuuid"
28652 msgstr "guestfs_lvuuid"
28655 #: ../src/guestfs-actions.pod:4500
28659 " guestfs_lvuuid (guestfs_h *g,\n"
28660 " const char *device);\n"
28664 " guestfs_lvuuid (guestfs_h *g,\n"
28665 " const char *device);\n"
28669 #: ../src/guestfs-actions.pod:4511
28670 msgid "guestfs_lxattrlist"
28671 msgstr "guestfs_lxattrlist"
28674 #: ../src/guestfs-actions.pod:4513
28677 " struct guestfs_xattr_list *\n"
28678 " guestfs_lxattrlist (guestfs_h *g,\n"
28679 " const char *path,\n"
28680 " char *const *names);\n"
28683 " struct guestfs_xattr_list *\n"
28684 " guestfs_lxattrlist (guestfs_h *g,\n"
28685 " const char *path,\n"
28686 " char *const *names);\n"
28690 #: ../src/guestfs-actions.pod:4532
28692 "This call is intended for programs that want to efficiently list a directory "
28693 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
28694 "a similarly efficient call for getting standard stats. Very long directory "
28695 "listings might cause the protocol message size to be exceeded, causing this "
28696 "call to fail. The caller must split up such requests into smaller groups of "
28701 #: ../src/guestfs-actions.pod:4546
28702 msgid "guestfs_mkdir"
28703 msgstr "guestfs_mkdir"
28706 #: ../src/guestfs-actions.pod:4548
28710 " guestfs_mkdir (guestfs_h *g,\n"
28711 " const char *path);\n"
28715 " guestfs_mkdir (guestfs_h *g,\n"
28716 " const char *path);\n"
28720 #: ../src/guestfs-actions.pod:4558
28721 msgid "guestfs_mkdir_mode"
28722 msgstr "guestfs_mkdir_mode"
28725 #: ../src/guestfs-actions.pod:4560
28729 " guestfs_mkdir_mode (guestfs_h *g,\n"
28730 " const char *path,\n"
28735 " guestfs_mkdir_mode (guestfs_h *g,\n"
28736 " const char *path,\n"
28741 #: ../src/guestfs-actions.pod:4572
28742 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28746 #: ../src/guestfs-actions.pod:4578
28747 msgid "guestfs_mkdir_p"
28748 msgstr "guestfs_mkdir_p"
28751 #: ../src/guestfs-actions.pod:4580
28755 " guestfs_mkdir_p (guestfs_h *g,\n"
28756 " const char *path);\n"
28760 " guestfs_mkdir_p (guestfs_h *g,\n"
28761 " const char *path);\n"
28765 #: ../src/guestfs-actions.pod:4591
28766 msgid "guestfs_mkdtemp"
28767 msgstr "guestfs_mkdtemp"
28770 #: ../src/guestfs-actions.pod:4593
28774 " guestfs_mkdtemp (guestfs_h *g,\n"
28775 " const char *template);\n"
28779 " guestfs_mkdtemp (guestfs_h *g,\n"
28780 " const char *template);\n"
28784 #: ../src/guestfs-actions.pod:4621
28785 msgid "guestfs_mke2fs_J"
28786 msgstr "guestfs_mke2fs_J"
28789 #: ../src/guestfs-actions.pod:4623
28793 " guestfs_mke2fs_J (guestfs_h *g,\n"
28794 " const char *fstype,\n"
28795 " int blocksize,\n"
28796 " const char *device,\n"
28797 " const char *journal);\n"
28801 " guestfs_mke2fs_J (guestfs_h *g,\n"
28802 " const char *fstype,\n"
28803 " int blocksize,\n"
28804 " const char *device,\n"
28805 " const char *journal);\n"
28809 #: ../src/guestfs-actions.pod:4636
28810 msgid "See also C<guestfs_mke2journal>."
28814 #: ../src/guestfs-actions.pod:4640 ../src/guestfs-actions.pod:4658
28815 #: ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4692
28816 #: ../src/guestfs-actions.pod:4706 ../src/guestfs-actions.pod:4720
28817 #: ../src/guestfs-actions.pod:4779 ../src/guestfs-actions.pod:5056
28818 msgid "(Added in 1.0.68)"
28819 msgstr "(Додано у 1.0.68)"
28822 #: ../src/guestfs-actions.pod:4642
28823 msgid "guestfs_mke2fs_JL"
28824 msgstr "guestfs_mke2fs_JL"
28827 #: ../src/guestfs-actions.pod:4644
28831 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28832 " const char *fstype,\n"
28833 " int blocksize,\n"
28834 " const char *device,\n"
28835 " const char *label);\n"
28839 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28840 " const char *fstype,\n"
28841 " int blocksize,\n"
28842 " const char *device,\n"
28843 " const char *label);\n"
28847 #: ../src/guestfs-actions.pod:4654
28848 msgid "See also C<guestfs_mke2journal_L>."
28852 #: ../src/guestfs-actions.pod:4660
28853 msgid "guestfs_mke2fs_JU"
28854 msgstr "guestfs_mke2fs_JU"
28857 #: ../src/guestfs-actions.pod:4662
28861 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28862 " const char *fstype,\n"
28863 " int blocksize,\n"
28864 " const char *device,\n"
28865 " const char *uuid);\n"
28869 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28870 " const char *fstype,\n"
28871 " int blocksize,\n"
28872 " const char *device,\n"
28873 " const char *uuid);\n"
28877 #: ../src/guestfs-actions.pod:4672
28878 msgid "See also C<guestfs_mke2journal_U>."
28882 #: ../src/guestfs-actions.pod:4678
28883 msgid "guestfs_mke2journal"
28884 msgstr "guestfs_mke2journal"
28887 #: ../src/guestfs-actions.pod:4680
28891 " guestfs_mke2journal (guestfs_h *g,\n"
28892 " int blocksize,\n"
28893 " const char *device);\n"
28897 " guestfs_mke2journal (guestfs_h *g,\n"
28898 " int blocksize,\n"
28899 " const char *device);\n"
28903 #: ../src/guestfs-actions.pod:4694
28904 msgid "guestfs_mke2journal_L"
28905 msgstr "guestfs_mke2journal_L"
28908 #: ../src/guestfs-actions.pod:4696
28912 " guestfs_mke2journal_L (guestfs_h *g,\n"
28913 " int blocksize,\n"
28914 " const char *label,\n"
28915 " const char *device);\n"
28919 " guestfs_mke2journal_L (guestfs_h *g,\n"
28920 " int blocksize,\n"
28921 " const char *label,\n"
28922 " const char *device);\n"
28926 #: ../src/guestfs-actions.pod:4708
28927 msgid "guestfs_mke2journal_U"
28928 msgstr "guestfs_mke2journal_U"
28931 #: ../src/guestfs-actions.pod:4710
28935 " guestfs_mke2journal_U (guestfs_h *g,\n"
28936 " int blocksize,\n"
28937 " const char *uuid,\n"
28938 " const char *device);\n"
28942 " guestfs_mke2journal_U (guestfs_h *g,\n"
28943 " int blocksize,\n"
28944 " const char *uuid,\n"
28945 " const char *device);\n"
28949 #: ../src/guestfs-actions.pod:4722
28950 msgid "guestfs_mkfifo"
28951 msgstr "guestfs_mkfifo"
28954 #: ../src/guestfs-actions.pod:4724
28958 " guestfs_mkfifo (guestfs_h *g,\n"
28960 " const char *path);\n"
28964 " guestfs_mkfifo (guestfs_h *g,\n"
28966 " const char *path);\n"
28970 #: ../src/guestfs-actions.pod:4729
28972 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
28973 "is just a convenient wrapper around C<guestfs_mknod>."
28977 #: ../src/guestfs-actions.pod:4739
28978 msgid "guestfs_mkfs"
28979 msgstr "guestfs_mkfs"
28982 #: ../src/guestfs-actions.pod:4741
28986 " guestfs_mkfs (guestfs_h *g,\n"
28987 " const char *fstype,\n"
28988 " const char *device);\n"
28992 " guestfs_mkfs (guestfs_h *g,\n"
28993 " const char *fstype,\n"
28994 " const char *device);\n"
28998 #: ../src/guestfs-actions.pod:4754
28999 msgid "guestfs_mkfs_b"
29000 msgstr "guestfs_mkfs_b"
29003 #: ../src/guestfs-actions.pod:4756
29007 " guestfs_mkfs_b (guestfs_h *g,\n"
29008 " const char *fstype,\n"
29009 " int blocksize,\n"
29010 " const char *device);\n"
29014 " guestfs_mkfs_b (guestfs_h *g,\n"
29015 " const char *fstype,\n"
29016 " int blocksize,\n"
29017 " const char *device);\n"
29021 #: ../src/guestfs-actions.pod:4762
29023 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29028 #: ../src/guestfs-actions.pod:4769
29030 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29031 "block size of the resulting filesystem. Supported block sizes depend on the "
29032 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29036 #: ../src/guestfs-actions.pod:4781
29037 msgid "guestfs_mkfs_opts"
29038 msgstr "guestfs_mkfs_opts"
29041 #: ../src/guestfs-actions.pod:4783
29045 " guestfs_mkfs_opts (guestfs_h *g,\n"
29046 " const char *fstype,\n"
29047 " const char *device,\n"
29052 " guestfs_mkfs_opts (guestfs_h *g,\n"
29053 " const char *fstype,\n"
29054 " const char *device,\n"
29059 #: ../src/guestfs-actions.pod:4794
29062 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29063 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29064 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29065 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29070 #: ../src/guestfs-actions.pod:4842
29071 msgid "(Added in 1.7.19)"
29072 msgstr "(Додано у 1.7.19)"
29075 #: ../src/guestfs-actions.pod:4844
29076 msgid "guestfs_mkfs_opts_va"
29077 msgstr "guestfs_mkfs_opts_va"
29080 #: ../src/guestfs-actions.pod:4846
29084 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29085 " const char *fstype,\n"
29086 " const char *device,\n"
29087 " va_list args);\n"
29091 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29092 " const char *fstype,\n"
29093 " const char *device,\n"
29094 " va_list args);\n"
29098 #: ../src/guestfs-actions.pod:4852
29099 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29103 #: ../src/guestfs-actions.pod:4856
29104 msgid "guestfs_mkfs_opts_argv"
29105 msgstr "guestfs_mkfs_opts_argv"
29108 #: ../src/guestfs-actions.pod:4858
29112 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29113 " const char *fstype,\n"
29114 " const char *device,\n"
29115 " const struct guestfs_mkfs_opts_argv *optargs);\n"
29119 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29120 " const char *fstype,\n"
29121 " const char *device,\n"
29122 " const struct guestfs_mkfs_opts_argv *optargs);\n"
29126 #: ../src/guestfs-actions.pod:4864
29127 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29131 #: ../src/guestfs-actions.pod:4868
29132 msgid "guestfs_mkmountpoint"
29133 msgstr "guestfs_mkmountpoint"
29136 #: ../src/guestfs-actions.pod:4870
29140 " guestfs_mkmountpoint (guestfs_h *g,\n"
29141 " const char *exemptpath);\n"
29145 " guestfs_mkmountpoint (guestfs_h *g,\n"
29146 " const char *exemptpath);\n"
29150 #: ../src/guestfs-actions.pod:4874
29152 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29153 "that can be used to create extra mountpoints before mounting the first "
29158 #: ../src/guestfs-actions.pod:4898
29160 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
29161 "may get unexpected errors if you try to mix these calls. It is safest to "
29162 "manually unmount filesystems and remove mountpoints after use."
29166 #: ../src/guestfs-actions.pod:4902
29168 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29169 "first, so for this to work for manual mountpoints, you must ensure that the "
29170 "innermost mountpoints have the longest pathnames, as in the example code "
29175 #: ../src/guestfs-actions.pod:4909
29177 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29178 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29179 "can also trigger these issues."
29183 #: ../src/guestfs-actions.pod:4915 ../src/guestfs-actions.pod:5221
29184 #: ../src/guestfs-actions.pod:6231
29185 msgid "(Added in 1.0.62)"
29186 msgstr "(Додано у 1.0.62)"
29189 #: ../src/guestfs-actions.pod:4917
29190 msgid "guestfs_mknod"
29194 #: ../src/guestfs-actions.pod:4919
29198 " guestfs_mknod (guestfs_h *g,\n"
29202 " const char *path);\n"
29207 #: ../src/guestfs-actions.pod:4934
29209 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29210 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29211 "regular file). These constants are available in the standard Linux header "
29212 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
29213 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
29214 "the appropriate constant for you."
29218 #: ../src/guestfs-actions.pod:4948
29219 msgid "guestfs_mknod_b"
29223 #: ../src/guestfs-actions.pod:4950
29227 " guestfs_mknod_b (guestfs_h *g,\n"
29231 " const char *path);\n"
29236 #: ../src/guestfs-actions.pod:4957
29238 "This call creates a block device node called C<path> with mode C<mode> and "
29239 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
29240 "wrapper around C<guestfs_mknod>."
29244 #: ../src/guestfs-actions.pod:4967
29245 msgid "guestfs_mknod_c"
29249 #: ../src/guestfs-actions.pod:4969
29253 " guestfs_mknod_c (guestfs_h *g,\n"
29257 " const char *path);\n"
29262 #: ../src/guestfs-actions.pod:4976
29264 "This call creates a char device node called C<path> with mode C<mode> and "
29265 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
29266 "wrapper around C<guestfs_mknod>."
29270 #: ../src/guestfs-actions.pod:4986
29271 msgid "guestfs_mkswap"
29275 #: ../src/guestfs-actions.pod:4988
29279 " guestfs_mkswap (guestfs_h *g,\n"
29280 " const char *device);\n"
29285 #: ../src/guestfs-actions.pod:4998
29286 msgid "guestfs_mkswap_L"
29290 #: ../src/guestfs-actions.pod:5000
29294 " guestfs_mkswap_L (guestfs_h *g,\n"
29295 " const char *label,\n"
29296 " const char *device);\n"
29301 #: ../src/guestfs-actions.pod:5015
29302 msgid "guestfs_mkswap_U"
29306 #: ../src/guestfs-actions.pod:5017
29310 " guestfs_mkswap_U (guestfs_h *g,\n"
29311 " const char *uuid,\n"
29312 " const char *device);\n"
29317 #: ../src/guestfs-actions.pod:5028
29318 msgid "guestfs_mkswap_file"
29322 #: ../src/guestfs-actions.pod:5030
29326 " guestfs_mkswap_file (guestfs_h *g,\n"
29327 " const char *path);\n"
29332 #: ../src/guestfs-actions.pod:5036
29334 "This command just writes a swap file signature to an existing file. To "
29335 "create the file itself, use something like C<guestfs_fallocate>."
29339 #: ../src/guestfs-actions.pod:5043
29340 msgid "guestfs_modprobe"
29344 #: ../src/guestfs-actions.pod:5045
29348 " guestfs_modprobe (guestfs_h *g,\n"
29349 " const char *modulename);\n"
29354 #: ../src/guestfs-actions.pod:5058
29355 msgid "guestfs_mount"
29359 #: ../src/guestfs-actions.pod:5060
29363 " guestfs_mount (guestfs_h *g,\n"
29364 " const char *device,\n"
29365 " const char *mountpoint);\n"
29370 #: ../src/guestfs-actions.pod:5079
29372 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
29373 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
29374 "problems for users. If your program might need to work with older versions "
29375 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
29376 "for the first parameter if you don't want any options)."
29380 #: ../src/guestfs-actions.pod:5090
29381 msgid "guestfs_mount_9p"
29385 #: ../src/guestfs-actions.pod:5092
29389 " guestfs_mount_9p (guestfs_h *g,\n"
29390 " const char *mounttag,\n"
29391 " const char *mountpoint,\n"
29397 #: ../src/guestfs-actions.pod:5103
29400 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
29405 #: ../src/guestfs-actions.pod:5116
29406 msgid "guestfs_mount_9p_va"
29410 #: ../src/guestfs-actions.pod:5118
29414 " guestfs_mount_9p_va (guestfs_h *g,\n"
29415 " const char *mounttag,\n"
29416 " const char *mountpoint,\n"
29417 " va_list args);\n"
29422 #: ../src/guestfs-actions.pod:5124
29423 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
29427 #: ../src/guestfs-actions.pod:5128
29428 msgid "guestfs_mount_9p_argv"
29432 #: ../src/guestfs-actions.pod:5130
29436 " guestfs_mount_9p_argv (guestfs_h *g,\n"
29437 " const char *mounttag,\n"
29438 " const char *mountpoint,\n"
29439 " const struct guestfs_mount_9p_argv *optargs);\n"
29444 #: ../src/guestfs-actions.pod:5136
29445 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
29449 #: ../src/guestfs-actions.pod:5140
29450 msgid "guestfs_mount_loop"
29454 #: ../src/guestfs-actions.pod:5142
29458 " guestfs_mount_loop (guestfs_h *g,\n"
29459 " const char *file,\n"
29460 " const char *mountpoint);\n"
29465 #: ../src/guestfs-actions.pod:5155
29466 msgid "guestfs_mount_options"
29470 #: ../src/guestfs-actions.pod:5157
29474 " guestfs_mount_options (guestfs_h *g,\n"
29475 " const char *options,\n"
29476 " const char *device,\n"
29477 " const char *mountpoint);\n"
29482 #: ../src/guestfs-actions.pod:5163
29484 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29485 "the mount options as for the L<mount(8)> I<-o> flag."
29489 #: ../src/guestfs-actions.pod:5173 ../src/guestfs-actions.pod:5187
29490 #: ../src/guestfs-actions.pod:5204
29491 msgid "(Added in 1.0.10)"
29495 #: ../src/guestfs-actions.pod:5175
29496 msgid "guestfs_mount_ro"
29500 #: ../src/guestfs-actions.pod:5177
29504 " guestfs_mount_ro (guestfs_h *g,\n"
29505 " const char *device,\n"
29506 " const char *mountpoint);\n"
29511 #: ../src/guestfs-actions.pod:5182
29513 "This is the same as the C<guestfs_mount> command, but it mounts the "
29514 "filesystem with the read-only (I<-o ro>) flag."
29518 #: ../src/guestfs-actions.pod:5189
29519 msgid "guestfs_mount_vfs"
29523 #: ../src/guestfs-actions.pod:5191
29527 " guestfs_mount_vfs (guestfs_h *g,\n"
29528 " const char *options,\n"
29529 " const char *vfstype,\n"
29530 " const char *device,\n"
29531 " const char *mountpoint);\n"
29536 #: ../src/guestfs-actions.pod:5198
29538 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29539 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
29544 #: ../src/guestfs-actions.pod:5206
29545 msgid "guestfs_mountpoints"
29549 #: ../src/guestfs-actions.pod:5208
29553 " guestfs_mountpoints (guestfs_h *g);\n"
29558 #: ../src/guestfs-actions.pod:5211
29560 "This call is similar to C<guestfs_mounts>. That call returns a list of "
29561 "devices. This one returns a hash table (map) of device name to directory "
29562 "where the device is mounted."
29566 #: ../src/guestfs-actions.pod:5223
29567 msgid "guestfs_mounts"
29571 #: ../src/guestfs-actions.pod:5225
29575 " guestfs_mounts (guestfs_h *g);\n"
29580 #: ../src/guestfs-actions.pod:5233
29581 msgid "See also: C<guestfs_mountpoints>"
29585 #: ../src/guestfs-actions.pod:5241
29590 #: ../src/guestfs-actions.pod:5243
29594 " guestfs_mv (guestfs_h *g,\n"
29595 " const char *src,\n"
29596 " const char *dest);\n"
29601 #: ../src/guestfs-actions.pod:5255
29602 msgid "guestfs_ntfs_3g_probe"
29606 #: ../src/guestfs-actions.pod:5257
29610 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
29612 " const char *device);\n"
29617 #: ../src/guestfs-actions.pod:5276
29618 msgid "(Added in 1.0.43)"
29622 #: ../src/guestfs-actions.pod:5278
29623 msgid "guestfs_ntfsresize"
29627 #: ../src/guestfs-actions.pod:5280
29631 " guestfs_ntfsresize (guestfs_h *g,\n"
29632 " const char *device);\n"
29637 #: ../src/guestfs-actions.pod:5284 ../src/guestfs-actions.pod:5384
29639 "I<This function is deprecated.> In new code, use the L</"
29640 "guestfs_ntfsresize_opts> call instead."
29644 #: ../src/guestfs-actions.pod:5308
29645 msgid "guestfs_ntfsresize_opts"
29649 #: ../src/guestfs-actions.pod:5310
29653 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
29654 " const char *device,\n"
29660 #: ../src/guestfs-actions.pod:5320
29663 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
29664 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
29669 #: ../src/guestfs-actions.pod:5340
29671 "After the resize operation, the filesystem is always marked as requiring a "
29672 "consistency check (for safety). You have to boot into Windows to perform "
29673 "this check and clear this condition. If you I<don't> set the C<force> "
29674 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
29675 "times on a single filesystem without booting into Windows between each "
29680 #: ../src/guestfs-actions.pod:5355
29681 msgid "guestfs_ntfsresize_opts_va"
29685 #: ../src/guestfs-actions.pod:5357
29689 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
29690 " const char *device,\n"
29691 " va_list args);\n"
29696 #: ../src/guestfs-actions.pod:5362
29697 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
29701 #: ../src/guestfs-actions.pod:5366
29702 msgid "guestfs_ntfsresize_opts_argv"
29706 #: ../src/guestfs-actions.pod:5368
29710 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29711 " const char *device,\n"
29712 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
29717 #: ../src/guestfs-actions.pod:5373
29718 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29722 #: ../src/guestfs-actions.pod:5377
29723 msgid "guestfs_ntfsresize_size"
29727 #: ../src/guestfs-actions.pod:5379
29731 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29732 " const char *device,\n"
29733 " int64_t size);\n"
29738 #: ../src/guestfs-actions.pod:5391
29740 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29741 "to specify the new size (in bytes) explicitly."
29745 #: ../src/guestfs-actions.pod:5396 ../src/guestfs-actions.pod:5838
29746 #: ../src/guestfs-actions.pod:5911 ../src/guestfs-actions.pod:6179
29747 #: ../src/guestfs-actions.pod:7816
29748 msgid "(Added in 1.3.14)"
29752 #: ../src/guestfs-actions.pod:5398
29753 msgid "guestfs_part_add"
29757 #: ../src/guestfs-actions.pod:5400
29761 " guestfs_part_add (guestfs_h *g,\n"
29762 " const char *device,\n"
29763 " const char *prlogex,\n"
29764 " int64_t startsect,\n"
29765 " int64_t endsect);\n"
29770 #: ../src/guestfs-actions.pod:5407
29772 "This command adds a partition to C<device>. If there is no partition table "
29773 "on the device, call C<guestfs_part_init> first."
29777 #: ../src/guestfs-actions.pod:5419
29779 "Creating a partition which covers the whole disk is not so easy. Use "
29780 "C<guestfs_part_disk> to do that."
29784 #: ../src/guestfs-actions.pod:5424 ../src/guestfs-actions.pod:5462
29785 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5599
29786 #: ../src/guestfs-actions.pod:5637 ../src/guestfs-actions.pod:5656
29787 #: ../src/guestfs-actions.pod:5696
29788 msgid "(Added in 1.0.78)"
29792 #: ../src/guestfs-actions.pod:5426
29793 msgid "guestfs_part_del"
29797 #: ../src/guestfs-actions.pod:5428
29801 " guestfs_part_del (guestfs_h *g,\n"
29802 " const char *device,\n"
29808 #: ../src/guestfs-actions.pod:5443
29809 msgid "guestfs_part_disk"
29813 #: ../src/guestfs-actions.pod:5445
29817 " guestfs_part_disk (guestfs_h *g,\n"
29818 " const char *device,\n"
29819 " const char *parttype);\n"
29824 #: ../src/guestfs-actions.pod:5450
29826 "This command is simply a combination of C<guestfs_part_init> followed by "
29827 "C<guestfs_part_add> to create a single primary partition covering the whole "
29832 #: ../src/guestfs-actions.pod:5454
29834 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29835 "possible values are described in C<guestfs_part_init>."
29839 #: ../src/guestfs-actions.pod:5464
29840 msgid "guestfs_part_get_bootable"
29844 #: ../src/guestfs-actions.pod:5466
29848 " guestfs_part_get_bootable (guestfs_h *g,\n"
29849 " const char *device,\n"
29855 #: ../src/guestfs-actions.pod:5474
29856 msgid "See also C<guestfs_part_set_bootable>."
29860 #: ../src/guestfs-actions.pod:5480
29861 msgid "guestfs_part_get_mbr_id"
29865 #: ../src/guestfs-actions.pod:5482
29869 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29870 " const char *device,\n"
29876 #: ../src/guestfs-actions.pod:5490 ../src/guestfs-actions.pod:5672
29878 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
29879 "undefined results for other partition table types (see "
29880 "C<guestfs_part_get_parttype>)."
29884 #: ../src/guestfs-actions.pod:5498
29885 msgid "guestfs_part_get_parttype"
29889 #: ../src/guestfs-actions.pod:5500
29893 " guestfs_part_get_parttype (guestfs_h *g,\n"
29894 " const char *device);\n"
29899 #: ../src/guestfs-actions.pod:5507
29901 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29902 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
29903 "possible, although unusual. See C<guestfs_part_init> for a full list."
29907 #: ../src/guestfs-actions.pod:5517
29908 msgid "guestfs_part_init"
29912 #: ../src/guestfs-actions.pod:5519
29916 " guestfs_part_init (guestfs_h *g,\n"
29917 " const char *device,\n"
29918 " const char *parttype);\n"
29923 #: ../src/guestfs-actions.pod:5528
29925 "Initially there are no partitions. Following this, you should call "
29926 "C<guestfs_part_add> for each partition required."
29930 #: ../src/guestfs-actions.pod:5601
29931 msgid "guestfs_part_list"
29932 msgstr "guestfs_part_list"
29935 #: ../src/guestfs-actions.pod:5603
29938 " struct guestfs_partition_list *\n"
29939 " guestfs_part_list (guestfs_h *g,\n"
29940 " const char *device);\n"
29943 " struct guestfs_partition_list *\n"
29944 " guestfs_part_list (guestfs_h *g,\n"
29945 " const char *device);\n"
29949 #: ../src/guestfs-actions.pod:5620
29951 "Start of the partition I<in bytes>. To get sectors you have to divide by "
29952 "the device's sector size, see C<guestfs_blockdev_getss>."
29956 #: ../src/guestfs-actions.pod:5633
29958 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29959 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
29964 #: ../src/guestfs-actions.pod:5639
29965 msgid "guestfs_part_set_bootable"
29969 #: ../src/guestfs-actions.pod:5641
29973 " guestfs_part_set_bootable (guestfs_h *g,\n"
29974 " const char *device,\n"
29976 " int bootable);\n"
29981 #: ../src/guestfs-actions.pod:5658
29982 msgid "guestfs_part_set_mbr_id"
29986 #: ../src/guestfs-actions.pod:5660
29990 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29991 " const char *device,\n"
29998 #: ../src/guestfs-actions.pod:5680
29999 msgid "guestfs_part_set_name"
30003 #: ../src/guestfs-actions.pod:5682
30007 " guestfs_part_set_name (guestfs_h *g,\n"
30008 " const char *device,\n"
30010 " const char *name);\n"
30015 #: ../src/guestfs-actions.pod:5698
30016 msgid "guestfs_part_to_dev"
30020 #: ../src/guestfs-actions.pod:5700
30024 " guestfs_part_to_dev (guestfs_h *g,\n"
30025 " const char *partition);\n"
30030 #: ../src/guestfs-actions.pod:5708
30032 "The named partition must exist, for example as a string returned from "
30033 "C<guestfs_list_partitions>."
30037 #: ../src/guestfs-actions.pod:5716
30038 msgid "guestfs_ping_daemon"
30042 #: ../src/guestfs-actions.pod:5718
30046 " guestfs_ping_daemon (guestfs_h *g);\n"
30051 #: ../src/guestfs-actions.pod:5730
30052 msgid "guestfs_pread"
30056 #: ../src/guestfs-actions.pod:5732
30060 " guestfs_pread (guestfs_h *g,\n"
30061 " const char *path,\n"
30063 " int64_t offset,\n"
30064 " size_t *size_r);\n"
30069 #: ../src/guestfs-actions.pod:5745
30070 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30074 #: ../src/guestfs-actions.pod:5756
30075 msgid "guestfs_pread_device"
30079 #: ../src/guestfs-actions.pod:5758
30083 " guestfs_pread_device (guestfs_h *g,\n"
30084 " const char *device,\n"
30086 " int64_t offset,\n"
30087 " size_t *size_r);\n"
30092 #: ../src/guestfs-actions.pod:5771
30093 msgid "See also C<guestfs_pread>."
30097 #: ../src/guestfs-actions.pod:5780
30098 msgid "(Added in 1.5.21)"
30102 #: ../src/guestfs-actions.pod:5782
30103 msgid "guestfs_pvcreate"
30107 #: ../src/guestfs-actions.pod:5784
30111 " guestfs_pvcreate (guestfs_h *g,\n"
30112 " const char *device);\n"
30117 #: ../src/guestfs-actions.pod:5796
30118 msgid "guestfs_pvremove"
30122 #: ../src/guestfs-actions.pod:5798
30126 " guestfs_pvremove (guestfs_h *g,\n"
30127 " const char *device);\n"
30132 #: ../src/guestfs-actions.pod:5813
30133 msgid "guestfs_pvresize"
30137 #: ../src/guestfs-actions.pod:5815
30141 " guestfs_pvresize (guestfs_h *g,\n"
30142 " const char *device);\n"
30147 #: ../src/guestfs-actions.pod:5826
30148 msgid "guestfs_pvresize_size"
30152 #: ../src/guestfs-actions.pod:5828
30156 " guestfs_pvresize_size (guestfs_h *g,\n"
30157 " const char *device,\n"
30158 " int64_t size);\n"
30163 #: ../src/guestfs-actions.pod:5833
30165 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30166 "specify the new size (in bytes) explicitly."
30170 #: ../src/guestfs-actions.pod:5840
30171 msgid "guestfs_pvs"
30175 #: ../src/guestfs-actions.pod:5842
30179 " guestfs_pvs (guestfs_h *g);\n"
30184 #: ../src/guestfs-actions.pod:5851
30185 msgid "See also C<guestfs_pvs_full>."
30189 #: ../src/guestfs-actions.pod:5859
30190 msgid "guestfs_pvs_full"
30194 #: ../src/guestfs-actions.pod:5861
30197 " struct guestfs_lvm_pv_list *\n"
30198 " guestfs_pvs_full (guestfs_h *g);\n"
30203 #: ../src/guestfs-actions.pod:5867
30205 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
30206 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
30210 #: ../src/guestfs-actions.pod:5873
30211 msgid "guestfs_pvuuid"
30215 #: ../src/guestfs-actions.pod:5875
30219 " guestfs_pvuuid (guestfs_h *g,\n"
30220 " const char *device);\n"
30225 #: ../src/guestfs-actions.pod:5886
30226 msgid "guestfs_pwrite"
30230 #: ../src/guestfs-actions.pod:5888
30234 " guestfs_pwrite (guestfs_h *g,\n"
30235 " const char *path,\n"
30236 " const char *content,\n"
30237 " size_t content_size,\n"
30238 " int64_t offset);\n"
30243 #: ../src/guestfs-actions.pod:5904
30244 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
30248 #: ../src/guestfs-actions.pod:5913
30249 msgid "guestfs_pwrite_device"
30253 #: ../src/guestfs-actions.pod:5915
30257 " guestfs_pwrite_device (guestfs_h *g,\n"
30258 " const char *device,\n"
30259 " const char *content,\n"
30260 " size_t content_size,\n"
30261 " int64_t offset);\n"
30266 #: ../src/guestfs-actions.pod:5930
30267 msgid "See also C<guestfs_pwrite>."
30271 #: ../src/guestfs-actions.pod:5937
30272 msgid "(Added in 1.5.20)"
30276 #: ../src/guestfs-actions.pod:5939
30277 msgid "guestfs_read_file"
30281 #: ../src/guestfs-actions.pod:5941
30285 " guestfs_read_file (guestfs_h *g,\n"
30286 " const char *path,\n"
30287 " size_t *size_r);\n"
30292 #: ../src/guestfs-actions.pod:5949
30294 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
30295 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
30296 "function is limited in the total size of file that can be handled."
30300 #: ../src/guestfs-actions.pod:5961
30301 msgid "(Added in 1.0.63)"
30305 #: ../src/guestfs-actions.pod:5963
30306 msgid "guestfs_read_lines"
30310 #: ../src/guestfs-actions.pod:5965
30314 " guestfs_read_lines (guestfs_h *g,\n"
30315 " const char *path);\n"
30320 #: ../src/guestfs-actions.pod:5974
30322 "Note that this function cannot correctly handle binary files (specifically, "
30323 "files containing C<\\0> character which is treated as end of line). For "
30324 "those you need to use the C<guestfs_read_file> function which has a more "
30325 "complex interface."
30329 #: ../src/guestfs-actions.pod:5985
30330 msgid "guestfs_readdir"
30334 #: ../src/guestfs-actions.pod:5987
30337 " struct guestfs_dirent_list *\n"
30338 " guestfs_readdir (guestfs_h *g,\n"
30339 " const char *dir);\n"
30344 #: ../src/guestfs-actions.pod:6041
30346 "This function is primarily intended for use by programs. To get a simple "
30347 "list of names, use C<guestfs_ls>. To get a printable directory for human "
30348 "consumption, use C<guestfs_ll>."
30352 #: ../src/guestfs-actions.pod:6045
30354 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
30355 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
30359 #: ../src/guestfs-actions.pod:6051
30360 msgid "guestfs_readlink"
30364 #: ../src/guestfs-actions.pod:6053
30368 " guestfs_readlink (guestfs_h *g,\n"
30369 " const char *path);\n"
30374 #: ../src/guestfs-actions.pod:6064
30375 msgid "guestfs_readlinklist"
30379 #: ../src/guestfs-actions.pod:6066
30383 " guestfs_readlinklist (guestfs_h *g,\n"
30384 " const char *path,\n"
30385 " char *const *names);\n"
30390 #: ../src/guestfs-actions.pod:6099
30391 msgid "guestfs_realpath"
30395 #: ../src/guestfs-actions.pod:6101
30399 " guestfs_realpath (guestfs_h *g,\n"
30400 " const char *path);\n"
30405 #: ../src/guestfs-actions.pod:6113
30406 msgid "guestfs_removexattr"
30410 #: ../src/guestfs-actions.pod:6115
30414 " guestfs_removexattr (guestfs_h *g,\n"
30415 " const char *xattr,\n"
30416 " const char *path);\n"
30421 #: ../src/guestfs-actions.pod:6123
30422 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
30426 #: ../src/guestfs-actions.pod:6129
30427 msgid "guestfs_resize2fs"
30431 #: ../src/guestfs-actions.pod:6131
30435 " guestfs_resize2fs (guestfs_h *g,\n"
30436 " const char *device);\n"
30441 #: ../src/guestfs-actions.pod:6138
30443 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
30444 "C<device> before calling this command. For unknown reasons C<resize2fs> "
30445 "sometimes gives an error about this and sometimes not. In any case, it is "
30446 "always safe to call C<guestfs_e2fsck_f> before calling this function."
30450 #: ../src/guestfs-actions.pod:6148
30451 msgid "guestfs_resize2fs_M"
30455 #: ../src/guestfs-actions.pod:6150
30459 " guestfs_resize2fs_M (guestfs_h *g,\n"
30460 " const char *device);\n"
30465 #: ../src/guestfs-actions.pod:6154
30467 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
30468 "resized to its minimum size. This works like the I<-M> option to the "
30469 "C<resize2fs> command."
30473 #: ../src/guestfs-actions.pod:6158
30475 "To get the resulting size of the filesystem you should call "
30476 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
30477 "These two numbers, multiplied together, give the resulting size of the "
30478 "minimal filesystem in bytes."
30482 #: ../src/guestfs-actions.pod:6167
30483 msgid "guestfs_resize2fs_size"
30487 #: ../src/guestfs-actions.pod:6169
30491 " guestfs_resize2fs_size (guestfs_h *g,\n"
30492 " const char *device,\n"
30493 " int64_t size);\n"
30498 #: ../src/guestfs-actions.pod:6174
30500 "This command is the same as C<guestfs_resize2fs> except that it allows you "
30501 "to specify the new size (in bytes) explicitly."
30505 #: ../src/guestfs-actions.pod:6181
30510 #: ../src/guestfs-actions.pod:6183
30514 " guestfs_rm (guestfs_h *g,\n"
30515 " const char *path);\n"
30520 #: ../src/guestfs-actions.pod:6193
30521 msgid "guestfs_rm_rf"
30525 #: ../src/guestfs-actions.pod:6195
30529 " guestfs_rm_rf (guestfs_h *g,\n"
30530 " const char *path);\n"
30535 #: ../src/guestfs-actions.pod:6207
30536 msgid "guestfs_rmdir"
30540 #: ../src/guestfs-actions.pod:6209
30544 " guestfs_rmdir (guestfs_h *g,\n"
30545 " const char *path);\n"
30550 #: ../src/guestfs-actions.pod:6219
30551 msgid "guestfs_rmmountpoint"
30555 #: ../src/guestfs-actions.pod:6221
30559 " guestfs_rmmountpoint (guestfs_h *g,\n"
30560 " const char *exemptpath);\n"
30565 #: ../src/guestfs-actions.pod:6225
30567 "This calls removes a mountpoint that was previously created with "
30568 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
30572 #: ../src/guestfs-actions.pod:6233
30573 msgid "guestfs_scrub_device"
30577 #: ../src/guestfs-actions.pod:6235
30581 " guestfs_scrub_device (guestfs_h *g,\n"
30582 " const char *device);\n"
30587 #: ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6268
30588 #: ../src/guestfs-actions.pod:6287
30589 msgid "(Added in 1.0.52)"
30593 #: ../src/guestfs-actions.pod:6252
30594 msgid "guestfs_scrub_file"
30598 #: ../src/guestfs-actions.pod:6254
30602 " guestfs_scrub_file (guestfs_h *g,\n"
30603 " const char *file);\n"
30608 #: ../src/guestfs-actions.pod:6270
30609 msgid "guestfs_scrub_freespace"
30613 #: ../src/guestfs-actions.pod:6272
30617 " guestfs_scrub_freespace (guestfs_h *g,\n"
30618 " const char *dir);\n"
30623 #: ../src/guestfs-actions.pod:6276
30625 "This command creates the directory C<dir> and then fills it with files until "
30626 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
30627 "and deletes them. The intention is to scrub any free space on the partition "
30628 "containing C<dir>."
30632 #: ../src/guestfs-actions.pod:6289
30633 msgid "guestfs_set_append"
30637 #: ../src/guestfs-actions.pod:6291
30641 " guestfs_set_append (guestfs_h *g,\n"
30642 " const char *append);\n"
30647 #: ../src/guestfs-actions.pod:6308
30648 msgid "guestfs_set_attach_method"
30652 #: ../src/guestfs-actions.pod:6310
30656 " guestfs_set_attach_method (guestfs_h *g,\n"
30657 " const char *attachmethod);\n"
30662 #: ../src/guestfs-actions.pod:6338
30663 msgid "guestfs_set_autosync"
30667 #: ../src/guestfs-actions.pod:6340
30671 " guestfs_set_autosync (guestfs_h *g,\n"
30672 " int autosync);\n"
30677 #: ../src/guestfs-actions.pod:6356
30678 msgid "guestfs_set_direct"
30682 #: ../src/guestfs-actions.pod:6358
30686 " guestfs_set_direct (guestfs_h *g,\n"
30692 #: ../src/guestfs-actions.pod:6366
30694 "One consequence of this is that log messages aren't caught by the library "
30695 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
30700 #: ../src/guestfs-actions.pod:6379
30701 msgid "guestfs_set_e2label"
30705 #: ../src/guestfs-actions.pod:6381
30709 " guestfs_set_e2label (guestfs_h *g,\n"
30710 " const char *device,\n"
30711 " const char *label);\n"
30716 #: ../src/guestfs-actions.pod:6390
30718 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30719 "the existing label on a filesystem."
30723 #: ../src/guestfs-actions.pod:6397
30724 msgid "guestfs_set_e2uuid"
30728 #: ../src/guestfs-actions.pod:6399
30732 " guestfs_set_e2uuid (guestfs_h *g,\n"
30733 " const char *device,\n"
30734 " const char *uuid);\n"
30739 #: ../src/guestfs-actions.pod:6409
30741 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30742 "the existing UUID of a filesystem."
30746 #: ../src/guestfs-actions.pod:6416
30747 msgid "guestfs_set_memsize"
30751 #: ../src/guestfs-actions.pod:6418
30755 " guestfs_set_memsize (guestfs_h *g,\n"
30761 #: ../src/guestfs-actions.pod:6422
30763 "This sets the memory size in megabytes allocated to the qemu subprocess. "
30764 "This only has any effect if called before C<guestfs_launch>."
30768 #: ../src/guestfs-actions.pod:6437
30769 msgid "guestfs_set_network"
30773 #: ../src/guestfs-actions.pod:6439
30777 " guestfs_set_network (guestfs_h *g,\n"
30783 #: ../src/guestfs-actions.pod:6449
30785 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30790 #: ../src/guestfs-actions.pod:6456
30791 msgid "guestfs_set_path"
30795 #: ../src/guestfs-actions.pod:6458
30799 " guestfs_set_path (guestfs_h *g,\n"
30800 " const char *searchpath);\n"
30805 #: ../src/guestfs-actions.pod:6473
30806 msgid "guestfs_set_pgroup"
30810 #: ../src/guestfs-actions.pod:6475
30814 " guestfs_set_pgroup (guestfs_h *g,\n"
30820 #: ../src/guestfs-actions.pod:6492
30821 msgid "guestfs_set_qemu"
30825 #: ../src/guestfs-actions.pod:6494
30829 " guestfs_set_qemu (guestfs_h *g,\n"
30830 " const char *qemu);\n"
30835 #: ../src/guestfs-actions.pod:6520
30836 msgid "guestfs_set_recovery_proc"
30840 #: ../src/guestfs-actions.pod:6522
30844 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30845 " int recoveryproc);\n"
30850 #: ../src/guestfs-actions.pod:6526
30852 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30853 "not create a recovery process. The purpose of the recovery process is to "
30854 "stop runaway qemu processes in the case where the main program aborts "
30859 #: ../src/guestfs-actions.pod:6531
30861 "This only has any effect if called before C<guestfs_launch>, and the default "
30866 #: ../src/guestfs-actions.pod:6544
30867 msgid "guestfs_set_selinux"
30871 #: ../src/guestfs-actions.pod:6546
30875 " guestfs_set_selinux (guestfs_h *g,\n"
30881 #: ../src/guestfs-actions.pod:6563
30883 #| msgid "guestfs_ln_s"
30884 msgid "guestfs_set_smp"
30885 msgstr "guestfs_ln_s"
30888 #: ../src/guestfs-actions.pod:6565
30892 #| " guestfs_mkdir_p (guestfs_h *g,\n"
30893 #| " const char *path);\n"
30897 " guestfs_set_smp (guestfs_h *g,\n"
30902 " guestfs_mkdir_p (guestfs_h *g,\n"
30903 " const char *path);\n"
30907 #: ../src/guestfs-actions.pod:6573
30908 msgid "This function must be called before C<guestfs_launch>."
30912 #: ../src/guestfs-actions.pod:6577
30913 msgid "guestfs_set_trace"
30917 #: ../src/guestfs-actions.pod:6579
30921 " guestfs_set_trace (guestfs_h *g,\n"
30927 #: ../src/guestfs-actions.pod:6593
30929 "Trace messages are normally sent to C<stderr>, unless you register a "
30930 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30934 #: ../src/guestfs-actions.pod:6601
30935 msgid "guestfs_set_verbose"
30939 #: ../src/guestfs-actions.pod:6603
30943 " guestfs_set_verbose (guestfs_h *g,\n"
30949 #: ../src/guestfs-actions.pod:6612
30951 "Verbose messages are normally sent to C<stderr>, unless you register a "
30952 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30956 #: ../src/guestfs-actions.pod:6620
30957 msgid "guestfs_setcon"
30961 #: ../src/guestfs-actions.pod:6622
30965 " guestfs_setcon (guestfs_h *g,\n"
30966 " const char *context);\n"
30971 #: ../src/guestfs-actions.pod:6635
30972 msgid "guestfs_setxattr"
30976 #: ../src/guestfs-actions.pod:6637
30980 " guestfs_setxattr (guestfs_h *g,\n"
30981 " const char *xattr,\n"
30982 " const char *val,\n"
30984 " const char *path);\n"
30989 #: ../src/guestfs-actions.pod:6648
30990 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30994 #: ../src/guestfs-actions.pod:6654
30995 msgid "guestfs_sfdisk"
30999 #: ../src/guestfs-actions.pod:6656
31003 " guestfs_sfdisk (guestfs_h *g,\n"
31004 " const char *device,\n"
31008 " char *const *lines);\n"
31013 #: ../src/guestfs-actions.pod:6664 ../src/guestfs-actions.pod:6708
31014 #: ../src/guestfs-actions.pod:6742
31016 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31021 #: ../src/guestfs-actions.pod:6691
31023 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31027 #: ../src/guestfs-actions.pod:6701
31028 msgid "guestfs_sfdiskM"
31032 #: ../src/guestfs-actions.pod:6703
31036 " guestfs_sfdiskM (guestfs_h *g,\n"
31037 " const char *device,\n"
31038 " char *const *lines);\n"
31043 #: ../src/guestfs-actions.pod:6715
31045 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31046 "partition sizes are specified in megabytes only (rounded to the nearest "
31047 "cylinder) and you don't need to specify the cyls, heads and sectors "
31048 "parameters which were rarely if ever used anyway."
31052 #: ../src/guestfs-actions.pod:6721
31054 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31055 "C<guestfs_part_disk>"
31059 #: ../src/guestfs-actions.pod:6731
31060 msgid "guestfs_sfdisk_N"
31064 #: ../src/guestfs-actions.pod:6733
31068 " guestfs_sfdisk_N (guestfs_h *g,\n"
31069 " const char *device,\n"
31074 " const char *line);\n"
31079 #: ../src/guestfs-actions.pod:6752
31081 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
31082 "for the cyls/heads/sectors parameters."
31086 #: ../src/guestfs-actions.pod:6755
31087 msgid "See also: C<guestfs_part_add>"
31091 #: ../src/guestfs-actions.pod:6764
31092 msgid "guestfs_sfdisk_disk_geometry"
31096 #: ../src/guestfs-actions.pod:6766
31100 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31101 " const char *device);\n"
31106 #: ../src/guestfs-actions.pod:6770
31108 "This displays the disk geometry of C<device> read from the partition table. "
31109 "Especially in the case where the underlying block device has been resized, "
31110 "this can be different from the kernel's idea of the geometry (see "
31111 "C<guestfs_sfdisk_kernel_geometry>)."
31115 #: ../src/guestfs-actions.pod:6783
31116 msgid "guestfs_sfdisk_kernel_geometry"
31120 #: ../src/guestfs-actions.pod:6785
31124 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31125 " const char *device);\n"
31130 #: ../src/guestfs-actions.pod:6799
31131 msgid "guestfs_sfdisk_l"
31135 #: ../src/guestfs-actions.pod:6801
31139 " guestfs_sfdisk_l (guestfs_h *g,\n"
31140 " const char *device);\n"
31145 #: ../src/guestfs-actions.pod:6805
31147 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31152 #: ../src/guestfs-actions.pod:6816
31153 msgid "See also: C<guestfs_part_list>"
31157 #: ../src/guestfs-actions.pod:6823
31162 #: ../src/guestfs-actions.pod:6825
31166 " guestfs_sh (guestfs_h *g,\n"
31167 " const char *command);\n"
31172 #: ../src/guestfs-actions.pod:6832
31173 msgid "This is like C<guestfs_command>, but passes the command to:"
31177 #: ../src/guestfs-actions.pod:6840
31178 msgid "All the provisos about C<guestfs_command> apply to this call."
31182 #: ../src/guestfs-actions.pod:6847
31183 msgid "guestfs_sh_lines"
31187 #: ../src/guestfs-actions.pod:6849
31191 " guestfs_sh_lines (guestfs_h *g,\n"
31192 " const char *command);\n"
31197 #: ../src/guestfs-actions.pod:6853
31199 "This is the same as C<guestfs_sh>, but splits the result into a list of "
31204 #: ../src/guestfs-actions.pod:6856
31205 msgid "See also: C<guestfs_command_lines>"
31209 #: ../src/guestfs-actions.pod:6864
31210 msgid "guestfs_sleep"
31214 #: ../src/guestfs-actions.pod:6866
31218 " guestfs_sleep (guestfs_h *g,\n"
31224 #: ../src/guestfs-actions.pod:6874
31225 msgid "(Added in 1.0.41)"
31229 #: ../src/guestfs-actions.pod:6876 ../src/guestfs-structs.pod:109
31230 msgid "guestfs_stat"
31234 #: ../src/guestfs-actions.pod:6878
31237 " struct guestfs_stat *\n"
31238 " guestfs_stat (guestfs_h *g,\n"
31239 " const char *path);\n"
31244 #: ../src/guestfs-actions.pod:6892 ../src/guestfs-structs.pod:135
31245 msgid "guestfs_statvfs"
31249 #: ../src/guestfs-actions.pod:6894
31252 " struct guestfs_statvfs *\n"
31253 " guestfs_statvfs (guestfs_h *g,\n"
31254 " const char *path);\n"
31259 #: ../src/guestfs-actions.pod:6904
31261 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
31262 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
31266 #: ../src/guestfs-actions.pod:6910
31267 msgid "guestfs_strings"
31271 #: ../src/guestfs-actions.pod:6912
31275 " guestfs_strings (guestfs_h *g,\n"
31276 " const char *path);\n"
31281 #: ../src/guestfs-actions.pod:6928
31282 msgid "guestfs_strings_e"
31286 #: ../src/guestfs-actions.pod:6930
31290 " guestfs_strings_e (guestfs_h *g,\n"
31291 " const char *encoding,\n"
31292 " const char *path);\n"
31297 #: ../src/guestfs-actions.pod:6935
31299 "This is like the C<guestfs_strings> command, but allows you to specify the "
31300 "encoding of strings that are looked for in the source file C<path>."
31304 #: ../src/guestfs-actions.pod:6945
31306 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
31307 "ISO-8859-X (this is what C<guestfs_strings> uses)."
31311 #: ../src/guestfs-actions.pod:6983
31312 msgid "guestfs_swapoff_device"
31316 #: ../src/guestfs-actions.pod:6985
31320 " guestfs_swapoff_device (guestfs_h *g,\n"
31321 " const char *device);\n"
31326 #: ../src/guestfs-actions.pod:6989
31328 "This command disables the libguestfs appliance swap device or partition "
31329 "named C<device>. See C<guestfs_swapon_device>."
31333 #: ../src/guestfs-actions.pod:6997
31334 msgid "guestfs_swapoff_file"
31338 #: ../src/guestfs-actions.pod:6999
31342 " guestfs_swapoff_file (guestfs_h *g,\n"
31343 " const char *file);\n"
31348 #: ../src/guestfs-actions.pod:7009
31349 msgid "guestfs_swapoff_label"
31353 #: ../src/guestfs-actions.pod:7011
31357 " guestfs_swapoff_label (guestfs_h *g,\n"
31358 " const char *label);\n"
31363 #: ../src/guestfs-actions.pod:7022
31364 msgid "guestfs_swapoff_uuid"
31368 #: ../src/guestfs-actions.pod:7024
31372 " guestfs_swapoff_uuid (guestfs_h *g,\n"
31373 " const char *uuid);\n"
31378 #: ../src/guestfs-actions.pod:7035
31379 msgid "guestfs_swapon_device"
31383 #: ../src/guestfs-actions.pod:7037
31387 " guestfs_swapon_device (guestfs_h *g,\n"
31388 " const char *device);\n"
31393 #: ../src/guestfs-actions.pod:7041
31395 "This command enables the libguestfs appliance to use the swap device or "
31396 "partition named C<device>. The increased memory is made available for all "
31397 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
31401 #: ../src/guestfs-actions.pod:7057
31402 msgid "guestfs_swapon_file"
31406 #: ../src/guestfs-actions.pod:7059
31410 " guestfs_swapon_file (guestfs_h *g,\n"
31411 " const char *file);\n"
31416 #: ../src/guestfs-actions.pod:7063
31418 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
31423 #: ../src/guestfs-actions.pod:7070
31424 msgid "guestfs_swapon_label"
31428 #: ../src/guestfs-actions.pod:7072
31432 " guestfs_swapon_label (guestfs_h *g,\n"
31433 " const char *label);\n"
31438 #: ../src/guestfs-actions.pod:7076
31440 "This command enables swap to a labeled swap partition. See "
31441 "C<guestfs_swapon_device> for other notes."
31445 #: ../src/guestfs-actions.pod:7083
31446 msgid "guestfs_swapon_uuid"
31450 #: ../src/guestfs-actions.pod:7085
31454 " guestfs_swapon_uuid (guestfs_h *g,\n"
31455 " const char *uuid);\n"
31460 #: ../src/guestfs-actions.pod:7089
31462 "This command enables swap to a swap partition with the given UUID. See "
31463 "C<guestfs_swapon_device> for other notes."
31467 #: ../src/guestfs-actions.pod:7096
31468 msgid "guestfs_sync"
31472 #: ../src/guestfs-actions.pod:7098
31476 " guestfs_sync (guestfs_h *g);\n"
31481 #: ../src/guestfs-actions.pod:7111
31482 msgid "guestfs_tail"
31486 #: ../src/guestfs-actions.pod:7113
31490 " guestfs_tail (guestfs_h *g,\n"
31491 " const char *path);\n"
31496 #: ../src/guestfs-actions.pod:7129
31497 msgid "guestfs_tail_n"
31501 #: ../src/guestfs-actions.pod:7131
31505 " guestfs_tail_n (guestfs_h *g,\n"
31507 " const char *path);\n"
31512 #: ../src/guestfs-actions.pod:7153
31513 msgid "guestfs_tar_in"
31517 #: ../src/guestfs-actions.pod:7155
31521 " guestfs_tar_in (guestfs_h *g,\n"
31522 " const char *tarfile,\n"
31523 " const char *directory);\n"
31528 #: ../src/guestfs-actions.pod:7163
31530 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
31534 #: ../src/guestfs-actions.pod:7168 ../src/guestfs-actions.pod:7185
31535 #: ../src/guestfs-actions.pod:7201 ../src/guestfs-actions.pod:7217
31536 msgid "(Added in 1.0.3)"
31540 #: ../src/guestfs-actions.pod:7170
31541 msgid "guestfs_tar_out"
31545 #: ../src/guestfs-actions.pod:7172
31549 " guestfs_tar_out (guestfs_h *g,\n"
31550 " const char *directory,\n"
31551 " const char *tarfile);\n"
31556 #: ../src/guestfs-actions.pod:7180
31558 "To download a compressed tarball, use C<guestfs_tgz_out> or "
31559 "C<guestfs_txz_out>."
31563 #: ../src/guestfs-actions.pod:7187
31564 msgid "guestfs_tgz_in"
31568 #: ../src/guestfs-actions.pod:7189
31572 " guestfs_tgz_in (guestfs_h *g,\n"
31573 " const char *tarball,\n"
31574 " const char *directory);\n"
31579 #: ../src/guestfs-actions.pod:7197
31580 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
31584 #: ../src/guestfs-actions.pod:7203
31585 msgid "guestfs_tgz_out"
31589 #: ../src/guestfs-actions.pod:7205
31593 " guestfs_tgz_out (guestfs_h *g,\n"
31594 " const char *directory,\n"
31595 " const char *tarball);\n"
31600 #: ../src/guestfs-actions.pod:7213
31601 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
31605 #: ../src/guestfs-actions.pod:7219
31606 msgid "guestfs_touch"
31610 #: ../src/guestfs-actions.pod:7221
31614 " guestfs_touch (guestfs_h *g,\n"
31615 " const char *path);\n"
31620 #: ../src/guestfs-actions.pod:7236
31621 msgid "guestfs_truncate"
31625 #: ../src/guestfs-actions.pod:7238
31629 " guestfs_truncate (guestfs_h *g,\n"
31630 " const char *path);\n"
31635 #: ../src/guestfs-actions.pod:7249
31636 msgid "guestfs_truncate_size"
31640 #: ../src/guestfs-actions.pod:7251
31644 " guestfs_truncate_size (guestfs_h *g,\n"
31645 " const char *path,\n"
31646 " int64_t size);\n"
31651 #: ../src/guestfs-actions.pod:7259
31653 "If the current file size is less than C<size> then the file is extended to "
31654 "the required size with zero bytes. This creates a sparse file (ie. disk "
31655 "blocks are not allocated for the file until you write to it). To create a "
31656 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
31660 #: ../src/guestfs-actions.pod:7269
31661 msgid "guestfs_tune2fs_l"
31665 #: ../src/guestfs-actions.pod:7271
31669 " guestfs_tune2fs_l (guestfs_h *g,\n"
31670 " const char *device);\n"
31675 #: ../src/guestfs-actions.pod:7291
31676 msgid "guestfs_txz_in"
31680 #: ../src/guestfs-actions.pod:7293
31684 " guestfs_txz_in (guestfs_h *g,\n"
31685 " const char *tarball,\n"
31686 " const char *directory);\n"
31691 #: ../src/guestfs-actions.pod:7305
31692 msgid "guestfs_txz_out"
31696 #: ../src/guestfs-actions.pod:7307
31700 " guestfs_txz_out (guestfs_h *g,\n"
31701 " const char *directory,\n"
31702 " const char *tarball);\n"
31707 #: ../src/guestfs-actions.pod:7319
31708 msgid "guestfs_umask"
31712 #: ../src/guestfs-actions.pod:7321
31716 " guestfs_umask (guestfs_h *g,\n"
31722 #: ../src/guestfs-actions.pod:7337
31724 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
31725 "C<guestfs_mkdir>."
31729 #: ../src/guestfs-actions.pod:7346
31730 msgid "guestfs_umount"
31734 #: ../src/guestfs-actions.pod:7348
31738 " guestfs_umount (guestfs_h *g,\n"
31739 " const char *pathordevice);\n"
31744 #: ../src/guestfs-actions.pod:7360
31745 msgid "guestfs_umount_all"
31749 #: ../src/guestfs-actions.pod:7362
31753 " guestfs_umount_all (guestfs_h *g);\n"
31758 #: ../src/guestfs-actions.pod:7373
31759 msgid "guestfs_upload"
31763 #: ../src/guestfs-actions.pod:7375
31767 " guestfs_upload (guestfs_h *g,\n"
31768 " const char *filename,\n"
31769 " const char *remotefilename);\n"
31774 #: ../src/guestfs-actions.pod:7385
31775 msgid "See also C<guestfs_download>."
31779 #: ../src/guestfs-actions.pod:7396
31780 msgid "guestfs_upload_offset"
31784 #: ../src/guestfs-actions.pod:7398
31788 " guestfs_upload_offset (guestfs_h *g,\n"
31789 " const char *filename,\n"
31790 " const char *remotefilename,\n"
31791 " int64_t offset);\n"
31796 #: ../src/guestfs-actions.pod:7414
31798 "Note that there is no limit on the amount of data that can be uploaded with "
31799 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31800 "full amount unless an error occurs."
31804 #: ../src/guestfs-actions.pod:7419
31805 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31809 #: ../src/guestfs-actions.pod:7430
31810 msgid "guestfs_utimens"
31814 #: ../src/guestfs-actions.pod:7432
31818 " guestfs_utimens (guestfs_h *g,\n"
31819 " const char *path,\n"
31820 " int64_t atsecs,\n"
31821 " int64_t atnsecs,\n"
31822 " int64_t mtsecs,\n"
31823 " int64_t mtnsecs);\n"
31828 #: ../src/guestfs-actions.pod:7461 ../src/guestfs-structs.pod:175
31829 msgid "guestfs_version"
31833 #: ../src/guestfs-actions.pod:7463
31836 " struct guestfs_version *\n"
31837 " guestfs_version (guestfs_h *g);\n"
31842 #: ../src/guestfs-actions.pod:7491
31844 "I<Note:> Don't use this call to test for availability of features. In "
31845 "enterprise distributions we backport features from later versions into "
31846 "earlier versions, making this an unreliable way to test for features. Use "
31847 "C<guestfs_available> instead."
31851 #: ../src/guestfs-actions.pod:7497
31853 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31854 "error. I<The caller must call C<guestfs_free_version> after use>."
31858 #: ../src/guestfs-actions.pod:7501
31859 msgid "(Added in 1.0.58)"
31863 #: ../src/guestfs-actions.pod:7503
31864 msgid "guestfs_vfs_label"
31868 #: ../src/guestfs-actions.pod:7505
31872 " guestfs_vfs_label (guestfs_h *g,\n"
31873 " const char *device);\n"
31878 #: ../src/guestfs-actions.pod:7514
31879 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31883 #: ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7556
31884 msgid "(Added in 1.3.18)"
31888 #: ../src/guestfs-actions.pod:7521
31889 msgid "guestfs_vfs_type"
31893 #: ../src/guestfs-actions.pod:7523
31897 " guestfs_vfs_type (guestfs_h *g,\n"
31898 " const char *device);\n"
31903 #: ../src/guestfs-actions.pod:7540
31904 msgid "guestfs_vfs_uuid"
31908 #: ../src/guestfs-actions.pod:7542
31912 " guestfs_vfs_uuid (guestfs_h *g,\n"
31913 " const char *device);\n"
31918 #: ../src/guestfs-actions.pod:7551
31919 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31923 #: ../src/guestfs-actions.pod:7558
31924 msgid "guestfs_vg_activate"
31928 #: ../src/guestfs-actions.pod:7560
31932 " guestfs_vg_activate (guestfs_h *g,\n"
31934 " char *const *volgroups);\n"
31939 #: ../src/guestfs-actions.pod:7577
31940 msgid "guestfs_vg_activate_all"
31944 #: ../src/guestfs-actions.pod:7579
31948 " guestfs_vg_activate_all (guestfs_h *g,\n"
31949 " int activate);\n"
31954 #: ../src/guestfs-actions.pod:7592
31955 msgid "guestfs_vgcreate"
31959 #: ../src/guestfs-actions.pod:7594
31963 " guestfs_vgcreate (guestfs_h *g,\n"
31964 " const char *volgroup,\n"
31965 " char *const *physvols);\n"
31970 #: ../src/guestfs-actions.pod:7606
31971 msgid "guestfs_vglvuuids"
31975 #: ../src/guestfs-actions.pod:7608
31979 " guestfs_vglvuuids (guestfs_h *g,\n"
31980 " const char *vgname);\n"
31985 #: ../src/guestfs-actions.pod:7615
31987 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31988 "associate logical volumes and volume groups."
31992 #: ../src/guestfs-actions.pod:7618
31993 msgid "See also C<guestfs_vgpvuuids>."
31997 #: ../src/guestfs-actions.pod:7626
31998 msgid "guestfs_vgpvuuids"
32002 #: ../src/guestfs-actions.pod:7628
32006 " guestfs_vgpvuuids (guestfs_h *g,\n"
32007 " const char *vgname);\n"
32012 #: ../src/guestfs-actions.pod:7635
32014 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32015 "associate physical volumes and volume groups."
32019 #: ../src/guestfs-actions.pod:7638
32020 msgid "See also C<guestfs_vglvuuids>."
32024 #: ../src/guestfs-actions.pod:7646
32025 msgid "guestfs_vgremove"
32029 #: ../src/guestfs-actions.pod:7648
32033 " guestfs_vgremove (guestfs_h *g,\n"
32034 " const char *vgname);\n"
32039 #: ../src/guestfs-actions.pod:7661
32040 msgid "guestfs_vgrename"
32044 #: ../src/guestfs-actions.pod:7663
32048 " guestfs_vgrename (guestfs_h *g,\n"
32049 " const char *volgroup,\n"
32050 " const char *newvolgroup);\n"
32055 #: ../src/guestfs-actions.pod:7674
32056 msgid "guestfs_vgs"
32060 #: ../src/guestfs-actions.pod:7676
32064 " guestfs_vgs (guestfs_h *g);\n"
32069 #: ../src/guestfs-actions.pod:7685
32070 msgid "See also C<guestfs_vgs_full>."
32074 #: ../src/guestfs-actions.pod:7693
32075 msgid "guestfs_vgs_full"
32079 #: ../src/guestfs-actions.pod:7695
32082 " struct guestfs_lvm_vg_list *\n"
32083 " guestfs_vgs_full (guestfs_h *g);\n"
32088 #: ../src/guestfs-actions.pod:7701
32090 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32091 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
32095 #: ../src/guestfs-actions.pod:7707
32096 msgid "guestfs_vgscan"
32100 #: ../src/guestfs-actions.pod:7709
32104 " guestfs_vgscan (guestfs_h *g);\n"
32109 #: ../src/guestfs-actions.pod:7719
32110 msgid "guestfs_vguuid"
32114 #: ../src/guestfs-actions.pod:7721
32118 " guestfs_vguuid (guestfs_h *g,\n"
32119 " const char *vgname);\n"
32124 #: ../src/guestfs-actions.pod:7732
32125 msgid "guestfs_wait_ready"
32129 #: ../src/guestfs-actions.pod:7734
32133 " guestfs_wait_ready (guestfs_h *g);\n"
32138 #: ../src/guestfs-actions.pod:7737
32140 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32145 #: ../src/guestfs-actions.pod:7744
32146 msgid "This function is a no op."
32150 #: ../src/guestfs-actions.pod:7746
32152 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32153 "calling C<guestfs_launch> to wait for the launch to complete. However this "
32154 "is no longer necessary because C<guestfs_launch> now does the waiting."
32158 #: ../src/guestfs-actions.pod:7751
32160 "If you see any calls to this function in code then you can just remove them, "
32161 "unless you want to retain compatibility with older versions of the API."
32165 #: ../src/guestfs-actions.pod:7759
32166 msgid "guestfs_wc_c"
32170 #: ../src/guestfs-actions.pod:7761
32174 " guestfs_wc_c (guestfs_h *g,\n"
32175 " const char *path);\n"
32180 #: ../src/guestfs-actions.pod:7772
32181 msgid "guestfs_wc_l"
32185 #: ../src/guestfs-actions.pod:7774
32189 " guestfs_wc_l (guestfs_h *g,\n"
32190 " const char *path);\n"
32195 #: ../src/guestfs-actions.pod:7785
32196 msgid "guestfs_wc_w"
32200 #: ../src/guestfs-actions.pod:7787
32204 " guestfs_wc_w (guestfs_h *g,\n"
32205 " const char *path);\n"
32210 #: ../src/guestfs-actions.pod:7798
32211 msgid "guestfs_write"
32215 #: ../src/guestfs-actions.pod:7800
32219 " guestfs_write (guestfs_h *g,\n"
32220 " const char *path,\n"
32221 " const char *content,\n"
32222 " size_t content_size);\n"
32227 #: ../src/guestfs-actions.pod:7809
32228 msgid "See also C<guestfs_write_append>."
32232 #: ../src/guestfs-actions.pod:7818
32233 msgid "guestfs_write_append"
32237 #: ../src/guestfs-actions.pod:7820
32241 " guestfs_write_append (guestfs_h *g,\n"
32242 " const char *path,\n"
32243 " const char *content,\n"
32244 " size_t content_size);\n"
32249 #: ../src/guestfs-actions.pod:7829
32250 msgid "See also C<guestfs_write>."
32254 #: ../src/guestfs-actions.pod:7838
32255 msgid "guestfs_write_file"
32256 msgstr "guestfs_write_file"
32259 #: ../src/guestfs-actions.pod:7840
32263 " guestfs_write_file (guestfs_h *g,\n"
32264 " const char *path,\n"
32265 " const char *content,\n"
32270 " guestfs_write_file (guestfs_h *g,\n"
32271 " const char *path,\n"
32272 " const char *content,\n"
32277 #: ../src/guestfs-actions.pod:7846
32279 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
32284 #: ../src/guestfs-actions.pod:7871
32285 msgid "guestfs_zegrep"
32286 msgstr "guestfs_zegrep"
32289 #: ../src/guestfs-actions.pod:7873
32293 " guestfs_zegrep (guestfs_h *g,\n"
32294 " const char *regex,\n"
32295 " const char *path);\n"
32299 " guestfs_zegrep (guestfs_h *g,\n"
32300 " const char *regex,\n"
32301 " const char *path);\n"
32305 #: ../src/guestfs-actions.pod:7890
32306 msgid "guestfs_zegrepi"
32307 msgstr "guestfs_zegrepi"
32310 #: ../src/guestfs-actions.pod:7892
32314 " guestfs_zegrepi (guestfs_h *g,\n"
32315 " const char *regex,\n"
32316 " const char *path);\n"
32320 " guestfs_zegrepi (guestfs_h *g,\n"
32321 " const char *regex,\n"
32322 " const char *path);\n"
32326 #: ../src/guestfs-actions.pod:7909
32327 msgid "guestfs_zero"
32328 msgstr "guestfs_zero"
32331 #: ../src/guestfs-actions.pod:7911
32335 " guestfs_zero (guestfs_h *g,\n"
32336 " const char *device);\n"
32340 " guestfs_zero (guestfs_h *g,\n"
32341 " const char *device);\n"
32345 #: ../src/guestfs-actions.pod:7925
32347 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
32348 "C<guestfs_is_zero_device>"
32352 #: ../src/guestfs-actions.pod:7937
32353 msgid "guestfs_zero_device"
32354 msgstr "guestfs_zero_device"
32357 #: ../src/guestfs-actions.pod:7939
32361 " guestfs_zero_device (guestfs_h *g,\n"
32362 " const char *device);\n"
32366 " guestfs_zero_device (guestfs_h *g,\n"
32367 " const char *device);\n"
32371 #: ../src/guestfs-actions.pod:7943
32373 "This command writes zeroes over the entire C<device>. Compare with "
32374 "C<guestfs_zero> which just zeroes the first few blocks of a device."
32378 #: ../src/guestfs-actions.pod:7961
32379 msgid "(Added in 1.3.1)"
32380 msgstr "(Додано у 1.3.1)"
32383 #: ../src/guestfs-actions.pod:7963
32384 msgid "guestfs_zerofree"
32385 msgstr "guestfs_zerofree"
32388 #: ../src/guestfs-actions.pod:7965
32392 " guestfs_zerofree (guestfs_h *g,\n"
32393 " const char *device);\n"
32397 " guestfs_zerofree (guestfs_h *g,\n"
32398 " const char *device);\n"
32402 #: ../src/guestfs-actions.pod:7984
32403 msgid "guestfs_zfgrep"
32404 msgstr "guestfs_zfgrep"
32407 #: ../src/guestfs-actions.pod:7986
32411 " guestfs_zfgrep (guestfs_h *g,\n"
32412 " const char *pattern,\n"
32413 " const char *path);\n"
32417 " guestfs_zfgrep (guestfs_h *g,\n"
32418 " const char *pattern,\n"
32419 " const char *path);\n"
32423 #: ../src/guestfs-actions.pod:8003
32424 msgid "guestfs_zfgrepi"
32425 msgstr "guestfs_zfgrepi"
32428 #: ../src/guestfs-actions.pod:8005
32432 " guestfs_zfgrepi (guestfs_h *g,\n"
32433 " const char *pattern,\n"
32434 " const char *path);\n"
32438 " guestfs_zfgrepi (guestfs_h *g,\n"
32439 " const char *pattern,\n"
32440 " const char *path);\n"
32444 #: ../src/guestfs-actions.pod:8022
32445 msgid "guestfs_zfile"
32446 msgstr "guestfs_zfile"
32449 #: ../src/guestfs-actions.pod:8024
32453 " guestfs_zfile (guestfs_h *g,\n"
32454 " const char *meth,\n"
32455 " const char *path);\n"
32459 " guestfs_zfile (guestfs_h *g,\n"
32460 " const char *meth,\n"
32461 " const char *path);\n"
32465 #: ../src/guestfs-actions.pod:8029
32467 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
32472 #: ../src/guestfs-actions.pod:8041
32474 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
32479 #: ../src/guestfs-actions.pod:8049
32480 msgid "guestfs_zgrep"
32481 msgstr "guestfs_zgrep"
32484 #: ../src/guestfs-actions.pod:8051
32488 " guestfs_zgrep (guestfs_h *g,\n"
32489 " const char *regex,\n"
32490 " const char *path);\n"
32494 " guestfs_zgrep (guestfs_h *g,\n"
32495 " const char *regex,\n"
32496 " const char *path);\n"
32500 #: ../src/guestfs-actions.pod:8068
32501 msgid "guestfs_zgrepi"
32502 msgstr "guestfs_zgrepi"
32505 #: ../src/guestfs-actions.pod:8070
32509 " guestfs_zgrepi (guestfs_h *g,\n"
32510 " const char *regex,\n"
32511 " const char *path);\n"
32515 " guestfs_zgrepi (guestfs_h *g,\n"
32516 " const char *regex,\n"
32517 " const char *path);\n"
32521 #: ../src/guestfs-availability.pod:3
32526 #: ../src/guestfs-availability.pod:5
32528 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
32529 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
32530 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
32531 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
32532 "L</guestfs_aug_save> L</guestfs_aug_set>"
32536 #: ../src/guestfs-availability.pod:21
32541 #: ../src/guestfs-availability.pod:23
32542 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
32546 #: ../src/guestfs-availability.pod:26
32548 #| msgid "B<scrub>"
32553 #: ../src/guestfs-availability.pod:28
32554 msgid "The following functions: L</guestfs_grub_install>"
32558 #: ../src/guestfs-availability.pod:31
32560 msgstr "B<inotify>"
32563 #: ../src/guestfs-availability.pod:33
32565 "The following functions: L</guestfs_inotify_add_watch> L</"
32566 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
32567 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
32571 #: ../src/guestfs-availability.pod:41
32572 msgid "B<linuxfsuuid>"
32573 msgstr "B<linuxfsuuid>"
32576 #: ../src/guestfs-availability.pod:43
32578 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
32579 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
32583 #: ../src/guestfs-availability.pod:50
32584 msgid "B<linuxmodules>"
32585 msgstr "B<linuxmodules>"
32588 #: ../src/guestfs-availability.pod:52
32589 msgid "The following functions: L</guestfs_modprobe>"
32593 #: ../src/guestfs-availability.pod:55
32594 msgid "B<linuxxattrs>"
32595 msgstr "B<linuxxattrs>"
32598 #: ../src/guestfs-availability.pod:57
32600 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
32601 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
32602 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
32603 "guestfs_setxattr>"
32607 #: ../src/guestfs-availability.pod:68
32612 #: ../src/guestfs-availability.pod:70
32614 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
32615 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
32616 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
32620 #: ../src/guestfs-availability.pod:79
32625 #: ../src/guestfs-availability.pod:81
32627 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
32628 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
32629 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
32630 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
32631 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
32632 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
32633 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
32637 #: ../src/guestfs-availability.pod:104
32642 #: ../src/guestfs-availability.pod:106
32644 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
32645 "guestfs_mknod_b> L</guestfs_mknod_c>"
32649 #: ../src/guestfs-availability.pod:112
32654 #: ../src/guestfs-availability.pod:114
32655 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
32659 #: ../src/guestfs-availability.pod:117
32660 msgid "B<ntfsprogs>"
32661 msgstr "B<ntfsprogs>"
32664 #: ../src/guestfs-availability.pod:119
32666 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
32667 "L</guestfs_ntfsresize_size>"
32671 #: ../src/guestfs-availability.pod:124
32672 msgid "B<realpath>"
32673 msgstr "B<realpath>"
32676 #: ../src/guestfs-availability.pod:126
32677 msgid "The following functions: L</guestfs_realpath>"
32681 #: ../src/guestfs-availability.pod:129
32686 #: ../src/guestfs-availability.pod:131
32688 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
32689 "guestfs_scrub_freespace>"
32693 #: ../src/guestfs-availability.pod:136
32695 msgstr "B<selinux>"
32698 #: ../src/guestfs-availability.pod:138
32699 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
32703 #: ../src/guestfs-availability.pod:142
32708 #: ../src/guestfs-availability.pod:144
32709 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
32713 #: ../src/guestfs-availability.pod:148
32714 msgid "B<zerofree>"
32715 msgstr "B<zerofree>"
32718 #: ../src/guestfs-availability.pod:150
32719 msgid "The following functions: L</guestfs_zerofree>"
32723 #: ../src/guestfs-structs.pod:1
32724 msgid "guestfs_int_bool"
32728 #: ../src/guestfs-structs.pod:3
32731 " struct guestfs_int_bool {\n"
32739 #: ../src/guestfs-structs.pod:8
32742 " struct guestfs_int_bool_list {\n"
32743 " uint32_t len; /* Number of elements in list. */\n"
32744 " struct guestfs_int_bool *val; /* Elements. */\n"
32750 #: ../src/guestfs-structs.pod:13
32753 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32754 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32759 #: ../src/guestfs-structs.pod:16
32760 msgid "guestfs_lvm_pv"
32764 #: ../src/guestfs-structs.pod:18
32767 " struct guestfs_lvm_pv {\n"
32768 " char *pv_name;\n"
32769 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32770 " char pv_uuid[32];\n"
32772 " uint64_t pv_size;\n"
32773 " uint64_t dev_size;\n"
32774 " uint64_t pv_free;\n"
32775 " uint64_t pv_used;\n"
32776 " char *pv_attr;\n"
32777 " int64_t pv_pe_count;\n"
32778 " int64_t pv_pe_alloc_count;\n"
32779 " char *pv_tags;\n"
32780 " uint64_t pe_start;\n"
32781 " int64_t pv_mda_count;\n"
32782 " uint64_t pv_mda_free;\n"
32788 #: ../src/guestfs-structs.pod:36
32791 " struct guestfs_lvm_pv_list {\n"
32792 " uint32_t len; /* Number of elements in list. */\n"
32793 " struct guestfs_lvm_pv *val; /* Elements. */\n"
32799 #: ../src/guestfs-structs.pod:41
32802 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32803 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32808 #: ../src/guestfs-structs.pod:44
32809 msgid "guestfs_lvm_vg"
32813 #: ../src/guestfs-structs.pod:46
32816 " struct guestfs_lvm_vg {\n"
32817 " char *vg_name;\n"
32818 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32819 " char vg_uuid[32];\n"
32821 " char *vg_attr;\n"
32822 " uint64_t vg_size;\n"
32823 " uint64_t vg_free;\n"
32824 " char *vg_sysid;\n"
32825 " uint64_t vg_extent_size;\n"
32826 " int64_t vg_extent_count;\n"
32827 " int64_t vg_free_count;\n"
32828 " int64_t max_lv;\n"
32829 " int64_t max_pv;\n"
32830 " int64_t pv_count;\n"
32831 " int64_t lv_count;\n"
32832 " int64_t snap_count;\n"
32833 " int64_t vg_seqno;\n"
32834 " char *vg_tags;\n"
32835 " int64_t vg_mda_count;\n"
32836 " uint64_t vg_mda_free;\n"
32842 #: ../src/guestfs-structs.pod:69
32845 " struct guestfs_lvm_vg_list {\n"
32846 " uint32_t len; /* Number of elements in list. */\n"
32847 " struct guestfs_lvm_vg *val; /* Elements. */\n"
32853 #: ../src/guestfs-structs.pod:74
32856 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32857 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32862 #: ../src/guestfs-structs.pod:77
32863 msgid "guestfs_lvm_lv"
32867 #: ../src/guestfs-structs.pod:79
32870 " struct guestfs_lvm_lv {\n"
32871 " char *lv_name;\n"
32872 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32873 " char lv_uuid[32];\n"
32874 " char *lv_attr;\n"
32875 " int64_t lv_major;\n"
32876 " int64_t lv_minor;\n"
32877 " int64_t lv_kernel_major;\n"
32878 " int64_t lv_kernel_minor;\n"
32879 " uint64_t lv_size;\n"
32880 " int64_t seg_count;\n"
32882 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
32883 " float snap_percent;\n"
32884 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
32885 " float copy_percent;\n"
32886 " char *move_pv;\n"
32887 " char *lv_tags;\n"
32888 " char *mirror_log;\n"
32889 " char *modules;\n"
32895 #: ../src/guestfs-structs.pod:101
32898 " struct guestfs_lvm_lv_list {\n"
32899 " uint32_t len; /* Number of elements in list. */\n"
32900 " struct guestfs_lvm_lv *val; /* Elements. */\n"
32906 #: ../src/guestfs-structs.pod:106
32909 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32910 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32915 #: ../src/guestfs-structs.pod:111
32918 " struct guestfs_stat {\n"
32922 " int64_t nlink;\n"
32927 " int64_t blksize;\n"
32928 " int64_t blocks;\n"
32929 " int64_t atime;\n"
32930 " int64_t mtime;\n"
32931 " int64_t ctime;\n"
32937 #: ../src/guestfs-structs.pod:127
32940 " struct guestfs_stat_list {\n"
32941 " uint32_t len; /* Number of elements in list. */\n"
32942 " struct guestfs_stat *val; /* Elements. */\n"
32948 #: ../src/guestfs-structs.pod:132
32951 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32952 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32957 #: ../src/guestfs-structs.pod:137
32960 " struct guestfs_statvfs {\n"
32961 " int64_t bsize;\n"
32962 " int64_t frsize;\n"
32963 " int64_t blocks;\n"
32964 " int64_t bfree;\n"
32965 " int64_t bavail;\n"
32966 " int64_t files;\n"
32967 " int64_t ffree;\n"
32968 " int64_t favail;\n"
32971 " int64_t namemax;\n"
32977 #: ../src/guestfs-structs.pod:151
32980 " struct guestfs_statvfs_list {\n"
32981 " uint32_t len; /* Number of elements in list. */\n"
32982 " struct guestfs_statvfs *val; /* Elements. */\n"
32988 #: ../src/guestfs-structs.pod:156
32991 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32992 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32997 #: ../src/guestfs-structs.pod:159
32998 msgid "guestfs_dirent"
33002 #: ../src/guestfs-structs.pod:161
33005 " struct guestfs_dirent {\n"
33014 #: ../src/guestfs-structs.pod:167
33017 " struct guestfs_dirent_list {\n"
33018 " uint32_t len; /* Number of elements in list. */\n"
33019 " struct guestfs_dirent *val; /* Elements. */\n"
33025 #: ../src/guestfs-structs.pod:172
33028 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
33029 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
33034 #: ../src/guestfs-structs.pod:177
33037 " struct guestfs_version {\n"
33038 " int64_t major;\n"
33039 " int64_t minor;\n"
33040 " int64_t release;\n"
33047 #: ../src/guestfs-structs.pod:184
33050 " struct guestfs_version_list {\n"
33051 " uint32_t len; /* Number of elements in list. */\n"
33052 " struct guestfs_version *val; /* Elements. */\n"
33058 #: ../src/guestfs-structs.pod:189
33061 " void guestfs_free_version (struct guestfs_free_version *);\n"
33062 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33067 #: ../src/guestfs-structs.pod:192
33068 msgid "guestfs_xattr"
33072 #: ../src/guestfs-structs.pod:194
33075 " struct guestfs_xattr {\n"
33076 " char *attrname;\n"
33077 " /* The next two fields describe a byte array. */\n"
33078 " uint32_t attrval_len;\n"
33079 " char *attrval;\n"
33085 #: ../src/guestfs-structs.pod:201
33088 " struct guestfs_xattr_list {\n"
33089 " uint32_t len; /* Number of elements in list. */\n"
33090 " struct guestfs_xattr *val; /* Elements. */\n"
33096 #: ../src/guestfs-structs.pod:206
33099 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33100 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33105 #: ../src/guestfs-structs.pod:209
33106 msgid "guestfs_inotify_event"
33110 #: ../src/guestfs-structs.pod:211
33113 " struct guestfs_inotify_event {\n"
33114 " int64_t in_wd;\n"
33115 " uint32_t in_mask;\n"
33116 " uint32_t in_cookie;\n"
33117 " char *in_name;\n"
33123 #: ../src/guestfs-structs.pod:218
33126 " struct guestfs_inotify_event_list {\n"
33127 " uint32_t len; /* Number of elements in list. */\n"
33128 " struct guestfs_inotify_event *val; /* Elements. */\n"
33134 #: ../src/guestfs-structs.pod:223
33137 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33138 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
33143 #: ../src/guestfs-structs.pod:226
33144 msgid "guestfs_partition"
33148 #: ../src/guestfs-structs.pod:228
33151 " struct guestfs_partition {\n"
33152 " int32_t part_num;\n"
33153 " uint64_t part_start;\n"
33154 " uint64_t part_end;\n"
33155 " uint64_t part_size;\n"
33161 #: ../src/guestfs-structs.pod:235
33164 " struct guestfs_partition_list {\n"
33165 " uint32_t len; /* Number of elements in list. */\n"
33166 " struct guestfs_partition *val; /* Elements. */\n"
33172 #: ../src/guestfs-structs.pod:240
33175 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33176 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33181 #: ../src/guestfs-structs.pod:243
33182 msgid "guestfs_application"
33186 #: ../src/guestfs-structs.pod:245
33189 " struct guestfs_application {\n"
33190 " char *app_name;\n"
33191 " char *app_display_name;\n"
33192 " int32_t app_epoch;\n"
33193 " char *app_version;\n"
33194 " char *app_release;\n"
33195 " char *app_install_path;\n"
33196 " char *app_trans_path;\n"
33197 " char *app_publisher;\n"
33198 " char *app_url;\n"
33199 " char *app_source_package;\n"
33200 " char *app_summary;\n"
33201 " char *app_description;\n"
33207 #: ../src/guestfs-structs.pod:260
33210 " struct guestfs_application_list {\n"
33211 " uint32_t len; /* Number of elements in list. */\n"
33212 " struct guestfs_application *val; /* Elements. */\n"
33218 #: ../src/guestfs-structs.pod:265
33221 " void guestfs_free_application (struct guestfs_free_application *);\n"
33222 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
33227 #: ../src/guestfs.pod:5
33228 msgid "guestfs - Library for accessing and modifying virtual machine images"
33230 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
33234 #: ../src/guestfs.pod:11
33237 " guestfs_h *g = guestfs_create ();\n"
33238 " guestfs_add_drive (g, \"guest.img\");\n"
33239 " guestfs_launch (g);\n"
33240 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33241 " guestfs_touch (g, \"/hello\");\n"
33242 " guestfs_umount (g, \"/\");\n"
33243 " guestfs_close (g);\n"
33246 " guestfs_h *g = guestfs_create ();\n"
33247 " guestfs_add_drive (g, \"guest.img\");\n"
33248 " guestfs_launch (g);\n"
33249 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33250 " guestfs_touch (g, \"/hello\");\n"
33251 " guestfs_umount (g, \"/\");\n"
33252 " guestfs_close (g);\n"
33256 #: ../src/guestfs.pod:25
33258 "Libguestfs is a library for accessing and modifying guest disk images. "
33259 "Amongst the things this is good for: making batch configuration changes to "
33260 "guests, getting disk used/free statistics (see also: virt-df), migrating "
33261 "between virtualization systems (see also: virt-p2v), performing partial "
33262 "backups, performing partial guest clones, cloning guests and changing "
33263 "registry/UUID/hostname info, and much else besides."
33267 #: ../src/guestfs.pod:33
33269 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
33270 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
33271 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
33276 #: ../src/guestfs.pod:38
33278 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
33279 "what filesystem is in each LV, etc.). It can also run commands in the "
33280 "context of the guest. Also you can access filesystems over FUSE."
33284 #: ../src/guestfs.pod:43
33286 "Libguestfs is a library that can be linked with C and C++ management "
33287 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
33288 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
33293 #: ../src/guestfs.pod:48
33295 "You don't need to be root to use libguestfs, although obviously you do need "
33296 "enough permissions to access the disk images."
33300 #: ../src/guestfs.pod:51
33302 "Libguestfs is a large API because it can do many things. For a gentle "
33303 "introduction, please read the L</API OVERVIEW> section next."
33307 #: ../src/guestfs.pod:54
33309 "There are also some example programs in the L<guestfs-examples(3)> manual "
33314 #: ../src/guestfs.pod:57
33315 msgid "API OVERVIEW"
33319 #: ../src/guestfs.pod:59
33321 "This section provides a gentler overview of the libguestfs API. We also try "
33322 "to group API calls together, where that may not be obvious from reading "
33323 "about the individual calls in the main section of this manual."
33327 #: ../src/guestfs.pod:64
33332 #: ../src/guestfs.pod:66
33334 "Before you can use libguestfs calls, you have to create a handle. Then you "
33335 "must add at least one disk image to the handle, followed by launching the "
33336 "handle, then performing whatever operations you want, and finally closing "
33337 "the handle. By convention we use the single letter C<g> for the name of the "
33338 "handle variable, although of course you can use any name you want."
33342 #: ../src/guestfs.pod:73
33343 msgid "The general structure of all libguestfs-using programs looks like this:"
33347 #: ../src/guestfs.pod:76
33350 " guestfs_h *g = guestfs_create ();\n"
33353 " guestfs_h *g = guestfs_create ();\n"
33357 #: ../src/guestfs.pod:78
33360 " /* Call guestfs_add_drive additional times if there are\n"
33361 " * multiple disk images.\n"
33363 " guestfs_add_drive (g, \"guest.img\");\n"
33368 #: ../src/guestfs.pod:83
33371 " /* Most manipulation calls won't work until you've launched\n"
33372 " * the handle 'g'. You have to do this _after_ adding drives\n"
33373 " * and _before_ other commands.\n"
33375 " guestfs_launch (g);\n"
33380 #: ../src/guestfs.pod:89
33383 " /* Now you can examine what partitions, LVs etc are available.\n"
33385 " char **partitions = guestfs_list_partitions (g);\n"
33386 " char **logvols = guestfs_lvs (g);\n"
33389 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
33391 " char **partitions = guestfs_list_partitions (g);\n"
33392 " char **logvols = guestfs_lvs (g);\n"
33396 #: ../src/guestfs.pod:94
33399 " /* To access a filesystem in the image, you must mount it.\n"
33401 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33404 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
33406 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33410 #: ../src/guestfs.pod:98
33413 " /* Now you can perform filesystem actions on the guest\n"
33416 " guestfs_touch (g, \"/hello\");\n"
33421 #: ../src/guestfs.pod:103
33424 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
33425 " * it is done automatically when you close the handle. See\n"
33426 " * discussion of autosync in this page.\n"
33428 " guestfs_sync (g);\n"
33433 #: ../src/guestfs.pod:109
33436 " /* Close the handle 'g'. */\n"
33437 " guestfs_close (g);\n"
33440 " /* Закрити дескриптор 'g'. */\n"
33441 " guestfs_close (g);\n"
33445 #: ../src/guestfs.pod:112
33447 "The code above doesn't include any error checking. In real code you should "
33448 "check return values carefully for errors. In general all functions that "
33449 "return integers return C<-1> on error, and all functions that return "
33450 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
33451 "how to handle errors, and consult the documentation for each function call "
33452 "below to see precisely how they return error indications. See L<guestfs-"
33453 "examples(3)> for fully worked examples."
33457 #: ../src/guestfs.pod:121
33458 msgid "DISK IMAGES"
33459 msgstr "ОБРАЗИ ДИСКІВ"
33462 #: ../src/guestfs.pod:123
33464 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
33465 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
33466 "actual block device, or simply an empty file of zeroes that you have created "
33467 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
33472 #: ../src/guestfs.pod:129
33474 "The call you should use in modern code for adding drives is L</"
33475 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
33476 "specifying that the format is raw, do:"
33480 #: ../src/guestfs.pod:133
33483 " guestfs_add_drive_opts (g, filename,\n"
33484 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33488 " guestfs_add_drive_opts (g, filename,\n"
33489 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33494 #: ../src/guestfs.pod:137
33495 msgid "You can add a disk read-only using:"
33496 msgstr "Ви можете додати диск у режимі лише читання:"
33499 #: ../src/guestfs.pod:139
33502 " guestfs_add_drive_opts (g, filename,\n"
33503 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33504 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33508 " guestfs_add_drive_opts (g, filename,\n"
33509 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33510 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33515 #: ../src/guestfs.pod:144
33517 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
33518 "libguestfs won't modify the file."
33522 #: ../src/guestfs.pod:147
33524 "Be extremely cautious if the disk image is in use, eg. if it is being used "
33525 "by a virtual machine. Adding it read-write will almost certainly cause disk "
33526 "corruption, but adding it read-only is safe."
33530 #: ../src/guestfs.pod:151
33532 "You must add at least one disk image, and you may add multiple disk images. "
33533 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
33534 "first one you added), C</dev/sdb> (for the second one you added), etc."
33538 #: ../src/guestfs.pod:156
33540 "Once L</guestfs_launch> has been called you cannot add any more images. You "
33541 "can call L</guestfs_list_devices> to get a list of the device names, in the "
33542 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
33546 #: ../src/guestfs.pod:161
33548 msgstr "МОНТУВАННЯ"
33551 #: ../src/guestfs.pod:163
33553 "Before you can read or write files, create directories and so on in a disk "
33554 "image that contains filesystems, you have to mount those filesystems using "
33555 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
33556 "a disk image contains (for example) one partition with a filesystem on that "
33557 "partition, then you can mount it directly:"
33561 #: ../src/guestfs.pod:170
33564 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33567 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33571 #: ../src/guestfs.pod:172
33573 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
33574 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
33575 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
33576 "that these are libguestfs virtual devices, and are nothing to do with host "
33581 #: ../src/guestfs.pod:178
33583 "If you are given a disk image and you don't know what it contains then you "
33584 "have to find out. Libguestfs can do that too: use L</"
33585 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
33586 "LVs, and either try mounting each to see what is mountable, or else examine "
33587 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
33588 "filesystems, use L</guestfs_list_filesystems>."
33592 #: ../src/guestfs.pod:186
33594 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
33595 "L</INSPECTION> below). But you might find it easier to look at higher level "
33596 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
33600 #: ../src/guestfs.pod:191
33602 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
33603 "several other variations of the C<guestfs_mount_*> call."
33607 #: ../src/guestfs.pod:194
33608 msgid "FILESYSTEM ACCESS AND MODIFICATION"
33609 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
33612 #: ../src/guestfs.pod:196
33614 "The majority of the libguestfs API consists of fairly low-level calls for "
33615 "accessing and modifying the files, directories, symlinks etc on mounted "
33616 "filesystems. There are over a hundred such calls which you can find listed "
33617 "in detail below in this man page, and we don't even pretend to cover them "
33618 "all in this overview."
33622 #: ../src/guestfs.pod:202
33624 "Specify filenames as full paths, starting with C<\"/\"> and including the "
33627 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
33628 "точкою монтування."
33631 #: ../src/guestfs.pod:205
33633 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
33634 "the file called C<\"etc/passwd\"> then you could do:"
33636 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
33637 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
33641 #: ../src/guestfs.pod:208
33644 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33647 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33651 #: ../src/guestfs.pod:210
33653 "This would return C<data> as a newly allocated buffer containing the full "
33654 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
33655 "or C<NULL> if there was an error."
33659 #: ../src/guestfs.pod:214
33661 "As another example, to create a top-level directory on that filesystem "
33662 "called C<\"var\"> you would do:"
33666 #: ../src/guestfs.pod:217
33669 " guestfs_mkdir (g, \"/var\");\n"
33672 " guestfs_mkdir (g, \"/var\");\n"
33676 #: ../src/guestfs.pod:219
33677 msgid "To create a symlink you could do:"
33678 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
33681 #: ../src/guestfs.pod:221
33684 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33685 " \"/etc/rc3.d/S30portmap\");\n"
33688 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33689 " \"/etc/rc3.d/S30portmap\");\n"
33693 #: ../src/guestfs.pod:224
33695 "Libguestfs will reject attempts to use relative paths and there is no "
33696 "concept of a current working directory."
33700 #: ../src/guestfs.pod:227
33702 "Libguestfs can return errors in many situations: for example if the "
33703 "filesystem isn't writable, or if a file or directory that you requested "
33704 "doesn't exist. If you are using the C API (documented here) you have to "
33705 "check for those error conditions after each call. (Other language bindings "
33706 "turn these errors into exceptions)."
33710 #: ../src/guestfs.pod:233
33712 "File writes are affected by the per-handle umask, set by calling L</"
33713 "guestfs_umask> and defaulting to 022. See L</UMASK>."
33717 #: ../src/guestfs.pod:236
33718 msgid "PARTITIONING"
33719 msgstr "ПОДІЛ НА РОЗДІЛИ"
33722 #: ../src/guestfs.pod:238
33724 "Libguestfs contains API calls to read, create and modify partition tables on "
33729 #: ../src/guestfs.pod:241
33731 "In the common case where you want to create a single partition covering the "
33732 "whole disk, you should use the L</guestfs_part_disk> call:"
33736 #: ../src/guestfs.pod:245
33739 " const char *parttype = \"mbr\";\n"
33740 " if (disk_is_larger_than_2TB)\n"
33741 " parttype = \"gpt\";\n"
33742 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33745 " const char *parttype = \"mbr\";\n"
33746 " if (disk_is_larger_than_2TB)\n"
33747 " parttype = \"gpt\";\n"
33748 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33752 #: ../src/guestfs.pod:250
33754 "Obviously this effectively wipes anything that was on that disk image before."
33758 #: ../src/guestfs.pod:253
33763 #: ../src/guestfs.pod:255
33765 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
33766 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
33767 "you familiarize yourself with the concepts of physical volumes, volume "
33768 "groups and logical volumes."
33772 #: ../src/guestfs.pod:260
33774 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
33775 "tldp.org/HOWTO/LVM-HOWTO/>."
33779 #: ../src/guestfs.pod:263
33780 msgid "DOWNLOADING"
33781 msgstr "ОТРИМАННЯ ДАНИХ"
33784 #: ../src/guestfs.pod:265
33786 "Use L</guestfs_cat> to download small, text only files. This call is "
33787 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33788 "NUL (C<\\0>) characters. However the API is very simple to use."
33792 #: ../src/guestfs.pod:269
33794 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33795 "bit data, since it returns a (pointer, size) pair. However it is still "
33796 "limited to \"small\" files, less than 2 MB."
33800 #: ../src/guestfs.pod:273
33802 "L</guestfs_download> can be used to download any file, with no limits on "
33803 "content or size (even files larger than 4 GB)."
33807 #: ../src/guestfs.pod:276
33809 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33813 #: ../src/guestfs.pod:279
33815 msgstr "ВИВАНТАЖЕННЯ"
33818 #: ../src/guestfs.pod:281
33820 "It's often the case that you want to write a file or files to the disk image."
33824 #: ../src/guestfs.pod:284
33826 "To write a small file with fixed content, use L</guestfs_write>. To create "
33827 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
33828 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
33829 "of other functions for creating test files, for example L</guestfs_fill> and "
33830 "L</guestfs_fill_pattern>."
33834 #: ../src/guestfs.pod:290
33836 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
33837 "file content or size (even files larger than 4 GB)."
33841 #: ../src/guestfs.pod:293
33843 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33847 #: ../src/guestfs.pod:295
33849 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33850 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
33851 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
33852 "in a predictable way (eg. adding it last after all other drives) then you "
33853 "can get the device name from L</guestfs_list_devices> and mount it directly "
33854 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
33855 "portable between kernel versions, and they don't support labels or UUIDs. "
33856 "If you want to pre-build an image or you need to mount it using a label or "
33857 "UUID, use an ISO image instead."
33861 #: ../src/guestfs.pod:306
33863 msgstr "КОПІЮВАННЯ"
33866 #: ../src/guestfs.pod:308
33868 "There are various different commands for copying between files and devices "
33869 "and in and out of the guest filesystem. These are summarised in the table "
33874 #: ../src/guestfs.pod:314
33875 msgid "B<file> to B<file>"
33876 msgstr "B<файл> у B<файл>"
33879 #: ../src/guestfs.pod:316
33881 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33882 "directories recursively."
33886 #: ../src/guestfs.pod:319
33887 msgid "B<file or device> to B<file or device>"
33888 msgstr "B<файл або пристрій> у B<файл або пристрій>"
33891 #: ../src/guestfs.pod:321
33893 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33894 "devices in the guest."
33898 #: ../src/guestfs.pod:324
33899 msgid "Example: duplicate the contents of an LV:"
33903 #: ../src/guestfs.pod:326
33906 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33909 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33913 #: ../src/guestfs.pod:328
33915 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33916 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
33917 "guestfs_copy_size>."
33921 #: ../src/guestfs.pod:332
33922 msgid "B<file on the host> to B<file or device>"
33926 #: ../src/guestfs.pod:334
33927 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
33931 #: ../src/guestfs.pod:336
33932 msgid "B<file or device> to B<file on the host>"
33936 #: ../src/guestfs.pod:338
33937 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
33941 #: ../src/guestfs.pod:342
33942 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33946 #: ../src/guestfs.pod:344
33948 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33949 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33950 "appears you can only upload and download to files. However many Un*x-like "
33951 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33952 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33953 "and arbitrary file descriptor N."
33957 #: ../src/guestfs.pod:352
33958 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33962 #: ../src/guestfs.pod:355
33965 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33968 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33972 #: ../src/guestfs.pod:357
33973 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33977 #: ../src/guestfs.pod:359
33980 " char devfd[64];\n"
33981 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33982 " guestfs_tar_out (g, \"/\", devfd);\n"
33985 " char devfd[64];\n"
33986 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33987 " guestfs_tar_out (g, \"/\", devfd);\n"
33991 #: ../src/guestfs.pod:363
33992 msgid "LISTING FILES"
33993 msgstr "СПИСКИ ФАЙЛІВ"
33996 #: ../src/guestfs.pod:365
33998 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33999 "L<guestfish(1)>-equivalent command C<ll>)."
34003 #: ../src/guestfs.pod:368
34005 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34006 "programs, as a flat list of strings."
34010 #: ../src/guestfs.pod:371
34012 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34013 "directory, plus additional information about each one. It is more "
34014 "equivalent to using the L<readdir(3)> call on a local filesystem."
34018 #: ../src/guestfs.pod:375
34020 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
34024 #: ../src/guestfs.pod:378
34025 msgid "RUNNING COMMANDS"
34026 msgstr "ВИКОНАННЯ КОМАНД"
34029 #: ../src/guestfs.pod:380
34031 "Although libguestfs is primarily an API for manipulating files inside guest "
34032 "images, we also provide some limited facilities for running commands inside "
34037 #: ../src/guestfs.pod:384
34038 msgid "There are many limitations to this:"
34042 #: ../src/guestfs.pod:390
34044 "The kernel version that the command runs under will be different from what "
34049 #: ../src/guestfs.pod:395
34051 "If the command needs to communicate with daemons, then most likely they "
34052 "won't be running."
34056 #: ../src/guestfs.pod:400
34057 msgid "The command will be running in limited memory."
34061 #: ../src/guestfs.pod:404
34063 "The network may not be available unless you enable it (see L</"
34064 "guestfs_set_network>)."
34068 #: ../src/guestfs.pod:409
34069 msgid "Only supports Linux guests (not Windows, BSD, etc)."
34073 #: ../src/guestfs.pod:413
34075 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
34079 #: ../src/guestfs.pod:418
34081 "For SELinux guests, you may need to enable SELinux and load policy first. "
34082 "See L</SELINUX> in this manpage."
34086 #: ../src/guestfs.pod:423
34088 "I<Security:> It is not safe to run commands from untrusted, possibly "
34089 "malicious guests. These commands may attempt to exploit your program by "
34090 "sending unexpected output. They could also try to exploit the Linux kernel "
34091 "or qemu provided by the libguestfs appliance. They could use the network "
34092 "provided by the libguestfs appliance to bypass ordinary network partitions "
34093 "and firewalls. They could use the elevated privileges or different SELinux "
34094 "context of your program to their advantage."
34098 #: ../src/guestfs.pod:432
34100 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34101 "(a script which runs when the guest next boots normally), and to have this "
34102 "script run the commands you want in the normal context of the running guest, "
34103 "network security and so on. For information about other security issues, "
34104 "see L</SECURITY>."
34108 #: ../src/guestfs.pod:440
34110 "The two main API calls to run commands are L</guestfs_command> and L</"
34111 "guestfs_sh> (there are also variations)."
34115 #: ../src/guestfs.pod:443
34117 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
34118 "shell globs, redirections, etc will work."
34122 #: ../src/guestfs.pod:446
34123 msgid "CONFIGURATION FILES"
34124 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
34127 #: ../src/guestfs.pod:448
34129 "To read and write configuration files in Linux guest filesystems, we "
34130 "strongly recommend using Augeas. For example, Augeas understands how to "
34131 "read and write, say, a Linux shadow password file or X.org configuration "
34132 "file, and so avoids you having to write that code."
34136 #: ../src/guestfs.pod:453
34138 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
34139 "document Augeas itself here because there is excellent documentation on the "
34140 "L<http://augeas.net/> website."
34144 #: ../src/guestfs.pod:457
34146 "If you don't want to use Augeas (you fool!) then try calling L</"
34147 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
34152 #: ../src/guestfs.pod:461
34157 #: ../src/guestfs.pod:463
34159 "We support SELinux guests. To ensure that labeling happens correctly in "
34160 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34164 #: ../src/guestfs.pod:471
34165 msgid "Before launching, do:"
34169 #: ../src/guestfs.pod:473
34172 " guestfs_set_selinux (g, 1);\n"
34175 " guestfs_set_selinux (g, 1);\n"
34179 #: ../src/guestfs.pod:477
34181 "After mounting the guest's filesystem(s), load the policy. This is best "
34182 "done by running the L<load_policy(8)> command in the guest itself:"
34186 #: ../src/guestfs.pod:481
34189 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34192 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34196 #: ../src/guestfs.pod:483
34198 "(Older versions of C<load_policy> require you to specify the name of the "
34203 #: ../src/guestfs.pod:488
34205 "Optionally, set the security context for the API. The correct security "
34206 "context to use can only be known by inspecting the guest. As an example:"
34210 #: ../src/guestfs.pod:492
34213 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34216 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34220 #: ../src/guestfs.pod:496
34221 msgid "This will work for running commands and editing existing files."
34225 #: ../src/guestfs.pod:498
34227 "When new files are created, you may need to label them explicitly, for "
34228 "example by running the external command C<restorecon pathname>."
34232 #: ../src/guestfs.pod:502
34237 #: ../src/guestfs.pod:504
34239 "Certain calls are affected by the current file mode creation mask (the "
34240 "\"umask\"). In particular ones which create files or directories, such as "
34241 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
34242 "either the default mode that the file is created with or modifies the mode "
34247 #: ../src/guestfs.pod:510
34249 "The default umask is C<022>, so files are created with modes such as C<0644> "
34250 "and directories with C<0755>."
34254 #: ../src/guestfs.pod:513
34256 "There are two ways to avoid being affected by umask. Either set umask to 0 "
34257 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
34258 "guestfs_chmod> after creating each file or directory."
34262 #: ../src/guestfs.pod:517
34263 msgid "For more information about umask, see L<umask(2)>."
34267 #: ../src/guestfs.pod:521
34269 "Libguestfs allows you to access Linux guests which have been encrypted using "
34270 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34271 "standard. This includes nearly all whole disk encryption systems used by "
34272 "modern Linux guests."
34276 #: ../src/guestfs.pod:527
34278 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
34279 "returns the string C<crypto_LUKS>)."
34283 #: ../src/guestfs.pod:530
34285 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
34286 "will require the passphrase!"
34290 #: ../src/guestfs.pod:533
34292 "Opening a LUKS device creates a new device mapper device called C</dev/"
34293 "mapper/mapname> (where C<mapname> is the string you supply to L</"
34294 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
34295 "from and encrypted to the underlying block device respectively."
34299 #: ../src/guestfs.pod:539
34301 "LVM volume groups on the device can be made visible by calling L</"
34302 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
34303 "(s) can now be mounted in the usual way."
34307 #: ../src/guestfs.pod:543
34309 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
34310 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
34311 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
34312 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
34313 "underlying encrypted block device)."
34317 #: ../src/guestfs.pod:550
34322 #: ../src/guestfs.pod:552
34324 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
34325 "contains operating systems, an install CD or a live CD. (These APIs used to "
34326 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
34327 "version 1.5.3 the most frequently used part of this library has been "
34328 "rewritten in C and moved into the core code)."
34332 #: ../src/guestfs.pod:559
34334 "Add all disks belonging to the unknown virtual machine and call L</"
34335 "guestfs_launch> in the usual way."
34339 #: ../src/guestfs.pod:562
34341 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
34342 "and certain heuristics, and returns a list of operating systems that were "
34343 "found. An empty list means none were found. A single element is the root "
34344 "filesystem of the operating system. For dual- or multi-boot guests, "
34345 "multiple roots can be returned, each one corresponding to a separate "
34346 "operating system. (Multi-boot virtual machines are extremely rare in the "
34347 "world of virtualization, but since this scenario can happen, we have built "
34348 "libguestfs to deal with it.)"
34352 #: ../src/guestfs.pod:571
34354 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
34355 "to get additional details about that operating system. For example, call L</"
34356 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
34357 "Windows and Linux-based operating systems respectively."
34361 #: ../src/guestfs.pod:577
34363 "Un*x-like and Linux-based operating systems usually consist of several "
34364 "filesystems which are mounted at boot time (for example, a separate boot "
34365 "partition mounted on C</boot>). The inspection rules are able to detect how "
34366 "filesystems correspond to mount points. Call "
34367 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
34368 "hash table like this example:"
34372 #: ../src/guestfs.pod:584
34375 " /boot => /dev/sda1\n"
34376 " / => /dev/vg_guest/lv_root\n"
34377 " /usr => /dev/vg_guest/lv_usr\n"
34380 " /boot => /dev/sda1\n"
34381 " / => /dev/vg_guest/lv_root\n"
34382 " /usr => /dev/vg_guest/lv_usr\n"
34386 #: ../src/guestfs.pod:588
34388 "The caller can then make calls to L</guestfs_mount_options> to mount the "
34389 "filesystems as suggested."
34393 #: ../src/guestfs.pod:591
34395 "Be careful to mount filesystems in the right order (eg. C</> before C</"
34396 "usr>). Sorting the keys of the hash by length, shortest first, should work."
34400 #: ../src/guestfs.pod:595
34402 "Inspection currently only works for some common operating systems. "
34403 "Contributors are welcome to send patches for other operating systems that we "
34404 "currently cannot detect."
34408 #: ../src/guestfs.pod:599
34410 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
34411 "for more details. The L</guestfs_inspect_os> function just ignores any "
34412 "encrypted devices."
34416 #: ../src/guestfs.pod:603
34418 "A note on the implementation: The call L</guestfs_inspect_os> performs "
34419 "inspection and caches the results in the guest handle. Subsequent calls to "
34420 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
34421 "read the disks. If you change the content of the guest disks, you can redo "
34422 "inspection by calling L</guestfs_inspect_os> again. (L</"
34423 "guestfs_inspect_list_applications> works a little differently from the other "
34424 "calls and does read the disks. See documentation for that function for "
34429 #: ../src/guestfs.pod:612
34430 msgid "INSPECTING INSTALL DISKS"
34434 #: ../src/guestfs.pod:614
34436 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
34441 #: ../src/guestfs.pod:617
34443 "Call L</guestfs_inspect_get_format> to return the format of the operating "
34444 "system, which currently can be C<installed> (a regular operating system) or "
34445 "C<installer> (some sort of install disk)."
34449 #: ../src/guestfs.pod:621
34451 "Further information is available about the operating system that can be "
34452 "installed using the regular inspection APIs like L</"
34453 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
34457 #: ../src/guestfs.pod:626
34459 "Some additional information specific to installer disks is also available "
34460 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
34461 "guestfs_inspect_is_multipart> calls."
34465 #: ../src/guestfs.pod:631
34466 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
34470 #: ../src/guestfs.pod:633
34472 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
34473 "ntfs-3g.org/> driver."
34477 #: ../src/guestfs.pod:636
34478 msgid "DRIVE LETTERS AND PATHS"
34479 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
34482 #: ../src/guestfs.pod:638
34484 "DOS and Windows still use drive letters, and the filesystems are always "
34485 "treated as case insensitive by Windows itself, and therefore you might find "
34486 "a Windows configuration file referring to a path like C<c:\\windows"
34487 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
34488 "might be referred to as C</WINDOWS/System32>."
34492 #: ../src/guestfs.pod:644
34494 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
34495 "L</guestfs_inspect_get_drive_mappings>)"
34499 #: ../src/guestfs.pod:647
34501 "Dealing with separator characters (backslash vs forward slash) is outside "
34502 "the scope of libguestfs, but usually a simple character replacement will "
34507 #: ../src/guestfs.pod:651
34509 "To resolve the case insensitivity of paths, call L</"
34510 "guestfs_case_sensitive_path>."
34514 #: ../src/guestfs.pod:654
34515 msgid "ACCESSING THE WINDOWS REGISTRY"
34516 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
34519 #: ../src/guestfs.pod:656
34521 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
34522 "files, through the library C<hivex> which is part of the libguestfs project "
34523 "although ships as a separate tarball. You have to locate and download the "
34524 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
34525 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
34526 "reg(1)> for more help on this issue."
34530 #: ../src/guestfs.pod:664
34531 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
34532 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
34535 #: ../src/guestfs.pod:666
34537 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
34538 "provide something which looks like a Linux symlink. The way it tries to do "
34539 "the rewriting is described here:"
34543 #: ../src/guestfs.pod:670
34545 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34548 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34552 #: ../src/guestfs.pod:672
34554 "The essential problem is that ntfs-3g simply does not have enough "
34555 "information to do a correct job. NTFS links can contain drive letters and "
34556 "references to external device GUIDs that ntfs-3g has no way of resolving. "
34557 "It is almost certainly the case that libguestfs callers should ignore what "
34558 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
34562 #: ../src/guestfs.pod:679
34564 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
34565 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
34566 "attribute, and read the raw reparse data from that (you can find the format "
34567 "documented in various places around the web)."
34571 #: ../src/guestfs.pod:684
34572 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
34576 #: ../src/guestfs.pod:686
34578 "There are other useful extended attributes that can be read from ntfs-3g "
34579 "filesystems (using L</guestfs_getxattr>). See:"
34583 #: ../src/guestfs.pod:689
34585 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34587 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34590 #: ../src/guestfs.pod:691
34591 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
34592 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
34595 #: ../src/guestfs.pod:693
34597 "Although we don't want to discourage you from using the C API, we will "
34598 "mention here that the same API is also available in other languages."
34602 #: ../src/guestfs.pod:696
34604 "The API is broadly identical in all supported languages. This means that "
34605 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
34606 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
34607 "OCaml. In other words, a straightforward, predictable isomorphism between "
34612 #: ../src/guestfs.pod:702
34614 "Error messages are automatically transformed into exceptions if the language "
34619 #: ../src/guestfs.pod:705
34621 "We don't try to \"object orientify\" parts of the API in OO languages, "
34622 "although contributors are welcome to write higher level APIs above what we "
34623 "provide in their favourite languages if they wish."
34627 #: ../src/guestfs.pod:711
34632 #: ../src/guestfs.pod:713
34634 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
34635 "identical to the C API. C++ classes and exceptions are not used."
34639 #: ../src/guestfs.pod:717
34644 #: ../src/guestfs.pod:719
34646 "The C# bindings are highly experimental. Please read the warnings at the "
34647 "top of C<csharp/Libguestfs.cs>."
34651 #: ../src/guestfs.pod:722
34656 #: ../src/guestfs.pod:724
34658 #| msgid "See L<guestfs-ruby(3)>."
34659 msgid "See L<guestfs-erlang(3)>."
34660 msgstr "Див. L<guestfs-ruby(3)>."
34663 #: ../src/guestfs.pod:726
34665 msgstr "B<Haskell>"
34668 #: ../src/guestfs.pod:728
34670 "This is the only language binding that is working but incomplete. Only "
34671 "calls which return simple integers have been bound in Haskell, and we are "
34672 "looking for help to complete this binding."
34676 #: ../src/guestfs.pod:732
34681 #: ../src/guestfs.pod:734
34683 "Full documentation is contained in the Javadoc which is distributed with "
34684 "libguestfs. For examples, see L<guestfs-java(3)>."
34688 #: ../src/guestfs.pod:737
34693 #: ../src/guestfs.pod:739
34694 msgid "See L<guestfs-ocaml(3)>."
34695 msgstr "Див. L<guestfs-ocaml(3)>."
34698 #: ../src/guestfs.pod:741
34703 #: ../src/guestfs.pod:743
34704 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
34705 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
34708 #: ../src/guestfs.pod:745
34713 #: ../src/guestfs.pod:747
34715 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
34716 "the php-libguestfs package for your distribution."
34720 #: ../src/guestfs.pod:750
34721 msgid "The PHP binding only works correctly on 64 bit machines."
34725 #: ../src/guestfs.pod:752
34730 #: ../src/guestfs.pod:754
34731 msgid "See L<guestfs-python(3)>."
34732 msgstr "Див. L<guestfs-python(3)>."
34735 #: ../src/guestfs.pod:756
34740 #: ../src/guestfs.pod:758
34741 msgid "See L<guestfs-ruby(3)>."
34742 msgstr "Див. L<guestfs-ruby(3)>."
34745 #: ../src/guestfs.pod:760
34746 msgid "B<shell scripts>"
34747 msgstr "B<скрипти оболонки>"
34750 #: ../src/guestfs.pod:762
34751 msgid "See L<guestfish(1)>."
34752 msgstr "Див. L<guestfish(1)>."
34755 #: ../src/guestfs.pod:766
34756 msgid "LIBGUESTFS GOTCHAS"
34760 #: ../src/guestfs.pod:768
34762 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34763 "system [...] that works in the way it is documented but is counterintuitive "
34764 "and almost invites mistakes.\""
34768 #: ../src/guestfs.pod:772
34770 "Since we developed libguestfs and the associated tools, there are several "
34771 "things we would have designed differently, but are now stuck with for "
34772 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
34773 "release, you can expect these to change. Beware of them."
34777 #: ../src/guestfs.pod:780
34778 msgid "Autosync / forgetting to sync."
34782 #: ../src/guestfs.pod:782
34784 "I<Update:> Autosync is enabled by default for all API users starting from "
34785 "libguestfs 1.5.24. This section only applies to older versions."
34789 #: ../src/guestfs.pod:785
34791 "When modifying a filesystem from C or another language, you B<must> unmount "
34792 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34793 "libguestfs handle. You can also call:"
34797 #: ../src/guestfs.pod:789
34800 " guestfs_set_autosync (g, 1);\n"
34803 " guestfs_set_autosync (g, 1);\n"
34807 #: ../src/guestfs.pod:791
34809 "to have the unmount/sync done automatically for you when the handle 'g' is "
34810 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
34814 #: ../src/guestfs.pod:795
34816 "If you forget to do this, then it is entirely possible that your changes "
34817 "won't be written out, or will be partially written, or (very rarely) that "
34818 "you'll get disk corruption."
34822 #: ../src/guestfs.pod:799
34824 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
34825 "guestfish scripts that forget to sync will work just fine, which can make "
34826 "this very puzzling if you are trying to debug a problem."
34830 #: ../src/guestfs.pod:803
34831 msgid "Mount option C<-o sync> should not be the default."
34835 #: ../src/guestfs.pod:805
34837 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
34838 "libguestfs 1.13.16. This section only applies to older versions."
34842 #: ../src/guestfs.pod:808
34844 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
34845 "However C<-o sync> does not add any reliability benefit, but does have a "
34846 "very large performance impact."
34850 #: ../src/guestfs.pod:812
34852 "The work around is to use L</guestfs_mount_options> and set the mount "
34853 "options that you actually want to use."
34857 #: ../src/guestfs.pod:815
34858 msgid "Read-only should be the default."
34862 #: ../src/guestfs.pod:817
34864 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34865 "specify I<--rw> if you want to make changes to the image."
34869 #: ../src/guestfs.pod:820
34870 msgid "This would reduce the potential to corrupt live VM images."
34874 #: ../src/guestfs.pod:822
34876 "Note that many filesystems change the disk when you just mount and unmount, "
34877 "even if you didn't perform any writes. You need to use L</"
34878 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34882 #: ../src/guestfs.pod:826
34883 msgid "guestfish command line is hard to use."
34887 #: ../src/guestfs.pod:828
34889 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34890 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
34891 "exist, so it fails. In earlier versions of guestfish the error message was "
34892 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
34893 "we should have used C<guestfish -c command> to run commands."
34897 #: ../src/guestfs.pod:835
34898 msgid "guestfish megabyte modifiers don't work right on all commands"
34902 #: ../src/guestfs.pod:837
34904 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34905 "other modifiers). What guestfish actually does is to multiply the number "
34906 "part by the modifier part and pass the result to the C API. However this "
34907 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34908 "expecting some other unit (eg. megabytes)."
34912 #: ../src/guestfs.pod:844
34913 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
34917 #: ../src/guestfs.pod:846
34920 " lvcreate LV VG 100M\n"
34923 " lvcreate LV VG 100M\n"
34927 #: ../src/guestfs.pod:848
34929 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
34930 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34931 "megabytes * megabytes) logical volume. The error message you get from this "
34932 "is also a little obscure."
34936 #: ../src/guestfs.pod:853
34938 "This could be fixed in the generator by specially marking parameters and "
34939 "return values which take bytes or other units."
34943 #: ../src/guestfs.pod:856
34944 msgid "Ambiguity between devices and paths"
34948 #: ../src/guestfs.pod:858
34950 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34951 "sdb2>) and a similar pathname. A file might just happen to be called "
34952 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34956 #: ../src/guestfs.pod:863
34958 "In the current API we usually resolve this ambiguity by having two separate "
34959 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
34960 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34961 "detecting if the path supplied begins with C</dev/>."
34965 #: ../src/guestfs.pod:869
34967 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34968 "make paths/devices into structured names. One way to do this would be to "
34969 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34970 "aspect of grub. Another way would be to use a structured type, equivalent "
34971 "to this OCaml type:"
34975 #: ../src/guestfs.pod:875
34978 " type path = Path of string | Device of int | Partition of int * int\n"
34983 #: ../src/guestfs.pod:877
34984 msgid "which would allow you to pass arguments like:"
34988 #: ../src/guestfs.pod:879
34991 " Path \"/foo/bar\"\n"
34992 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
34993 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34994 " Path \"/dev/sdb2\" (* not a device *)\n"
34999 #: ../src/guestfs.pod:884
35001 "As you can see there are still problems to resolve even with this "
35002 "representation. Also consider how it might work in guestfish."
35006 #: ../src/guestfs.pod:889
35007 msgid "KEYS AND PASSPHRASES"
35008 msgstr "КЛЮЧІ І ПАРОЛІ"
35011 #: ../src/guestfs.pod:891
35013 "Certain libguestfs calls take a parameter that contains sensitive key "
35014 "material, passed in as a C string."
35018 #: ../src/guestfs.pod:894
35020 "In the future we would hope to change the libguestfs implementation so that "
35021 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35022 "swap. However this is I<not> done at the moment, because of the complexity "
35023 "of such an implementation."
35027 #: ../src/guestfs.pod:899
35029 "Therefore you should be aware that any key parameter you pass to libguestfs "
35030 "might end up being written out to the swap partition. If this is a concern, "
35031 "scrub the swap partition or don't use libguestfs on encrypted devices."
35035 #: ../src/guestfs.pod:904
35036 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35040 #: ../src/guestfs.pod:906
35042 "All high-level libguestfs actions are synchronous. If you want to use "
35043 "libguestfs asynchronously then you must create a thread."
35047 #: ../src/guestfs.pod:909
35049 "Only use the handle from a single thread. Either use the handle exclusively "
35050 "from one thread, or provide your own mutex so that two threads cannot issue "
35051 "calls on the same handle at the same time."
35055 #: ../src/guestfs.pod:913
35057 "See the graphical program guestfs-browser for one possible architecture for "
35058 "multithreaded programs using libvirt and libguestfs."
35062 #: ../src/guestfs.pod:916
35067 #: ../src/guestfs.pod:918
35069 "Libguestfs needs a supermin appliance, which it finds by looking along an "
35074 #: ../src/guestfs.pod:921
35076 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
35077 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
35081 #: ../src/guestfs.pod:924
35083 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
35084 "to change the directories that libguestfs will search in. The value is a "
35085 "colon-separated list of paths. The current directory is I<not> searched "
35086 "unless the path contains an empty element or C<.>. For example "
35087 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
35088 "then C</usr/lib/guestfs>."
35092 #: ../src/guestfs.pod:931
35093 msgid "QEMU WRAPPERS"
35097 #: ../src/guestfs.pod:933
35099 "If you want to compile your own qemu, run qemu from a non-standard location, "
35100 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35105 #: ../src/guestfs.pod:937
35107 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35108 "last command in the shell script (so that qemu replaces the shell and "
35109 "becomes the direct child of the libguestfs-using program). If you don't do "
35110 "this, then the qemu process won't be cleaned up correctly."
35114 #: ../src/guestfs.pod:942
35116 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35121 #: ../src/guestfs.pod:945
35125 " qemudir=/home/rjones/d/qemu\n"
35126 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35130 " qemudir=/home/rjones/d/qemu\n"
35131 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35135 #: ../src/guestfs.pod:949
35137 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
35138 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
35143 #: ../src/guestfs.pod:953
35146 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35149 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35153 #: ../src/guestfs.pod:955
35155 "Note that libguestfs also calls qemu with the -help and -version options in "
35156 "order to determine features."
35160 #: ../src/guestfs.pod:958
35162 "Wrappers can also be used to edit the options passed to qemu. In the "
35163 "following example, the C<-machine ...> option (C<-machine> and the following "
35164 "argument) are removed from the command line and replaced with C<-machine pc,"
35165 "accel=tcg>. The while loop iterates over the options until it finds the "
35166 "right one to remove, putting the remaining options into the C<args> array."
35170 #: ../src/guestfs.pod:965
35173 #| " #!/usr/bin/guestfish -f\n"
35179 " #!/usr/bin/guestfish -f\n"
35183 #: ../src/guestfs.pod:967
35187 " while [ $# -gt 0 ]; do\n"
35188 " case \"$1\" in\n"
35192 " args[i]=\"$1\"\n"
35201 #: ../src/guestfs.pod:979
35204 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35209 #: ../src/guestfs.pod:981
35210 msgid "ATTACHING TO RUNNING DAEMONS"
35211 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
35214 #: ../src/guestfs.pod:983
35216 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35217 "babies. Use with caution."
35221 #: ../src/guestfs.pod:986
35223 "I<Note (2):> This section explains how to attach to a running daemon from a "
35224 "low level perspective. For most users, simply using virt tools such as "
35225 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35229 #: ../src/guestfs.pod:990
35230 msgid "Using guestfs_set_attach_method"
35231 msgstr "За допомогою guestfs_set_attach_method"
35234 #: ../src/guestfs.pod:992
35236 "By calling L</guestfs_set_attach_method> you can change how the library "
35237 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
35238 "ARCHITECTURE> for some background)."
35242 #: ../src/guestfs.pod:996
35244 "The normal attach method is C<appliance>, where a small appliance is created "
35245 "containing the daemon, and then the library connects to this."
35249 #: ../src/guestfs.pod:999
35251 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35252 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35253 "daemon over the Unix domain socket."
35257 #: ../src/guestfs.pod:1003
35259 "The normal use for this is to connect to a running virtual machine that "
35260 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35261 "files inside the live virtual machine."
35265 #: ../src/guestfs.pod:1007
35266 msgid "Using guestfs_add_domain with live flag"
35267 msgstr "За допомогою guestfs_add_domain з прапорцем live"
35270 #: ../src/guestfs.pod:1009
35272 "L</guestfs_add_domain> provides some help for getting the correct attach "
35273 "method. If you pass the C<live> option to this function, then (if the "
35274 "virtual machine is running) it will examine the libvirt XML looking for a "
35275 "virtio-serial channel to connect to:"
35279 #: ../src/guestfs.pod:1015
35286 " <channel type='unix'>\n"
35287 " <source mode='bind' path='/path/to/socket'/>\n"
35288 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35299 " <channel type='unix'>\n"
35300 " <source mode='bind' path='/path/to/socket'/>\n"
35301 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35309 #: ../src/guestfs.pod:1027
35311 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
35312 "method to C<unix:/path/to/socket>."
35316 #: ../src/guestfs.pod:1030
35318 "Some of the libguestfs tools (including guestfish) support a I<--live> "
35319 "option which is passed through to L</guestfs_add_domain> thus allowing you "
35320 "to attach to and modify live virtual machines."
35324 #: ../src/guestfs.pod:1034
35326 "The virtual machine needs to have been set up beforehand so that it has the "
35327 "virtio-serial channel and so that guestfsd is running inside it."
35331 #: ../src/guestfs.pod:1038
35332 msgid "ABI GUARANTEE"
35333 msgstr "ГАРАНТІЯ ЩОДО ABI"
35336 #: ../src/guestfs.pod:1040
35338 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
35339 "actions as outlined in this section. Although we will deprecate some "
35340 "actions, for example if they get replaced by newer calls, we will keep the "
35341 "old actions forever. This allows you the developer to program in confidence "
35342 "against the libguestfs API."
35346 #: ../src/guestfs.pod:1046
35347 msgid "BLOCK DEVICE NAMING"
35348 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
35351 #: ../src/guestfs.pod:1048
35353 "In the kernel there is now quite a profusion of schemata for naming block "
35354 "devices (in this context, by I<block device> I mean a physical or virtual "
35355 "hard drive). The original Linux IDE driver used names starting with C</dev/"
35356 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
35357 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
35358 "for the old IDE driver (particularly for SATA devices) those devices also "
35359 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
35360 "paravirtualized drivers. This has created several different naming systems, "
35361 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
35365 #: ../src/guestfs.pod:1060
35367 "As discussed above, libguestfs uses a qemu appliance running an embedded "
35368 "Linux kernel to access block devices. We can run a variety of appliances "
35369 "based on a variety of Linux kernels."
35373 #: ../src/guestfs.pod:1064
35375 "This causes a problem for libguestfs because many API calls use device or "
35376 "partition names. Working scripts and the recipe (example) scripts that we "
35377 "make available over the internet could fail if the naming scheme changes."
35381 #: ../src/guestfs.pod:1069
35383 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
35384 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
35385 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
35386 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
35390 #: ../src/guestfs.pod:1075
35392 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
35393 "L</guestfs_list_partitions> and similar calls return the true names of the "
35394 "devices and partitions as known to the appliance."
35398 #: ../src/guestfs.pod:1080
35399 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
35403 #: ../src/guestfs.pod:1082
35405 "Usually this translation is transparent. However in some (very rare) cases "
35406 "you may need to know the exact algorithm. Such cases include where you use "
35407 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
35408 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
35412 #: ../src/guestfs.pod:1088
35414 "The algorithm is applied only to I<parameters> which are known to be either "
35415 "device or partition names. Return values from functions such as L</"
35416 "guestfs_list_devices> are never changed."
35420 #: ../src/guestfs.pod:1096
35421 msgid "Is the string a parameter which is a device or partition name?"
35425 #: ../src/guestfs.pod:1100
35426 msgid "Does the string begin with C</dev/sd>?"
35427 msgstr "Чи починається рядок з C</dev/sd>?"
35430 #: ../src/guestfs.pod:1104
35432 "Does the named device exist? If so, we use that device. However if I<not> "
35433 "then we continue with this algorithm."
35437 #: ../src/guestfs.pod:1109
35438 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
35442 #: ../src/guestfs.pod:1111
35443 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
35447 #: ../src/guestfs.pod:1113
35448 msgid "If that named device exists, use it. If not, continue."
35452 #: ../src/guestfs.pod:1117
35453 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
35457 #: ../src/guestfs.pod:1119
35458 msgid "If that named device exists, use it. If not, return an error."
35462 #: ../src/guestfs.pod:1123
35463 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
35467 #: ../src/guestfs.pod:1125
35469 "Although the standard naming scheme and automatic translation is useful for "
35470 "simple programs and guestfish scripts, for larger programs it is best not to "
35471 "rely on this mechanism."
35475 #: ../src/guestfs.pod:1129
35477 "Where possible for maximum future portability programs using libguestfs "
35478 "should use these future-proof techniques:"
35482 #: ../src/guestfs.pod:1136
35484 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
35485 "device names, and then use those names directly."
35489 #: ../src/guestfs.pod:1139
35491 "Since those device names exist by definition, they will never be translated."
35495 #: ../src/guestfs.pod:1144
35497 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
35498 "filesystem labels."
35502 #: ../src/guestfs.pod:1149
35507 #: ../src/guestfs.pod:1151
35509 "This section discusses security implications of using libguestfs, "
35510 "particularly with untrusted or malicious guests or disk images."
35514 #: ../src/guestfs.pod:1154
35515 msgid "GENERAL SECURITY CONSIDERATIONS"
35516 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
35519 #: ../src/guestfs.pod:1156
35521 "Be careful with any files or data that you download from a guest (by "
35522 "\"download\" we mean not just the L</guestfs_download> command but any "
35523 "command that reads files, filenames, directories or anything else from a "
35524 "disk image). An attacker could manipulate the data to fool your program "
35525 "into doing the wrong thing. Consider cases such as:"
35529 #: ../src/guestfs.pod:1166
35530 msgid "the data (file etc) not being present"
35534 #: ../src/guestfs.pod:1170
35535 msgid "being present but empty"
35539 #: ../src/guestfs.pod:1174
35540 msgid "being much larger than normal"
35544 #: ../src/guestfs.pod:1178
35545 msgid "containing arbitrary 8 bit data"
35549 #: ../src/guestfs.pod:1182
35550 msgid "being in an unexpected character encoding"
35554 #: ../src/guestfs.pod:1186
35555 msgid "containing homoglyphs."
35559 #: ../src/guestfs.pod:1190
35560 msgid "SECURITY OF MOUNTING FILESYSTEMS"
35561 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
35564 #: ../src/guestfs.pod:1192
35566 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
35567 "(VFS) module can sometimes be escalated into exploits by deliberately "
35568 "creating a malicious, malformed filesystem. These exploits are very severe "
35569 "for two reasons. Firstly there are very many filesystem drivers in the "
35570 "kernel, and many of them are infrequently used and not much developer "
35571 "attention has been paid to the code. Linux userspace helps potential "
35572 "crackers by detecting the filesystem type and automatically choosing the "
35573 "right VFS driver, even if that filesystem type is obscure or unexpected for "
35574 "the administrator. Secondly, a kernel-level exploit is like a local root "
35575 "exploit (worse in some ways), giving immediate and total access to the "
35576 "system right down to the hardware level."
35580 #: ../src/guestfs.pod:1205
35582 "That explains why you should never mount a filesystem from an untrusted "
35583 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
35584 "inside a qemu virtual machine, usually running as a non-root user. The "
35585 "attacker would need to write a filesystem which first exploited the kernel, "
35586 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
35587 "the libguestfs protocol, and finally to be as serious as the host kernel "
35588 "exploit it would need to escalate its privileges to root. This multi-step "
35589 "escalation, performed by a static piece of data, is thought to be extremely "
35590 "hard to do, although we never say 'never' about security issues."
35594 #: ../src/guestfs.pod:1216
35596 "In any case callers can reduce the attack surface by forcing the filesystem "
35597 "type when mounting (use L</guestfs_mount_vfs>)."
35601 #: ../src/guestfs.pod:1219
35602 msgid "PROTOCOL SECURITY"
35603 msgstr "ЗАХИСТ ПРОТОКОЛУ"
35606 #: ../src/guestfs.pod:1221
35608 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
35609 "defined upper message size. However a program that uses libguestfs must "
35610 "also take care - for example you can write a program that downloads a binary "
35611 "from a disk image and executes it locally, and no amount of protocol "
35612 "security will save you from the consequences."
35616 #: ../src/guestfs.pod:1227
35617 msgid "INSPECTION SECURITY"
35621 #: ../src/guestfs.pod:1229
35623 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
35624 "directly from the guest, and these could contain any 8 bit data. Callers "
35625 "should be careful to escape these before printing them to a structured file "
35626 "(for example, use HTML escaping if creating a web page)."
35630 #: ../src/guestfs.pod:1235
35632 "Guest configuration may be altered in unusual ways by the administrator of "
35633 "the virtual machine, and may not reflect reality (particularly for untrusted "
35634 "or actively malicious guests). For example we parse the hostname from "
35635 "configuration files like C</etc/sysconfig/network> that we find in the "
35636 "guest, but the guest administrator can easily manipulate these files to "
35637 "provide the wrong hostname."
35641 #: ../src/guestfs.pod:1243
35643 "The inspection API parses guest configuration using two external libraries: "
35644 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
35645 "designed to be robust in the face of malicious data, although denial of "
35646 "service attacks are still possible, for example with oversized configuration "
35651 #: ../src/guestfs.pod:1249
35652 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
35653 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
35656 #: ../src/guestfs.pod:1251
35658 "Be very cautious about running commands from the guest. By running a "
35659 "command in the guest, you are giving CPU time to a binary that you do not "
35660 "control, under the same user account as the library, albeit wrapped in qemu "
35661 "virtualization. More information and alternatives can be found in the "
35662 "section L</RUNNING COMMANDS>."
35666 #: ../src/guestfs.pod:1257
35667 msgid "CVE-2010-3851"
35668 msgstr "CVE-2010-3851"
35671 #: ../src/guestfs.pod:1259
35672 msgid "https://bugzilla.redhat.com/642934"
35673 msgstr "https://bugzilla.redhat.com/642934"
35676 #: ../src/guestfs.pod:1261
35678 "This security bug concerns the automatic disk format detection that qemu "
35679 "does on disk images."
35683 #: ../src/guestfs.pod:1264
35685 "A raw disk image is just the raw bytes, there is no header. Other disk "
35686 "images like qcow2 contain a special header. Qemu deals with this by looking "
35687 "for one of the known headers, and if none is found then assuming the disk "
35688 "image must be raw."
35692 #: ../src/guestfs.pod:1269
35694 "This allows a guest which has been given a raw disk image to write some "
35695 "other header. At next boot (or when the disk image is accessed by "
35696 "libguestfs) qemu would do autodetection and think the disk image format was, "
35697 "say, qcow2 based on the header written by the guest."
35701 #: ../src/guestfs.pod:1274
35703 "This in itself would not be a problem, but qcow2 offers many features, one "
35704 "of which is to allow a disk image to refer to another image (called the "
35705 "\"backing disk\"). It does this by placing the path to the backing disk "
35706 "into the qcow2 header. This path is not validated and could point to any "
35707 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
35708 "\"holes\" in the qcow2 disk image, which of course is completely under the "
35709 "control of the attacker."
35713 #: ../src/guestfs.pod:1282
35715 "In libguestfs this is rather hard to exploit except under two circumstances:"
35719 #: ../src/guestfs.pod:1289
35720 msgid "You have enabled the network or have opened the disk in write mode."
35724 #: ../src/guestfs.pod:1293
35726 "You are also running untrusted code from the guest (see L</RUNNING "
35731 #: ../src/guestfs.pod:1298
35733 "The way to avoid this is to specify the expected disk format when adding "
35734 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
35735 "should always do this if the disk is raw format, and it's a good idea for "
35740 #: ../src/guestfs.pod:1303
35742 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
35743 "format is fetched from libvirt and passed through."
35747 #: ../src/guestfs.pod:1306
35749 "For libguestfs tools, use the I<--format> command line parameter as "
35754 #: ../src/guestfs.pod:1309
35755 msgid "CONNECTION MANAGEMENT"
35756 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
35759 #: ../src/guestfs.pod:1311
35760 msgid "guestfs_h *"
35761 msgstr "guestfs_h *"
35764 #: ../src/guestfs.pod:1313
35766 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
35767 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
35768 "handle and release all resources used."
35772 #: ../src/guestfs.pod:1317
35774 "For information on using multiple handles and threads, see the section L</"
35775 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
35779 #: ../src/guestfs.pod:1320
35780 msgid "guestfs_create"
35781 msgstr "guestfs_create"
35784 #: ../src/guestfs.pod:1322
35787 " guestfs_h *guestfs_create (void);\n"
35790 " guestfs_h *guestfs_create (void);\n"
35794 #: ../src/guestfs.pod:1324
35795 msgid "Create a connection handle."
35796 msgstr "Створити дескриптор з’єднання."
35799 #: ../src/guestfs.pod:1326
35801 "On success this returns a non-NULL pointer to a handle. On error it returns "
35806 #: ../src/guestfs.pod:1329
35808 "You have to \"configure\" the handle after creating it. This includes "
35809 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
35810 "handle at least once."
35814 #: ../src/guestfs.pod:1333
35815 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35819 #: ../src/guestfs.pod:1335
35821 "You may also want to configure error handling for the handle. See the L</"
35822 "ERROR HANDLING> section below."
35826 #: ../src/guestfs.pod:1338
35827 msgid "guestfs_close"
35828 msgstr "guestfs_close"
35831 #: ../src/guestfs.pod:1340
35834 " void guestfs_close (guestfs_h *g);\n"
35837 " void guestfs_close (guestfs_h *g);\n"
35841 #: ../src/guestfs.pod:1342
35842 msgid "This closes the connection handle and frees up all resources used."
35846 #: ../src/guestfs.pod:1344
35848 "If autosync was set on the handle and the handle was launched, then this "
35849 "implicitly calls various functions to unmount filesystems and sync the "
35850 "disk. See L</guestfs_set_autosync> for more details."
35854 #: ../src/guestfs.pod:1348
35855 msgid "If a close callback was set on the handle, then it is called."
35859 #: ../src/guestfs.pod:1350
35860 msgid "ERROR HANDLING"
35861 msgstr "ОБРОБКА ПОМИЛОК"
35864 #: ../src/guestfs.pod:1352
35866 "API functions can return errors. For example, almost all functions that "
35867 "return C<int> will return C<-1> to indicate an error."
35871 #: ../src/guestfs.pod:1355
35873 "Additional information is available for errors: an error message string and "
35874 "optionally an error number (errno) if the thing that failed was a system "
35879 #: ../src/guestfs.pod:1359
35881 "You can get at the additional information about the last error on the handle "
35882 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35883 "up an error handler with L</guestfs_set_error_handler>."
35887 #: ../src/guestfs.pod:1364
35889 "When the handle is created, a default error handler is installed which "
35890 "prints the error message string to C<stderr>. For small short-running "
35891 "command line programs it is sufficient to do:"
35895 #: ../src/guestfs.pod:1368
35898 " if (guestfs_launch (g) == -1)\n"
35899 " exit (EXIT_FAILURE);\n"
35902 " if (guestfs_launch (g) == -1)\n"
35903 " exit (EXIT_FAILURE);\n"
35907 #: ../src/guestfs.pod:1371
35909 "since the default error handler will ensure that an error message has been "
35910 "printed to C<stderr> before the program exits."
35914 #: ../src/guestfs.pod:1374
35916 "For other programs the caller will almost certainly want to install an "
35917 "alternate error handler or do error handling in-line like this:"
35921 #: ../src/guestfs.pod:1377
35924 " /* This disables the default behaviour of printing errors\n"
35926 " guestfs_set_error_handler (g, NULL, NULL);\n"
35931 #: ../src/guestfs.pod:1381
35934 #| " if (guestfs_launch (g) == -1) {\n"
35935 #| " /* Examine the error message and print it etc. */\n"
35936 #| " char *msg = guestfs_last_error (g);\n"
35937 #| " int errnum = guestfs_last_errno (g);\n"
35938 #| " fprintf (stderr, \"%s\\n\", msg);\n"
35943 " if (guestfs_launch (g) == -1) {\n"
35944 " /* Examine the error message and print it etc. */\n"
35945 " char *msg = guestfs_last_error (g);\n"
35946 " int errnum = guestfs_last_errno (g);\n"
35947 " fprintf (stderr, \"%s\", msg);\n"
35948 " if (errnum != 0)\n"
35949 " fprintf (stderr, \": %s\", strerror (errnum));\n"
35950 " fprintf (stderr, \"\\n\");\n"
35955 " if (guestfs_launch (g) == -1) {\n"
35956 " /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
35957 " char *msg = guestfs_last_error (g);\n"
35958 " int errnum = guestfs_last_errno (g);\n"
35959 " fprintf (stderr, \"%s\\n\", msg);\n"
35965 #: ../src/guestfs.pod:1392
35967 "Out of memory errors are handled differently. The default action is to call "
35968 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
35969 "guestfs_set_out_of_memory_handler>."
35973 #: ../src/guestfs.pod:1396
35975 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35976 "because there is no handle if this happens there is no way to get additional "
35977 "error information. However L</guestfs_create> is supposed to be a "
35978 "lightweight operation which can only fail because of insufficient memory (it "
35979 "returns NULL in this case)."
35983 #: ../src/guestfs.pod:1402
35984 msgid "guestfs_last_error"
35985 msgstr "guestfs_last_error"
35988 #: ../src/guestfs.pod:1404
35991 " const char *guestfs_last_error (guestfs_h *g);\n"
35994 " const char *guestfs_last_error (guestfs_h *g);\n"
35998 #: ../src/guestfs.pod:1406
36000 "This returns the last error message that happened on C<g>. If there has not "
36001 "been an error since the handle was created, then this returns C<NULL>."
36005 #: ../src/guestfs.pod:1410
36007 "The lifetime of the returned string is until the next error occurs, or L</"
36008 "guestfs_close> is called."
36012 #: ../src/guestfs.pod:1413
36013 msgid "guestfs_last_errno"
36014 msgstr "guestfs_last_errno"
36017 #: ../src/guestfs.pod:1415
36020 " int guestfs_last_errno (guestfs_h *g);\n"
36023 " int guestfs_last_errno (guestfs_h *g);\n"
36027 #: ../src/guestfs.pod:1417
36028 msgid "This returns the last error number (errno) that happened on C<g>."
36032 #: ../src/guestfs.pod:1419
36033 msgid "If successful, an errno integer not equal to zero is returned."
36037 #: ../src/guestfs.pod:1421
36039 "If no error, this returns 0. This call can return 0 in three situations:"
36043 #: ../src/guestfs.pod:1428
36044 msgid "There has not been any error on the handle."
36048 #: ../src/guestfs.pod:1432
36050 "There has been an error but the errno was meaningless. This corresponds to "
36051 "the case where the error did not come from a failed system call, but for "
36052 "some other reason."
36056 #: ../src/guestfs.pod:1438
36058 "There was an error from a failed system call, but for some reason the errno "
36059 "was not captured and returned. This usually indicates a bug in libguestfs."
36063 #: ../src/guestfs.pod:1444
36065 "Libguestfs tries to convert the errno from inside the applicance into a "
36066 "corresponding errno for the caller (not entirely trivial: the appliance "
36067 "might be running a completely different operating system from the library "
36068 "and error numbers are not standardized across Un*xen). If this could not be "
36069 "done, then the error is translated to C<EINVAL>. In practice this should "
36070 "only happen in very rare circumstances."
36074 #: ../src/guestfs.pod:1452
36075 msgid "guestfs_set_error_handler"
36076 msgstr "guestfs_set_error_handler"
36079 #: ../src/guestfs.pod:1454
36082 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36084 " const char *msg);\n"
36085 " void guestfs_set_error_handler (guestfs_h *g,\n"
36086 " guestfs_error_handler_cb cb,\n"
36087 " void *opaque);\n"
36090 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36092 " const char *msg);\n"
36093 " void guestfs_set_error_handler (guestfs_h *g,\n"
36094 " guestfs_error_handler_cb cb,\n"
36095 " void *opaque);\n"
36099 #: ../src/guestfs.pod:1461
36101 "The callback C<cb> will be called if there is an error. The parameters "
36102 "passed to the callback are an opaque data pointer and the error message "
36107 #: ../src/guestfs.pod:1465
36109 "C<errno> is not passed to the callback. To get that the callback must call "
36110 "L</guestfs_last_errno>."
36114 #: ../src/guestfs.pod:1468
36116 "Note that the message string C<msg> is freed as soon as the callback "
36117 "function returns, so if you want to stash it somewhere you must make your "
36122 #: ../src/guestfs.pod:1472
36123 msgid "The default handler prints messages on C<stderr>."
36127 #: ../src/guestfs.pod:1474
36128 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
36132 #: ../src/guestfs.pod:1476
36133 msgid "guestfs_get_error_handler"
36134 msgstr "guestfs_get_error_handler"
36137 #: ../src/guestfs.pod:1478
36140 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36141 " void **opaque_rtn);\n"
36144 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36145 " void **opaque_rtn);\n"
36149 #: ../src/guestfs.pod:1481
36150 msgid "Returns the current error handler callback."
36154 #: ../src/guestfs.pod:1483
36155 msgid "guestfs_set_out_of_memory_handler"
36156 msgstr "guestfs_set_out_of_memory_handler"
36159 #: ../src/guestfs.pod:1485
36162 #| " typedef void (*guestfs_abort_cb) (void);\n"
36163 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36164 #| " guestfs_abort_cb);\n"
36167 " typedef void (*guestfs_abort_cb) (void);\n"
36168 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36169 " guestfs_abort_cb);\n"
36172 " typedef void (*guestfs_abort_cb) (void);\n"
36173 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36174 " guestfs_abort_cb);\n"
36178 #: ../src/guestfs.pod:1489
36180 "The callback C<cb> will be called if there is an out of memory situation. "
36181 "I<Note this callback must not return>."
36185 #: ../src/guestfs.pod:1492
36186 msgid "The default is to call L<abort(3)>."
36190 #: ../src/guestfs.pod:1494
36192 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
36196 #: ../src/guestfs.pod:1497
36197 msgid "guestfs_get_out_of_memory_handler"
36198 msgstr "guestfs_get_out_of_memory_handler"
36201 #: ../src/guestfs.pod:1499
36204 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36207 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36211 #: ../src/guestfs.pod:1501
36212 msgid "This returns the current out of memory handler."
36216 #: ../src/guestfs.pod:1503
36218 msgstr "ВИКЛИКИ API"
36221 #: ../src/guestfs.pod:1507
36226 #: ../src/guestfs.pod:1509
36231 #: ../src/guestfs.pod:1511
36232 msgid "AVAILABILITY"
36233 msgstr "ДОСТУПНІСТЬ"
36236 #: ../src/guestfs.pod:1513
36237 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
36238 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
36241 #: ../src/guestfs.pod:1515
36243 "Using L</guestfs_available> you can test availability of the following "
36244 "groups of functions. This test queries the appliance to see if the "
36245 "appliance you are currently using supports the functionality."
36249 #: ../src/guestfs.pod:1520
36250 msgid "@AVAILABILITY@"
36251 msgstr "@AVAILABILITY@"
36254 #: ../src/guestfs.pod:1522
36255 msgid "GUESTFISH supported COMMAND"
36259 #: ../src/guestfs.pod:1524
36261 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36262 "prints out the available groups and whether they are supported by this build "
36263 "of libguestfs. Note however that you have to do C<run> first."
36267 #: ../src/guestfs.pod:1529
36268 msgid "SINGLE CALLS AT COMPILE TIME"
36272 #: ../src/guestfs.pod:1531
36274 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36275 "function, such as:"
36279 #: ../src/guestfs.pod:1534
36282 " #define LIBGUESTFS_HAVE_DD 1\n"
36285 " #define LIBGUESTFS_HAVE_DD 1\n"
36289 #: ../src/guestfs.pod:1536
36290 msgid "if L</guestfs_dd> is available."
36294 #: ../src/guestfs.pod:1538
36296 "Before version 1.5.8, if you needed to test whether a single libguestfs "
36297 "function is available at compile time, we recommended using build tools such "
36298 "as autoconf or cmake. For example in autotools you could use:"
36302 #: ../src/guestfs.pod:1543
36305 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36306 " AC_CHECK_FUNCS([guestfs_dd])\n"
36309 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36310 " AC_CHECK_FUNCS([guestfs_dd])\n"
36314 #: ../src/guestfs.pod:1546
36316 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
36321 #: ../src/guestfs.pod:1549
36322 msgid "SINGLE CALLS AT RUN TIME"
36326 #: ../src/guestfs.pod:1551
36328 "Testing at compile time doesn't guarantee that a function really exists in "
36329 "the library. The reason is that you might be dynamically linked against a "
36330 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
36331 "This situation unfortunately results in a segmentation fault, which is a "
36332 "shortcoming of the C dynamic linking system itself."
36336 #: ../src/guestfs.pod:1558
36338 "You can use L<dlopen(3)> to test if a function is available at run time, as "
36339 "in this example program (note that you still need the compile time check as "
36344 #: ../src/guestfs.pod:1562
36347 " #include <stdio.h>\n"
36348 " #include <stdlib.h>\n"
36349 " #include <unistd.h>\n"
36350 " #include <dlfcn.h>\n"
36351 " #include <guestfs.h>\n"
36354 " #include <stdio.h>\n"
36355 " #include <stdlib.h>\n"
36356 " #include <unistd.h>\n"
36357 " #include <dlfcn.h>\n"
36358 " #include <guestfs.h>\n"
36362 #: ../src/guestfs.pod:1568
36367 " #ifdef LIBGUESTFS_HAVE_DD\n"
36369 " int has_function;\n"
36374 " #ifdef LIBGUESTFS_HAVE_DD\n"
36376 " int has_function;\n"
36380 #: ../src/guestfs.pod:1574
36383 " /* Test if the function guestfs_dd is really available. */\n"
36384 " dl = dlopen (NULL, RTLD_LAZY);\n"
36386 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
36387 " exit (EXIT_FAILURE);\n"
36389 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
36395 #: ../src/guestfs.pod:1583
36398 " if (!has_function)\n"
36399 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
36401 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
36402 " /* Now it's safe to call\n"
36403 " guestfs_dd (g, \"foo\", \"bar\");\n"
36407 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
36414 #: ../src/guestfs.pod:1596
36416 "You may think the above is an awful lot of hassle, and it is. There are "
36417 "other ways outside of the C linking system to ensure that this kind of "
36418 "incompatibility never arises, such as using package versioning:"
36422 #: ../src/guestfs.pod:1601
36425 " Requires: libguestfs >= 1.0.80\n"
36430 #: ../src/guestfs.pod:1603
36431 msgid "CALLS WITH OPTIONAL ARGUMENTS"
36435 #: ../src/guestfs.pod:1605
36437 "A recent feature of the API is the introduction of calls which take optional "
36438 "arguments. In C these are declared 3 ways. The main way is as a call which "
36439 "takes variable arguments (ie. C<...>), as in this example:"
36443 #: ../src/guestfs.pod:1610
36446 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36449 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36453 #: ../src/guestfs.pod:1612
36455 "Call this with a list of optional arguments, terminated by C<-1>. So to "
36456 "call with no optional arguments specified:"
36460 #: ../src/guestfs.pod:1615
36463 " guestfs_add_drive_opts (g, filename, -1);\n"
36466 " guestfs_add_drive_opts (g, filename, -1);\n"
36470 #: ../src/guestfs.pod:1617
36471 msgid "With a single optional argument:"
36475 #: ../src/guestfs.pod:1619
36478 " guestfs_add_drive_opts (g, filename,\n"
36479 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36483 " guestfs_add_drive_opts (g, filename,\n"
36484 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36489 #: ../src/guestfs.pod:1623
36494 #: ../src/guestfs.pod:1625
36497 " guestfs_add_drive_opts (g, filename,\n"
36498 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36499 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36503 " guestfs_add_drive_opts (g, filename,\n"
36504 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36505 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36510 #: ../src/guestfs.pod:1630
36512 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
36517 #: ../src/guestfs.pod:1633
36518 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
36522 #: ../src/guestfs.pod:1635
36524 "The second variant has the same name with the suffix C<_va>, which works the "
36525 "same way but takes a C<va_list>. See the C manual for details. For the "
36526 "example function, this is declared:"
36530 #: ../src/guestfs.pod:1639
36533 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36534 " va_list args);\n"
36537 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36538 " va_list args);\n"
36542 #: ../src/guestfs.pod:1642
36543 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
36547 #: ../src/guestfs.pod:1644
36549 "The third variant is useful where you need to construct these calls. You "
36550 "pass in a structure where you fill in the optional fields. The structure "
36551 "has a bitmask as the first element which you must set to indicate which "
36552 "fields you have filled in. For our example function the structure and call "
36557 #: ../src/guestfs.pod:1650
36560 " struct guestfs_add_drive_opts_argv {\n"
36561 " uint64_t bitmask;\n"
36563 " const char *format;\n"
36566 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36567 " const struct guestfs_add_drive_opts_argv *optargs);\n"
36570 " struct guestfs_add_drive_opts_argv {\n"
36571 " uint64_t bitmask;\n"
36573 " const char *format;\n"
36576 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36577 " const struct guestfs_add_drive_opts_argv *optargs);\n"
36581 #: ../src/guestfs.pod:1659
36582 msgid "You could call it like this:"
36586 #: ../src/guestfs.pod:1661
36589 " struct guestfs_add_drive_opts_argv optargs = {\n"
36590 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36591 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36592 " .readonly = 1,\n"
36593 " .format = \"qcow2\"\n"
36597 " struct guestfs_add_drive_opts_argv optargs = {\n"
36598 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36599 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36600 " .readonly = 1,\n"
36601 " .format = \"qcow2\"\n"
36606 #: ../src/guestfs.pod:1668
36609 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36612 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36616 #: ../src/guestfs.pod:1676
36617 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
36621 #: ../src/guestfs.pod:1681
36622 msgid "You do not need to fill in all fields of the structure."
36626 #: ../src/guestfs.pod:1685
36628 "There must be a one-to-one correspondence between fields of the structure "
36629 "that are filled in, and bits set in the bitmask."
36633 #: ../src/guestfs.pod:1690
36634 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
36638 #: ../src/guestfs.pod:1692
36640 "In other languages, optional arguments are expressed in the way that is "
36641 "natural for that language. We refer you to the language-specific "
36642 "documentation for more details on that."
36646 #: ../src/guestfs.pod:1696
36647 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
36651 #: ../src/guestfs.pod:1698
36652 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
36656 #: ../src/guestfs.pod:1700
36658 "B<Note:> This section documents the generic event mechanism introduced in "
36659 "libguestfs 1.10, which you should use in new code if possible. The old "
36660 "functions C<guestfs_set_log_message_callback>, "
36661 "C<guestfs_set_subprocess_quit_callback>, "
36662 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
36663 "C<guestfs_set_progress_callback> are no longer documented in this manual "
36664 "page. Because of the ABI guarantee, the old functions continue to work."
36668 #: ../src/guestfs.pod:1709
36670 "Handles generate events when certain things happen, such as log messages "
36671 "being generated, progress messages during long-running operations, or the "
36672 "handle being closed. The API calls described below let you register a "
36673 "callback to be called when events happen. You can register multiple "
36674 "callbacks (for the same, different or overlapping sets of events), and "
36675 "individually remove callbacks. If callbacks are not removed, then they "
36676 "remain in force until the handle is closed."
36680 #: ../src/guestfs.pod:1717
36682 "In the current implementation, events are only generated synchronously: that "
36683 "means that events (and hence callbacks) can only happen while you are in the "
36684 "middle of making another libguestfs call. The callback is called in the "
36689 #: ../src/guestfs.pod:1722
36691 "Events may contain a payload, usually nothing (void), an array of 64 bit "
36692 "unsigned integers, or a message buffer. Payloads are discussed later on."
36696 #: ../src/guestfs.pod:1726
36697 msgid "CLASSES OF EVENTS"
36701 #: ../src/guestfs.pod:1730
36702 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
36706 #: ../src/guestfs.pod:1733
36708 "The callback function will be called while the handle is being closed "
36709 "(synchronously from L</guestfs_close>)."
36713 #: ../src/guestfs.pod:1736
36715 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
36716 "handles that are open when the program exits. This means that this callback "
36717 "might be called indirectly from L<exit(3)>, which can cause unexpected "
36718 "problems in higher-level languages (eg. if your HLL interpreter has already "
36719 "been cleaned up by the time this is called, and if your callback then jumps "
36720 "into some HLL function)."
36724 #: ../src/guestfs.pod:1743
36726 "If no callback is registered: the handle is closed without any callback "
36731 #: ../src/guestfs.pod:1746
36732 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
36736 #: ../src/guestfs.pod:1749
36738 "The callback function will be called when the child process quits, either "
36739 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
36740 "corresponds to a transition from any state to the CONFIG state)."
36744 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
36745 msgid "If no callback is registered: the event is ignored."
36749 #: ../src/guestfs.pod:1755
36750 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
36754 #: ../src/guestfs.pod:1758
36756 "The callback function will be called when the child process becomes ready "
36757 "first time after it has been launched. (This corresponds to a transition "
36758 "from LAUNCHING to the READY state)."
36762 #: ../src/guestfs.pod:1764
36763 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
36767 #: ../src/guestfs.pod:1767
36769 "Some long-running operations can generate progress messages. If this "
36770 "callback is registered, then it will be called each time a progress message "
36771 "is generated (usually two seconds after the operation started, and three "
36772 "times per second thereafter until it completes, although the frequency may "
36773 "change in future versions)."
36777 #: ../src/guestfs.pod:1773
36779 "The callback receives in the payload four unsigned 64 bit numbers which are "
36780 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
36784 #: ../src/guestfs.pod:1776
36786 "The units of C<total> are not defined, although for some operations C<total> "
36787 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36788 "or megabytes), and C<position> may be the portion which has been transferred."
36792 #: ../src/guestfs.pod:1781
36793 msgid "The only defined and stable parts of the API are:"
36797 #: ../src/guestfs.pod:1787
36799 "The callback can display to the user some type of progress bar or indicator "
36800 "which shows the ratio of C<position>:C<total>."
36804 #: ../src/guestfs.pod:1792
36805 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36809 #: ../src/guestfs.pod:1796
36811 "If any progress notification is sent during a call, then a final progress "
36812 "notification is always sent when C<position> = C<total> (I<unless> the call "
36813 "fails with an error)."
36817 #: ../src/guestfs.pod:1800
36819 "This is to simplify caller code, so callers can easily set the progress "
36820 "indicator to \"100%\" at the end of the operation, without requiring special "
36821 "code to detect this case."
36825 #: ../src/guestfs.pod:1806
36827 "For some calls we are unable to estimate the progress of the call, but we "
36828 "can still generate progress messages to indicate activity. This is known as "
36829 "\"pulse mode\", and is directly supported by certain progress bar "
36830 "implementations (eg. GtkProgressBar)."
36834 #: ../src/guestfs.pod:1811
36836 "For these calls, zero or more progress messages are generated with "
36837 "C<position = 0> and C<total = 1>, followed by a final message with "
36838 "C<position = total = 1>."
36842 #: ../src/guestfs.pod:1815
36844 "As noted above, if the call fails with an error then the final message may "
36845 "not be generated."
36849 #: ../src/guestfs.pod:1820
36851 "The callback also receives the procedure number (C<proc_nr>) and serial "
36852 "number (C<serial>) of the call. These are only useful for debugging "
36853 "protocol issues, and the callback can normally ignore them. The callback "
36854 "may want to print these numbers in error messages or debugging messages."
36858 #: ../src/guestfs.pod:1826
36859 msgid "If no callback is registered: progress messages are discarded."
36863 #: ../src/guestfs.pod:1828
36864 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36868 #: ../src/guestfs.pod:1831
36870 "The callback function is called whenever a log message is generated by qemu, "
36871 "the appliance kernel, guestfsd (daemon), or utility programs."
36875 #: ../src/guestfs.pod:1834
36877 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
36878 "guestfs_launch>) then additional debug messages are generated."
36882 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
36884 "If no callback is registered: the messages are discarded unless the verbose "
36885 "flag is set in which case they are sent to stderr. You can override the "
36886 "printing of verbose messages to stderr by setting up a callback."
36890 #: ../src/guestfs.pod:1842
36891 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36895 #: ../src/guestfs.pod:1845
36897 "The callback function is called whenever a log message is generated by the "
36898 "library part of libguestfs."
36902 #: ../src/guestfs.pod:1848
36904 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36905 "messages are generated."
36909 #: ../src/guestfs.pod:1856
36910 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36914 #: ../src/guestfs.pod:1859
36916 "The callback function is called whenever a trace message is generated. This "
36917 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36921 #: ../src/guestfs.pod:1862
36923 "If no callback is registered: the messages are sent to stderr. You can "
36924 "override the printing of trace messages to stderr by setting up a callback."
36928 #: ../src/guestfs.pod:1866
36929 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
36933 #: ../src/guestfs.pod:1869
36935 "The callback function is called whenever a libguestfs function is entered."
36939 #: ../src/guestfs.pod:1872
36941 "The payload is a string which contains the name of the function that we are "
36942 "entering (not including C<guestfs_> prefix)."
36946 #: ../src/guestfs.pod:1875
36948 "Note that libguestfs functions can call themselves, so you may see many "
36949 "events from a single call. A few libguestfs functions do not generate this "
36954 #: ../src/guestfs.pod:1883
36955 msgid "guestfs_set_event_callback"
36959 #: ../src/guestfs.pod:1885
36962 " int guestfs_set_event_callback (guestfs_h *g,\n"
36963 " guestfs_event_callback cb,\n"
36964 " uint64_t event_bitmask,\n"
36966 " void *opaque);\n"
36971 #: ../src/guestfs.pod:1891
36973 "This function registers a callback (C<cb>) for all event classes in the "
36974 "C<event_bitmask>."
36978 #: ../src/guestfs.pod:1894
36980 "For example, to register for all log message events, you could call this "
36981 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
36982 "To register a single callback for all possible classes of events, use "
36983 "C<GUESTFS_EVENT_ALL>."
36987 #: ../src/guestfs.pod:1900
36988 msgid "C<flags> should always be passed as 0."
36992 #: ../src/guestfs.pod:1902
36994 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
36995 "it for any purpose."
36999 #: ../src/guestfs.pod:1905
37001 "The return value is the event handle (an integer) which you can use to "
37002 "delete the callback (see below)."
37006 #: ../src/guestfs.pod:1908
37008 "If there is an error, this function returns C<-1>, and sets the error in the "
37009 "handle in the usual way (see L</guestfs_last_error> etc.)"
37013 #: ../src/guestfs.pod:1911
37015 "Callbacks remain in effect until they are deleted, or until the handle is "
37020 #: ../src/guestfs.pod:1914
37022 "In the case where multiple callbacks are registered for a particular event "
37023 "class, all of the callbacks are called. The order in which multiple "
37024 "callbacks are called is not defined."
37028 #: ../src/guestfs.pod:1918
37029 msgid "guestfs_delete_event_callback"
37033 #: ../src/guestfs.pod:1920
37036 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37041 #: ../src/guestfs.pod:1922
37043 "Delete a callback that was previously registered. C<event_handle> should be "
37044 "the integer that was returned by a previous call to "
37045 "C<guestfs_set_event_callback> on the same handle."
37049 #: ../src/guestfs.pod:1926
37050 msgid "guestfs_event_callback"
37054 #: ../src/guestfs.pod:1928
37057 " typedef void (*guestfs_event_callback) (\n"
37060 " uint64_t event,\n"
37061 " int event_handle,\n"
37063 " const char *buf, size_t buf_len,\n"
37064 " const uint64_t *array, size_t array_len);\n"
37069 #: ../src/guestfs.pod:1937
37071 "This is the type of the event callback function that you have to provide."
37075 #: ../src/guestfs.pod:1940
37077 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37078 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37079 "handle, and C<flags> which in the current API you should ignore."
37083 #: ../src/guestfs.pod:1944
37085 "The remaining parameters contain the event payload (if any). Each event may "
37086 "contain a payload, which usually relates to the event class, but for future "
37087 "proofing your code should be written to handle any payload for any event "
37092 #: ../src/guestfs.pod:1949
37094 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37095 "there is no message buffer). Note that this message buffer can contain "
37096 "arbitrary 8 bit data, including NUL bytes."
37100 #: ../src/guestfs.pod:1953
37102 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
37103 "moment this is only used for progress messages."
37107 #: ../src/guestfs.pod:1956
37108 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37112 #: ../src/guestfs.pod:1958
37114 "One motivation for the generic event API was to allow GUI programs to "
37115 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
37116 "unconditionally to C<stderr>."
37120 #: ../src/guestfs.pod:1962
37122 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37123 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
37124 "messages are not events; you must capture error messages separately)."
37128 #: ../src/guestfs.pod:1967
37130 "Programs have to set up a callback to capture the classes of events of "
37135 #: ../src/guestfs.pod:1970
37139 " guestfs_set_event_callback\n"
37140 " (g, message_callback,\n"
37141 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37142 " GUESTFS_EVENT_TRACE,\n"
37143 " 0, NULL) == -1)\n"
37144 " if (eh == -1) {\n"
37145 " // handle error in the usual way\n"
37151 #: ../src/guestfs.pod:1980
37153 "The callback can then direct messages to the appropriate place. In this "
37154 "example, messages are directed to syslog:"
37158 #: ../src/guestfs.pod:1983
37162 " message_callback (\n"
37165 " uint64_t event,\n"
37166 " int event_handle,\n"
37168 " const char *buf, size_t buf_len,\n"
37169 " const uint64_t *array, size_t array_len)\n"
37171 " const int priority = LOG_USER|LOG_INFO;\n"
37172 " if (buf_len > 0)\n"
37173 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37179 #: ../src/guestfs.pod:1998
37180 msgid "CANCELLING LONG TRANSFERS"
37184 #: ../src/guestfs.pod:2000
37186 "Some operations can be cancelled by the caller while they are in progress. "
37187 "Currently only operations that involve uploading or downloading data can be "
37188 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37189 "parameters in the generator)."
37193 #: ../src/guestfs.pod:2005
37194 msgid "guestfs_user_cancel"
37198 #: ../src/guestfs.pod:2007
37201 " void guestfs_user_cancel (guestfs_h *g);\n"
37206 #: ../src/guestfs.pod:2009
37208 "C<guestfs_user_cancel> cancels the current upload or download operation."
37212 #: ../src/guestfs.pod:2012
37214 "Unlike most other libguestfs calls, this function is signal safe and thread "
37215 "safe. You can call it from a signal handler or from another thread, without "
37216 "needing to do any locking."
37220 #: ../src/guestfs.pod:2016
37222 "The transfer that was in progress (if there is one) will stop shortly "
37223 "afterwards, and will return an error. The errno (see L</"
37224 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
37225 "out if the operation was cancelled or failed because of another error."
37229 #: ../src/guestfs.pod:2022
37231 "No cleanup is performed: for example, if a file was being uploaded then "
37232 "after cancellation there may be a partially uploaded file. It is the "
37233 "caller's responsibility to clean up if necessary."
37237 #: ../src/guestfs.pod:2026
37238 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37242 #: ../src/guestfs.pod:2028
37244 "In an interactive text-based program, you might call it from a C<SIGINT> "
37245 "signal handler so that pressing C<^C> cancels the current operation. (You "
37246 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37247 "receive the C<^C> signal)."
37251 #: ../src/guestfs.pod:2033
37253 "In a graphical program, when the main thread is displaying a progress bar "
37254 "with a cancel button, wire up the cancel button to call this function."
37258 #: ../src/guestfs.pod:2037
37259 msgid "PRIVATE DATA AREA"
37263 #: ../src/guestfs.pod:2039
37265 "You can attach named pieces of private data to the libguestfs handle, fetch "
37266 "them by name, and walk over them, for the lifetime of the handle. This is "
37267 "called the private data area and is only available from the C API."
37271 #: ../src/guestfs.pod:2044
37272 msgid "To attach a named piece of data, use the following call:"
37276 #: ../src/guestfs.pod:2046
37279 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37282 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37286 #: ../src/guestfs.pod:2048
37288 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
37289 "pointer (which can be C<NULL>). Any previous item with the same key is "
37294 #: ../src/guestfs.pod:2052
37296 "You can use any C<key> you want, but your key should I<not> start with an "
37297 "underscore character. Keys beginning with an underscore character are "
37298 "reserved for internal libguestfs purposes (eg. for implementing language "
37299 "bindings). It is recommended that you prefix the key with some unique "
37300 "string to avoid collisions with other users."
37304 #: ../src/guestfs.pod:2058
37305 msgid "To retrieve the pointer, use:"
37309 #: ../src/guestfs.pod:2060
37312 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37315 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37319 #: ../src/guestfs.pod:2062
37321 "This function returns C<NULL> if either no data is found associated with "
37322 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
37327 #: ../src/guestfs.pod:2066
37329 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
37330 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
37331 "all. In particular, libguestfs does I<not> try to free the data when the "
37332 "handle is closed. If the data must be freed, then the caller must either "
37333 "free it before calling L</guestfs_close> or must set up a close callback to "
37334 "do it (see L</GUESTFS_EVENT_CLOSE>)."
37338 #: ../src/guestfs.pod:2073
37339 msgid "To walk over all entries, use these two functions:"
37343 #: ../src/guestfs.pod:2075
37346 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
37351 #: ../src/guestfs.pod:2077
37354 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
37359 #: ../src/guestfs.pod:2079
37361 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
37362 "not have any particular meaning -- keys are not returned in any defined "
37363 "order). A pointer to the key is returned in C<*key_rtn> and the "
37364 "corresponding data pointer is returned from the function. C<NULL> is "
37365 "returned if there are no keys stored in the handle."
37369 #: ../src/guestfs.pod:2085
37371 "C<guestfs_next_private> returns the next key, pointer pair. The return "
37372 "value of this function is also C<NULL> is there are no further entries to "
37377 #: ../src/guestfs.pod:2089
37378 msgid "Notes about walking over entries:"
37382 #: ../src/guestfs.pod:2095
37384 "You must not call C<guestfs_set_private> while walking over the entries."
37388 #: ../src/guestfs.pod:2100
37390 "The handle maintains an internal iterator which is reset when you call "
37391 "C<guestfs_first_private>. This internal iterator is invalidated when you "
37392 "call C<guestfs_set_private>."
37396 #: ../src/guestfs.pod:2106
37397 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
37401 #: ../src/guestfs.pod:2108
37404 " guestfs_set_private (g, key, NULL);\n"
37409 #: ../src/guestfs.pod:2110
37410 msgid "then that C<key> is not returned when walking."
37414 #: ../src/guestfs.pod:2114
37416 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
37417 "C<guestfs_next_private> or C<guestfs_set_private>."
37421 #: ../src/guestfs.pod:2120
37423 "The following example code shows how to print all keys and data pointers "
37424 "that are associated with the handle C<g>:"
37428 #: ../src/guestfs.pod:2123
37431 " const char *key;\n"
37432 " void *data = guestfs_first_private (g, &key);\n"
37433 " while (data != NULL)\n"
37435 " printf (\"key = %s, data = %p\\n\", key, data);\n"
37436 " data = guestfs_next_private (g, &key);\n"
37442 #: ../src/guestfs.pod:2131
37444 "More commonly you are only interested in keys that begin with an application-"
37445 "specific prefix C<foo_>. Modify the loop like so:"
37449 #: ../src/guestfs.pod:2134
37452 " const char *key;\n"
37453 " void *data = guestfs_first_private (g, &key);\n"
37454 " while (data != NULL)\n"
37456 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37457 " printf (\"key = %s, data = %p\\n\", key, data);\n"
37458 " data = guestfs_next_private (g, &key);\n"
37464 #: ../src/guestfs.pod:2143
37466 "If you need to modify keys while walking, then you have to jump back to the "
37467 "beginning of the loop. For example, to delete all keys prefixed with "
37472 #: ../src/guestfs.pod:2147
37475 " const char *key;\n"
37478 " data = guestfs_first_private (g, &key);\n"
37479 " while (data != NULL)\n"
37481 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37483 " guestfs_set_private (g, key, NULL);\n"
37484 " /* note that 'key' pointer is now invalid, and so is\n"
37485 " the internal iterator */\n"
37488 " data = guestfs_next_private (g, &key);\n"
37494 #: ../src/guestfs.pod:2163
37496 "Note that the above loop is guaranteed to terminate because the keys are "
37497 "being deleted, but other manipulations of keys within the loop might not "
37498 "terminate unless you also maintain an indication of which keys have been "
37503 #: ../src/guestfs.pod:2168 ../src/guestfs.pod:2173
37508 #: ../src/guestfs.pod:2170
37510 "<!-- old anchor for the next section --> <a name="
37511 "\"state_machine_and_low_level_event_api\"/>"
37513 "<!-- old anchor for the next section --> <a name="
37514 "\"state_machine_and_low_level_event_api\"/>"
37517 #: ../src/guestfs.pod:2175
37518 msgid "ARCHITECTURE"
37519 msgstr "АРХІТЕКТУРА"
37522 #: ../src/guestfs.pod:2177
37524 "Internally, libguestfs is implemented by running an appliance (a special "
37525 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
37526 "process of the main program."
37530 #: ../src/guestfs.pod:2181
37533 " ___________________\n"
37535 " | main program |\n"
37537 " | | child process / appliance\n"
37538 " | | __________________________\n"
37540 " +-------------------+ RPC | +-----------------+ |\n"
37541 " | libguestfs <--------------------> guestfsd | |\n"
37542 " | | | +-----------------+ |\n"
37543 " \\___________________/ | | Linux kernel | |\n"
37544 " | +--^--------------+ |\n"
37545 " \\_________|________________/\n"
37547 " _______v______\n"
37550 " | disk image |\n"
37551 " \\______________/\n"
37556 #: ../src/guestfs.pod:2201
37558 "The library, linked to the main program, creates the child process and hence "
37559 "the appliance in the L</guestfs_launch> function."
37563 #: ../src/guestfs.pod:2204
37565 "Inside the appliance is a Linux kernel and a complete stack of userspace "
37566 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
37567 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
37568 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
37569 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
37570 "attached to the qemu process which translates device access by the "
37571 "appliance's Linux kernel into accesses to the image."
37575 #: ../src/guestfs.pod:2213
37577 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
37578 "Although the disk image you are attached to might also be used by some "
37579 "virtual machine, libguestfs doesn't know or care about this. (But you will "
37580 "care if both libguestfs's qemu process and your virtual machine are trying "
37581 "to update the disk image at the same time, since these usually results in "
37582 "massive disk corruption)."
37586 #: ../src/guestfs.pod:2220
37587 msgid "STATE MACHINE"
37588 msgstr "СКІНЧЕННИЙ АВТОМАТ"
37591 #: ../src/guestfs.pod:2222
37592 msgid "libguestfs uses a state machine to model the child process:"
37596 #: ../src/guestfs.pod:2224
37600 " guestfs_create\n"
37608 " / | \\ \\ guestfs_launch\n"
37609 " / | _\\__V______\n"
37611 " / | | LAUNCHING |\n"
37612 " / | \\___________/\n"
37614 " / | guestfs_launch\n"
37616 " ______ / __|____V\n"
37617 " / \\ ------> / \\\n"
37618 " | BUSY | | READY |\n"
37619 " \\______/ <------ \\________/\n"
37624 #: ../src/guestfs.pod:2246
37626 "The normal transitions are (1) CONFIG (when the handle is created, but there "
37627 "is no child process), (2) LAUNCHING (when the child process is booting up), "
37628 "(3) alternating between READY and BUSY as commands are issued to, and "
37629 "carried out by, the child process."
37633 #: ../src/guestfs.pod:2251
37635 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
37636 "asynchronously at any time (eg. due to some internal error), and that causes "
37637 "the state to transition back to CONFIG."
37641 #: ../src/guestfs.pod:2255
37643 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
37644 "issued when in the CONFIG state."
37648 #: ../src/guestfs.pod:2258
37650 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
37651 "L</guestfs_launch> blocks until the child process is READY to accept "
37652 "commands (or until some failure or timeout). L</guestfs_launch> internally "
37653 "moves the state from CONFIG to LAUNCHING while it is running."
37657 #: ../src/guestfs.pod:2264
37659 "API actions such as L</guestfs_mount> can only be issued when in the READY "
37660 "state. These API calls block waiting for the command to be carried out (ie. "
37661 "the state to transition to BUSY and then back to READY). There are no non-"
37662 "blocking versions, and no way to issue more than one command per handle at "
37667 #: ../src/guestfs.pod:2270
37669 "Finally, the child process sends asynchronous messages back to the main "
37670 "program, such as kernel log messages. You can register a callback to "
37671 "receive these messages."
37675 #: ../src/guestfs.pod:2274
37680 #: ../src/guestfs.pod:2276
37681 msgid "APPLIANCE BOOT PROCESS"
37685 #: ../src/guestfs.pod:2278
37687 "This process has evolved and continues to evolve. The description here "
37688 "corresponds only to the current version of libguestfs and is provided for "
37689 "information only."
37693 #: ../src/guestfs.pod:2282
37695 "In order to follow the stages involved below, enable libguestfs debugging "
37696 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
37700 #: ../src/guestfs.pod:2287
37702 #| msgid "C<appliance>"
37703 msgid "Create the appliance"
37704 msgstr "C<appliance>"
37707 #: ../src/guestfs.pod:2289
37709 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
37710 "initrd and the appliance."
37714 #: ../src/guestfs.pod:2292
37716 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
37717 "directory if C<TMPDIR> is set)."
37721 #: ../src/guestfs.pod:2295
37723 "For a complete description of how the appliance is created and cached, read "
37724 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
37728 #: ../src/guestfs.pod:2299
37729 msgid "Start qemu and boot the kernel"
37733 #: ../src/guestfs.pod:2301
37734 msgid "qemu is invoked to boot the kernel."
37738 #: ../src/guestfs.pod:2303
37739 msgid "Run the initrd"
37743 #: ../src/guestfs.pod:2305
37745 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
37746 "appliance. The purpose of the initrd is to load enough kernel modules in "
37747 "order that the appliance itself can be mounted and started."
37751 #: ../src/guestfs.pod:2309
37753 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
37758 #: ../src/guestfs.pod:2312
37760 "When the initrd has started you will see messages showing that kernel "
37761 "modules are being loaded, similar to this:"
37765 #: ../src/guestfs.pod:2315
37768 " febootstrap: ext2 mini initrd starting up\n"
37769 " febootstrap: mounting /sys\n"
37770 " febootstrap: internal insmod libcrc32c.ko\n"
37771 " febootstrap: internal insmod crc32c-intel.ko\n"
37776 #: ../src/guestfs.pod:2320
37777 msgid "Find and mount the appliance device"
37781 #: ../src/guestfs.pod:2322
37783 "The appliance is a sparse file containing an ext2 filesystem which contains "
37784 "a familiar (although reduced in size) Linux operating system. It would "
37785 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
37789 #: ../src/guestfs.pod:2326
37791 "The regular disks being inspected by libguestfs are the first devices "
37792 "exposed by qemu (eg. as C</dev/vda>)."
37796 #: ../src/guestfs.pod:2329
37798 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
37799 "there was only one regular disk)."
37803 #: ../src/guestfs.pod:2332
37805 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
37806 "and switch root into the appliance, and run C</init> from the appliance."
37810 #: ../src/guestfs.pod:2336
37811 msgid "If this works successfully you will see messages such as:"
37815 #: ../src/guestfs.pod:2338
37818 " febootstrap: picked /sys/block/vdb/dev as root device\n"
37819 " febootstrap: creating /dev/root as block special 252:16\n"
37820 " febootstrap: mounting new root on /root\n"
37821 " febootstrap: chroot\n"
37822 " Starting /init script ...\n"
37827 #: ../src/guestfs.pod:2344
37829 "Note that C<Starting /init script ...> indicates that the appliance's init "
37830 "script is now running."
37834 #: ../src/guestfs.pod:2347
37835 msgid "Initialize the appliance"
37839 #: ../src/guestfs.pod:2349
37841 "The appliance itself now initializes itself. This involves starting certain "
37842 "processes like C<udev>, possibly printing some debug information, and "
37843 "finally running the daemon (C<guestfsd>)."
37847 #: ../src/guestfs.pod:2353
37849 #| msgid "C<daemon>"
37854 #: ../src/guestfs.pod:2355
37856 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
37861 #: ../src/guestfs.pod:2358
37864 #| " set-verbose true|false\n"
37867 " verbose daemon enabled\n"
37870 " set-verbose true|false\n"
37874 #: ../src/guestfs.pod:2360
37876 "The daemon expects to see a named virtio-serial port exposed by qemu and "
37877 "connected on the other end to the library."
37881 #: ../src/guestfs.pod:2363
37883 "The daemon connects to this port (and hence to the library) and sends a four "
37884 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
37885 "protocol (see below)."
37889 #: ../src/guestfs.pod:2369
37890 msgid "COMMUNICATION PROTOCOL"
37894 #: ../src/guestfs.pod:2371
37896 "Don't rely on using this protocol directly. This section documents how it "
37897 "currently works, but it may change at any time."
37901 #: ../src/guestfs.pod:2374
37903 "The protocol used to talk between the library and the daemon running inside "
37904 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
37905 "1014, RFC 1832, RFC 4506)."
37909 #: ../src/guestfs.pod:2378
37911 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
37912 "this file is automatically generated)."
37916 #: ../src/guestfs.pod:2381
37918 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
37919 "and C<FileOut> parameters, which are handled with very simple request/reply "
37920 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
37921 "parameters, which use the same request and reply messages, but they may also "
37922 "be followed by files sent using a chunked encoding."
37926 #: ../src/guestfs.pod:2388
37927 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
37931 #: ../src/guestfs.pod:2390
37932 msgid "For ordinary functions, the request message is:"
37936 #: ../src/guestfs.pod:2392
37939 " total length (header + arguments,\n"
37940 " but not including the length word itself)\n"
37941 " struct guestfs_message_header (encoded as XDR)\n"
37942 " struct guestfs_<foo>_args (encoded as XDR)\n"
37947 #: ../src/guestfs.pod:2397
37949 "The total length field allows the daemon to allocate a fixed size buffer "
37950 "into which it slurps the rest of the message. As a result, the total length "
37951 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
37952 "effective size of any request is limited to somewhere under this size."
37956 #: ../src/guestfs.pod:2403
37958 "Note also that many functions don't take any arguments, in which case the "
37959 "C<guestfs_I<foo>_args> is completely omitted."
37963 #: ../src/guestfs.pod:2406
37965 "The header contains the procedure number (C<guestfs_proc>) which is how the "
37966 "receiver knows what type of args structure to expect, or none at all."
37970 #: ../src/guestfs.pod:2410
37972 "For functions that take optional arguments, the optional arguments are "
37973 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
37974 "arguments. A bitmask in the header indicates which optional arguments are "
37975 "meaningful. The bitmask is also checked to see if it contains bits set "
37976 "which the daemon does not know about (eg. if more optional arguments were "
37977 "added in a later version of the library), and this causes the call to be "
37982 #: ../src/guestfs.pod:2418
37983 msgid "The reply message for ordinary functions is:"
37987 #: ../src/guestfs.pod:2420
37990 " total length (header + ret,\n"
37991 " but not including the length word itself)\n"
37992 " struct guestfs_message_header (encoded as XDR)\n"
37993 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37998 #: ../src/guestfs.pod:2425
38000 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38001 "functions that return no formal return values."
38005 #: ../src/guestfs.pod:2428
38007 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38011 #: ../src/guestfs.pod:2431
38013 "In the case of an error, a flag is set in the header, and the reply message "
38014 "is slightly changed:"
38018 #: ../src/guestfs.pod:2434
38021 " total length (header + error,\n"
38022 " but not including the length word itself)\n"
38023 " struct guestfs_message_header (encoded as XDR)\n"
38024 " struct guestfs_message_error (encoded as XDR)\n"
38029 #: ../src/guestfs.pod:2439
38031 "The C<guestfs_message_error> structure contains the error message as a "
38036 #: ../src/guestfs.pod:2442
38037 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38041 #: ../src/guestfs.pod:2444
38043 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
38044 "The normal request message is sent (see above). However this is followed by "
38045 "a sequence of file chunks."
38049 #: ../src/guestfs.pod:2448
38052 " total length (header + arguments,\n"
38053 " but not including the length word itself,\n"
38054 " and not including the chunks)\n"
38055 " struct guestfs_message_header (encoded as XDR)\n"
38056 " struct guestfs_<foo>_args (encoded as XDR)\n"
38057 " sequence of chunks for FileIn param #0\n"
38058 " sequence of chunks for FileIn param #1 etc.\n"
38063 #: ../src/guestfs.pod:2456
38064 msgid "The \"sequence of chunks\" is:"
38068 #: ../src/guestfs.pod:2458
38071 " length of chunk (not including length word itself)\n"
38072 " struct guestfs_chunk (encoded as XDR)\n"
38073 " length of chunk\n"
38074 " struct guestfs_chunk (encoded as XDR)\n"
38076 " length of chunk\n"
38077 " struct guestfs_chunk (with data.data_len == 0)\n"
38082 #: ../src/guestfs.pod:2466
38084 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
38085 "is set in the final chunk to indicate either successful completion or early "
38090 #: ../src/guestfs.pod:2470
38092 "At time of writing there are no functions that have more than one FileIn "
38093 "parameter. However this is (theoretically) supported, by sending the "
38094 "sequence of chunks for each FileIn parameter one after another (from left to "
38099 #: ../src/guestfs.pod:2475
38101 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38102 "transfer. The library does this by sending a chunk with a special flag set "
38103 "to indicate cancellation. When the daemon sees this, it cancels the whole "
38104 "RPC, does I<not> send any reply, and goes back to reading the next request."
38108 #: ../src/guestfs.pod:2481
38110 "The daemon may also cancel. It does this by writing a special word "
38111 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
38112 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38113 "cancel chunk). The special word is chosen so that even if cancellation "
38114 "happens right at the end of the transfer (after the library has finished "
38115 "writing and has started listening for the reply), the \"spurious\" cancel "
38116 "flag will not be confused with the reply message."
38120 #: ../src/guestfs.pod:2490
38122 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38123 "limit), and also files where the size is not known in advance (eg. from "
38124 "pipes or sockets). However the chunks are rather small "
38125 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38126 "to keep much in memory."
38130 #: ../src/guestfs.pod:2496
38131 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
38135 #: ../src/guestfs.pod:2498
38137 "The protocol for FileOut parameters is exactly the same as for FileIn "
38138 "parameters, but with the roles of daemon and library reversed."
38142 #: ../src/guestfs.pod:2501
38145 " total length (header + ret,\n"
38146 " but not including the length word itself,\n"
38147 " and not including the chunks)\n"
38148 " struct guestfs_message_header (encoded as XDR)\n"
38149 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38150 " sequence of chunks for FileOut param #0\n"
38151 " sequence of chunks for FileOut param #1 etc.\n"
38156 #: ../src/guestfs.pod:2509
38157 msgid "INITIAL MESSAGE"
38161 #: ../src/guestfs.pod:2511
38163 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
38164 "which indicates that the guest and daemon is alive. This is what L</"
38165 "guestfs_launch> waits for."
38169 #: ../src/guestfs.pod:2515
38170 msgid "PROGRESS NOTIFICATION MESSAGES"
38174 #: ../src/guestfs.pod:2517
38176 "The daemon may send progress notification messages at any time. These are "
38177 "distinguished by the normal length word being replaced by "
38178 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38182 #: ../src/guestfs.pod:2521
38184 "The library turns them into progress callbacks (see L</"
38185 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
38190 #: ../src/guestfs.pod:2525
38192 "The daemon self-limits the frequency of progress messages it sends (see "
38193 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
38198 #: ../src/guestfs.pod:2529
38199 msgid "LIBGUESTFS VERSION NUMBERS"
38203 #: ../src/guestfs.pod:2531
38205 "Since April 2010, libguestfs has started to make separate development and "
38206 "stable releases, along with corresponding branches in our git repository. "
38207 "These separate releases can be identified by version number:"
38211 #: ../src/guestfs.pod:2536
38214 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
38215 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38221 " | `-------- sub-version\n"
38223 " `------ always '1' because we don't change the ABI\n"
38228 #: ../src/guestfs.pod:2547
38229 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38233 #: ../src/guestfs.pod:2549
38235 "As time passes we cherry pick fixes from the development branch and backport "
38236 "those into the stable branch, the effect being that the stable branch should "
38237 "get more stable and less buggy over time. So the stable releases are ideal "
38238 "for people who don't need new features but would just like the software to "
38243 #: ../src/guestfs.pod:2555
38244 msgid "Our criteria for backporting changes are:"
38248 #: ../src/guestfs.pod:2561
38250 "Documentation changes which don't affect any code are backported unless the "
38251 "documentation refers to a future feature which is not in stable."
38255 #: ../src/guestfs.pod:2567
38257 "Bug fixes which are not controversial, fix obvious problems, and have been "
38258 "well tested are backported."
38262 #: ../src/guestfs.pod:2572
38264 "Simple rearrangements of code which shouldn't affect how it works get "
38265 "backported. This is so that the code in the two branches doesn't get too "
38266 "far out of step, allowing us to backport future fixes more easily."
38270 #: ../src/guestfs.pod:2578
38272 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38273 "exceptional case: the new feature is required in order to implement an "
38274 "important bug fix."
38278 #: ../src/guestfs.pod:2584
38280 "A new stable branch starts when we think the new features in development are "
38281 "substantial and compelling enough over the current stable branch to warrant "
38282 "it. When that happens we create new stable and development versions 1.N.0 "
38283 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
38284 "stable at this point, but by backporting fixes from development, that branch "
38285 "will stabilize over time."
38289 #: ../src/guestfs.pod:2592
38290 msgid "EXTENDING LIBGUESTFS"
38294 #: ../src/guestfs.pod:2594
38295 msgid "ADDING A NEW API ACTION"
38299 #: ../src/guestfs.pod:2596
38301 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
38302 "documentation) are generated, and this makes it easy to extend the "
38307 #: ../src/guestfs.pod:2600
38308 msgid "To add a new API action there are two changes:"
38312 #: ../src/guestfs.pod:2606
38314 "You need to add a description of the call (name, parameters, return type, "
38315 "tests, documentation) to C<generator/generator_actions.ml>."
38319 #: ../src/guestfs.pod:2609
38321 "There are two sorts of API action, depending on whether the call goes "
38322 "through to the daemon in the appliance, or is serviced entirely by the "
38323 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
38324 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
38325 "an example of the latter, since a trace flag is maintained in the handle and "
38326 "all tracing is done on the library side."
38330 #: ../src/guestfs.pod:2617
38332 "Most new actions are of the first type, and get added to the "
38333 "C<daemon_functions> list. Each function has a unique procedure number used "
38334 "in the RPC protocol which is assigned to that action when we publish "
38335 "libguestfs and cannot be reused. Take the latest procedure number and "
38340 #: ../src/guestfs.pod:2623
38342 "For library-only actions of the second type, add to the "
38343 "C<non_daemon_functions> list. Since these functions are serviced by the "
38344 "library and do not travel over the RPC mechanism to the daemon, these "
38345 "functions do not need a procedure number, and so the procedure number is set "
38350 #: ../src/guestfs.pod:2631
38351 msgid "Implement the action (in C):"
38355 #: ../src/guestfs.pod:2633
38357 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
38358 "C<daemon/> directory."
38362 #: ../src/guestfs.pod:2636
38364 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
38365 "(note: double underscore) in the C<src/> directory."
38369 #: ../src/guestfs.pod:2639
38370 msgid "In either case, use another function as an example of what to do."
38374 #: ../src/guestfs.pod:2643
38375 msgid "After making these changes, use C<make> to compile."
38379 #: ../src/guestfs.pod:2645
38381 "Note that you don't need to implement the RPC, language bindings, manual "
38382 "pages or anything else. It's all automatically generated from the OCaml "
38387 #: ../src/guestfs.pod:2649
38388 msgid "ADDING TESTS FOR AN API ACTION"
38392 #: ../src/guestfs.pod:2651
38394 "You can supply zero or as many tests as you want per API call. The tests "
38395 "can either be added as part of the API description (C<generator/"
38396 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
38397 "into C<regressions/>. Note that adding a script to C<regressions/> is "
38398 "slower, so if possible use the first method."
38402 #: ../src/guestfs.pod:2657
38404 "The following describes the test environment used when you add an API test "
38405 "in C<generator_actions.ml>."
38409 #: ../src/guestfs.pod:2660
38410 msgid "The test environment has 4 block devices:"
38414 #: ../src/guestfs.pod:2664
38415 msgid "C</dev/sda> 500MB"
38416 msgstr "C</dev/sda> 500 МБ"
38419 #: ../src/guestfs.pod:2666
38420 msgid "General block device for testing."
38424 #: ../src/guestfs.pod:2668
38425 msgid "C</dev/sdb> 50MB"
38426 msgstr "C</dev/sdb> 50 МБ"
38429 #: ../src/guestfs.pod:2670
38431 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
38436 #: ../src/guestfs.pod:2673
38437 msgid "C</dev/sdc> 10MB"
38438 msgstr "C</dev/sdc> 10 МБ"
38441 #: ../src/guestfs.pod:2675
38442 msgid "Used in a few tests where two block devices are needed."
38446 #: ../src/guestfs.pod:2677
38447 msgid "C</dev/sdd>"
38448 msgstr "C</dev/sdd>"
38451 #: ../src/guestfs.pod:2679
38452 msgid "ISO with fixed content (see C<images/test.iso>)."
38456 #: ../src/guestfs.pod:2683
38458 "To be able to run the tests in a reasonable amount of time, the libguestfs "
38459 "appliance and block devices are reused between tests. So don't try testing "
38460 "L</guestfs_kill_subprocess> :-x"
38464 #: ../src/guestfs.pod:2687
38466 "Each test starts with an initial scenario, selected using one of the "
38467 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
38468 "initialize the disks mentioned above in a particular way as documented in "
38469 "C<generator_types.ml>. You should not assume anything about the previous "
38470 "contents of other disks that are not initialized."
38474 #: ../src/guestfs.pod:2693
38476 "You can add a prerequisite clause to any individual test. This is a run-"
38477 "time check, which, if it fails, causes the test to be skipped. Useful if "
38478 "testing a command which might not work on all variations of libguestfs "
38479 "builds. A test that has prerequisite of C<Always> means to run "
38484 #: ../src/guestfs.pod:2699
38486 "In addition, packagers can skip individual tests by setting environment "
38487 "variables before running C<make check>."
38491 #: ../src/guestfs.pod:2702
38494 " SKIP_TEST_<CMD>_<NUM>=1\n"
38499 #: ../src/guestfs.pod:2704
38500 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
38504 #: ../src/guestfs.pod:2706
38509 #: ../src/guestfs.pod:2708
38512 " SKIP_TEST_<CMD>=1\n"
38517 #: ../src/guestfs.pod:2710
38518 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
38522 #: ../src/guestfs.pod:2712
38523 msgid "Packagers can run only certain tests by setting for example:"
38527 #: ../src/guestfs.pod:2714
38530 " TEST_ONLY=\"vfs_type zerofree\"\n"
38535 #: ../src/guestfs.pod:2716
38537 "See C<capitests/tests.c> for more details of how these environment variables "
38542 #: ../src/guestfs.pod:2719
38543 msgid "DEBUGGING NEW API ACTIONS"
38547 #: ../src/guestfs.pod:2721
38548 msgid "Test new actions work before submitting them."
38552 #: ../src/guestfs.pod:2723
38553 msgid "You can use guestfish to try out new commands."
38557 #: ../src/guestfs.pod:2725
38559 "Debugging the daemon is a problem because it runs inside a minimal "
38560 "environment. However you can fprintf messages in the daemon to stderr, and "
38561 "they will show up if you use C<guestfish -v>."
38565 #: ../src/guestfs.pod:2729
38566 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
38570 #: ../src/guestfs.pod:2731
38572 "Our C source code generally adheres to some basic code-formatting "
38573 "conventions. The existing code base is not totally consistent on this "
38574 "front, but we do prefer that contributed code be formatted similarly. In "
38575 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
38576 "indentation level, and other than that, follow the K&R style."
38580 #: ../src/guestfs.pod:2737
38582 "If you use Emacs, add the following to one of one of your start-up files (e."
38583 "g., ~/.emacs), to help ensure that you get indentation right:"
38587 #: ../src/guestfs.pod:2740
38590 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
38591 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
38592 " (add-hook 'find-file-hook\n"
38593 " '(lambda () (if (and buffer-file-name\n"
38594 " (string-match \"/libguestfs\\\\>\"\n"
38595 " (buffer-file-name))\n"
38596 " (not (string-equal mode-name \"Change Log\"))\n"
38597 " (not (string-equal mode-name \"Makefile\")))\n"
38598 " (setq indent-tabs-mode nil))))\n"
38603 #: ../src/guestfs.pod:2750
38606 " ;;; When editing C sources in libguestfs, use this style.\n"
38607 " (defun libguestfs-c-mode ()\n"
38608 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
38610 " (c-set-style \"K&R\")\n"
38611 " (setq c-indent-level 2)\n"
38612 " (setq c-basic-offset 2))\n"
38613 " (add-hook 'c-mode-hook\n"
38614 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
38615 " (buffer-file-name))\n"
38616 " (libguestfs-c-mode))))\n"
38621 #: ../src/guestfs.pod:2762
38622 msgid "Enable warnings when compiling (and fix any problems this finds):"
38626 #: ../src/guestfs.pod:2765
38629 " ./configure --enable-gcc-warnings\n"
38632 " ./configure --enable-gcc-warnings\n"
38636 #: ../src/guestfs.pod:2767
38637 msgid "Useful targets are:"
38641 #: ../src/guestfs.pod:2769
38644 " make syntax-check # checks the syntax of the C code\n"
38645 " make check # runs the test suite\n"
38650 #: ../src/guestfs.pod:2772
38651 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
38655 #: ../src/guestfs.pod:2774
38657 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
38658 "which are used to do shell quoting."
38662 #: ../src/guestfs.pod:2779
38667 #: ../src/guestfs.pod:2781
38669 "Simple shell quoted string. Any spaces or other shell characters are "
38674 #: ../src/guestfs.pod:2784
38679 #: ../src/guestfs.pod:2786
38681 "Same as C<%Q> except the string is treated as a path which is prefixed by "
38686 #: ../src/guestfs.pod:2793
38689 " asprintf (&cmd, \"cat %R\", path);\n"
38694 #: ../src/guestfs.pod:2795
38695 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
38699 #: ../src/guestfs.pod:2797
38701 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
38702 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
38703 "they are not passed via the shell (instead, straight to exec). You probably "
38704 "want to use the C<sysroot_path()> function however."
38708 #: ../src/guestfs.pod:2803
38709 msgid "SUBMITTING YOUR NEW API ACTIONS"
38713 #: ../src/guestfs.pod:2805
38715 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
38716 "libguestfs> and CC to L<rjones@redhat.com>."
38720 #: ../src/guestfs.pod:2809
38721 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
38725 #: ../src/guestfs.pod:2811
38726 msgid "We support i18n (gettext anyhow) in the library."
38730 #: ../src/guestfs.pod:2813
38732 "However many messages come from the daemon, and we don't translate those at "
38733 "the moment. One reason is that the appliance generally has all locale files "
38734 "removed from it, because they take up a lot of space. So we'd have to readd "
38735 "some of those, as well as copying our PO files into the appliance."
38739 #: ../src/guestfs.pod:2819
38741 "Debugging messages are never translated, since they are intended for the "
38746 #: ../src/guestfs.pod:2822
38747 msgid "SOURCE CODE SUBDIRECTORIES"
38751 #: ../src/guestfs.pod:2828
38752 msgid "The libguestfs appliance, build scripts and so on."
38756 #: ../src/guestfs.pod:2830
38757 msgid "C<capitests>"
38758 msgstr "C<capitests>"
38761 #: ../src/guestfs.pod:2832
38762 msgid "Automated tests of the C API."
38766 #: ../src/guestfs.pod:2834
38771 #: ../src/guestfs.pod:2836
38773 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
38778 #: ../src/guestfs.pod:2839
38783 #: ../src/guestfs.pod:2841
38785 "Safety and liveness tests of components that libguestfs depends upon (not of "
38786 "libguestfs itself). Mainly this is for qemu and the kernel."
38790 #: ../src/guestfs.pod:2844
38792 msgstr "C<contrib>"
38795 #: ../src/guestfs.pod:2846
38796 msgid "Outside contributions, experimental parts."
38800 #: ../src/guestfs.pod:2848
38805 #: ../src/guestfs.pod:2850
38807 "The daemon that runs inside the libguestfs appliance and carries out actions."
38811 #: ../src/guestfs.pod:2853
38816 #: ../src/guestfs.pod:2855
38817 msgid "L<virt-df(1)> command and documentation."
38821 #: ../src/guestfs.pod:2857
38826 #: ../src/guestfs.pod:2859
38827 msgid "L<virt-edit(1)> command and documentation."
38831 #: ../src/guestfs.pod:2861
38832 msgid "C<examples>"
38833 msgstr "C<examples>"
38836 #: ../src/guestfs.pod:2863
38837 msgid "C API example code."
38838 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
38841 #: ../src/guestfs.pod:2865
38846 #: ../src/guestfs.pod:2867
38848 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
38849 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
38850 "L<virt-tar-out(1)>."
38854 #: ../src/guestfs.pod:2871
38859 #: ../src/guestfs.pod:2873
38861 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
38865 #: ../src/guestfs.pod:2875
38866 msgid "C<generator>"
38867 msgstr "C<generator>"
38870 #: ../src/guestfs.pod:2877
38872 "The crucially important generator, used to automatically generate large "
38873 "amounts of boilerplate C code for things like RPC and bindings."
38877 #: ../src/guestfs.pod:2880
38882 #: ../src/guestfs.pod:2882
38883 msgid "Files used by the test suite."
38887 #: ../src/guestfs.pod:2884
38888 msgid "Some \"phony\" guest images which we test against."
38892 #: ../src/guestfs.pod:2886
38893 msgid "C<inspector>"
38894 msgstr "C<inspector>"
38897 #: ../src/guestfs.pod:2888
38898 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
38902 #: ../src/guestfs.pod:2890
38907 #: ../src/guestfs.pod:2892
38908 msgid "Logo used on the website. The fish is called Arthur by the way."
38912 #: ../src/guestfs.pod:2894
38917 #: ../src/guestfs.pod:2896
38918 msgid "M4 macros used by autoconf."
38922 #: ../src/guestfs.pod:2898
38927 #: ../src/guestfs.pod:2900
38928 msgid "Translations of simple gettext strings."
38929 msgstr "Переклади простих рядків gettext."
38932 #: ../src/guestfs.pod:2902
38934 msgstr "C<po-docs>"
38937 #: ../src/guestfs.pod:2904
38939 "The build infrastructure and PO files for translations of manpages and POD "
38940 "files. Eventually this will be combined with the C<po> directory, but that "
38941 "is rather complicated."
38945 #: ../src/guestfs.pod:2908
38946 msgid "C<regressions>"
38947 msgstr "C<regressions>"
38950 #: ../src/guestfs.pod:2910
38951 msgid "Regression tests."
38952 msgstr "Тести на регресії."
38955 #: ../src/guestfs.pod:2912
38960 #: ../src/guestfs.pod:2914
38961 msgid "L<virt-rescue(1)> command and documentation."
38965 #: ../src/guestfs.pod:2916
38970 #: ../src/guestfs.pod:2918
38971 msgid "Source code to the C library."
38975 #: ../src/guestfs.pod:2920
38980 #: ../src/guestfs.pod:2922
38981 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
38985 #: ../src/guestfs.pod:2924
38986 msgid "C<test-tool>"
38987 msgstr "C<test-tool>"
38990 #: ../src/guestfs.pod:2926
38992 "Test tool for end users to test if their qemu/kernel combination will work "
38997 #: ../src/guestfs.pod:2929
39002 #: ../src/guestfs.pod:2931
39007 #: ../src/guestfs.pod:2933
39009 msgstr "C<haskell>"
39012 #: ../src/guestfs.pod:2935
39017 #: ../src/guestfs.pod:2937
39022 #: ../src/guestfs.pod:2939
39027 #: ../src/guestfs.pod:2941
39032 #: ../src/guestfs.pod:2943
39037 #: ../src/guestfs.pod:2945
39042 #: ../src/guestfs.pod:2947
39043 msgid "Language bindings."
39044 msgstr "Прив’язки до мов програмування."
39047 #: ../src/guestfs.pod:2951
39048 msgid "MAKING A STABLE RELEASE"
39052 #: ../src/guestfs.pod:2953
39054 "When we make a stable release, there are several steps documented here. See "
39055 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
39060 #: ../src/guestfs.pod:2961
39062 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39066 #: ../src/guestfs.pod:2966
39067 msgid "Finalize RELEASE-NOTES."
39071 #: ../src/guestfs.pod:2970
39072 msgid "Update ROADMAP."
39076 #: ../src/guestfs.pod:2974
39077 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39081 #: ../src/guestfs.pod:2978
39082 msgid "Push and pull from Transifex."
39086 #: ../src/guestfs.pod:2980
39091 #: ../src/guestfs.pod:2982
39099 #: ../src/guestfs.pod:2984
39100 msgid "to push the latest POT files to Transifex. Then run:"
39104 #: ../src/guestfs.pod:2986
39112 #: ../src/guestfs.pod:2988
39113 msgid "which is a wrapper to pull the latest translated C<*.po> files."
39117 #: ../src/guestfs.pod:2992
39119 "Create new stable and development directories under L<http://libguestfs.org/"
39124 #: ../src/guestfs.pod:2997
39125 msgid "Create the branch in git:"
39129 #: ../src/guestfs.pod:2999
39132 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39133 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39134 " git branch stable-1.XX\n"
39135 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39140 #: ../src/guestfs.pod:3006
39145 #: ../src/guestfs.pod:3008
39146 msgid "PROTOCOL LIMITS"
39147 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
39150 #: ../src/guestfs.pod:3010
39152 "Internally libguestfs uses a message-based protocol to pass API calls and "
39153 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39154 "plenty more detail about this). The maximum message size used by the "
39155 "protocol is slightly less than 4 MB. For some API calls you may need to be "
39156 "aware of this limit. The API calls which may be affected are individually "
39157 "documented, with a link back to this section of the documentation."
39161 #: ../src/guestfs.pod:3018
39163 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39164 "a simple string. Because this string is at some point internally encoded as "
39165 "a message, the maximum size that it can return is slightly under 4 MB. If "
39166 "the requested file is larger than this then you will get an error."
39170 #: ../src/guestfs.pod:3024
39172 "In order to transfer large files into and out of the guest filesystem, you "
39173 "need to use particular calls that support this. The sections L</UPLOADING> "
39174 "and L</DOWNLOADING> document how to do this."
39178 #: ../src/guestfs.pod:3028
39180 "You might also consider mounting the disk image using our FUSE filesystem "
39181 "support (L<guestmount(1)>)."
39185 #: ../src/guestfs.pod:3031
39186 msgid "MAXIMUM NUMBER OF DISKS"
39190 #: ../src/guestfs.pod:3033
39191 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39195 #: ../src/guestfs.pod:3036
39197 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39198 "slots. However febootstrap only understands disks with names C</dev/vda> "
39199 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39204 #: ../src/guestfs.pod:3041
39206 "We are working to substantially raise this limit in future versions but it "
39207 "requires complex changes to qemu."
39211 #: ../src/guestfs.pod:3044
39213 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39214 "disks (add and remove disks after calling L</guestfs_launch>). This also "
39215 "requires changes to qemu."
39219 #: ../src/guestfs.pod:3048
39220 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39224 #: ../src/guestfs.pod:3050
39225 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39229 #: ../src/guestfs.pod:3052
39231 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
39232 "vda>, and C</dev/vda1> through C</dev/vda15>)."
39236 #: ../src/guestfs.pod:3055
39238 "If you attach a disk with more than 15 partitions, the extra partitions are "
39239 "ignored by libguestfs."
39243 #: ../src/guestfs.pod:3058
39244 msgid "MAXIMUM SIZE OF A DISK"
39248 #: ../src/guestfs.pod:3060
39249 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
39253 #: ../src/guestfs.pod:3062
39255 "We have tested block devices up to 1 exabyte (2**60 or "
39256 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
39261 #: ../src/guestfs.pod:3066
39263 "Although libguestfs probably does not impose any limit, the underlying host "
39264 "storage will. If you store disk images on a host ext4 filesystem, then the "
39265 "maximum size will be limited by the maximum ext4 file size (currently 16 "
39266 "TB). If you store disk images as host logical volumes then you are limited "
39267 "by the maximum size of an LV."
39271 #: ../src/guestfs.pod:3072
39273 "For the hugest disk image files, we recommend using XFS on the host for "
39278 #: ../src/guestfs.pod:3075
39279 msgid "MAXIMUM SIZE OF A PARTITION"
39283 #: ../src/guestfs.pod:3077
39285 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
39286 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
39287 "address a partition located beyond 2 TB on the disk."
39291 #: ../src/guestfs.pod:3081
39293 "It is recommended that you use GPT partitions on disks which are larger than "
39294 "this size. GPT uses 64 bit sector numbers and so can address partitions "
39295 "which are theoretically larger than the largest disk we could support."
39299 #: ../src/guestfs.pod:3086
39300 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
39304 #: ../src/guestfs.pod:3088
39306 "This depends on the filesystem type. libguestfs itself does not impose any "
39307 "known limit. Consult Wikipedia or the filesystem documentation to find out "
39308 "what these limits are."
39312 #: ../src/guestfs.pod:3092
39313 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
39317 #: ../src/guestfs.pod:3094
39319 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
39320 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
39321 "uploads and downloads."
39325 #: ../src/guestfs.pod:3098
39326 msgid "INSPECTION LIMITS"
39330 #: ../src/guestfs.pod:3100
39332 "The inspection code has several arbitrary limits on things like the size of "
39333 "Windows Registry hive it will read, and the length of product name. These "
39334 "are intended to stop a malicious guest from consuming arbitrary amounts of "
39335 "memory and disk space on the host, and should not be reached in practice. "
39336 "See the source code for more information."
39340 #: ../src/guestfs.pod:3126
39342 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
39343 "effect as calling C<guestfs_set_verbose (g, 1)>."
39347 #: ../src/guestfs.pod:3138
39349 "Set the path that libguestfs uses to search for a supermin appliance. See "
39350 "the discussion of paths in section L</PATH> above."
39354 #: ../src/guestfs.pod:3147
39355 msgid "See also L</QEMU WRAPPERS> above."
39359 #: ../src/guestfs.pod:3151
39361 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
39362 "effect as calling C<guestfs_set_trace (g, 1)>."
39366 #: ../src/guestfs.pod:3169
39368 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
39369 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
39370 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
39371 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
39372 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)"
39373 ">, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, "
39374 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
39375 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://"
39376 "libguestfs.org/>."
39380 #: ../src/guestfs.pod:3200
39382 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
39383 "(8)>, L<disktype(1)>."
39387 #: ../src/guestfs.pod:3207 ../tools/virt-make-fs.pl:553
39388 #: ../tools/virt-win-reg.pl:761
39393 #: ../src/guestfs.pod:3209
39394 msgid "To get a list of bugs against libguestfs use this link:"
39396 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
39400 #: ../src/guestfs.pod:3211
39402 "L<https://bugzilla.redhat.com/buglist.cgi?"
39403 "component=libguestfs&product=Virtualization+Tools>"
39405 "L<https://bugzilla.redhat.com/buglist.cgi?"
39406 "component=libguestfs&product=Virtualization+Tools>"
39409 #: ../src/guestfs.pod:3213
39410 msgid "To report a new bug against libguestfs use this link:"
39411 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
39414 #: ../src/guestfs.pod:3215
39416 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39417 "component=libguestfs&product=Virtualization+Tools>"
39419 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39420 "component=libguestfs&product=Virtualization+Tools>"
39423 #: ../src/guestfs.pod:3217
39424 msgid "When reporting a bug, please check:"
39428 #: ../src/guestfs.pod:3223
39429 msgid "That the bug hasn't been reported already."
39433 #: ../src/guestfs.pod:3227
39434 msgid "That you are testing a recent version."
39438 #: ../src/guestfs.pod:3231
39439 msgid "Describe the bug accurately, and give a way to reproduce it."
39443 #: ../src/guestfs.pod:3235
39445 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
39450 #: ../test-tool/libguestfs-test-tool.pod:5
39451 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
39455 #: ../test-tool/libguestfs-test-tool.pod:9
39458 " libguestfs-test-tool [--options]\n"
39463 #: ../test-tool/libguestfs-test-tool.pod:13
39465 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
39466 "to check basic libguestfs functionality is working. This is needed because "
39467 "libguestfs occasionally breaks for reasons beyond our control: usually "
39468 "because of changes in the underlying qemu or kernel packages, or the host "
39473 #: ../test-tool/libguestfs-test-tool.pod:19
39474 msgid "If you suspect a problem in libguestfs, then just run:"
39478 #: ../test-tool/libguestfs-test-tool.pod:21
39481 " libguestfs-test-tool\n"
39486 #: ../test-tool/libguestfs-test-tool.pod:23
39487 msgid "It will print lots of diagnostic messages."
39491 #: ../test-tool/libguestfs-test-tool.pod:25
39492 msgid "If it runs to completion successfully, you will see this near the end:"
39496 #: ../test-tool/libguestfs-test-tool.pod:27
39499 " ===== TEST FINISHED OK =====\n"
39504 #: ../test-tool/libguestfs-test-tool.pod:29
39505 msgid "and the test tool will exit with code 0."
39509 #: ../test-tool/libguestfs-test-tool.pod:31
39511 "If it fails (and/or exits with non-zero error code), please paste the "
39512 "I<complete, unedited> output of the test tool into a bug report. More "
39513 "information about reporting bugs can be found on the L<http://libguestfs.org/"
39518 #: ../test-tool/libguestfs-test-tool.pod:42
39519 msgid "Display short usage information and exit."
39523 #: ../test-tool/libguestfs-test-tool.pod:44
39525 #| msgid "I<--qemu qemu_binary>"
39526 msgid "B<--qemu qemu_binary>"
39527 msgstr "I<--qemu виконуваний_файл_qemu>"
39530 #: ../test-tool/libguestfs-test-tool.pod:46
39532 "If you have downloaded another qemu binary, point this option at the full "
39533 "path of the binary to try it."
39537 #: ../test-tool/libguestfs-test-tool.pod:49
39539 #| msgid "I<--qemu qemu_binary>"
39540 msgid "B<--qemudir qemu_source_dir>"
39541 msgstr "I<--qemu виконуваний_файл_qemu>"
39544 #: ../test-tool/libguestfs-test-tool.pod:51
39546 "If you have compiled qemu from source, point this option at the source "
39547 "directory to try it."
39551 #: ../test-tool/libguestfs-test-tool.pod:54
39556 #: ../test-tool/libguestfs-test-tool.pod:56
39558 #| msgid "I<--timeout N>"
39559 msgid "B<--timeout N>"
39560 msgstr "I<--timeout N>"
39563 #: ../test-tool/libguestfs-test-tool.pod:58
39565 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
39566 "minutes) which does not usually need to be adjusted."
39570 #: ../test-tool/libguestfs-test-tool.pod:63
39571 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
39575 #: ../test-tool/libguestfs-test-tool.pod:65
39577 "If you have compiled another version of qemu from source and would like to "
39578 "try that, then you can use the I<--qemudir> option to point to the qemu "
39579 "source directory."
39583 #: ../test-tool/libguestfs-test-tool.pod:69
39585 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
39586 "option to point to the binary."
39590 #: ../test-tool/libguestfs-test-tool.pod:72
39592 "Note when using these options, you can ignore the business of qemu wrapper "
39593 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
39594 "wrapper script for you if one is needed."
39598 #: ../test-tool/libguestfs-test-tool.pod:76
39599 msgid "TRYING OUT A DIFFERENT KERNEL"
39603 #: ../test-tool/libguestfs-test-tool.pod:78
39605 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
39606 "libguestfs tries. You do this by setting the environment variables "
39607 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
39611 #: ../test-tool/libguestfs-test-tool.pod:82
39613 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
39618 #: ../test-tool/libguestfs-test-tool.pod:85
39619 msgid "SELF-DIAGNOSIS"
39623 #: ../test-tool/libguestfs-test-tool.pod:87
39625 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
39626 "produced by libguestfs-test-tool and/or possible errors."
39630 #: ../test-tool/libguestfs-test-tool.pod:92
39632 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
39633 "I<1> if there was an error."
39637 #: ../test-tool/libguestfs-test-tool.pod:97
39639 "For the full list of environment variables which may affect libguestfs, "
39640 "please see the L<guestfs(3)> manual page."
39644 #: ../test-tool/libguestfs-test-tool.pod:102
39645 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
39649 #: ../tools/virt-list-filesystems.pl:32
39651 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
39655 #: ../tools/virt-list-filesystems.pl:36
39658 " virt-list-filesystems [--options] domname\n"
39663 #: ../tools/virt-list-filesystems.pl:38
39666 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
39671 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
39673 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
39678 #: ../tools/virt-list-filesystems.pl:45
39680 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
39681 "are contained in a virtual machine or disk image."
39685 #: ../tools/virt-list-filesystems.pl:49
39687 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
39688 "functionality. For more complex cases you should look at the L<guestfish(1)"
39693 #: ../tools/virt-list-filesystems.pl:112
39695 "With this option, C<virt-list-filesystems> displays the type of each "
39696 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
39700 #: ../tools/virt-list-filesystems.pl:119
39702 #| msgid "B<-a image>"
39704 msgstr "B<-a образ>"
39707 #: ../tools/virt-list-filesystems.pl:123
39709 "Normally we only show mountable filesystems. If this option is given then "
39710 "swap devices are shown too."
39714 #: ../tools/virt-list-filesystems.pl:197
39716 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
39717 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
39718 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39720 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
39721 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
39722 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39725 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
39726 msgid "Copyright (C) 2009 Red Hat Inc."
39727 msgstr "© Red Hat Inc., 2009"
39730 #: ../tools/virt-list-partitions.pl:32
39732 "virt-list-partitions - List partitions in a virtual machine or disk image"
39736 #: ../tools/virt-list-partitions.pl:36
39739 " virt-list-partitions [--options] domname\n"
39742 " virt-list-partitions [--параметри] назва_домену\n"
39746 #: ../tools/virt-list-partitions.pl:38
39749 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
39752 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
39756 #: ../tools/virt-list-partitions.pl:45
39758 "C<virt-list-partitions> is a command line tool to list the partitions that "
39759 "are contained in a virtual machine or disk image. It is mainly useful as a "
39760 "first step to using L<virt-resize(1)>."
39764 #: ../tools/virt-list-partitions.pl:50
39766 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
39767 "functionality. For more complex cases you should look at the L<guestfish(1)"
39772 #: ../tools/virt-list-partitions.pl:113
39773 msgid "Show sizes in human-readable form (eg. \"1G\")."
39777 #: ../tools/virt-list-partitions.pl:123
39779 "With this option, C<virt-list-partitions> displays the type and size of each "
39780 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
39784 #: ../tools/virt-list-partitions.pl:130
39789 #: ../tools/virt-list-partitions.pl:132
39791 #| msgid "B<-t> | B<--total>"
39793 msgstr "B<-t> | B<--total>"
39796 #: ../tools/virt-list-partitions.pl:134
39798 "Display the total size of each block device (as a separate row or rows)."
39802 #: ../tools/virt-list-partitions.pl:267
39804 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39805 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39806 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39808 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39809 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39810 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39813 #: ../tools/virt-list-partitions.pl:283
39814 msgid "Copyright (C) 2009-2010 Red Hat Inc."
39815 msgstr "© Red Hat Inc., 2009–2010"
39818 #: ../tools/virt-make-fs.pl:37
39819 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
39823 #: ../tools/virt-make-fs.pl:41
39826 " virt-make-fs [--options] input.tar output.img\n"
39831 #: ../tools/virt-make-fs.pl:43
39834 " virt-make-fs [--options] input.tar.gz output.img\n"
39839 #: ../tools/virt-make-fs.pl:45
39842 " virt-make-fs [--options] directory output.img\n"
39847 #: ../tools/virt-make-fs.pl:49
39849 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
39850 "archive or some files in a directory. It is similar to tools like L<mkisofs"
39851 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
39852 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
39853 "you want to attach these filesystems to existing virtual machines (eg. to "
39854 "import large amounts of read-only data to a VM)."
39858 #: ../tools/virt-make-fs.pl:57
39859 msgid "Basic usage is:"
39863 #: ../tools/virt-make-fs.pl:59
39866 " virt-make-fs input output\n"
39871 #: ../tools/virt-make-fs.pl:61
39873 "where C<input> is either a directory containing files that you want to add, "
39874 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
39875 "C<output> is a disk image. The input type is detected automatically. The "
39876 "output disk image defaults to a raw ext2 image unless you specify extra "
39877 "flags (see L</OPTIONS> below)."
39881 #: ../tools/virt-make-fs.pl:67
39882 msgid "EXTRA SPACE"
39886 #: ../tools/virt-make-fs.pl:69
39888 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
39889 "the files that it contains, but might have extra space. Depending on how "
39890 "you are going to use the output, you might think this extra space is wasted "
39891 "and want to minimize it, or you might want to leave space so that more files "
39892 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
39893 "but you can use the I<--size> flag to leave space in the filesystem if you "
39898 #: ../tools/virt-make-fs.pl:77
39900 "An alternative way to leave extra space but not make the output image any "
39901 "bigger is to use an alternative disk image format (instead of the default "
39902 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
39903 "image format (check your hypervisor supports this before using it). This "
39904 "allows you to choose a large I<--size> but the extra space won't actually be "
39905 "allocated in the image until you try to store something in it."
39909 #: ../tools/virt-make-fs.pl:85
39911 "Don't forget that you can also use local commands including L<resize2fs(8)> "
39912 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
39913 "to build another image from scratch."
39917 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
39918 #: ../tools/virt-make-fs.pl:142
39923 #: ../tools/virt-make-fs.pl:91
39926 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39929 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39933 #: ../tools/virt-make-fs.pl:93
39934 msgid "FILESYSTEM TYPE"
39935 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
39938 #: ../tools/virt-make-fs.pl:95
39940 "The default filesystem type is C<ext2>. Just about any filesystem type that "
39941 "libguestfs supports can be used (but I<not> read-only formats like "
39942 "ISO9660). Here are some of the more common choices:"
39946 #: ../tools/virt-make-fs.pl:101
39951 #: ../tools/virt-make-fs.pl:103
39953 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
39954 "you are not going to use the filesystem in a way that requires the journal, "
39955 "then this is just wasted overhead."
39959 #: ../tools/virt-make-fs.pl:107
39960 msgid "I<ntfs> or I<vfat>"
39961 msgstr "I<ntfs> або I<vfat>"
39964 #: ../tools/virt-make-fs.pl:109
39965 msgid "Useful if exporting data to a Windows guest."
39969 #: ../tools/virt-make-fs.pl:111
39971 "I<Note for vfat>: The tar archive or local directory must only contain files "
39972 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
39973 "program running within libguestfs is unable to change the ownership of non-"
39974 "root files, since vfat itself does not support this."
39978 #: ../tools/virt-make-fs.pl:116
39983 #: ../tools/virt-make-fs.pl:118
39985 "Lower overhead than C<ext2>, but certain limitations on filename length and "
39986 "total filesystem size."
39990 #: ../tools/virt-make-fs.pl:125
39993 " virt-make-fs --type=minix input minixfs.img\n"
39998 #: ../tools/virt-make-fs.pl:127
39999 msgid "TO PARTITION OR NOT TO PARTITION"
40003 #: ../tools/virt-make-fs.pl:129
40004 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40008 #: ../tools/virt-make-fs.pl:131
40010 "Adding a partition can make the disk image more compatible with certain "
40011 "virtualized operating systems which don't expect to see a filesystem "
40012 "directly located on a block device (Linux doesn't care and will happily "
40013 "handle both types)."
40017 #: ../tools/virt-make-fs.pl:136
40019 "On the other hand, if you have a partition table then the output image is no "
40020 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
40021 "directly on a partitioned disk image. (However libguestfs tools such as "
40022 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40026 #: ../tools/virt-make-fs.pl:144
40027 msgid "Add an MBR partition:"
40031 #: ../tools/virt-make-fs.pl:146
40034 " virt-make-fs --partition -- input disk.img\n"
40039 #: ../tools/virt-make-fs.pl:148
40041 "If the output disk image could be terabyte-sized or larger, it's better to "
40042 "use an EFI/GPT-compatible partition table:"
40046 #: ../tools/virt-make-fs.pl:151
40049 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40054 #: ../tools/virt-make-fs.pl:179
40055 msgid "Enable debugging information."
40056 msgstr "Увімкнути виведення діагностичних даних."
40059 #: ../tools/virt-make-fs.pl:185
40060 msgid "B<--size=E<lt>NE<gt>>"
40061 msgstr "B<--size=E<lt>NE<gt>>"
40064 #: ../tools/virt-make-fs.pl:187
40065 msgid "B<--size=+E<lt>NE<gt>>"
40066 msgstr "B<--size=+E<lt>NE<gt>>"
40069 #: ../tools/virt-make-fs.pl:189
40070 msgid "B<-s E<lt>NE<gt>>"
40071 msgstr "B<-s E<lt>NE<gt>>"
40074 #: ../tools/virt-make-fs.pl:191
40075 msgid "B<-s +E<lt>NE<gt>>"
40076 msgstr "B<-s +E<lt>NE<gt>>"
40079 #: ../tools/virt-make-fs.pl:193
40081 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
40085 #: ../tools/virt-make-fs.pl:196
40087 "If this option is I<not> given, then the output image will be just large "
40088 "enough to contain all the files, with not much wasted space."
40092 #: ../tools/virt-make-fs.pl:199
40094 "To choose a fixed size output disk, specify an absolute number followed by b/"
40095 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40096 "Petabytes or Exabytes. This must be large enough to contain all the input "
40097 "files, else you will get an error."
40101 #: ../tools/virt-make-fs.pl:204
40103 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
40104 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40105 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
40106 "the input files, and (approximately) an extra 200 MB free space."
40110 #: ../tools/virt-make-fs.pl:210
40112 "Note that virt-make-fs estimates free space, and therefore will not produce "
40113 "filesystems containing precisely the free space requested. (It is much more "
40114 "expensive and time-consuming to produce a filesystem which has precisely the "
40115 "desired free space)."
40119 #: ../tools/virt-make-fs.pl:219
40120 msgid "B<--format=E<lt>fmtE<gt>>"
40124 #: ../tools/virt-make-fs.pl:221
40125 msgid "B<-F E<lt>fmtE<gt>>"
40129 #: ../tools/virt-make-fs.pl:223
40130 msgid "Choose the output disk image format."
40134 #: ../tools/virt-make-fs.pl:225
40135 msgid "The default is C<raw> (raw disk image)."
40139 #: ../tools/virt-make-fs.pl:227
40141 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
40142 "that would really make sense here is C<qcow2>."
40146 #: ../tools/virt-make-fs.pl:234
40147 msgid "B<--type=E<lt>fsE<gt>>"
40151 #: ../tools/virt-make-fs.pl:236
40152 msgid "B<-t E<lt>fsE<gt>>"
40156 #: ../tools/virt-make-fs.pl:238
40157 msgid "Choose the output filesystem type."
40161 #: ../tools/virt-make-fs.pl:240
40162 msgid "The default is C<ext2>."
40163 msgstr "Типовим значенням є C<ext2>."
40166 #: ../tools/virt-make-fs.pl:242
40168 "Any filesystem which is supported read-write by libguestfs can be used here."
40172 #: ../tools/virt-make-fs.pl:249
40173 msgid "B<--partition>"
40174 msgstr "B<--partition>"
40177 #: ../tools/virt-make-fs.pl:251
40178 msgid "B<--partition=E<lt>parttypeE<gt>>"
40182 #: ../tools/virt-make-fs.pl:253
40184 "If specified, this flag adds an MBR partition table to the output disk image."
40188 #: ../tools/virt-make-fs.pl:256
40190 "You can change the partition table type, eg. I<--partition=gpt> for large "
40195 #: ../tools/virt-make-fs.pl:259
40197 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40198 "might consider the next parameter to be the partition type. For example:"
40202 #: ../tools/virt-make-fs.pl:263
40205 " virt-make-fs --partition input.tar ...\n"
40210 #: ../tools/virt-make-fs.pl:265
40212 "would cause virt-make-fs to think you wanted to use a partition type of "
40213 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
40214 "dash) between options and the input file argument:"
40218 #: ../tools/virt-make-fs.pl:269
40221 " virt-make-fs --partition -- input.tar ...\n"
40224 " virt-make-fs --partition -- input.tar ...\n"
40228 #: ../tools/virt-make-fs.pl:541
40230 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40231 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40232 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40234 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40235 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40236 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40239 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
40241 "When reporting bugs, please enable debugging and capture the I<complete> "
40246 #: ../tools/virt-make-fs.pl:558
40249 " export LIBGUESTFS_DEBUG=1\n"
40250 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40253 " export LIBGUESTFS_DEBUG=1\n"
40254 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40258 #: ../tools/virt-make-fs.pl:561
40260 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
40265 #: ../tools/virt-tar.pl:33
40266 msgid "virt-tar - Extract or upload files to a virtual machine"
40270 #: ../tools/virt-tar.pl:37
40273 " virt-tar [--options] -x domname directory tarball\n"
40278 #: ../tools/virt-tar.pl:39
40281 " virt-tar [--options] -u domname tarball directory\n"
40286 #: ../tools/virt-tar.pl:41
40289 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
40294 #: ../tools/virt-tar.pl:43
40297 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
40302 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
40307 #: ../tools/virt-tar.pl:47
40309 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
40310 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
40314 #: ../tools/virt-tar.pl:52
40315 msgid "Download C</home> from the VM into a local tarball:"
40319 #: ../tools/virt-tar.pl:54
40322 " virt-tar -x domname /home home.tar\n"
40327 #: ../tools/virt-tar.pl:56
40330 " virt-tar -zx domname /home home.tar.gz\n"
40335 #: ../tools/virt-tar.pl:58
40336 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
40340 #: ../tools/virt-tar.pl:60
40343 " virt-tar -u domname uploadstuff.tar /tmp\n"
40348 #: ../tools/virt-tar.pl:62
40351 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
40356 #: ../tools/virt-tar.pl:66
40358 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
40359 "virtual machines. If you do this, you risk disk corruption in the VM. "
40360 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
40364 #: ../tools/virt-tar.pl:71
40366 "You can use I<-x> (extract) on live virtual machines, but you might get "
40367 "inconsistent results or errors if there is filesystem activity inside the "
40368 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
40369 "work, but the only way to guarantee consistent results is if the virtual "
40370 "machine is shut down."
40374 #: ../tools/virt-tar.pl:79
40376 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
40377 "parts of a guest filesystem. There are many possibilities: making backups, "
40378 "uploading data files, snooping on guest activity, fixing or customizing "
40383 #: ../tools/virt-tar.pl:84
40385 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
40386 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
40387 "should look at the L<guestfish(1)> tool."
40391 #: ../tools/virt-tar.pl:88
40393 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
40394 "its contents (recursively) from the virtual machine into a local tarball. "
40395 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
40396 "virtual machine. You cannot use these two options together."
40400 #: ../tools/virt-tar.pl:94
40402 "In addition, you may need to use the I<-z> (gZip) option to enable "
40403 "compression. When uploading, you have to specify I<-z> if the upload file "
40404 "is compressed because virt-tar won't detect this on its own."
40408 #: ../tools/virt-tar.pl:98
40410 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
40411 "example it cannot do PKZip files or bzip2 compression. If you want that "
40412 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
40413 "the L<libguestfs(3)> API)."
40417 #: ../tools/virt-tar.pl:160
40419 #| msgid "B<--format>"
40420 msgid "B<--extract>"
40421 msgstr "B<--format>"
40424 #: ../tools/virt-tar.pl:162
40426 #| msgid "download"
40427 msgid "B<--download>"
40431 #: ../tools/virt-tar.pl:164
40436 #: ../tools/virt-tar.pl:166
40438 #| msgid "B<-u> | B<--upload>"
40439 msgid "B<--upload>"
40440 msgstr "B<-u> | B<--upload>"
40443 #: ../tools/virt-tar.pl:168
40445 "Use I<-x> to extract (download) a directory from a virtual machine to a "
40450 #: ../tools/virt-tar.pl:171
40452 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
40453 "Please read the L</WARNING> section above before using this option."
40457 #: ../tools/virt-tar.pl:175
40458 msgid "You must specify exactly one of these options."
40462 #: ../tools/virt-tar.pl:181
40467 #: ../tools/virt-tar.pl:183
40469 #| msgid "B<-z> | B<--gzip>"
40471 msgstr "B<-z> | B<--gzip>"
40474 #: ../tools/virt-tar.pl:185
40475 msgid "Specify that the input or output tarball is gzip-compressed."
40479 #: ../tools/virt-tar.pl:298
40481 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40482 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40483 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40486 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40487 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40488 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40492 #: ../tools/virt-win-reg.pl:37
40494 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
40498 #: ../tools/virt-win-reg.pl:41
40501 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
40506 #: ../tools/virt-win-reg.pl:43
40509 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
40514 #: ../tools/virt-win-reg.pl:45
40517 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
40522 #: ../tools/virt-win-reg.pl:47
40525 " virt-win-reg --merge domname [input.reg ...]\n"
40530 #: ../tools/virt-win-reg.pl:49
40533 " virt-win-reg [--options] disk.img ... # instead of domname\n"
40538 #: ../tools/virt-win-reg.pl:53
40540 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
40541 "virtual machines. If you do this, you I<will> get irreversible disk "
40542 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
40543 "but doesn't catch all cases."
40547 #: ../tools/virt-win-reg.pl:58
40549 "Modifying the Windows Registry is an inherently risky operation. The format "
40550 "is deliberately obscure and undocumented, and Registry changes can leave the "
40551 "system unbootable. Therefore when using the I<--merge> option, make sure "
40552 "you have a reliable backup first."
40556 #: ../tools/virt-win-reg.pl:65
40558 "This program can export and merge Windows Registry entries from a Windows "
40563 #: ../tools/virt-win-reg.pl:68
40565 "The first parameter is the libvirt guest name or the raw disk image of a "
40570 #: ../tools/virt-win-reg.pl:71
40572 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
40573 "exported (recursively). For example:"
40577 #: ../tools/virt-win-reg.pl:74
40580 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
40585 #: ../tools/virt-win-reg.pl:76
40587 "You can also display single values from within registry keys, for example:"
40591 #: ../tools/virt-win-reg.pl:79
40594 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
40595 " $ virt-win-reg Windows7 $cvkey ProductName\n"
40596 " Windows 7 Enterprise\n"
40601 #: ../tools/virt-win-reg.pl:83
40603 "With I<--merge>, you can merge a textual regedit file into the Windows "
40608 #: ../tools/virt-win-reg.pl:86
40611 " $ virt-win-reg --merge Windows7 changes.reg\n"
40616 #: ../tools/virt-win-reg.pl:90
40618 "This program is only meant for simple access to the registry. If you want "
40619 "to do complicated things with the registry, we suggest you download the "
40620 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
40621 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
40622 "L<hivexregedit(1)>."
40626 #: ../tools/virt-win-reg.pl:159
40628 msgstr "B<--merge>"
40631 #: ../tools/virt-win-reg.pl:161
40633 "In merge mode, this merges a textual regedit file into the Windows Registry "
40634 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
40635 "displays or exports Registry entries instead."
40639 #: ../tools/virt-win-reg.pl:165
40641 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
40642 "result in disk corruption. However exporting (without this flag) is always "
40647 #: ../tools/virt-win-reg.pl:173
40648 msgid "B<--encoding> UTF-16LE|ASCII"
40652 #: ../tools/virt-win-reg.pl:175
40654 "When merging (only), you may need to specify the encoding for strings to be "
40655 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
40656 "(3)/ENCODING STRINGS>."
40660 #: ../tools/virt-win-reg.pl:179
40662 "The default is to use UTF-16LE, which should work with recent versions of "
40667 #: ../tools/virt-win-reg.pl:186
40668 msgid "B<--unsafe-printable-strings>"
40672 #: ../tools/virt-win-reg.pl:188
40674 "When exporting (only), assume strings are UTF-16LE and print them as strings "
40675 "instead of hex sequences. Remove the final zero codepoint from strings if "
40680 #: ../tools/virt-win-reg.pl:192
40682 "This is unsafe and does not preserve the fidelity of strings in the original "
40683 "Registry for various reasons:"
40687 #: ../tools/virt-win-reg.pl:199
40689 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
40690 "other encodings will be corrupted by this transformation."
40694 #: ../tools/virt-win-reg.pl:204
40696 "Assumes that everything which has type 1 or 2 is really a string and that "
40697 "everything else is not a string, but the type field in real Registries is "
40702 #: ../tools/virt-win-reg.pl:210
40704 "Loses information about whether a zero codepoint followed the string in the "
40709 #: ../tools/virt-win-reg.pl:215
40711 "This all happens because the Registry itself contains no information about "
40712 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
40716 #: ../tools/virt-win-reg.pl:219
40718 "You should only use this option for quick hacking and debugging of the "
40719 "Registry contents, and I<never> use it if the output is going to be passed "
40720 "into another program or stored in another Registry."
40724 #: ../tools/virt-win-reg.pl:556
40725 msgid "SUPPORTED SYSTEMS"
40729 #: ../tools/virt-win-reg.pl:558
40731 "The program currently supports Windows NT-derived guests starting with "
40732 "Windows XP through to at least Windows 7."
40736 #: ../tools/virt-win-reg.pl:561
40737 msgid "The following Registry keys are supported:"
40741 #: ../tools/virt-win-reg.pl:565
40742 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
40746 #: ../tools/virt-win-reg.pl:567
40747 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
40751 #: ../tools/virt-win-reg.pl:569
40752 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
40756 #: ../tools/virt-win-reg.pl:571
40757 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
40761 #: ../tools/virt-win-reg.pl:573
40762 msgid "C<HKEY_USERS\\.DEFAULT>"
40766 #: ../tools/virt-win-reg.pl:575
40767 msgid "C<HKEY_USERS\\I<SID>>"
40771 #: ../tools/virt-win-reg.pl:577
40772 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
40776 #: ../tools/virt-win-reg.pl:579
40777 msgid "C<HKEY_USERS\\I<username>>"
40781 #: ../tools/virt-win-reg.pl:581
40783 "where I<username> is a local user name (this is a libguestfs extension)."
40787 #: ../tools/virt-win-reg.pl:585
40789 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
40794 #: ../tools/virt-win-reg.pl:588
40796 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
40797 "supported (there is no \"current user\")."
40801 #: ../tools/virt-win-reg.pl:591
40806 #: ../tools/virt-win-reg.pl:593
40808 "C<virt-win-reg> expects that regedit files have already been reencoded in "
40809 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
40810 "style line endings. Since Windows regedit files are often in UTF-16LE with "
40811 "Windows-style line endings, you may need to reencode the whole file before "
40812 "or after processing."
40816 #: ../tools/virt-win-reg.pl:599
40818 "To reencode a file from Windows format to Linux (before processing it with "
40819 "the I<--merge> option), you would do something like this:"
40823 #: ../tools/virt-win-reg.pl:602
40826 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
40831 #: ../tools/virt-win-reg.pl:604
40833 "To go in the opposite direction, after exporting and before sending the file "
40834 "to a Windows user, do something like this:"
40838 #: ../tools/virt-win-reg.pl:607
40841 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
40846 #: ../tools/virt-win-reg.pl:609
40847 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
40851 #: ../tools/virt-win-reg.pl:611
40853 "If you are unsure about the current encoding, use the L<file(1)> command. "
40854 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
40855 "style (CRLF) line endings, like this:"
40859 #: ../tools/virt-win-reg.pl:615
40862 " $ file software.reg\n"
40863 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
40864 " with CRLF line terminators\n"
40869 #: ../tools/virt-win-reg.pl:619
40870 msgid "This file would need conversion before you could I<--merge> it."
40874 #: ../tools/virt-win-reg.pl:621
40875 msgid "CurrentControlSet etc."
40879 #: ../tools/virt-win-reg.pl:623
40881 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
40882 "Registry at the level of the hive file, and therefore you cannot modify "
40887 #: ../tools/virt-win-reg.pl:627
40889 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
40890 "circumstances it might refer to another control set. The way to find out is "
40891 "to look at the C<HKLM\\SYSTEM\\Select> key:"
40895 #: ../tools/virt-win-reg.pl:631
40898 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
40899 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
40900 " \"Current\"=dword:00000001\n"
40901 " \"Default\"=dword:00000001\n"
40902 " \"Failed\"=dword:00000000\n"
40903 " \"LastKnownGood\"=dword:00000002\n"
40908 #: ../tools/virt-win-reg.pl:638
40909 msgid "\"Current\" is the one which Windows will choose when it boots."
40913 #: ../tools/virt-win-reg.pl:640
40915 "Similarly, other C<Current...> keys in the path may need to be replaced."
40919 #: ../tools/virt-win-reg.pl:643
40920 msgid "WINDOWS TIPS"
40924 #: ../tools/virt-win-reg.pl:645
40926 "Note that some of these tips modify the guest disk image. The guest I<must> "
40927 "be shut off, else you will get disk corruption."
40931 #: ../tools/virt-win-reg.pl:648
40932 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
40936 #: ../tools/virt-win-reg.pl:650
40938 "Prepare a DOS batch script, VBScript or executable. Upload this using "
40939 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
40940 "is uploaded into C<C:\\>:"
40944 #: ../tools/virt-win-reg.pl:654
40947 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
40952 #: ../tools/virt-win-reg.pl:656
40953 msgid "Prepare a regedit file containing the registry change:"
40957 #: ../tools/virt-win-reg.pl:658
40960 " cat > test.reg <<'EOF'\n"
40961 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
40962 " \"Test\"=\"c:\\\\test.bat\"\n"
40968 #: ../tools/virt-win-reg.pl:663
40970 "In this example we use the key C<RunOnce> which means that the script will "
40971 "run precisely once when the first user logs in. If you want it to run every "
40972 "time a user logs in, replace C<RunOnce> with C<Run>."
40976 #: ../tools/virt-win-reg.pl:667
40977 msgid "Now update the registry:"
40981 #: ../tools/virt-win-reg.pl:669
40984 " virt-win-reg --merge WindowsGuest test.reg\n"
40989 #: ../tools/virt-win-reg.pl:671
40990 msgid "INSTALLING A SERVICE"
40994 #: ../tools/virt-win-reg.pl:673
40996 "This section assumes you are familiar with Windows services, and you either "
40997 "have a program which handles the Windows Service Control Protocol directly "
40998 "or you want to run any program using a service wrapper like SrvAny or the "
41003 #: ../tools/virt-win-reg.pl:678
41005 "First upload the program and optionally the service wrapper. In this case "
41006 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
41010 #: ../tools/virt-win-reg.pl:682
41013 " guestfish -i -d WindowsGuest <<EOF\n"
41014 " upload rhsrvany.exe /rhsrvany.exe\n"
41015 " upload test.exe /test.exe\n"
41021 #: ../tools/virt-win-reg.pl:687
41023 "Prepare a regedit file containing the registry changes. In this example, "
41024 "the first registry change is needed for the service itself or the service "
41025 "wrapper (if used). The second registry change is only needed because I am "
41026 "using the RHSrvAny service wrapper."
41030 #: ../tools/virt-win-reg.pl:692
41033 " cat > service.reg <<'EOF'\n"
41034 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
41035 " \"Type\"=dword:00000010\n"
41036 " \"Start\"=dword:00000002\n"
41037 " \"ErrorControl\"=dword:00000001\n"
41038 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
41039 " \"DisplayName\"=\"RHSrvAny\"\n"
41040 " \"ObjectName\"=\"NetworkService\"\n"
41045 #: ../tools/virt-win-reg.pl:701
41048 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
41049 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
41050 " \"PWD\"=\"c:\\\\Temp\"\n"
41056 #: ../tools/virt-win-reg.pl:712
41058 "For use of C<ControlSet001> see the section above in this manual page. You "
41059 "may need to adjust this according to the control set that is in use by the "
41064 #: ../tools/virt-win-reg.pl:718
41066 "C<\"ObjectName\"> controls the privileges that the service will have. An "
41067 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
41068 "privileged account."
41072 #: ../tools/virt-win-reg.pl:724
41074 "For the meaning of the magic numbers, see this Microsoft KB article: "
41075 "L<http://support.microsoft.com/kb/103000>."
41079 #: ../tools/virt-win-reg.pl:729
41080 msgid "Update the registry:"
41084 #: ../tools/virt-win-reg.pl:731
41087 " virt-win-reg --merge WindowsGuest service.reg\n"
41092 #: ../tools/virt-win-reg.pl:735
41094 "Be careful when passing parameters containing C<\\> (backslash) in the "
41095 "shell. Usually you will have to use 'single quotes' or double backslashes "
41096 "(but not both) to protect them from the shell."
41100 #: ../tools/virt-win-reg.pl:739
41101 msgid "Paths and value names are case-insensitive."
41105 #: ../tools/virt-win-reg.pl:748
41107 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
41108 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
41109 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41113 #: ../tools/virt-win-reg.pl:766
41116 " export LIBGUESTFS_DEBUG=1\n"
41117 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
41122 #: ../tools/virt-win-reg.pl:769
41124 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
41128 #~ msgid "I<--help>"
41129 #~ msgstr "I<--help>"
41131 #~ msgid "EXIT CODE"
41132 #~ msgstr "КОД ВИХОДУ"
41134 #~ msgid "B<-a> | B<--all>"
41135 #~ msgstr "B<-a> | B<--all>"
41137 #~ msgid "B<-x> | B<--extract> | B<--download>"
41138 #~ msgstr "B<-x> | B<--extract> | B<--download>"