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-09-21 15:11+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:2765
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:178
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:180
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:182
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:184
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:186
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:188
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:199
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:201
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:205
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:211
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:215
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:219
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:262
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:264
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:284
740 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
741 #: ../src/guestfs.pod:3141 ../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:292 ../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:294
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:296
794 #: ../resize/virt-resize.pod:638 ../ruby/examples/guestfs-ruby.pod:52
795 #: ../src/guestfs.pod:3218 ../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:300
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:305
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:310
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:4214
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:298
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:1104 ../fish/guestfish-actions.pod:1108
2672 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
2673 #: ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128
2674 #: ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142
2675 #: ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150
2676 #: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244
2677 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254
2678 #: ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300
2679 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1555
2680 #: ../fish/guestfish-actions.pod:1562 ../fish/guestfish-actions.pod:1569
2681 #: ../fish/guestfish-actions.pod:1964 ../fish/guestfish-actions.pod:1970
2682 #: ../fish/guestfish-actions.pod:1978 ../fish/guestfish-actions.pod:1985
2683 #: ../fish/guestfish-actions.pod:1992 ../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:1667
2692 #: ../src/guestfs-actions.pod:1671 ../src/guestfs-actions.pod:1675
2693 #: ../src/guestfs-actions.pod:1679 ../src/guestfs-actions.pod:1687
2694 #: ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1695
2695 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1709
2696 #: ../src/guestfs-actions.pod:1713 ../src/guestfs-actions.pod:1851
2697 #: ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860
2698 #: ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:1926
2699 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:1935
2700 #: ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2346
2701 #: ../src/guestfs-actions.pod:2353 ../src/guestfs-actions.pod:2890
2702 #: ../src/guestfs-actions.pod:2896 ../src/guestfs-actions.pod:2904
2703 #: ../src/guestfs-actions.pod:2911 ../src/guestfs-actions.pod:2918
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:1068
2707 #: ../src/guestfs.pod:1072 ../src/guestfs.pod:1076 ../src/guestfs.pod:1081
2708 #: ../src/guestfs.pod:1089 ../src/guestfs.pod:1108 ../src/guestfs.pod:1116
2709 #: ../src/guestfs.pod:1138 ../src/guestfs.pod:1142 ../src/guestfs.pod:1146
2710 #: ../src/guestfs.pod:1150 ../src/guestfs.pod:1154 ../src/guestfs.pod:1158
2711 #: ../src/guestfs.pod:1648 ../src/guestfs.pod:1653 ../src/guestfs.pod:1657
2712 #: ../src/guestfs.pod:1759 ../src/guestfs.pod:1764 ../src/guestfs.pod:1768
2713 #: ../src/guestfs.pod:1778 ../src/guestfs.pod:2067 ../src/guestfs.pod:2072
2714 #: ../src/guestfs.pod:2078 ../src/guestfs.pod:2086 ../src/guestfs.pod:2533
2715 #: ../src/guestfs.pod:2539 ../src/guestfs.pod:2544 ../src/guestfs.pod:2550
2716 #: ../src/guestfs.pod:2933 ../src/guestfs.pod:2938 ../src/guestfs.pod:2942
2717 #: ../src/guestfs.pod:2946 ../src/guestfs.pod:2950 ../src/guestfs.pod:2964
2718 #: ../src/guestfs.pod:2969 ../src/guestfs.pod:3195 ../src/guestfs.pod:3199
2719 #: ../src/guestfs.pod:3203 ../src/guestfs.pod:3207
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:257 ../src/guestfs.pod:3080
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:3214
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:3216
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:3223
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:3228
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:3233
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:1292 ../fish/guestfish-actions.pod:1551
4130 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:18
4131 #: ../src/guestfs-actions.pod:1922 ../src/guestfs-actions.pod:2335
4132 #: ../src/guestfs-actions.pod:2886 ../src/guestfs.pod:1644
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:991
4789 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4790 #: ../fish/guestfish-actions.pod:3116 ../fish/guestfish-actions.pod:3323
4791 #: ../fish/guestfish-actions.pod:3437 ../fish/guestfish-actions.pod:3485
4792 #: ../fish/guestfish-actions.pod:4386 ../fish/guestfish-actions.pod:4409
4793 #: ../fish/guestfish-actions.pod:4431 ../fish/guestfish-actions.pod:4469
4794 #: ../fish/guestfish-actions.pod:5118 ../fish/guestfish-actions.pod:5224
4795 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252
4796 #: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1508
4797 #: ../src/guestfs-actions.pod:2007 ../src/guestfs-actions.pod:2028
4798 #: ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4952
4799 #: ../src/guestfs-actions.pod:5181 ../src/guestfs-actions.pod:5281
4800 #: ../src/guestfs-actions.pod:6547 ../src/guestfs-actions.pod:6591
4801 #: ../src/guestfs-actions.pod:6625 ../src/guestfs-actions.pod:6688
4802 #: ../src/guestfs-actions.pod:7620 ../src/guestfs-actions.pod:7729
4803 #: ../src/guestfs-actions.pod:7912
4805 "Deprecated functions will not be removed from the API, but the fact that "
4806 "they are deprecated indicates that there are problems with correct use of "
4811 #: ../fish/guestfish-actions.pod:35
4816 #: ../fish/guestfish-actions.pod:37
4821 #: ../fish/guestfish-actions.pod:39
4824 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4829 #: ../fish/guestfish-actions.pod:41
4831 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
4832 "It works by connecting to libvirt, requesting the domain and domain XML from "
4833 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4837 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4839 "The number of disks added is returned. This operation is atomic: if an "
4840 "error is returned, then no disks are added."
4844 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4846 "This function does some minimal checks to make sure the libvirt domain is "
4847 "not running (unless C<readonly> is true). In a future version we will try "
4848 "to acquire the libvirt lock on each disk."
4852 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4854 "Disks must be accessible locally. This often means that adding disks from a "
4855 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
4856 "unless those disks are accessible via the same device path locally too."
4860 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4862 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4863 "libvirt.org/uri.html>). If this is not set then we connect to the default "
4864 "libvirt URI (or one set through an environment variable, see the libvirt "
4865 "documentation for full details)."
4869 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4871 "The optional C<live> flag controls whether this call will try to connect to "
4872 "a running virtual machine C<guestfsd> process if it sees a suitable "
4873 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
4874 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
4875 "DAEMONS> for more information."
4879 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4881 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4882 "passed instead of the domain name. The C<dom> string is treated as a UUID "
4883 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4888 #: ../fish/guestfish-actions.pod:76
4890 "The other optional parameters are passed directly through to L</add-drive-"
4895 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4896 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1999
4897 #: ../fish/guestfish-actions.pod:3165 ../fish/guestfish-actions.pod:3338
4898 #: ../fish/guestfish-actions.pod:3473
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:3127
4978 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4686
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:867
5666 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5667 #: ../fish/guestfish-actions.pod:4689 ../fish/guestfish-actions.pod:4701
5668 #: ../fish/guestfish-actions.pod:4712 ../fish/guestfish-actions.pod:4723
5669 #: ../fish/guestfish-actions.pod:4775 ../fish/guestfish-actions.pod:4784
5670 #: ../fish/guestfish-actions.pod:4838 ../fish/guestfish-actions.pod:4861
5671 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5675 #: ../fish/guestfish-actions.pod:442
5680 #: ../fish/guestfish-actions.pod:444
5683 " base64-out filename (base64file|-)\n"
5688 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5690 "This command downloads the contents of C<filename>, writing it out to local "
5691 "file C<base64file> encoded as base64."
5695 #: ../fish/guestfish-actions.pod:451
5696 msgid "blockdev-flushbufs"
5700 #: ../fish/guestfish-actions.pod:453
5703 " blockdev-flushbufs device\n"
5708 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5710 "This tells the kernel to flush internal buffers associated with C<device>."
5714 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5715 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5716 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5717 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5718 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5719 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5720 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5721 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5722 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5723 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5724 msgid "This uses the L<blockdev(8)> command."
5728 #: ../fish/guestfish-actions.pod:460
5729 msgid "blockdev-getbsz"
5733 #: ../fish/guestfish-actions.pod:462
5736 " blockdev-getbsz device\n"
5741 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5742 msgid "This returns the block size of a device."
5746 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5747 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5749 "(Note this is different from both I<size in blocks> and I<filesystem block "
5754 #: ../fish/guestfish-actions.pod:471
5755 msgid "blockdev-getro"
5759 #: ../fish/guestfish-actions.pod:473
5762 " blockdev-getro device\n"
5767 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5769 "Returns a boolean indicating if the block device is read-only (true if read-"
5770 "only, false if not)."
5774 #: ../fish/guestfish-actions.pod:480
5775 msgid "blockdev-getsize64"
5779 #: ../fish/guestfish-actions.pod:482
5782 " blockdev-getsize64 device\n"
5787 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5788 msgid "This returns the size of the device in bytes."
5792 #: ../fish/guestfish-actions.pod:486
5793 msgid "See also L</blockdev-getsz>."
5797 #: ../fish/guestfish-actions.pod:490
5798 msgid "blockdev-getss"
5802 #: ../fish/guestfish-actions.pod:492
5805 " blockdev-getss device\n"
5810 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5812 "This returns the size of sectors on a block device. Usually 512, but can be "
5813 "larger for modern devices."
5817 #: ../fish/guestfish-actions.pod:497
5819 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5823 #: ../fish/guestfish-actions.pod:502
5824 msgid "blockdev-getsz"
5828 #: ../fish/guestfish-actions.pod:504
5831 " blockdev-getsz device\n"
5836 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5838 "This returns the size of the device in units of 512-byte sectors (even if "
5839 "the sectorsize isn't 512 bytes ... weird)."
5843 #: ../fish/guestfish-actions.pod:509
5845 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5846 "blockdev-getsize64> for the more useful I<size in bytes>."
5850 #: ../fish/guestfish-actions.pod:515
5851 msgid "blockdev-rereadpt"
5855 #: ../fish/guestfish-actions.pod:517
5858 " blockdev-rereadpt device\n"
5863 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5864 msgid "Reread the partition table on C<device>."
5868 #: ../fish/guestfish-actions.pod:523
5869 msgid "blockdev-setbsz"
5873 #: ../fish/guestfish-actions.pod:525
5876 " blockdev-setbsz device blocksize\n"
5881 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5882 msgid "This sets the block size of a device."
5886 #: ../fish/guestfish-actions.pod:534
5887 msgid "blockdev-setro"
5891 #: ../fish/guestfish-actions.pod:536
5894 " blockdev-setro device\n"
5899 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5900 msgid "Sets the block device named C<device> to read-only."
5904 #: ../fish/guestfish-actions.pod:542
5905 msgid "blockdev-setrw"
5909 #: ../fish/guestfish-actions.pod:544
5912 " blockdev-setrw device\n"
5917 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5918 msgid "Sets the block device named C<device> to read-write."
5922 #: ../fish/guestfish-actions.pod:550
5923 msgid "btrfs-filesystem-resize"
5927 #: ../fish/guestfish-actions.pod:552
5930 " btrfs-filesystem-resize mountpoint [size:..]\n"
5935 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5936 msgid "This command resizes a btrfs filesystem."
5940 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5942 "Note that unlike other resize calls, the filesystem has to be mounted and "
5943 "the parameter is the mountpoint not the device (this is a requirement of "
5948 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3448
5949 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5220
5950 msgid "The optional parameters are:"
5954 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3452
5955 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5224
5960 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5962 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
5963 "resized to the maximum size."
5967 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5968 msgid "See also L<btrfs(8)>."
5972 #: ../fish/guestfish-actions.pod:575
5973 msgid "case-sensitive-path"
5977 #: ../fish/guestfish-actions.pod:577
5980 " case-sensitive-path path\n"
5985 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5987 "This can be used to resolve case insensitive paths on a filesystem which is "
5988 "case sensitive. The use case is to resolve paths which you have read from "
5989 "Windows configuration files or the Windows Registry, to the true path."
5993 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5995 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5996 "(and probably others), which is that although the underlying filesystem is "
5997 "case-insensitive, the driver exports the filesystem to Linux as case-"
6002 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
6004 "One consequence of this is that special directories such as C<c:\\windows> "
6005 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6006 "precise details of how they were created. In Windows itself this would not "
6011 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
6013 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
6018 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
6020 "This function resolves the true case of each element in the path and returns "
6021 "the case-sensitive path."
6025 #: ../fish/guestfish-actions.pod:601
6027 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
6028 "WINDOWS/system32\"> (the exact return value would depend on details of how "
6029 "the directories were originally created under Windows)."
6033 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
6034 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6038 #: ../fish/guestfish-actions.pod:609
6039 msgid "See also L</realpath>."
6043 #: ../fish/guestfish-actions.pod:611
6048 #: ../fish/guestfish-actions.pod:613
6058 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3868
6059 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5863
6060 msgid "Return the contents of the file named C<path>."
6064 #: ../fish/guestfish-actions.pod:617
6066 "Note that this function cannot correctly handle binary files (specifically, "
6067 "files containing C<\\0> character which is treated as end of string). For "
6068 "those you need to use the L</read-file> or L</download> functions which have "
6069 "a more complex interface."
6073 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
6074 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
6075 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
6076 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
6077 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
6078 #: ../fish/guestfish-actions.pod:1591 ../fish/guestfish-actions.pod:1606
6079 #: ../fish/guestfish-actions.pod:1616 ../fish/guestfish-actions.pod:1635
6080 #: ../fish/guestfish-actions.pod:3738 ../fish/guestfish-actions.pod:3753
6081 #: ../fish/guestfish-actions.pod:3829 ../fish/guestfish-actions.pod:3846
6082 #: ../fish/guestfish-actions.pod:3861 ../fish/guestfish-actions.pod:4530
6083 #: ../fish/guestfish-actions.pod:4576 ../fish/guestfish-actions.pod:4661
6084 #: ../fish/guestfish-actions.pod:4676 ../fish/guestfish-actions.pod:5082
6085 #: ../fish/guestfish-actions.pod:5094 ../fish/guestfish-actions.pod:5112
6086 #: ../fish/guestfish-actions.pod:5129 ../fish/guestfish-actions.pod:5139
6087 #: ../fish/guestfish-actions.pod:5196 ../fish/guestfish-actions.pod:5206
6088 #: ../fish/guestfish-actions.pod:5235 ../fish/guestfish-actions.pod:5245
6089 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
6090 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
6091 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
6092 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
6093 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
6094 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2409
6095 #: ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2455
6096 #: ../src/guestfs-actions.pod:5645 ../src/guestfs-actions.pod:5671
6097 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5828
6098 #: ../src/guestfs-actions.pod:5852 ../src/guestfs-actions.pod:6803
6099 #: ../src/guestfs-actions.pod:6858 ../src/guestfs-actions.pod:7004
6100 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7693
6101 #: ../src/guestfs-actions.pod:7713 ../src/guestfs-actions.pod:7746
6102 #: ../src/guestfs-actions.pod:7765 ../src/guestfs-actions.pod:7784
6103 #: ../src/guestfs-actions.pod:7878 ../src/guestfs-actions.pod:7897
6104 #: ../src/guestfs-actions.pod:7943 ../src/guestfs-actions.pod:7962
6106 "Because of the message protocol, there is a transfer limit of somewhere "
6107 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
6111 #: ../fish/guestfish-actions.pod:625
6116 #: ../fish/guestfish-actions.pod:627
6119 " checksum csumtype path\n"
6124 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
6126 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6130 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
6132 "The type of checksum to compute is given by the C<csumtype> parameter which "
6133 "must have one of the following values:"
6137 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
6142 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
6144 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6149 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
6154 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
6155 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6159 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
6164 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
6165 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6169 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
6174 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
6175 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6179 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
6184 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
6185 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6189 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
6194 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
6195 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6199 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
6204 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
6205 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6209 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
6210 msgid "The checksum is returned as a printable string."
6214 #: ../fish/guestfish-actions.pod:670
6215 msgid "To get the checksum for a device, use L</checksum-device>."
6219 #: ../fish/guestfish-actions.pod:672
6220 msgid "To get the checksums for many files, use L</checksums-out>."
6224 #: ../fish/guestfish-actions.pod:674
6225 msgid "checksum-device"
6226 msgstr "checksum-device"
6229 #: ../fish/guestfish-actions.pod:676
6232 " checksum-device csumtype device\n"
6237 #: ../fish/guestfish-actions.pod:678
6239 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6240 "device named C<device>. For the types of checksums supported see the L</"
6241 "checksum> command."
6245 #: ../fish/guestfish-actions.pod:682
6246 msgid "checksums-out"
6250 #: ../fish/guestfish-actions.pod:684
6253 " checksums-out csumtype directory (sumsfile|-)\n"
6258 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6260 "This command computes the checksums of all regular files in C<directory> and "
6261 "then emits a list of those checksums to the local output file C<sumsfile>."
6265 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6267 "This can be used for verifying the integrity of a virtual machine. However "
6268 "to be properly secure you should pay attention to the output of the checksum "
6269 "command (it uses the ones from GNU coreutils). In particular when the "
6270 "filename is not printable, coreutils uses a special backslash syntax. For "
6271 "more information, see the GNU coreutils info file."
6275 #: ../fish/guestfish-actions.pod:700
6280 #: ../fish/guestfish-actions.pod:702
6283 " chmod mode path\n"
6288 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6290 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
6295 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6297 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6298 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6303 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3091
6304 #: ../fish/guestfish-actions.pod:3230 ../fish/guestfish-actions.pod:3240
6305 #: ../fish/guestfish-actions.pod:3250 ../src/guestfs-actions.pod:1064
6306 #: ../src/guestfs-actions.pod:4617 ../src/guestfs-actions.pod:4826
6307 #: ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:4864
6308 msgid "The mode actually set is affected by the umask."
6312 #: ../fish/guestfish-actions.pod:713
6317 #: ../fish/guestfish-actions.pod:715
6320 " chown owner group path\n"
6325 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6326 msgid "Change the file owner to C<owner> and group to C<group>."
6330 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2526
6331 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3688
6333 "Only numeric uid and gid are supported. If you want to use names, you will "
6334 "need to locate and parse the password file yourself (Augeas support makes "
6335 "this relatively easy)."
6339 #: ../fish/guestfish-actions.pod:723
6344 #: ../fish/guestfish-actions.pod:725
6347 " command 'arguments ...'\n"
6352 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6354 "This call runs a command from the guest filesystem. The filesystem must be "
6355 "mounted, and must contain a compatible operating system (ie. something "
6356 "Linux, with the same or compatible processor architecture)."
6360 #: ../fish/guestfish-actions.pod:732
6362 "The single parameter is an argv-style list of arguments. The first element "
6363 "is the name of the program to run. Subsequent elements are parameters. The "
6364 "list must be non-empty (ie. must contain a program name). Note that the "
6365 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6369 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6370 msgid "The return value is anything printed to I<stdout> by the command."
6374 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6376 "If the command returns a non-zero exit status, then this function returns an "
6377 "error message. The error message string is the content of I<stderr> from "
6382 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6384 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6385 "bin>. If you require a program from another location, you should provide "
6386 "the full path in the first parameter."
6390 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6392 "Shared libraries and data files required by the program must be available on "
6393 "filesystems which are mounted in the correct places. It is the caller's "
6394 "responsibility to ensure all filesystems that are needed are mounted at the "
6399 #: ../fish/guestfish-actions.pod:760
6400 msgid "command-lines"
6404 #: ../fish/guestfish-actions.pod:762
6407 " command-lines 'arguments ...'\n"
6412 #: ../fish/guestfish-actions.pod:764
6414 "This is the same as L</command>, but splits the result into a list of lines."
6418 #: ../fish/guestfish-actions.pod:767
6419 msgid "See also: L</sh-lines>"
6423 #: ../fish/guestfish-actions.pod:772
6428 #: ../fish/guestfish-actions.pod:774
6431 " config qemuparam qemuvalue\n"
6436 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
6438 "This can be used to add arbitrary qemu command line parameters of the form "
6439 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
6440 "setting some parameters which would interfere with parameters that we use."
6444 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
6445 msgid "The first character of C<param> string must be a C<-> (dash)."
6449 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
6450 msgid "C<value> can be NULL."
6454 #: ../fish/guestfish-actions.pod:785
6459 #: ../fish/guestfish-actions.pod:787
6462 " copy-size src dest size\n"
6467 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
6469 "This command copies exactly C<size> bytes from one source device or file "
6470 "C<src> to another destination device or file C<dest>."
6474 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
6476 "Note this will fail if the source is too short or if the destination is not "
6481 #: ../fish/guestfish-actions.pod:795
6486 #: ../fish/guestfish-actions.pod:797
6494 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
6496 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6497 "destination filename or destination directory."
6501 #: ../fish/guestfish-actions.pod:802
6506 #: ../fish/guestfish-actions.pod:804
6514 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
6516 "This copies a file or directory from C<src> to C<dest> recursively using the "
6521 #: ../fish/guestfish-actions.pod:809
6526 #: ../fish/guestfish-actions.pod:811
6534 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
6536 "This command copies from one source device or file C<src> to another "
6537 "destination device or file C<dest>. Normally you would use this to copy to "
6538 "or from a device or partition, for example to duplicate a filesystem."
6542 #: ../fish/guestfish-actions.pod:818
6544 "If the destination is a device, it must be as large or larger than the "
6545 "source file or device, otherwise the copy will fail. This command cannot do "
6546 "partial copies (see L</copy-size>)."
6550 #: ../fish/guestfish-actions.pod:822
6555 #: ../fish/guestfish-actions.pod:824
6565 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
6566 msgid "This command runs the C<df> command to report disk space used."
6570 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
6572 "This command is mostly useful for interactive sessions. It is I<not> "
6573 "intended that you try to parse the output string. Use L</statvfs> from "
6578 #: ../fish/guestfish-actions.pod:832
6583 #: ../fish/guestfish-actions.pod:834
6593 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
6595 "This command runs the C<df -h> command to report disk space used in human-"
6600 #: ../fish/guestfish-actions.pod:843
6605 #: ../fish/guestfish-actions.pod:845
6615 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
6617 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
6618 "This is sometimes useful for extended debugging of problems."
6622 #: ../fish/guestfish-actions.pod:851
6624 "Another way to get the same information is to enable verbose messages with "
6625 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6626 "before running the program."
6630 #: ../fish/guestfish-actions.pod:856
6635 #: ../fish/guestfish-actions.pod:858
6638 " download remotefilename (filename|-)\n"
6643 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
6644 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
6646 "Download file C<remotefilename> and save it as C<filename> on the local "
6651 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4834
6652 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7263
6653 msgid "C<filename> can also be a named pipe."
6657 #: ../fish/guestfish-actions.pod:865
6658 msgid "See also L</upload>, L</cat>."
6662 #: ../fish/guestfish-actions.pod:869
6663 msgid "download-offset"
6664 msgstr "download-offset"
6667 #: ../fish/guestfish-actions.pod:871
6670 " download-offset remotefilename (filename|-) offset size\n"
6675 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6677 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6678 "region must be within the file or device)."
6682 #: ../fish/guestfish-actions.pod:879
6684 "Note that there is no limit on the amount of data that can be downloaded "
6685 "with this call, unlike with L</pread>, and this call always reads the full "
6686 "amount unless an error occurs."
6690 #: ../fish/guestfish-actions.pod:884
6691 msgid "See also L</download>, L</pread>."
6695 #: ../fish/guestfish-actions.pod:888
6700 #: ../fish/guestfish-actions.pod:890
6703 " drop-caches whattodrop\n"
6708 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6710 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6711 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
6712 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6716 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6717 msgid "Setting C<whattodrop> to 3 should drop everything."
6721 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6723 "This automatically calls L<sync(2)> before the operation, so that the "
6724 "maximum guest memory is freed."
6728 #: ../fish/guestfish-actions.pod:902
6733 #: ../fish/guestfish-actions.pod:904
6743 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6745 "This command runs the C<du -s> command to estimate file space usage for "
6750 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6752 "C<path> can be a file or a directory. If C<path> is a directory then the "
6753 "estimate includes the contents of the directory and all subdirectories "
6758 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6760 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6764 #: ../fish/guestfish-actions.pod:916
6769 #: ../fish/guestfish-actions.pod:918
6772 " e2fsck-f device\n"
6777 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6779 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6780 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6785 #: ../fish/guestfish-actions.pod:924
6787 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
6788 "should use L</fsck>."
6792 #: ../fish/guestfish-actions.pod:927
6797 #: ../fish/guestfish-actions.pod:929
6800 " echo-daemon 'words ...'\n"
6805 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6807 "This command concatenates the list of C<words> passed with single spaces "
6808 "between them and returns the resulting string."
6812 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6813 msgid "You can use this command to test the connection through to the daemon."
6817 #: ../fish/guestfish-actions.pod:936
6818 msgid "See also L</ping-daemon>."
6822 #: ../fish/guestfish-actions.pod:938
6827 #: ../fish/guestfish-actions.pod:940
6830 " egrep regex path\n"
6835 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6837 "This calls the external C<egrep> program and returns the matching lines."
6841 #: ../fish/guestfish-actions.pod:948
6846 #: ../fish/guestfish-actions.pod:950
6849 " egrepi regex path\n"
6854 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6856 "This calls the external C<egrep -i> program and returns the matching lines."
6860 #: ../fish/guestfish-actions.pod:958
6865 #: ../fish/guestfish-actions.pod:960
6868 " equal file1 file2\n"
6871 " equal файл1 файл2\n"
6875 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6877 "This compares the two files C<file1> and C<file2> and returns true if their "
6878 "content is exactly equal, or false otherwise."
6882 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6883 msgid "The external L<cmp(1)> program is used for the comparison."
6887 #: ../fish/guestfish-actions.pod:967
6892 #: ../fish/guestfish-actions.pod:969
6902 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6904 "This returns C<true> if and only if there is a file, directory (or anything) "
6905 "with the given C<path> name."
6909 #: ../fish/guestfish-actions.pod:974
6910 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6911 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6914 #: ../fish/guestfish-actions.pod:976
6919 #: ../fish/guestfish-actions.pod:978
6922 " fallocate path len\n"
6925 " fallocate шлях довжина\n"
6929 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6930 #: ../src/guestfs-actions.pod:1512 ../src/guestfs-actions.pod:1531
6932 "This command preallocates a file (containing zero bytes) named C<path> of "
6933 "size C<len> bytes. If the file exists already, it is overwritten."
6937 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1516
6939 "Do not confuse this with the guestfish-specific C<alloc> command which "
6940 "allocates a file in the host and attaches it as a device."
6944 #: ../fish/guestfish-actions.pod:988
6946 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6951 #: ../fish/guestfish-actions.pod:995
6953 msgstr "fallocate64"
6956 #: ../fish/guestfish-actions.pod:997
6959 " fallocate64 path len\n"
6962 " fallocate64 шлях довжина\n"
6966 #: ../fish/guestfish-actions.pod:1003
6968 "Note that this call allocates disk blocks for the file. To create a sparse "
6969 "file use L</truncate-size> instead."
6973 #: ../fish/guestfish-actions.pod:1006
6975 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6976 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6977 "maximum size of files created through that call to 1GB."
6981 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6983 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6984 "commands which create a file in the host and attach it as a device."
6988 #: ../fish/guestfish-actions.pod:1015
6993 #: ../fish/guestfish-actions.pod:1017
6996 " fgrep pattern path\n"
6999 " fgrep шаблон шлях\n"
7003 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
7005 "This calls the external C<fgrep> program and returns the matching lines."
7009 #: ../fish/guestfish-actions.pod:1025
7014 #: ../fish/guestfish-actions.pod:1027
7017 " fgrepi pattern path\n"
7020 " fgrepi шаблон шлях\n"
7024 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
7026 "This calls the external C<fgrep -i> program and returns the matching lines."
7030 #: ../fish/guestfish-actions.pod:1035
7035 #: ../fish/guestfish-actions.pod:1037
7045 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
7047 "This call uses the standard L<file(1)> command to determine the type or "
7048 "contents of the file."
7052 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
7054 "This call will also transparently look inside various types of compressed "
7059 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
7061 "The exact command which runs is C<file -zb path>. Note in particular that "
7062 "the filename is not prepended to the output (the I<-b> option)."
7066 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
7068 "The output depends on the output of the underlying L<file(1)> command and it "
7069 "can change in future in ways beyond our control. In other words, the output "
7070 "is not guaranteed by the ABI."
7074 #: ../fish/guestfish-actions.pod:1053
7076 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7077 "(etc), L</is-zero>."
7081 #: ../fish/guestfish-actions.pod:1056
7082 msgid "file-architecture"
7083 msgstr "file-architecture"
7086 #: ../fish/guestfish-actions.pod:1058
7089 " file-architecture filename\n"
7092 " file-architecture назва_файла\n"
7096 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
7098 "This detects the architecture of the binary C<filename>, and returns it if "
7103 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
7104 msgid "Currently defined architectures are:"
7108 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
7113 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
7115 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7116 "irrespective of the precise processor requirements of the binary."
7120 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
7125 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
7126 msgid "64 bit x86-64."
7130 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
7135 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
7136 msgid "32 bit SPARC."
7140 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
7145 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
7146 msgid "64 bit SPARC V9 and above."
7150 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
7155 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
7156 msgid "Intel Itanium."
7157 msgstr "Intel Itanium."
7160 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
7165 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
7166 msgid "32 bit Power PC."
7170 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
7175 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
7176 msgid "64 bit Power PC."
7180 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
7181 msgid "Libguestfs may return other architecture strings in future."
7185 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
7186 msgid "The function works on at least the following types of files:"
7190 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
7191 msgid "many types of Un*x and Linux binary"
7195 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
7196 msgid "many types of Un*x and Linux shared library"
7200 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
7201 msgid "Windows Win32 and Win64 binaries"
7205 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
7206 msgid "Windows Win32 and Win64 DLLs"
7210 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
7211 msgid "Win32 binaries and DLLs return C<i386>."
7215 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
7216 msgid "Win64 binaries and DLLs return C<x86_64>."
7220 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
7221 msgid "Linux kernel modules"
7225 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
7226 msgid "Linux new-style initrd images"
7230 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
7231 msgid "some non-x86 Linux vmlinuz kernels"
7235 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
7236 msgid "What it can't do currently:"
7240 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
7241 msgid "static libraries (libfoo.a)"
7245 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
7246 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7250 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
7251 msgid "x86 Linux vmlinuz kernels"
7255 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
7257 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7258 "compressed code, and are horribly hard to unpack. If you want to find the "
7259 "architecture of a kernel, use the architecture of the associated initrd or "
7260 "kernel module(s) instead."
7264 #: ../fish/guestfish-actions.pod:1161
7269 #: ../fish/guestfish-actions.pod:1163
7279 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
7280 msgid "This command returns the size of C<file> in bytes."
7284 #: ../fish/guestfish-actions.pod:1167
7286 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7287 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
7291 #: ../fish/guestfish-actions.pod:1171
7296 #: ../fish/guestfish-actions.pod:1173
7299 " fill c len path\n"
7304 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
7306 "This command creates a new file called C<path>. The initial content of the "
7307 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7312 #: ../fish/guestfish-actions.pod:1179
7314 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7315 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
7320 #: ../fish/guestfish-actions.pod:1184
7321 msgid "fill-pattern"
7322 msgstr "fill-pattern"
7325 #: ../fish/guestfish-actions.pod:1186
7328 " fill-pattern pattern len path\n"
7333 #: ../fish/guestfish-actions.pod:1188
7335 "This function is like L</fill> except that it creates a new file of length "
7336 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
7337 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7342 #: ../fish/guestfish-actions.pod:1193
7347 #: ../fish/guestfish-actions.pod:1195
7357 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
7359 "This command lists out all files and directories, recursively, starting at "
7360 "C<directory>. It is essentially equivalent to running the shell command "
7361 "C<find directory -print> but some post-processing happens on the output, "
7366 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
7368 "This returns a list of strings I<without any prefix>. Thus if the directory "
7373 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
7383 #: ../fish/guestfish-actions.pod:1209
7384 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7388 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
7399 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
7400 msgid "If C<directory> is not a directory, then this command returns an error."
7404 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
7405 msgid "The returned list is sorted."
7409 #: ../fish/guestfish-actions.pod:1222
7410 msgid "See also L</find0>."
7411 msgstr "Див. також L</find0>."
7414 #: ../fish/guestfish-actions.pod:1227
7419 #: ../fish/guestfish-actions.pod:1229
7422 " find0 directory (files|-)\n"
7425 " find0 каталог (файли|-)\n"
7429 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
7431 "This command lists out all files and directories, recursively, starting at "
7432 "C<directory>, placing the resulting list in the external file called "
7437 #: ../fish/guestfish-actions.pod:1235
7439 "This command works the same way as L</find> with the following exceptions:"
7443 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
7444 msgid "The resulting list is written to an external file."
7448 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
7450 "Items (filenames) in the result are separated by C<\\0> characters. See "
7451 "L<find(1)> option I<-print0>."
7455 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
7456 msgid "This command is not limited in the number of names that it can return."
7460 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
7461 msgid "The result list is not sorted."
7465 #: ../fish/guestfish-actions.pod:1262
7466 msgid "findfs-label"
7467 msgstr "findfs-label"
7470 #: ../fish/guestfish-actions.pod:1264
7473 " findfs-label label\n"
7476 " findfs-label мітка\n"
7480 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
7482 "This command searches the filesystems and returns the one which has the "
7483 "given label. An error is returned if no such filesystem can be found."
7487 #: ../fish/guestfish-actions.pod:1270
7488 msgid "To find the label of a filesystem, use L</vfs-label>."
7489 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7492 #: ../fish/guestfish-actions.pod:1272
7494 msgstr "findfs-uuid"
7497 #: ../fish/guestfish-actions.pod:1274
7500 " findfs-uuid uuid\n"
7503 " findfs-uuid uuid\n"
7507 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
7509 "This command searches the filesystems and returns the one which has the "
7510 "given UUID. An error is returned if no such filesystem can be found."
7514 #: ../fish/guestfish-actions.pod:1280
7515 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7516 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7519 #: ../fish/guestfish-actions.pod:1282
7524 #: ../fish/guestfish-actions.pod:1284
7527 " fsck fstype device\n"
7530 " fsck тип_файлової_системи пристрій\n"
7534 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
7536 "This runs the filesystem checker (fsck) on C<device> which should have "
7537 "filesystem type C<fstype>."
7541 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
7543 "The returned integer is the status. See L<fsck(8)> for the list of status "
7544 "codes from C<fsck>."
7548 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
7549 msgid "Multiple status codes can be summed together."
7553 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
7555 "A non-zero return code can mean \"success\", for example if errors have been "
7556 "corrected on the filesystem."
7560 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
7561 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7565 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
7567 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7571 #: ../fish/guestfish-actions.pod:1314
7576 #: ../fish/guestfish-actions.pod:1316
7586 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
7588 "Return the additional kernel options which are added to the guest kernel "
7593 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
7594 msgid "If C<NULL> then no options are added."
7598 #: ../fish/guestfish-actions.pod:1323
7599 msgid "get-attach-method"
7600 msgstr "get-attach-method"
7603 #: ../fish/guestfish-actions.pod:1325
7606 " get-attach-method\n"
7609 " get-attach-method\n"
7613 #: ../fish/guestfish-actions.pod:1327
7614 msgid "Return the current attach method. See L</set-attach-method>."
7618 #: ../fish/guestfish-actions.pod:1329
7619 msgid "get-autosync"
7620 msgstr "get-autosync"
7623 #: ../fish/guestfish-actions.pod:1331
7633 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
7634 msgid "Get the autosync flag."
7638 #: ../fish/guestfish-actions.pod:1335
7643 #: ../fish/guestfish-actions.pod:1337
7653 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
7654 msgid "Return the direct appliance mode flag."
7658 #: ../fish/guestfish-actions.pod:1341
7660 msgstr "get-e2label"
7663 #: ../fish/guestfish-actions.pod:1343
7666 " get-e2label device\n"
7669 " get-e2label пристрій\n"
7673 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2011
7675 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7679 #: ../fish/guestfish-actions.pod:1348
7681 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7686 #: ../fish/guestfish-actions.pod:1355
7691 #: ../fish/guestfish-actions.pod:1357
7694 " get-e2uuid device\n"
7697 " get-e2uuid пристрій\n"
7701 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2032
7703 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7707 #: ../fish/guestfish-actions.pod:1362
7709 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7714 #: ../fish/guestfish-actions.pod:1369
7716 msgstr "get-memsize"
7719 #: ../fish/guestfish-actions.pod:1371
7729 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7731 "This gets the memory size in megabytes allocated to the qemu subprocess."
7735 #: ../fish/guestfish-actions.pod:1376
7737 "If L</set-memsize> was not called on this handle, and if "
7738 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7739 "value for memsize."
7743 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7744 #: ../fish/guestfish-actions.pod:4194 ../fish/guestfish-actions.pod:4296
7745 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7746 #: ../src/guestfs-actions.pod:6324 ../src/guestfs-actions.pod:6450
7748 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7752 #: ../fish/guestfish-actions.pod:1383
7754 msgstr "get-network"
7757 #: ../fish/guestfish-actions.pod:1385
7767 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7768 msgid "This returns the enable network flag."
7772 #: ../fish/guestfish-actions.pod:1389
7777 #: ../fish/guestfish-actions.pod:1391
7787 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7788 msgid "Return the current search path."
7792 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7794 "This is always non-NULL. If it wasn't set already, then this will return "
7799 #: ../fish/guestfish-actions.pod:1398
7804 #: ../fish/guestfish-actions.pod:1400
7812 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7813 msgid "This returns the process group flag."
7817 #: ../fish/guestfish-actions.pod:1404
7822 #: ../fish/guestfish-actions.pod:1406
7827 #: ../fish/guestfish-actions.pod:1408
7837 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7839 "Return the process ID of the qemu subprocess. If there is no qemu "
7840 "subprocess, then this will return an error."
7844 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7845 msgid "This is an internal call used for debugging and testing."
7849 #: ../fish/guestfish-actions.pod:1415
7854 #: ../fish/guestfish-actions.pod:1417
7864 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7865 msgid "Return the current qemu binary."
7869 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7871 "This is always non-NULL. If it wasn't set already, then this will return "
7872 "the default qemu binary name."
7876 #: ../fish/guestfish-actions.pod:1424
7877 msgid "get-recovery-proc"
7878 msgstr "get-recovery-proc"
7881 #: ../fish/guestfish-actions.pod:1426
7884 " get-recovery-proc\n"
7887 " get-recovery-proc\n"
7891 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7892 msgid "Return the recovery process enabled flag."
7896 #: ../fish/guestfish-actions.pod:1430
7898 msgstr "get-selinux"
7901 #: ../fish/guestfish-actions.pod:1432
7911 #: ../fish/guestfish-actions.pod:1434
7913 "This returns the current setting of the selinux flag which is passed to the "
7914 "appliance at boot time. See L</set-selinux>."
7918 #: ../fish/guestfish-actions.pod:1440
7923 #: ../fish/guestfish-actions.pod:1442
7933 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7935 "This returns the current state as an opaque integer. This is only useful "
7936 "for printing debug and internal error messages."
7940 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2393
7941 #: ../fish/guestfish-actions.pod:2411 ../fish/guestfish-actions.pod:2449
7942 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:2159
7943 #: ../src/guestfs-actions.pod:3465 ../src/guestfs-actions.pod:3494
7944 #: ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:3582
7945 msgid "For more information on states, see L<guestfs(3)>."
7949 #: ../fish/guestfish-actions.pod:1449
7954 #: ../fish/guestfish-actions.pod:1451
7964 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7965 msgid "Return the command trace flag."
7969 #: ../fish/guestfish-actions.pod:1455
7974 #: ../fish/guestfish-actions.pod:1457
7984 #: ../fish/guestfish-actions.pod:1459
7986 "Return the current umask. By default the umask is C<022> unless it has been "
7987 "set by calling L</umask>."
7991 #: ../fish/guestfish-actions.pod:1462
7993 msgstr "get-verbose"
7996 #: ../fish/guestfish-actions.pod:1464
8006 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
8007 msgid "This returns the verbose messages flag."
8011 #: ../fish/guestfish-actions.pod:1468
8016 #: ../fish/guestfish-actions.pod:1470
8026 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
8027 msgid "This gets the SELinux security context of the daemon."
8031 #: ../fish/guestfish-actions.pod:1474
8032 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8036 #: ../fish/guestfish-actions.pod:1477
8041 #: ../fish/guestfish-actions.pod:1479
8044 " getxattr path name\n"
8047 " getxattr шлях назва\n"
8051 #: ../fish/guestfish-actions.pod:1481
8053 "Get a single extended attribute from file C<path> named C<name>. This call "
8054 "follows symlinks. If you want to lookup an extended attribute for the "
8055 "symlink itself, use L</lgetxattr>."
8059 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2538
8061 "Normally it is better to get all extended attributes from a file in one go "
8062 "by calling L</getxattrs>. However some Linux filesystem implementations are "
8063 "buggy and do not provide a way to list out attributes. For these "
8064 "filesystems (notably ntfs-3g) you have to know the names of the extended "
8065 "attributes you want in advance and call this function."
8069 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2545
8070 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3715
8072 "Extended attribute values are blobs of binary data. If there is no extended "
8073 "attribute named C<name>, this returns an error."
8077 #: ../fish/guestfish-actions.pod:1495
8078 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8079 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8082 #: ../fish/guestfish-actions.pod:1497
8087 #: ../fish/guestfish-actions.pod:1499
8097 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
8099 "This call lists the extended attributes of the file or directory C<path>."
8103 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
8105 "At the system call level, this is a combination of the L<listxattr(2)> and "
8106 "L<getxattr(2)> calls."
8110 #: ../fish/guestfish-actions.pod:1507
8111 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8112 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
8115 #: ../fish/guestfish-actions.pod:1509
8117 msgstr "glob-expand"
8120 #: ../fish/guestfish-actions.pod:1511
8123 " glob-expand pattern\n"
8126 " glob-expand шаблон\n"
8130 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
8132 "This command searches for all the pathnames matching C<pattern> according to "
8133 "the wildcard expansion rules used by the shell."
8137 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
8139 "If no paths match, then this returns an empty list (note: not an error)."
8143 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
8145 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8146 "GLOB_BRACE>. See that manual page for more details."
8150 #: ../fish/guestfish-actions.pod:1524
8155 #: ../fish/guestfish-actions.pod:1526
8158 " grep regex path\n"
8161 " grepi формальний_вираз шлях\n"
8165 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
8166 msgid "This calls the external C<grep> program and returns the matching lines."
8170 #: ../fish/guestfish-actions.pod:1534
8175 #: ../fish/guestfish-actions.pod:1536
8178 " grepi regex path\n"
8181 " grepi формальний_вираз шлях\n"
8185 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
8187 "This calls the external C<grep -i> program and returns the matching lines."
8191 #: ../fish/guestfish-actions.pod:1544
8192 msgid "grub-install"
8193 msgstr "grub-install"
8196 #: ../fish/guestfish-actions.pod:1546
8199 " grub-install root device\n"
8202 " grub-install кореневий пристрій\n"
8206 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
8208 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8209 "with the root directory being C<root>."
8213 #: ../fish/guestfish-actions.pod:1557 ../src/guestfs-actions.pod:2341
8215 "There is currently no way in the API to install grub2, which is used by most "
8216 "modern Linux guests. It is possible to run the grub2 command from the "
8217 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8221 #: ../fish/guestfish-actions.pod:1564 ../src/guestfs-actions.pod:2348
8223 "This uses C<grub-install> from the host. Unfortunately grub is not always "
8224 "compatible with itself, so this only works in rather narrow circumstances. "
8225 "Careful testing with each guest version is advisable."
8229 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2355
8231 "If grub-install reports the error \"No suitable drive was found in the "
8232 "generated device map.\" it may be that you need to create a C</boot/grub/"
8233 "device.map> file first that contains the mapping between grub device names "
8234 "and Linux device names. It is usually sufficient to create a file "
8239 #: ../fish/guestfish-actions.pod:1578 ../src/guestfs-actions.pod:2362
8247 #: ../fish/guestfish-actions.pod:1580 ../src/guestfs-actions.pod:2364
8248 msgid "replacing C</dev/vda> with the name of the installation device."
8252 #: ../fish/guestfish-actions.pod:1584
8257 #: ../fish/guestfish-actions.pod:1586
8267 #: ../fish/guestfish-actions.pod:1588 ../src/guestfs-actions.pod:2378
8269 "This command returns up to the first 10 lines of a file as a list of strings."
8273 #: ../fish/guestfish-actions.pod:1594
8278 #: ../fish/guestfish-actions.pod:1596
8281 " head-n nrlines path\n"
8286 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2397
8288 "If the parameter C<nrlines> is a positive number, this returns the first "
8289 "C<nrlines> lines of the file C<path>."
8293 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2400
8295 "If the parameter C<nrlines> is a negative number, this returns lines from "
8296 "the file C<path>, excluding the last C<nrlines> lines."
8300 #: ../fish/guestfish-actions.pod:1604 ../fish/guestfish-actions.pod:4674
8301 #: ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:7022
8302 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8306 #: ../fish/guestfish-actions.pod:1609
8311 #: ../fish/guestfish-actions.pod:1611
8321 #: ../fish/guestfish-actions.pod:1613 ../src/guestfs-actions.pod:2420
8323 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
8324 "readable, canonical hex dump of the file."
8328 #: ../fish/guestfish-actions.pod:1619
8333 #: ../fish/guestfish-actions.pod:1621
8336 " initrd-cat initrdpath filename\n"
8339 " initrd-cat шлях_initrd назва_файла\n"
8343 #: ../fish/guestfish-actions.pod:1623 ../src/guestfs-actions.pod:2439
8345 "This command unpacks the file C<filename> from the initrd file called "
8346 "C<initrdpath>. The filename must be given I<without> the initial C</> "
8351 #: ../fish/guestfish-actions.pod:1627 ../src/guestfs-actions.pod:2443
8353 "For example, in guestfish you could use the following command to examine the "
8354 "boot script (usually called C</init>) contained in a Linux initrd or "
8359 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2447
8362 " initrd-cat /boot/initrd-<version>.img init\n"
8367 #: ../fish/guestfish-actions.pod:1633
8368 msgid "See also L</initrd-list>."
8369 msgstr "Див. також L</initrd-list>."
8372 #: ../fish/guestfish-actions.pod:1638
8374 msgstr "initrd-list"
8377 #: ../fish/guestfish-actions.pod:1640
8380 " initrd-list path\n"
8383 " initrd-list шлях\n"
8387 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2466
8388 msgid "This command lists out files contained in an initrd."
8392 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2468
8394 "The files are listed without any initial C</> character. The files are "
8395 "listed in the order they appear (not necessarily alphabetical). Directory "
8396 "names are listed as separate items."
8400 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2472
8402 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8403 "initrd. We I<only> support the newer initramfs format (compressed cpio "
8408 #: ../fish/guestfish-actions.pod:1652
8409 msgid "inotify-add-watch"
8410 msgstr "inotify-add-watch"
8413 #: ../fish/guestfish-actions.pod:1654
8416 " inotify-add-watch path mask\n"
8419 " inotify-add-watch шлях маска\n"
8423 #: ../fish/guestfish-actions.pod:1656 ../src/guestfs-actions.pod:2489
8424 msgid "Watch C<path> for the events listed in C<mask>."
8428 #: ../fish/guestfish-actions.pod:1658 ../src/guestfs-actions.pod:2491
8430 "Note that if C<path> is a directory then events within that directory are "
8431 "watched, but this does I<not> happen recursively (in subdirectories)."
8435 #: ../fish/guestfish-actions.pod:1662 ../src/guestfs-actions.pod:2495
8437 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8438 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8442 #: ../fish/guestfish-actions.pod:1666
8443 msgid "inotify-close"
8444 msgstr "inotify-close"
8447 #: ../fish/guestfish-actions.pod:1668
8457 #: ../fish/guestfish-actions.pod:1670 ../src/guestfs-actions.pod:2508
8459 "This closes the inotify handle which was previously opened by inotify_init. "
8460 "It removes all watches, throws away any pending events, and deallocates all "
8465 #: ../fish/guestfish-actions.pod:1674
8466 msgid "inotify-files"
8467 msgstr "inotify-files"
8470 #: ../fish/guestfish-actions.pod:1676
8480 #: ../fish/guestfish-actions.pod:1678
8482 "This function is a helpful wrapper around L</inotify-read> which just "
8483 "returns a list of pathnames of objects that were touched. The returned "
8484 "pathnames are sorted and deduplicated."
8488 #: ../fish/guestfish-actions.pod:1682
8489 msgid "inotify-init"
8490 msgstr "inotify-init"
8493 #: ../fish/guestfish-actions.pod:1684
8496 " inotify-init maxevents\n"
8501 #: ../fish/guestfish-actions.pod:1686 ../src/guestfs-actions.pod:2537
8503 "This command creates a new inotify handle. The inotify subsystem can be "
8504 "used to notify events which happen to objects in the guest filesystem."
8508 #: ../fish/guestfish-actions.pod:1690
8510 "C<maxevents> is the maximum number of events which will be queued up between "
8511 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
8512 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
8513 "default was 16384 events. Beyond this limit, the kernel throws away events, "
8514 "but records the fact that it threw them away by setting a flag "
8515 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8519 #: ../fish/guestfish-actions.pod:1700
8521 "Before any events are generated, you have to add some watches to the "
8522 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8523 "L</inotify-watch-all>."
8527 #: ../fish/guestfish-actions.pod:1706
8529 "Queued up events should be read periodically by calling L</inotify-read> (or "
8530 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
8531 "If you don't read the events out often enough then you risk the internal "
8532 "queue overflowing."
8536 #: ../fish/guestfish-actions.pod:1713
8538 "The handle should be closed after use by calling L</inotify-close>. This "
8539 "also removes any watches automatically."
8543 #: ../fish/guestfish-actions.pod:1717 ../src/guestfs-actions.pod:2568
8545 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8546 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
8547 "that there is one global inotify handle per libguestfs instance."
8551 #: ../fish/guestfish-actions.pod:1722
8552 msgid "inotify-read"
8553 msgstr "inotify-read"
8556 #: ../fish/guestfish-actions.pod:1724
8566 #: ../fish/guestfish-actions.pod:1726 ../src/guestfs-actions.pod:2582
8568 "Return the complete queue of events that have happened since the previous "
8573 #: ../fish/guestfish-actions.pod:1729 ../src/guestfs-actions.pod:2585
8574 msgid "If no events have happened, this returns an empty list."
8578 #: ../fish/guestfish-actions.pod:1731 ../src/guestfs-actions.pod:2587
8580 "I<Note>: In order to make sure that all events have been read, you must call "
8581 "this function repeatedly until it returns an empty list. The reason is that "
8582 "the call will read events up to the maximum appliance-to-host message size "
8583 "and leave remaining events in the queue."
8587 #: ../fish/guestfish-actions.pod:1737
8588 msgid "inotify-rm-watch"
8589 msgstr "inotify-rm-watch"
8592 #: ../fish/guestfish-actions.pod:1739
8595 " inotify-rm-watch wd\n"
8600 #: ../fish/guestfish-actions.pod:1741
8601 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
8605 #: ../fish/guestfish-actions.pod:1744
8606 msgid "inspect-get-arch"
8607 msgstr "inspect-get-arch"
8610 #: ../fish/guestfish-actions.pod:1746
8613 " inspect-get-arch root\n"
8616 " inspect-get-arch корінь\n"
8620 #: ../fish/guestfish-actions.pod:1748
8622 "This returns the architecture of the inspected operating system. The "
8623 "possible return values are listed under L</file-architecture>."
8627 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2622
8629 "If the architecture could not be determined, then the string C<unknown> is "
8634 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1842
8635 #: ../fish/guestfish-actions.pod:1921 ../fish/guestfish-actions.pod:1933
8636 #: ../fish/guestfish-actions.pod:2017 ../fish/guestfish-actions.pod:2078
8637 #: ../fish/guestfish-actions.pod:2099 ../fish/guestfish-actions.pod:2113
8638 #: ../fish/guestfish-actions.pod:2153 ../fish/guestfish-actions.pod:2185
8639 #: ../fish/guestfish-actions.pod:2198 ../fish/guestfish-actions.pod:2211
8640 #: ../fish/guestfish-actions.pod:2221 ../fish/guestfish-actions.pod:2231
8641 #: ../fish/guestfish-actions.pod:2243 ../fish/guestfish-actions.pod:2339
8642 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:2625
8643 #: ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2823
8644 #: ../src/guestfs-actions.pod:2842 ../src/guestfs-actions.pod:2973
8645 #: ../src/guestfs-actions.pod:3056 ../src/guestfs-actions.pod:3084
8646 #: ../src/guestfs-actions.pod:3105 ../src/guestfs-actions.pod:3158
8647 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3218
8648 #: ../src/guestfs-actions.pod:3238 ../src/guestfs-actions.pod:3255
8649 #: ../src/guestfs-actions.pod:3271 ../src/guestfs-actions.pod:3289
8650 #: ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3432
8651 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8655 #: ../fish/guestfish-actions.pod:1757
8656 msgid "inspect-get-distro"
8657 msgstr "inspect-get-distro"
8660 #: ../fish/guestfish-actions.pod:1759
8663 " inspect-get-distro root\n"
8666 " inspect-get-distro корінь\n"
8670 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
8672 "This returns the distro (distribution) of the inspected operating system."
8676 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
8677 msgid "Currently defined distros are:"
8681 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
8682 msgid "\"archlinux\""
8683 msgstr "\"archlinux\""
8686 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
8688 msgstr "Arch Linux."
8691 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
8696 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
8701 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
8706 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
8711 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
8716 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
8721 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
8726 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
8731 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
8732 msgid "\"linuxmint\""
8733 msgstr "\"linuxmint\""
8736 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
8738 msgstr "Linux Mint."
8741 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
8742 msgid "\"mandriva\""
8743 msgstr "\"mandriva\""
8746 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8751 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8756 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8761 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8766 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2679
8771 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8772 msgid "\"redhat-based\""
8773 msgstr "\"redhat-based\""
8776 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2683
8777 msgid "Some Red Hat-derived distro."
8778 msgstr "Дистрибутив, що походить від Red Hat."
8781 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8786 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2687
8787 msgid "Red Hat Enterprise Linux."
8791 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2689
8792 msgid "\"scientificlinux\""
8796 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2691
8797 msgid "Scientific Linux."
8801 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2693
8802 msgid "\"slackware\""
8806 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2695
8811 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2697
8813 #| msgid "\"linux\""
8814 msgid "\"ttylinux\""
8818 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2699
8820 #| msgid "\"linux\""
8825 #: ../fish/guestfish-actions.pod:1824 ../src/guestfs-actions.pod:2701
8830 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2703
8835 #: ../fish/guestfish-actions.pod:1828 ../fish/guestfish-actions.pod:1912
8836 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:2705
8837 #: ../src/guestfs-actions.pod:2814 ../src/guestfs-actions.pod:3189
8839 msgstr "\"unknown\""
8842 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2707
8843 msgid "The distro could not be determined."
8844 msgstr "Дистрибутив, тип якого не вдалося визначити."
8847 #: ../fish/guestfish-actions.pod:1832 ../fish/guestfish-actions.pod:2168
8848 #: ../src/guestfs-actions.pod:2709 ../src/guestfs-actions.pod:3181
8850 msgstr "\"windows\""
8853 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2711
8855 "Windows does not have distributions. This string is returned if the OS type "
8860 #: ../fish/guestfish-actions.pod:1839 ../fish/guestfish-actions.pod:1918
8861 #: ../fish/guestfish-actions.pod:2182 ../src/guestfs-actions.pod:2716
8862 #: ../src/guestfs-actions.pod:2820 ../src/guestfs-actions.pod:3195
8864 "Future versions of libguestfs may return other strings here. The caller "
8865 "should be prepared to handle any string."
8869 #: ../fish/guestfish-actions.pod:1844
8870 msgid "inspect-get-drive-mappings"
8874 #: ../fish/guestfish-actions.pod:1846
8877 " inspect-get-drive-mappings root\n"
8882 #: ../fish/guestfish-actions.pod:1848 ../src/guestfs-actions.pod:2732
8884 "This call is useful for Windows which uses a primitive system of assigning "
8885 "drive letters (like \"C:\") to partitions. This inspection API examines the "
8886 "Windows Registry to find out how disks/partitions are mapped to drive "
8887 "letters, and returns a hash table as in the example below:"
8891 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2738
8901 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2742
8903 "Note that keys are drive letters. For Windows, the key is case insensitive "
8904 "and just contains the drive letter, without the customary colon separator "
8909 #: ../fish/guestfish-actions.pod:1862 ../src/guestfs-actions.pod:2746
8911 "In future we may support other operating systems that also used drive "
8912 "letters, but the keys for those might not be case insensitive and might be "
8913 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
8918 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2751
8920 "For Windows guests, currently only hard drive mappings are returned. "
8921 "Removable disks (eg. DVD-ROMs) are ignored."
8925 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2754
8927 "For guests that do not use drive mappings, or if the drive mappings could "
8928 "not be determined, this returns an empty hash table."
8932 #: ../fish/guestfish-actions.pod:1873
8934 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8935 "get-mountpoints>, L</inspect-get-filesystems>."
8939 #: ../fish/guestfish-actions.pod:1877
8940 msgid "inspect-get-filesystems"
8941 msgstr "inspect-get-filesystems"
8944 #: ../fish/guestfish-actions.pod:1879
8947 " inspect-get-filesystems root\n"
8950 " inspect-get-filesystems корінь\n"
8954 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2775
8956 "This returns a list of all the filesystems that we think are associated with "
8957 "this operating system. This includes the root filesystem, other ordinary "
8958 "filesystems, and non-mounted devices like swap partitions."
8962 #: ../fish/guestfish-actions.pod:1886 ../src/guestfs-actions.pod:2780
8964 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8965 "to be shared between operating systems."
8969 #: ../fish/guestfish-actions.pod:1889
8971 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8976 #: ../fish/guestfish-actions.pod:1892
8977 msgid "inspect-get-format"
8978 msgstr "inspect-get-format"
8981 #: ../fish/guestfish-actions.pod:1894
8984 " inspect-get-format root\n"
8987 " inspect-get-format корінь\n"
8991 #: ../fish/guestfish-actions.pod:1896 ../src/guestfs-actions.pod:2798
8993 "This returns the format of the inspected operating system. You can use it "
8994 "to detect install images, live CDs and similar."
8998 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2801
8999 msgid "Currently defined formats are:"
9003 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2805
9004 msgid "\"installed\""
9005 msgstr "\"installed\""
9008 #: ../fish/guestfish-actions.pod:1905 ../src/guestfs-actions.pod:2807
9009 msgid "This is an installed operating system."
9010 msgstr "Це встановлена операційна система."
9013 #: ../fish/guestfish-actions.pod:1907 ../src/guestfs-actions.pod:2809
9014 msgid "\"installer\""
9018 #: ../fish/guestfish-actions.pod:1909 ../src/guestfs-actions.pod:2811
9020 "The disk image being inspected is not an installed operating system, but a "
9021 "I<bootable> install disk, live CD, or similar."
9025 #: ../fish/guestfish-actions.pod:1914 ../src/guestfs-actions.pod:2816
9026 msgid "The format of this disk image is not known."
9030 #: ../fish/guestfish-actions.pod:1923
9031 msgid "inspect-get-hostname"
9032 msgstr "inspect-get-hostname"
9035 #: ../fish/guestfish-actions.pod:1925
9038 " inspect-get-hostname root\n"
9041 " inspect-get-hostname корінь\n"
9045 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2836
9047 "This function returns the hostname of the operating system as found by "
9048 "inspection of the guest's configuration files."
9052 #: ../fish/guestfish-actions.pod:1930 ../src/guestfs-actions.pod:2839
9054 "If the hostname could not be determined, then the string C<unknown> is "
9059 #: ../fish/guestfish-actions.pod:1935
9060 msgid "inspect-get-icon"
9064 #: ../fish/guestfish-actions.pod:1937
9067 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9072 #: ../fish/guestfish-actions.pod:1939 ../src/guestfs-actions.pod:2865
9074 "This function returns an icon corresponding to the inspected operating "
9075 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
9076 "to PNG if necessary)."
9080 #: ../fish/guestfish-actions.pod:1943 ../src/guestfs-actions.pod:2869
9082 "If it was not possible to get an icon this function returns a zero-length "
9083 "(non-NULL) buffer. I<Callers must check for this case>."
9087 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
9089 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9090 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9091 "this file will be returned. You can disable favicons by passing the "
9092 "optional C<favicon> boolean as false (default is true)."
9096 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:2878
9098 "If finding the favicon fails, then we look in other places in the guest for "
9103 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2881
9105 "If the optional C<highquality> boolean is true then only high quality icons "
9106 "are returned, which means only icons of high resolution with an alpha "
9107 "channel. The default (false) is to return any icon we can, even if it is of "
9108 "substandard quality."
9112 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:2892
9114 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9115 "before you call this, since it needs to read information from the guest "
9116 "filesystem during the call."
9120 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:2898
9122 "B<Security:> The icon data comes from the untrusted guest, and should be "
9123 "treated with caution. PNG files have been known to contain exploits. "
9124 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9125 "trying to process or display the icon."
9129 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2906
9131 "The PNG image returned can be any size. It might not be square. Libguestfs "
9132 "tries to return the largest, highest quality icon available. The "
9133 "application must scale the icon to the required size."
9137 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2913
9139 "Extracting icons from Windows guests requires the external C<wrestool> "
9140 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9141 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
9142 "installed separately."
9146 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:2920
9148 "Operating system icons are usually trademarks. Seek legal advice before "
9149 "using trademarks in applications."
9153 #: ../fish/guestfish-actions.pod:2001
9154 msgid "inspect-get-major-version"
9155 msgstr "inspect-get-major-version"
9158 #: ../fish/guestfish-actions.pod:2003
9161 " inspect-get-major-version root\n"
9164 " inspect-get-major-version корінь\n"
9168 #: ../fish/guestfish-actions.pod:2005 ../src/guestfs-actions.pod:2961
9170 "This returns the major version number of the inspected operating system."
9174 #: ../fish/guestfish-actions.pod:2008 ../src/guestfs-actions.pod:2964
9176 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9177 "popular public names used by the operating system. Notably the operating "
9178 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9179 "1). You can find out the real versions corresponding to releases of Windows "
9180 "by consulting Wikipedia or MSDN."
9184 #: ../fish/guestfish-actions.pod:2015 ../fish/guestfish-actions.pod:2026
9185 #: ../src/guestfs-actions.pod:2971 ../src/guestfs-actions.pod:2988
9186 msgid "If the version could not be determined, then C<0> is returned."
9190 #: ../fish/guestfish-actions.pod:2019
9191 msgid "inspect-get-minor-version"
9192 msgstr "inspect-get-minor-version"
9195 #: ../fish/guestfish-actions.pod:2021
9198 " inspect-get-minor-version root\n"
9201 " inspect-get-minor-version корінь\n"
9205 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2985
9207 "This returns the minor version number of the inspected operating system."
9211 #: ../fish/guestfish-actions.pod:2028
9213 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9214 "get-major-version>."
9218 #: ../fish/guestfish-actions.pod:2031
9219 msgid "inspect-get-mountpoints"
9220 msgstr "inspect-get-mountpoints"
9223 #: ../fish/guestfish-actions.pod:2033
9226 " inspect-get-mountpoints root\n"
9229 " inspect-get-mountpoints корінь\n"
9233 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3003
9235 "This returns a hash of where we think the filesystems associated with this "
9236 "operating system should be mounted. Callers should note that this is at "
9237 "best an educated guess made by reading configuration files such as C</etc/"
9238 "fstab>. I<In particular note> that this may return filesystems which are "
9239 "non-existent or not mountable and callers should be prepared to handle or "
9240 "ignore failures if they try to mount them."
9244 #: ../fish/guestfish-actions.pod:2044 ../src/guestfs-actions.pod:3012
9246 "Each element in the returned hashtable has a key which is the path of the "
9247 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9248 "mounted there (eg. C</dev/sda1>)."
9252 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3017
9254 "Non-mounted devices such as swap devices are I<not> returned in this list."
9258 #: ../fish/guestfish-actions.pod:2052
9260 "For operating systems like Windows which still use drive letters, this call "
9261 "will only return an entry for the first drive \"mounted on\" C</>. For "
9262 "information about the mapping of drive letters to partitions, see L</inspect-"
9263 "get-drive-mappings>."
9267 #: ../fish/guestfish-actions.pod:2058
9269 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9274 #: ../fish/guestfish-actions.pod:2061
9275 msgid "inspect-get-package-format"
9276 msgstr "inspect-get-package-format"
9279 #: ../fish/guestfish-actions.pod:2063
9282 " inspect-get-package-format root\n"
9285 " inspect-get-package-format корінь\n"
9289 #: ../fish/guestfish-actions.pod:2065
9291 "This function and L</inspect-get-package-management> return the package "
9292 "format and package management tool used by the inspected operating system. "
9293 "For example for Fedora these functions would return C<rpm> (package format) "
9294 "and C<yum> (package management)."
9298 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3049
9300 "This returns the string C<unknown> if we could not determine the package "
9301 "format I<or> if the operating system does not have a real packaging system "
9306 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3053
9308 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>. "
9309 "Future versions of libguestfs may return other strings."
9313 #: ../fish/guestfish-actions.pod:2080
9314 msgid "inspect-get-package-management"
9315 msgstr "inspect-get-package-management"
9318 #: ../fish/guestfish-actions.pod:2082
9321 " inspect-get-package-management root\n"
9324 " inspect-get-package-management корінь\n"
9328 #: ../fish/guestfish-actions.pod:2084
9330 "L</inspect-get-package-format> and this function return the package format "
9331 "and package management tool used by the inspected operating system. For "
9332 "example for Fedora these functions would return C<rpm> (package format) and "
9333 "C<yum> (package management)."
9337 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3075
9339 "This returns the string C<unknown> if we could not determine the package "
9340 "management tool I<or> if the operating system does not have a real packaging "
9341 "system (eg. Windows)."
9345 #: ../fish/guestfish-actions.pod:2094 ../src/guestfs-actions.pod:3079
9347 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9348 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>. Future versions of "
9349 "libguestfs may return other strings."
9353 #: ../fish/guestfish-actions.pod:2101
9354 msgid "inspect-get-product-name"
9355 msgstr "inspect-get-product-name"
9358 #: ../fish/guestfish-actions.pod:2103
9361 " inspect-get-product-name root\n"
9364 " inspect-get-product-name корінь\n"
9368 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3097
9370 "This returns the product name of the inspected operating system. The "
9371 "product name is generally some freeform string which can be displayed to the "
9372 "user, but should not be parsed by programs."
9376 #: ../fish/guestfish-actions.pod:2110 ../src/guestfs-actions.pod:3102
9378 "If the product name could not be determined, then the string C<unknown> is "
9383 #: ../fish/guestfish-actions.pod:2115
9384 msgid "inspect-get-product-variant"
9388 #: ../fish/guestfish-actions.pod:2117
9391 " inspect-get-product-variant root\n"
9396 #: ../fish/guestfish-actions.pod:2119 ../src/guestfs-actions.pod:3118
9397 msgid "This returns the product variant of the inspected operating system."
9401 #: ../fish/guestfish-actions.pod:2122 ../src/guestfs-actions.pod:3121
9403 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9404 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9405 "is usually a string such as C<Client> or C<Server> (other values are "
9406 "possible). This can be used to distinguish consumer and enterprise versions "
9407 "of Windows that have the same version number (for example, Windows 7 and "
9408 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9409 "the latter is C<Server>)."
9413 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3130
9415 "For enterprise Linux guests, in future we intend this to return the product "
9416 "variant such as C<Desktop>, C<Server> and so on. But this is not "
9417 "implemented at present."
9421 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3134
9423 "If the product variant could not be determined, then the string C<unknown> "
9428 #: ../fish/guestfish-actions.pod:2138
9430 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9431 "get-product-name>, L</inspect-get-major-version>."
9435 #: ../fish/guestfish-actions.pod:2142
9436 msgid "inspect-get-roots"
9437 msgstr "inspect-get-roots"
9440 #: ../fish/guestfish-actions.pod:2144
9443 " inspect-get-roots\n"
9446 " inspect-get-roots\n"
9450 #: ../fish/guestfish-actions.pod:2146
9452 "This function is a convenient way to get the list of root devices, as "
9453 "returned from a previous call to L</inspect-os>, but without redoing the "
9454 "whole inspection process."
9458 #: ../fish/guestfish-actions.pod:2150
9460 "This returns an empty list if either no root devices were found or the "
9461 "caller has not called L</inspect-os>."
9465 #: ../fish/guestfish-actions.pod:2155
9466 msgid "inspect-get-type"
9467 msgstr "inspect-get-type"
9470 #: ../fish/guestfish-actions.pod:2157
9473 " inspect-get-type root\n"
9476 " inspect-get-type корінь\n"
9480 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3172
9482 "This returns the type of the inspected operating system. Currently defined "
9487 #: ../fish/guestfish-actions.pod:2164 ../src/guestfs-actions.pod:3177
9492 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3179
9493 msgid "Any Linux-based operating system."
9497 #: ../fish/guestfish-actions.pod:2170 ../src/guestfs-actions.pod:3183
9498 msgid "Any Microsoft Windows operating system."
9502 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3185
9504 msgstr "\"freebsd\""
9507 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3187
9512 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3191
9513 msgid "The operating system type could not be determined."
9517 #: ../fish/guestfish-actions.pod:2187
9518 msgid "inspect-get-windows-current-control-set"
9522 #: ../fish/guestfish-actions.pod:2189
9525 " inspect-get-windows-current-control-set root\n"
9530 #: ../fish/guestfish-actions.pod:2191 ../src/guestfs-actions.pod:3211
9532 "This returns the Windows CurrentControlSet of the inspected guest. The "
9533 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9537 #: ../fish/guestfish-actions.pod:2194 ../src/guestfs-actions.pod:3214
9539 "This call assumes that the guest is Windows and that the Registry could be "
9540 "examined by inspection. If this is not the case then an error is returned."
9544 #: ../fish/guestfish-actions.pod:2200
9545 msgid "inspect-get-windows-systemroot"
9546 msgstr "inspect-get-windows-systemroot"
9549 #: ../fish/guestfish-actions.pod:2202
9552 " inspect-get-windows-systemroot root\n"
9555 " inspect-get-windows-systemroot корінь\n"
9559 #: ../fish/guestfish-actions.pod:2204 ../src/guestfs-actions.pod:3231
9561 "This returns the Windows systemroot of the inspected guest. The systemroot "
9562 "is a directory path such as C</WINDOWS>."
9566 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3234
9568 "This call assumes that the guest is Windows and that the systemroot could be "
9569 "determined by inspection. If this is not the case then an error is returned."
9573 #: ../fish/guestfish-actions.pod:2213
9574 msgid "inspect-is-live"
9575 msgstr "inspect-is-live"
9578 #: ../fish/guestfish-actions.pod:2215
9581 " inspect-is-live root\n"
9584 " inspect-is-live корінь\n"
9588 #: ../fish/guestfish-actions.pod:2217
9590 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9591 "then this returns true if a live image was detected on the disk."
9595 #: ../fish/guestfish-actions.pod:2223
9596 msgid "inspect-is-multipart"
9597 msgstr "inspect-is-multipart"
9600 #: ../fish/guestfish-actions.pod:2225
9603 " inspect-is-multipart root\n"
9606 " inspect-is-multipart корінь\n"
9610 #: ../fish/guestfish-actions.pod:2227
9612 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9613 "then this returns true if the disk is part of a set."
9617 #: ../fish/guestfish-actions.pod:2233
9618 msgid "inspect-is-netinst"
9619 msgstr "inspect-is-netinst"
9622 #: ../fish/guestfish-actions.pod:2235
9625 " inspect-is-netinst root\n"
9628 " inspect-is-netinst корінь\n"
9632 #: ../fish/guestfish-actions.pod:2237
9634 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9635 "then this returns true if the disk is a network installer, ie. not a self-"
9636 "contained install CD but one which is likely to require network access to "
9637 "complete the install."
9641 #: ../fish/guestfish-actions.pod:2245
9642 msgid "inspect-list-applications"
9643 msgstr "inspect-list-applications"
9646 #: ../fish/guestfish-actions.pod:2247
9649 " inspect-list-applications root\n"
9652 " inspect-list-applications кореневий_каталог\n"
9656 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
9657 msgid "Return the list of applications installed in the operating system."
9661 #: ../fish/guestfish-actions.pod:2251
9663 "I<Note:> This call works differently from other parts of the inspection "
9664 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9665 "then mount up the disks, before calling this. Listing applications is a "
9666 "significantly more difficult operation which requires access to the full "
9667 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
9668 "are just returning data cached in the libguestfs handle, this call actually "
9669 "reads parts of the mounted filesystems during the call."
9673 #: ../fish/guestfish-actions.pod:2261 ../src/guestfs-actions.pod:3313
9675 "This returns an empty list if the inspection code was not able to determine "
9676 "the list of applications."
9680 #: ../fish/guestfish-actions.pod:2264 ../src/guestfs-actions.pod:3316
9681 msgid "The application structure contains the following fields:"
9685 #: ../fish/guestfish-actions.pod:2268 ../src/guestfs-actions.pod:3320
9687 msgstr "C<app_name>"
9690 #: ../fish/guestfish-actions.pod:2270 ../src/guestfs-actions.pod:3322
9692 "The name of the application. For Red Hat-derived and Debian-derived Linux "
9693 "guests, this is the package name."
9697 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
9698 msgid "C<app_display_name>"
9699 msgstr "C<app_display_name>"
9702 #: ../fish/guestfish-actions.pod:2275 ../src/guestfs-actions.pod:3327
9704 "The display name of the application, sometimes localized to the install "
9705 "language of the guest operating system."
9709 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
9711 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
9712 "to display something can use C<app_name> instead."
9716 #: ../fish/guestfish-actions.pod:2281 ../src/guestfs-actions.pod:3333
9717 msgid "C<app_epoch>"
9718 msgstr "C<app_epoch>"
9721 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3335
9723 "For package managers which use epochs, this contains the epoch of the "
9724 "package (an integer). If unavailable, this is returned as C<0>."
9728 #: ../fish/guestfish-actions.pod:2286 ../src/guestfs-actions.pod:3338
9729 msgid "C<app_version>"
9730 msgstr "C<app_version>"
9733 #: ../fish/guestfish-actions.pod:2288 ../src/guestfs-actions.pod:3340
9735 "The version string of the application or package. If unavailable this is "
9736 "returned as an empty string C<\"\">."
9740 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
9741 msgid "C<app_release>"
9742 msgstr "C<app_release>"
9745 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9747 "The release string of the application or package, for package managers that "
9748 "use this. If unavailable this is returned as an empty string C<\"\">."
9752 #: ../fish/guestfish-actions.pod:2297 ../src/guestfs-actions.pod:3349
9753 msgid "C<app_install_path>"
9754 msgstr "C<app_install_path>"
9757 #: ../fish/guestfish-actions.pod:2299 ../src/guestfs-actions.pod:3351
9759 "The installation path of the application (on operating systems such as "
9760 "Windows which use installation paths). This path is in the format used by "
9761 "the guest operating system, it is not a libguestfs path."
9765 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3356
9766 msgid "If unavailable this is returned as an empty string C<\"\">."
9770 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
9771 msgid "C<app_trans_path>"
9772 msgstr "C<app_trans_path>"
9775 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
9777 "The install path translated into a libguestfs path. If unavailable this is "
9778 "returned as an empty string C<\"\">."
9782 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3363
9783 msgid "C<app_publisher>"
9784 msgstr "C<app_publisher>"
9787 #: ../fish/guestfish-actions.pod:2313 ../src/guestfs-actions.pod:3365
9789 "The name of the publisher of the application, for package managers that use "
9790 "this. If unavailable this is returned as an empty string C<\"\">."
9794 #: ../fish/guestfish-actions.pod:2317 ../src/guestfs-actions.pod:3369
9799 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3371
9801 "The URL (eg. upstream URL) of the application. If unavailable this is "
9802 "returned as an empty string C<\"\">."
9806 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3374
9807 msgid "C<app_source_package>"
9808 msgstr "C<app_source_package>"
9811 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3376
9813 "For packaging systems which support this, the name of the source package. "
9814 "If unavailable this is returned as an empty string C<\"\">."
9818 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3379
9819 msgid "C<app_summary>"
9820 msgstr "C<app_summary>"
9823 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3381
9825 "A short (usually one line) description of the application or package. If "
9826 "unavailable this is returned as an empty string C<\"\">."
9830 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3384
9831 msgid "C<app_description>"
9832 msgstr "C<app_description>"
9835 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3386
9837 "A longer description of the application or package. If unavailable this is "
9838 "returned as an empty string C<\"\">."
9842 #: ../fish/guestfish-actions.pod:2341
9847 #: ../fish/guestfish-actions.pod:2343
9857 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3404
9859 "This function uses other libguestfs functions and certain heuristics to "
9860 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9861 "for operating systems."
9865 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3408
9866 msgid "The list returned is empty if no operating systems were found."
9870 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3410
9872 "If one operating system was found, then this returns a list with a single "
9873 "element, which is the name of the root filesystem of this operating system. "
9874 "It is also possible for this function to return a list containing more than "
9875 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9876 "element being the root filesystem of one of the operating systems."
9880 #: ../fish/guestfish-actions.pod:2358
9882 "You can pass the root string(s) returned to other L</inspect-get-*> "
9883 "functions in order to query further information about each operating system, "
9884 "such as the name and version."
9888 #: ../fish/guestfish-actions.pod:2363
9890 "This function uses other libguestfs features such as L</mount-ro> and L</"
9891 "umount-all> in order to mount and unmount filesystems and look at the "
9892 "contents. This should be called with no disks currently mounted. The "
9893 "function may also use Augeas, so any existing Augeas handle will be closed."
9897 #: ../fish/guestfish-actions.pod:2369 ../src/guestfs-actions.pod:3428
9899 "This function cannot decrypt encrypted disks. The caller must do that first "
9900 "(supplying the necessary keys) if the disk is encrypted."
9904 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2573
9905 #: ../fish/guestfish-actions.pod:2632
9906 msgid "See also L</list-filesystems>."
9907 msgstr "Див. також L</list-filesystems>."
9910 #: ../fish/guestfish-actions.pod:2377
9912 msgstr "is-blockdev"
9915 #: ../fish/guestfish-actions.pod:2379
9918 " is-blockdev path\n"
9921 " is-blockdev шлях\n"
9925 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3448
9927 "This returns C<true> if and only if there is a block device with the given "
9932 #: ../fish/guestfish-actions.pod:2384 ../fish/guestfish-actions.pod:2402
9933 #: ../fish/guestfish-actions.pod:2421 ../fish/guestfish-actions.pod:2430
9934 #: ../fish/guestfish-actions.pod:2440 ../fish/guestfish-actions.pod:2474
9935 #: ../fish/guestfish-actions.pod:2483
9936 msgid "See also L</stat>."
9937 msgstr "Див. також L</stat>."
9940 #: ../fish/guestfish-actions.pod:2386
9945 #: ../fish/guestfish-actions.pod:2388
9955 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3462
9957 "This returns true iff this handle is busy processing a command (in the "
9962 #: ../fish/guestfish-actions.pod:2395
9967 #: ../fish/guestfish-actions.pod:2397
9970 " is-chardev path\n"
9973 " is-chardev шлях\n"
9977 #: ../fish/guestfish-actions.pod:2399 ../src/guestfs-actions.pod:3477
9979 "This returns C<true> if and only if there is a character device with the "
9980 "given C<path> name."
9984 #: ../fish/guestfish-actions.pod:2404
9989 #: ../fish/guestfish-actions.pod:2406
9999 #: ../fish/guestfish-actions.pod:2408 ../src/guestfs-actions.pod:3491
10001 "This returns true iff this handle is being configured (in the C<CONFIG> "
10006 #: ../fish/guestfish-actions.pod:2413
10011 #: ../fish/guestfish-actions.pod:2415
10021 #: ../fish/guestfish-actions.pod:2417 ../src/guestfs-actions.pod:3506
10023 "This returns C<true> if and only if there is a directory with the given "
10024 "C<path> name. Note that it returns false for other objects like files."
10028 #: ../fish/guestfish-actions.pod:2423
10033 #: ../fish/guestfish-actions.pod:2425
10043 #: ../fish/guestfish-actions.pod:2427 ../src/guestfs-actions.pod:3522
10045 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
10046 "given C<path> name."
10050 #: ../fish/guestfish-actions.pod:2432
10055 #: ../fish/guestfish-actions.pod:2434
10065 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3537
10067 "This returns C<true> if and only if there is a regular file with the given "
10068 "C<path> name. Note that it returns false for other objects like directories."
10072 #: ../fish/guestfish-actions.pod:2442
10073 msgid "is-launching"
10074 msgstr "is-launching"
10077 #: ../fish/guestfish-actions.pod:2444
10087 #: ../fish/guestfish-actions.pod:2446 ../src/guestfs-actions.pod:3552
10089 "This returns true iff this handle is launching the subprocess (in the "
10090 "C<LAUNCHING> state)."
10094 #: ../fish/guestfish-actions.pod:2451
10099 #: ../fish/guestfish-actions.pod:2453
10105 " is-lv пристрій\n"
10109 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3567
10111 "This command tests whether C<device> is a logical volume, and returns true "
10112 "iff this is the case."
10116 #: ../fish/guestfish-actions.pod:2458
10121 #: ../fish/guestfish-actions.pod:2460
10131 #: ../fish/guestfish-actions.pod:2462 ../src/guestfs-actions.pod:3579
10133 "This returns true iff this handle is ready to accept commands (in the "
10138 #: ../fish/guestfish-actions.pod:2467
10143 #: ../fish/guestfish-actions.pod:2469
10146 " is-socket path\n"
10149 " is-socket шлях\n"
10153 #: ../fish/guestfish-actions.pod:2471 ../src/guestfs-actions.pod:3594
10155 "This returns C<true> if and only if there is a Unix domain socket with the "
10156 "given C<path> name."
10160 #: ../fish/guestfish-actions.pod:2476
10162 msgstr "is-symlink"
10165 #: ../fish/guestfish-actions.pod:2478
10168 " is-symlink path\n"
10171 " is-symlink шлях\n"
10175 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3609
10177 "This returns C<true> if and only if there is a symbolic link with the given "
10182 #: ../fish/guestfish-actions.pod:2485
10187 #: ../fish/guestfish-actions.pod:2487
10195 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3624
10197 "This returns true iff the file exists and the file is empty or it contains "
10202 #: ../fish/guestfish-actions.pod:2492
10203 msgid "is-zero-device"
10207 #: ../fish/guestfish-actions.pod:2494
10210 " is-zero-device device\n"
10215 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3637
10216 msgid "This returns true iff the device exists and contains all zero bytes."
10220 #: ../fish/guestfish-actions.pod:2498 ../src/guestfs-actions.pod:3639
10221 msgid "Note that for large devices this can take a long time to run."
10225 #: ../fish/guestfish-actions.pod:2500
10226 msgid "kill-subprocess"
10227 msgstr "kill-subprocess"
10230 #: ../fish/guestfish-actions.pod:2502
10233 " kill-subprocess\n"
10236 " kill-subprocess\n"
10240 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3650
10241 msgid "This kills the qemu subprocess. You should never need to call this."
10245 #: ../fish/guestfish-actions.pod:2506
10250 #: ../fish/guestfish-actions.pod:2508
10255 #: ../fish/guestfish-actions.pod:2510
10265 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3661
10267 "Internally libguestfs is implemented by running a virtual machine using "
10272 #: ../fish/guestfish-actions.pod:2515 ../src/guestfs-actions.pod:3664
10274 "You should call this after configuring the handle (eg. adding drives) but "
10275 "before performing any actions."
10279 #: ../fish/guestfish-actions.pod:2518
10284 #: ../fish/guestfish-actions.pod:2520
10287 " lchown owner group path\n"
10290 " lchown власник група шлях\n"
10294 #: ../fish/guestfish-actions.pod:2522
10296 "Change the file owner to C<owner> and group to C<group>. This is like L</"
10297 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10302 #: ../fish/guestfish-actions.pod:2530
10307 #: ../fish/guestfish-actions.pod:2532
10310 " lgetxattr path name\n"
10313 " lgetxattr шлях назва\n"
10317 #: ../fish/guestfish-actions.pod:2534 ../src/guestfs-actions.pod:3704
10319 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
10320 "is a symlink, then this call returns an extended attribute from the symlink."
10324 #: ../fish/guestfish-actions.pod:2548
10325 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10326 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10329 #: ../fish/guestfish-actions.pod:2550
10331 msgstr "lgetxattrs"
10334 #: ../fish/guestfish-actions.pod:2552
10337 " lgetxattrs path\n"
10340 " lgetxattrs шлях\n"
10344 #: ../fish/guestfish-actions.pod:2554
10346 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10347 "it returns the extended attributes of the link itself."
10351 #: ../fish/guestfish-actions.pod:2558
10356 #: ../fish/guestfish-actions.pod:2560
10364 #: ../fish/guestfish-actions.pod:2562 ../src/guestfs-actions.pod:3747
10366 "List all 9p filesystems attached to the guest. A list of mount tags is "
10371 #: ../fish/guestfish-actions.pod:2565
10372 msgid "list-devices"
10373 msgstr "list-devices"
10376 #: ../fish/guestfish-actions.pod:2567
10386 #: ../fish/guestfish-actions.pod:2569 ../src/guestfs-actions.pod:3761
10387 msgid "List all the block devices."
10391 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3763
10392 msgid "The full block device names are returned, eg. C</dev/sda>."
10396 #: ../fish/guestfish-actions.pod:2575
10397 msgid "list-dm-devices"
10401 #: ../fish/guestfish-actions.pod:2577
10404 " list-dm-devices\n"
10409 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3778
10410 msgid "List all device mapper devices."
10414 #: ../fish/guestfish-actions.pod:2581
10416 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10417 "previous call to L</luks-open>."
10421 #: ../fish/guestfish-actions.pod:2584
10423 "Device mapper devices which correspond to logical volumes are I<not> "
10424 "returned in this list. Call L</lvs> if you want to list logical volumes."
10428 #: ../fish/guestfish-actions.pod:2588
10429 msgid "list-filesystems"
10430 msgstr "list-filesystems"
10433 #: ../fish/guestfish-actions.pod:2590
10436 " list-filesystems\n"
10439 " list-filesystems\n"
10443 #: ../fish/guestfish-actions.pod:2592 ../src/guestfs-actions.pod:3798
10445 "This inspection command looks for filesystems on partitions, block devices "
10446 "and logical volumes, returning a list of devices containing filesystems and "
10451 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3802
10453 "The return value is a hash, where the keys are the devices containing "
10454 "filesystems, and the values are the filesystem types. For example:"
10458 #: ../fish/guestfish-actions.pod:2600 ../src/guestfs-actions.pod:3806
10461 " \"/dev/sda1\" => \"ntfs\"\n"
10462 " \"/dev/sda2\" => \"ext2\"\n"
10463 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10464 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10469 #: ../fish/guestfish-actions.pod:2605 ../src/guestfs-actions.pod:3811
10471 "The value can have the special value \"unknown\", meaning the content of the "
10472 "device is undetermined or empty. \"swap\" means a Linux swap partition."
10476 #: ../fish/guestfish-actions.pod:2609
10478 "This command runs other libguestfs commands, which might include L</mount> "
10479 "and L</umount>, and therefore you should use this soon after launch and only "
10480 "when nothing is mounted."
10484 #: ../fish/guestfish-actions.pod:2613
10486 "Not all of the filesystems returned will be mountable. In particular, swap "
10487 "partitions are returned in the list. Also this command does not check that "
10488 "each filesystem found is valid and mountable, and some filesystems might be "
10489 "mountable but require special options. Filesystems may not all belong to a "
10490 "single logical operating system (use L</inspect-os> to look for OSes)."
10494 #: ../fish/guestfish-actions.pod:2621
10495 msgid "list-partitions"
10496 msgstr "list-partitions"
10499 #: ../fish/guestfish-actions.pod:2623
10502 " list-partitions\n"
10505 " list-partitions\n"
10509 #: ../fish/guestfish-actions.pod:2625 ../src/guestfs-actions.pod:3840
10510 msgid "List all the partitions detected on all block devices."
10514 #: ../fish/guestfish-actions.pod:2627 ../src/guestfs-actions.pod:3842
10515 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10519 #: ../fish/guestfish-actions.pod:2629
10521 "This does not return logical volumes. For that you will need to call L</"
10526 #: ../fish/guestfish-actions.pod:2634
10531 #: ../fish/guestfish-actions.pod:2636
10541 #: ../fish/guestfish-actions.pod:2638 ../src/guestfs-actions.pod:3861
10543 "List the files in C<directory> (relative to the root directory, there is no "
10544 "cwd) in the format of 'ls -la'."
10548 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3864
10550 "This command is mostly useful for interactive sessions. It is I<not> "
10551 "intended that you try to parse the output string."
10555 #: ../fish/guestfish-actions.pod:2644
10560 #: ../fish/guestfish-actions.pod:2646
10563 " ln target linkname\n"
10566 " ln призначення назва_посилання\n"
10570 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:3879
10571 msgid "This command creates a hard link using the C<ln> command."
10575 #: ../fish/guestfish-actions.pod:2650
10580 #: ../fish/guestfish-actions.pod:2652
10583 " ln-f target linkname\n"
10586 " ln-f призначення назва_посилання\n"
10590 #: ../fish/guestfish-actions.pod:2654 ../src/guestfs-actions.pod:3892
10592 "This command creates a hard link using the C<ln -f> command. The I<-f> "
10593 "option removes the link (C<linkname>) if it exists already."
10597 #: ../fish/guestfish-actions.pod:2657
10602 #: ../fish/guestfish-actions.pod:2659
10605 " ln-s target linkname\n"
10608 " ln-s призначення назва_посилання\n"
10612 #: ../fish/guestfish-actions.pod:2661 ../src/guestfs-actions.pod:3906
10613 msgid "This command creates a symbolic link using the C<ln -s> command."
10617 #: ../fish/guestfish-actions.pod:2663
10622 #: ../fish/guestfish-actions.pod:2665
10625 " ln-sf target linkname\n"
10628 " ln-sf призначення назва_посилання\n"
10632 #: ../fish/guestfish-actions.pod:2667 ../src/guestfs-actions.pod:3919
10634 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10635 "option removes the link (C<linkname>) if it exists already."
10639 #: ../fish/guestfish-actions.pod:2670
10640 msgid "lremovexattr"
10641 msgstr "lremovexattr"
10644 #: ../fish/guestfish-actions.pod:2672
10647 " lremovexattr xattr path\n"
10652 #: ../fish/guestfish-actions.pod:2674
10654 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10655 "it removes an extended attribute of the link itself."
10659 #: ../fish/guestfish-actions.pod:2678
10664 #: ../fish/guestfish-actions.pod:2680
10674 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3947
10676 "List the files in C<directory> (relative to the root directory, there is no "
10677 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
10681 #: ../fish/guestfish-actions.pod:2686
10683 "This command is mostly useful for interactive sessions. Programs should "
10684 "probably use L</readdir> instead."
10688 #: ../fish/guestfish-actions.pod:2689
10693 #: ../fish/guestfish-actions.pod:2691
10696 " lsetxattr xattr val vallen path\n"
10701 #: ../fish/guestfish-actions.pod:2693
10703 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10704 "sets an extended attribute of the link itself."
10708 #: ../fish/guestfish-actions.pod:2697
10713 #: ../fish/guestfish-actions.pod:2699
10723 #: ../fish/guestfish-actions.pod:2701 ../fish/guestfish-actions.pod:4509
10724 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:6762
10725 msgid "Returns file information for the given C<path>."
10729 #: ../fish/guestfish-actions.pod:2703
10731 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10732 "the link is stat-ed, not the file it refers to."
10736 #: ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:3989
10737 msgid "This is the same as the C<lstat(2)> system call."
10741 #: ../fish/guestfish-actions.pod:2709
10746 #: ../fish/guestfish-actions.pod:2711
10749 " lstatlist path 'names ...'\n"
10754 #: ../fish/guestfish-actions.pod:2713
10756 "This call allows you to perform the L</lstat> operation on multiple files, "
10757 "where all files are in the directory C<path>. C<names> is the list of files "
10758 "from this directory."
10762 #: ../fish/guestfish-actions.pod:2717 ../src/guestfs-actions.pod:4008
10764 "On return you get a list of stat structs, with a one-to-one correspondence "
10765 "to the C<names> list. If any name did not exist or could not be lstat'd, "
10766 "then the C<ino> field of that structure is set to C<-1>."
10770 #: ../fish/guestfish-actions.pod:2722
10772 "This call is intended for programs that want to efficiently list a directory "
10773 "contents without making many round-trips. See also L</lxattrlist> for a "
10774 "similarly efficient call for getting extended attributes. Very long "
10775 "directory listings might cause the protocol message size to be exceeded, "
10776 "causing this call to fail. The caller must split up such requests into "
10777 "smaller groups of names."
10781 #: ../fish/guestfish-actions.pod:2730
10782 msgid "luks-add-key"
10783 msgstr "luks-add-key"
10786 #: ../fish/guestfish-actions.pod:2732
10789 " luks-add-key device keyslot\n"
10794 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4036
10796 "This command adds a new key on LUKS device C<device>. C<key> is any "
10797 "existing key, and is used to access the device. C<newkey> is the new key to "
10798 "add. C<keyslot> is the key slot that will be replaced."
10802 #: ../fish/guestfish-actions.pod:2739
10804 "Note that if C<keyslot> already contains a key, then this command will "
10805 "fail. You have to use L</luks-kill-slot> first to remove that key."
10809 #: ../fish/guestfish-actions.pod:2743 ../fish/guestfish-actions.pod:2765
10810 #: ../fish/guestfish-actions.pod:2778 ../fish/guestfish-actions.pod:2792
10811 #: ../fish/guestfish-actions.pod:2818 ../fish/guestfish-actions.pod:2828
10813 "This command has one or more key or passphrase parameters. Guestfish will "
10814 "prompt for these separately."
10818 #: ../fish/guestfish-actions.pod:2746
10820 msgstr "luks-close"
10823 #: ../fish/guestfish-actions.pod:2748
10826 " luks-close device\n"
10829 " luks-close пристрій\n"
10833 #: ../fish/guestfish-actions.pod:2750
10835 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10836 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
10837 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10842 #: ../fish/guestfish-actions.pod:2756
10843 msgid "luks-format"
10844 msgstr "luks-format"
10847 #: ../fish/guestfish-actions.pod:2758
10850 " luks-format device keyslot\n"
10855 #: ../fish/guestfish-actions.pod:2760 ../src/guestfs-actions.pod:4077
10857 "This command erases existing data on C<device> and formats the device as a "
10858 "LUKS encrypted device. C<key> is the initial key, which is added to key "
10859 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
10863 #: ../fish/guestfish-actions.pod:2768 ../fish/guestfish-actions.pod:2781
10864 #: ../fish/guestfish-actions.pod:2868 ../fish/guestfish-actions.pod:3529
10865 #: ../fish/guestfish-actions.pod:4055 ../fish/guestfish-actions.pod:4380
10866 #: ../fish/guestfish-actions.pod:4403 ../fish/guestfish-actions.pod:4425
10867 #: ../fish/guestfish-actions.pod:5171 ../src/guestfs-actions.pod:4084
10868 #: ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:4250
10869 #: ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:6141
10870 #: ../src/guestfs-actions.pod:6576 ../src/guestfs-actions.pod:6606
10871 #: ../src/guestfs-actions.pod:6639 ../src/guestfs-actions.pod:7838
10873 "B<This command is dangerous. Without careful use you can easily destroy all "
10878 #: ../fish/guestfish-actions.pod:2771
10879 msgid "luks-format-cipher"
10880 msgstr "luks-format-cipher"
10883 #: ../fish/guestfish-actions.pod:2773
10886 " luks-format-cipher device keyslot cipher\n"
10891 #: ../fish/guestfish-actions.pod:2775
10893 "This command is the same as L</luks-format> but it also allows you to set "
10894 "the C<cipher> used."
10898 #: ../fish/guestfish-actions.pod:2784
10899 msgid "luks-kill-slot"
10900 msgstr "luks-kill-slot"
10903 #: ../fish/guestfish-actions.pod:2786
10906 " luks-kill-slot device keyslot\n"
10911 #: ../fish/guestfish-actions.pod:2788 ../src/guestfs-actions.pod:4124
10913 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10914 "device C<device>. C<key> must be one of the I<other> keys."
10918 #: ../fish/guestfish-actions.pod:2795
10923 #: ../fish/guestfish-actions.pod:2797
10926 " luks-open device mapname\n"
10931 #: ../fish/guestfish-actions.pod:2799 ../src/guestfs-actions.pod:4144
10933 "This command opens a block device which has been encrypted according to the "
10934 "Linux Unified Key Setup (LUKS) standard."
10938 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4147
10939 msgid "C<device> is the encrypted block device or partition."
10943 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4149
10945 "The caller must supply one of the keys associated with the LUKS block "
10946 "device, in the C<key> parameter."
10950 #: ../fish/guestfish-actions.pod:2807 ../src/guestfs-actions.pod:4152
10952 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
10953 "writes to this block device are decrypted from and encrypted to the "
10954 "underlying C<device> respectively."
10958 #: ../fish/guestfish-actions.pod:2811
10960 "If this block device contains LVM volume groups, then calling L</vgscan> "
10961 "followed by L</vg-activate-all> will make them visible."
10965 #: ../fish/guestfish-actions.pod:2815
10966 msgid "Use L</list-dm-devices> to list all device mapper devices."
10970 #: ../fish/guestfish-actions.pod:2821
10971 msgid "luks-open-ro"
10972 msgstr "luks-open-ro"
10975 #: ../fish/guestfish-actions.pod:2823
10978 " luks-open-ro device mapname\n"
10983 #: ../fish/guestfish-actions.pod:2825
10985 "This is the same as L</luks-open> except that a read-only mapping is created."
10989 #: ../fish/guestfish-actions.pod:2831
10994 #: ../fish/guestfish-actions.pod:2833
10997 " lvcreate logvol volgroup mbytes\n"
11002 #: ../fish/guestfish-actions.pod:2835 ../src/guestfs-actions.pod:4198
11004 "This creates an LVM logical volume called C<logvol> on the volume group "
11005 "C<volgroup>, with C<size> megabytes."
11009 #: ../fish/guestfish-actions.pod:2838
11010 msgid "lvm-canonical-lv-name"
11011 msgstr "lvm-canonical-lv-name"
11014 #: ../fish/guestfish-actions.pod:2840
11017 " lvm-canonical-lv-name lvname\n"
11022 #: ../fish/guestfish-actions.pod:2842 ../src/guestfs-actions.pod:4211
11024 "This converts alternative naming schemes for LVs that you might find to the "
11025 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
11030 #: ../fish/guestfish-actions.pod:2846 ../src/guestfs-actions.pod:4215
11032 "This command returns an error if the C<lvname> parameter does not refer to a "
11037 #: ../fish/guestfish-actions.pod:2849
11038 msgid "See also L</is-lv>."
11039 msgstr "Див. також L</is-lv>."
11042 #: ../fish/guestfish-actions.pod:2851
11043 msgid "lvm-clear-filter"
11044 msgstr "lvm-clear-filter"
11047 #: ../fish/guestfish-actions.pod:2853
11050 " lvm-clear-filter\n"
11053 " lvm-clear-filter\n"
11057 #: ../fish/guestfish-actions.pod:2855
11059 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
11064 #: ../fish/guestfish-actions.pod:2858 ../fish/guestfish-actions.pod:2889
11065 #: ../src/guestfs-actions.pod:4233 ../src/guestfs-actions.pod:4275
11067 "This command also clears the LVM cache and performs a volume group scan."
11071 #: ../fish/guestfish-actions.pod:2861
11072 msgid "lvm-remove-all"
11073 msgstr "lvm-remove-all"
11076 #: ../fish/guestfish-actions.pod:2863
11079 " lvm-remove-all\n"
11082 " lvm-remove-all\n"
11086 #: ../fish/guestfish-actions.pod:2865 ../src/guestfs-actions.pod:4245
11088 "This command removes all LVM logical volumes, volume groups and physical "
11093 #: ../fish/guestfish-actions.pod:2871
11094 msgid "lvm-set-filter"
11095 msgstr "lvm-set-filter"
11098 #: ../fish/guestfish-actions.pod:2873
11101 " lvm-set-filter 'devices ...'\n"
11104 " lvm-set-filter 'пристрої...'\n"
11108 #: ../fish/guestfish-actions.pod:2875 ../src/guestfs-actions.pod:4261
11110 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11111 "block devices in the list C<devices>, and will ignore all other attached "
11116 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4265
11118 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11119 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
11120 "there are two types of duplication possible: either cloned PVs/VGs which "
11121 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11122 "same name. In normal operation you cannot create this situation, but you "
11123 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
11124 "inside the LVM metadata."
11128 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4278
11129 msgid "You can filter whole block devices or individual partitions."
11133 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4280
11135 "You cannot use this if any VG is currently in use (eg. contains a mounted "
11136 "filesystem), even if you are not filtering out that VG."
11140 #: ../fish/guestfish-actions.pod:2898
11145 #: ../fish/guestfish-actions.pod:2900
11148 " lvremove device\n"
11151 " lvremove пристрій\n"
11155 #: ../fish/guestfish-actions.pod:2902 ../src/guestfs-actions.pod:4294
11157 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11158 "LV, such as C</dev/VG/LV>."
11162 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4297
11164 "You can also remove all LVs in a volume group by specifying the VG name, C</"
11169 #: ../fish/guestfish-actions.pod:2908
11174 #: ../fish/guestfish-actions.pod:2910
11177 " lvrename logvol newlogvol\n"
11182 #: ../fish/guestfish-actions.pod:2912 ../src/guestfs-actions.pod:4311
11183 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11187 #: ../fish/guestfish-actions.pod:2914
11192 #: ../fish/guestfish-actions.pod:2916
11195 " lvresize device mbytes\n"
11200 #: ../fish/guestfish-actions.pod:2918 ../src/guestfs-actions.pod:4324
11202 "This resizes (expands or shrinks) an existing LVM logical volume to "
11203 "C<mbytes>. When reducing, data in the reduced part is lost."
11207 #: ../fish/guestfish-actions.pod:2922
11208 msgid "lvresize-free"
11209 msgstr "lvresize-free"
11212 #: ../fish/guestfish-actions.pod:2924
11215 " lvresize-free lv percent\n"
11220 #: ../fish/guestfish-actions.pod:2926 ../src/guestfs-actions.pod:4339
11222 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11223 "remaining free space in the volume group. Commonly you would call this with "
11224 "pc = 100 which expands the logical volume as much as possible, using all "
11225 "remaining free space in the volume group."
11229 #: ../fish/guestfish-actions.pod:2932
11234 #: ../fish/guestfish-actions.pod:2934
11244 #: ../fish/guestfish-actions.pod:2936 ../src/guestfs-actions.pod:4354
11246 "List all the logical volumes detected. This is the equivalent of the L<lvs"
11251 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4357
11253 "This returns a list of the logical volume device names (eg. C</dev/"
11254 "VolGroup00/LogVol00>)."
11258 #: ../fish/guestfish-actions.pod:2942
11259 msgid "See also L</lvs-full>, L</list-filesystems>."
11260 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
11263 #: ../fish/guestfish-actions.pod:2944
11268 #: ../fish/guestfish-actions.pod:2946
11278 #: ../fish/guestfish-actions.pod:2948 ../src/guestfs-actions.pod:4373
11280 "List all the logical volumes detected. This is the equivalent of the L<lvs"
11281 "(8)> command. The \"full\" version includes all fields."
11285 #: ../fish/guestfish-actions.pod:2951
11290 #: ../fish/guestfish-actions.pod:2953
11296 " lvuuid пристрій\n"
11300 #: ../fish/guestfish-actions.pod:2955 ../src/guestfs-actions.pod:4388
11301 msgid "This command returns the UUID of the LVM LV C<device>."
11305 #: ../fish/guestfish-actions.pod:2957
11307 msgstr "lxattrlist"
11310 #: ../fish/guestfish-actions.pod:2959
11313 " lxattrlist path 'names ...'\n"
11318 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4402
11320 "This call allows you to get the extended attributes of multiple files, where "
11321 "all files are in the directory C<path>. C<names> is the list of files from "
11326 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4406
11328 "On return you get a flat list of xattr structs which must be interpreted "
11329 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
11330 "C<attrval> in this struct is zero-length to indicate there was an error "
11331 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11332 "number (the number of following attributes for this file, which could be C<"
11333 "\"0\">). Then after the first xattr struct are the zero or more attributes "
11334 "for the first named file. This repeats for the second and subsequent files."
11338 #: ../fish/guestfish-actions.pod:2975
11340 "This call is intended for programs that want to efficiently list a directory "
11341 "contents without making many round-trips. See also L</lstatlist> for a "
11342 "similarly efficient call for getting standard stats. Very long directory "
11343 "listings might cause the protocol message size to be exceeded, causing this "
11344 "call to fail. The caller must split up such requests into smaller groups of "
11349 #: ../fish/guestfish-actions.pod:2983
11354 #: ../fish/guestfish-actions.pod:2985
11364 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4436
11365 msgid "Create a directory named C<path>."
11369 #: ../fish/guestfish-actions.pod:2989
11371 msgstr "mkdir-mode"
11374 #: ../fish/guestfish-actions.pod:2991
11377 " mkdir-mode path mode\n"
11380 " mkdir-mode шлях режим\n"
11384 #: ../fish/guestfish-actions.pod:2993 ../src/guestfs-actions.pod:4449
11386 "This command creates a directory, setting the initial permissions of the "
11387 "directory to C<mode>."
11391 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4452
11393 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11394 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
11399 #: ../fish/guestfish-actions.pod:3000
11400 msgid "See also L</mkdir>, L</umask>"
11401 msgstr "Див. також L</mkdir>, L</umask>"
11404 #: ../fish/guestfish-actions.pod:3002
11409 #: ../fish/guestfish-actions.pod:3004
11419 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4468
11421 "Create a directory named C<path>, creating any parent directories as "
11422 "necessary. This is like the C<mkdir -p> shell command."
11426 #: ../fish/guestfish-actions.pod:3009
11431 #: ../fish/guestfish-actions.pod:3011
11434 " mkdtemp template\n"
11437 " mkdtemp шаблон\n"
11441 #: ../fish/guestfish-actions.pod:3013 ../src/guestfs-actions.pod:4481
11443 "This command creates a temporary directory. The C<template> parameter "
11444 "should be a full pathname for the temporary directory name with the final "
11445 "six characters being \"XXXXXX\"."
11449 #: ../fish/guestfish-actions.pod:3018 ../src/guestfs-actions.pod:4486
11451 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11452 "being suitable for Windows filesystems."
11456 #: ../fish/guestfish-actions.pod:3021 ../src/guestfs-actions.pod:4489
11457 msgid "The name of the temporary directory that was created is returned."
11461 #: ../fish/guestfish-actions.pod:3024 ../src/guestfs-actions.pod:4492
11462 msgid "The temporary directory is created with mode 0700 and is owned by root."
11466 #: ../fish/guestfish-actions.pod:3027 ../src/guestfs-actions.pod:4495
11468 "The caller is responsible for deleting the temporary directory and its "
11469 "contents after use."
11473 #: ../fish/guestfish-actions.pod:3030 ../src/guestfs-actions.pod:4498
11474 msgid "See also: L<mkdtemp(3)>"
11478 #: ../fish/guestfish-actions.pod:3032
11483 #: ../fish/guestfish-actions.pod:3034
11486 " mke2fs-J fstype blocksize device journal\n"
11491 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4514
11493 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11494 "C<journal>. It is equivalent to the command:"
11498 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4518
11501 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11504 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11508 #: ../fish/guestfish-actions.pod:3042
11509 msgid "See also L</mke2journal>."
11510 msgstr "Див. також L</mke2journal>."
11513 #: ../fish/guestfish-actions.pod:3044
11518 #: ../fish/guestfish-actions.pod:3046
11521 " mke2fs-JL fstype blocksize device label\n"
11526 #: ../fish/guestfish-actions.pod:3048 ../src/guestfs-actions.pod:4535
11528 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11529 "the journal labeled C<label>."
11533 #: ../fish/guestfish-actions.pod:3051
11534 msgid "See also L</mke2journal-L>."
11535 msgstr "Див. також L</mke2journal-L>."
11538 #: ../fish/guestfish-actions.pod:3053
11543 #: ../fish/guestfish-actions.pod:3055
11546 " mke2fs-JU fstype blocksize device uuid\n"
11551 #: ../fish/guestfish-actions.pod:3057 ../src/guestfs-actions.pod:4553
11553 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11554 "the journal with UUID C<uuid>."
11558 #: ../fish/guestfish-actions.pod:3060
11559 msgid "See also L</mke2journal-U>."
11560 msgstr "Див. також L</mke2journal-U>."
11563 #: ../fish/guestfish-actions.pod:3062
11564 msgid "mke2journal"
11565 msgstr "mke2journal"
11568 #: ../fish/guestfish-actions.pod:3064
11571 " mke2journal blocksize device\n"
11576 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4569
11578 "This creates an ext2 external journal on C<device>. It is equivalent to the "
11583 #: ../fish/guestfish-actions.pod:3069 ../src/guestfs-actions.pod:4572
11586 " mke2fs -O journal_dev -b blocksize device\n"
11591 #: ../fish/guestfish-actions.pod:3071
11592 msgid "mke2journal-L"
11593 msgstr "mke2journal-L"
11596 #: ../fish/guestfish-actions.pod:3073
11599 " mke2journal-L blocksize label device\n"
11604 #: ../fish/guestfish-actions.pod:3075 ../src/guestfs-actions.pod:4586
11605 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11609 #: ../fish/guestfish-actions.pod:3077
11610 msgid "mke2journal-U"
11611 msgstr "mke2journal-U"
11614 #: ../fish/guestfish-actions.pod:3079
11617 " mke2journal-U blocksize uuid device\n"
11622 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4600
11623 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11627 #: ../fish/guestfish-actions.pod:3083
11632 #: ../fish/guestfish-actions.pod:3085
11635 " mkfifo mode path\n"
11638 " mkfifo режим шлях\n"
11642 #: ../fish/guestfish-actions.pod:3087
11644 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
11645 "is just a convenient wrapper around L</mknod>."
11649 #: ../fish/guestfish-actions.pod:3093
11654 #: ../fish/guestfish-actions.pod:3095
11657 " mkfs fstype device\n"
11660 " mkfs тип_файлової_системи пристрій\n"
11664 #: ../fish/guestfish-actions.pod:3097 ../src/guestfs-actions.pod:4630
11666 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11667 "volume). The filesystem type is C<fstype>, for example C<ext3>."
11671 #: ../fish/guestfish-actions.pod:3101
11676 #: ../fish/guestfish-actions.pod:3103
11679 " mkfs-b fstype blocksize device\n"
11684 #: ../fish/guestfish-actions.pod:3105
11686 "This call is similar to L</mkfs>, but it allows you to control the block "
11687 "size of the resulting filesystem. Supported block sizes depend on the "
11688 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11692 #: ../fish/guestfish-actions.pod:3110 ../fish/guestfish-actions.pod:3137
11693 #: ../src/guestfs-actions.pod:4658 ../src/guestfs-actions.pod:4696
11695 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11700 #: ../fish/guestfish-actions.pod:3113
11702 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11707 #: ../fish/guestfish-actions.pod:3120
11712 #: ../fish/guestfish-actions.pod:3122
11715 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11720 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
11722 "This function creates a filesystem on C<device>. The filesystem type is "
11723 "C<fstype>, for example C<ext3>."
11727 #: ../fish/guestfish-actions.pod:3131 ../src/guestfs-actions.pod:4690
11728 msgid "C<blocksize>"
11729 msgstr "C<blocksize>"
11732 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4692
11734 "The filesystem block size. Supported block sizes depend on the filesystem "
11735 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11740 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4699
11741 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11745 #: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4701
11746 msgid "C<features>"
11747 msgstr "C<features>"
11750 #: ../fish/guestfish-actions.pod:3144 ../src/guestfs-actions.pod:4703
11751 msgid "This passes the I<-O> parameter to the external mkfs program."
11755 #: ../fish/guestfish-actions.pod:3146 ../src/guestfs-actions.pod:4705
11757 "For certain filesystem types, this allows extra filesystem features to be "
11758 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11762 #: ../fish/guestfish-actions.pod:3150 ../src/guestfs-actions.pod:4709
11764 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11769 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4712
11774 #: ../fish/guestfish-actions.pod:3155 ../src/guestfs-actions.pod:4714
11776 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11777 "sets the inode size (only for ext2/3/4 filesystems at present)."
11781 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4717
11782 msgid "C<sectorsize>"
11786 #: ../fish/guestfish-actions.pod:3160 ../src/guestfs-actions.pod:4719
11788 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11789 "sets sector size for ufs filesystem."
11793 #: ../fish/guestfish-actions.pod:3167
11794 msgid "mkmountpoint"
11795 msgstr "mkmountpoint"
11798 #: ../fish/guestfish-actions.pod:3169
11801 " mkmountpoint exemptpath\n"
11806 #: ../fish/guestfish-actions.pod:3171
11808 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11809 "to create extra mountpoints before mounting the first filesystem."
11813 #: ../fish/guestfish-actions.pod:3175 ../src/guestfs-actions.pod:4762
11815 "These calls are I<only> necessary in some very limited circumstances, mainly "
11816 "the case where you want to mount a mix of unrelated and/or read-only "
11817 "filesystems together."
11821 #: ../fish/guestfish-actions.pod:3179 ../src/guestfs-actions.pod:4766
11823 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11824 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11825 "inside that. You can unpack this as follows in guestfish:"
11829 #: ../fish/guestfish-actions.pod:3184 ../src/guestfs-actions.pod:4771
11832 " add-ro Fedora-11-i686-Live.iso\n"
11834 " mkmountpoint /cd\n"
11835 " mkmountpoint /sqsh\n"
11836 " mkmountpoint /ext3fs\n"
11837 " mount /dev/sda /cd\n"
11838 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11839 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11842 " add-ro Fedora-11-i686-Live.iso\n"
11844 " mkmountpoint /cd\n"
11845 " mkmountpoint /sqsh\n"
11846 " mkmountpoint /ext3fs\n"
11847 " mount /dev/sda /cd\n"
11848 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11849 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11853 #: ../fish/guestfish-actions.pod:3193 ../src/guestfs-actions.pod:4780
11854 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11858 #: ../fish/guestfish-actions.pod:3195
11860 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
11861 "unexpected errors if you try to mix these calls. It is safest to manually "
11862 "unmount filesystems and remove mountpoints after use."
11866 #: ../fish/guestfish-actions.pod:3199
11868 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11869 "for this to work for manual mountpoints, you must ensure that the innermost "
11870 "mountpoints have the longest pathnames, as in the example code above."
11874 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4791
11876 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11880 #: ../fish/guestfish-actions.pod:3206
11882 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11883 "L</umount-all> to be called when the handle is closed which can also trigger "
11888 #: ../fish/guestfish-actions.pod:3210
11893 #: ../fish/guestfish-actions.pod:3212
11896 " mknod mode devmajor devminor path\n"
11901 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4810
11903 "This call creates block or character special devices, or named pipes (FIFOs)."
11907 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4813
11909 "The C<mode> parameter should be the mode, using the standard constants. "
11910 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11911 "used when creating block and character special devices."
11915 #: ../fish/guestfish-actions.pod:3222
11917 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11918 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11919 "regular file). These constants are available in the standard Linux header "
11920 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11921 "wrappers around this command which bitwise OR in the appropriate constant "
11926 #: ../fish/guestfish-actions.pod:3232
11931 #: ../fish/guestfish-actions.pod:3234
11934 " mknod-b mode devmajor devminor path\n"
11939 #: ../fish/guestfish-actions.pod:3236
11941 "This call creates a block device node called C<path> with mode C<mode> and "
11942 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
11943 "wrapper around L</mknod>."
11947 #: ../fish/guestfish-actions.pod:3242
11952 #: ../fish/guestfish-actions.pod:3244
11955 " mknod-c mode devmajor devminor path\n"
11960 #: ../fish/guestfish-actions.pod:3246
11962 "This call creates a char device node called C<path> with mode C<mode> and "
11963 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
11964 "wrapper around L</mknod>."
11968 #: ../fish/guestfish-actions.pod:3252
11973 #: ../fish/guestfish-actions.pod:3254
11979 " mkswap пристрій\n"
11983 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:4876
11984 msgid "Create a swap partition on C<device>."
11988 #: ../fish/guestfish-actions.pod:3258
11993 #: ../fish/guestfish-actions.pod:3260
11996 " mkswap-L label device\n"
11999 " mkswap-L мітка пристрій\n"
12003 #: ../fish/guestfish-actions.pod:3262 ../src/guestfs-actions.pod:4889
12004 msgid "Create a swap partition on C<device> with label C<label>."
12008 #: ../fish/guestfish-actions.pod:3264 ../src/guestfs-actions.pod:4891
12010 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
12011 "sda>), just to a partition. This appears to be a limitation of the kernel "
12016 #: ../fish/guestfish-actions.pod:3268
12021 #: ../fish/guestfish-actions.pod:3270
12024 " mkswap-U uuid device\n"
12027 " mkswap-U uuid пристрій\n"
12031 #: ../fish/guestfish-actions.pod:3272 ../src/guestfs-actions.pod:4906
12032 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12036 #: ../fish/guestfish-actions.pod:3274
12037 msgid "mkswap-file"
12038 msgstr "mkswap-file"
12041 #: ../fish/guestfish-actions.pod:3276
12044 " mkswap-file path\n"
12047 " mkswap-file шлях\n"
12051 #: ../fish/guestfish-actions.pod:3278 ../src/guestfs-actions.pod:4918
12052 msgid "Create a swap file."
12053 msgstr "Створити файл резервної пам’яті."
12056 #: ../fish/guestfish-actions.pod:3280
12058 "This command just writes a swap file signature to an existing file. To "
12059 "create the file itself, use something like L</fallocate>."
12063 #: ../fish/guestfish-actions.pod:3283
12068 #: ../fish/guestfish-actions.pod:3285
12071 " modprobe modulename\n"
12074 " modprobe назва_модуля\n"
12078 #: ../fish/guestfish-actions.pod:3287 ../src/guestfs-actions.pod:4933
12079 msgid "This loads a kernel module in the appliance."
12083 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:4935
12085 "The kernel module must have been whitelisted when libguestfs was built (see "
12086 "C<appliance/kmod.whitelist.in> in the source)."
12090 #: ../fish/guestfish-actions.pod:3292
12095 #: ../fish/guestfish-actions.pod:3294
12098 " mount device mountpoint\n"
12101 " mount пристрій точка_монтування\n"
12105 #: ../fish/guestfish-actions.pod:3296 ../src/guestfs-actions.pod:4956
12107 "Mount a guest disk at a position in the filesystem. Block devices are named "
12108 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
12109 "those block devices contain partitions, they will have the usual names (eg. "
12110 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
12114 #: ../fish/guestfish-actions.pod:3302 ../src/guestfs-actions.pod:4962
12116 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12117 "mounted on C</> before others can be mounted. Other filesystems can only be "
12118 "mounted on directories which already exist."
12122 #: ../fish/guestfish-actions.pod:3307 ../src/guestfs-actions.pod:4967
12124 "The mounted filesystem is writable, if we have sufficient permissions on the "
12125 "underlying device."
12129 #: ../fish/guestfish-actions.pod:3310
12131 "B<Important note:> When you use this call, the filesystem options C<sync> "
12132 "and C<noatime> are set implicitly. This was originally done because we "
12133 "thought it would improve reliability, but it turns out that I<-o sync> has a "
12134 "very large negative performance impact and negligible effect on "
12135 "reliability. Therefore we recommend that you avoid using L</mount> in any "
12136 "code that needs performance, and instead use L</mount-options> (use an empty "
12137 "string for the first parameter if you don't want any options)."
12141 #: ../fish/guestfish-actions.pod:3320
12143 "I<This function is deprecated.> In new code, use the L</mount_options> call "
12148 #: ../fish/guestfish-actions.pod:3327
12153 #: ../fish/guestfish-actions.pod:3329
12156 " mount-9p mounttag mountpoint [options:..]\n"
12161 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:4999
12163 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12168 #: ../fish/guestfish-actions.pod:3334 ../src/guestfs-actions.pod:5002
12170 "If required, C<trans=virtio> will be automatically added to the options. "
12171 "Any other options required can be passed in the optional C<options> "
12176 #: ../fish/guestfish-actions.pod:3340
12178 msgstr "mount-loop"
12181 #: ../fish/guestfish-actions.pod:3342
12184 " mount-loop file mountpoint\n"
12189 #: ../fish/guestfish-actions.pod:3344 ../src/guestfs-actions.pod:5041
12191 "This command lets you mount C<file> (a filesystem image in a file) on a "
12192 "mount point. It is entirely equivalent to the command C<mount -o loop file "
12197 #: ../fish/guestfish-actions.pod:3348
12198 msgid "mount-options"
12199 msgstr "mount-options"
12202 #: ../fish/guestfish-actions.pod:3350
12205 " mount-options options device mountpoint\n"
12210 #: ../fish/guestfish-actions.pod:3352
12212 "This is the same as the L</mount> command, but it allows you to set the "
12213 "mount options as for the L<mount(8)> I<-o> flag."
12217 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5061
12219 "If the C<options> parameter is an empty string, then no options are passed "
12220 "(all options default to whatever the filesystem uses)."
12224 #: ../fish/guestfish-actions.pod:3360
12229 #: ../fish/guestfish-actions.pod:3362
12232 " mount-ro device mountpoint\n"
12235 " mount-ro пристрій точка_монтування\n"
12239 #: ../fish/guestfish-actions.pod:3364
12241 "This is the same as the L</mount> command, but it mounts the filesystem with "
12242 "the read-only (I<-o ro>) flag."
12246 #: ../fish/guestfish-actions.pod:3367
12251 #: ../fish/guestfish-actions.pod:3369
12254 " mount-vfs options vfstype device mountpoint\n"
12259 #: ../fish/guestfish-actions.pod:3371
12261 "This is the same as the L</mount> command, but it allows you to set both the "
12262 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12266 #: ../fish/guestfish-actions.pod:3375
12267 msgid "mountpoints"
12268 msgstr "mountpoints"
12271 #: ../fish/guestfish-actions.pod:3377
12281 #: ../fish/guestfish-actions.pod:3379
12283 "This call is similar to L</mounts>. That call returns a list of devices. "
12284 "This one returns a hash table (map) of device name to directory where the "
12285 "device is mounted."
12289 #: ../fish/guestfish-actions.pod:3383
12294 #: ../fish/guestfish-actions.pod:3385
12304 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5122
12306 "This returns the list of currently mounted filesystems. It returns the list "
12307 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12311 #: ../fish/guestfish-actions.pod:3390 ../src/guestfs-actions.pod:5125
12312 msgid "Some internal mounts are not shown."
12316 #: ../fish/guestfish-actions.pod:3392
12317 msgid "See also: L</mountpoints>"
12318 msgstr "Див. також L</mountpoints>"
12321 #: ../fish/guestfish-actions.pod:3394
12326 #: ../fish/guestfish-actions.pod:3396
12332 " mv джерело призначення\n"
12336 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5142
12338 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12339 "destination filename or destination directory."
12343 #: ../fish/guestfish-actions.pod:3401
12344 msgid "ntfs-3g-probe"
12345 msgstr "ntfs-3g-probe"
12348 #: ../fish/guestfish-actions.pod:3403
12351 " ntfs-3g-probe true|false device\n"
12356 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5156
12358 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12359 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
12360 "write, and some cannot be mounted at all)."
12364 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5160
12366 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
12367 "can be mounted read-write. Set it to false if you want to test if the "
12368 "volume can be mounted read-only."
12372 #: ../fish/guestfish-actions.pod:3413 ../src/guestfs-actions.pod:5164
12374 "The return value is an integer which C<0> if the operation would succeed, or "
12375 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12379 #: ../fish/guestfish-actions.pod:3417
12381 msgstr "ntfsresize"
12384 #: ../fish/guestfish-actions.pod:3419
12387 " ntfsresize device\n"
12390 " ntfsresize пристрій\n"
12394 #: ../fish/guestfish-actions.pod:3421 ../fish/guestfish-actions.pod:3445
12395 #: ../src/guestfs-actions.pod:5185 ../src/guestfs-actions.pod:5217
12397 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12398 "size of the underlying device."
12402 #: ../fish/guestfish-actions.pod:3424 ../src/guestfs-actions.pod:5188
12404 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12405 "consistency check (for safety). You have to boot into Windows to perform "
12406 "this check and clear this condition. Furthermore, ntfsresize refuses to "
12407 "resize filesystems which have been marked in this way. So in effect it is "
12408 "not possible to call ntfsresize multiple times on a single filesystem "
12409 "without booting into Windows between each resize."
12413 #: ../fish/guestfish-actions.pod:3432 ../fish/guestfish-actions.pod:3471
12414 #: ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5243
12415 msgid "See also L<ntfsresize(8)>."
12419 #: ../fish/guestfish-actions.pod:3434 ../fish/guestfish-actions.pod:3482
12421 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12426 #: ../fish/guestfish-actions.pod:3441
12427 msgid "ntfsresize-opts"
12431 #: ../fish/guestfish-actions.pod:3443
12434 " ntfsresize-opts device [size:..] [force:..]\n"
12439 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5226
12441 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
12442 "resized to fit the container (eg. partition)."
12446 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5229
12451 #: ../fish/guestfish-actions.pod:3459 ../src/guestfs-actions.pod:5231
12453 "If this option is true, then force the resize of the filesystem even if the "
12454 "filesystem is marked as requiring a consistency check."
12458 #: ../fish/guestfish-actions.pod:3462
12460 "After the resize operation, the filesystem is always marked as requiring a "
12461 "consistency check (for safety). You have to boot into Windows to perform "
12462 "this check and clear this condition. If you I<don't> set the C<force> "
12463 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12464 "a single filesystem without booting into Windows between each resize."
12468 #: ../fish/guestfish-actions.pod:3475
12469 msgid "ntfsresize-size"
12470 msgstr "ntfsresize-size"
12473 #: ../fish/guestfish-actions.pod:3477
12476 " ntfsresize-size device size\n"
12481 #: ../fish/guestfish-actions.pod:3479
12483 "This command is the same as L</ntfsresize> except that it allows you to "
12484 "specify the new size (in bytes) explicitly."
12488 #: ../fish/guestfish-actions.pod:3489
12493 #: ../fish/guestfish-actions.pod:3491
12496 " part-add device prlogex startsect endsect\n"
12501 #: ../fish/guestfish-actions.pod:3493
12503 "This command adds a partition to C<device>. If there is no partition table "
12504 "on the device, call L</part-init> first."
12508 #: ../fish/guestfish-actions.pod:3496 ../src/guestfs-actions.pod:5304
12510 "The C<prlogex> parameter is the type of partition. Normally you should pass "
12511 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12512 "C<logical>) and C<e> (or C<extended>) partition types."
12516 #: ../fish/guestfish-actions.pod:3501 ../src/guestfs-actions.pod:5309
12518 "C<startsect> and C<endsect> are the start and end of the partition in "
12519 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
12520 "from the end of the disk (C<-1> is the last sector)."
12524 #: ../fish/guestfish-actions.pod:3505
12526 "Creating a partition which covers the whole disk is not so easy. Use L</"
12527 "part-disk> to do that."
12531 #: ../fish/guestfish-actions.pod:3508
12536 #: ../fish/guestfish-actions.pod:3510
12539 " part-del device partnum\n"
12544 #: ../fish/guestfish-actions.pod:3512 ../src/guestfs-actions.pod:5327
12545 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12549 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5329
12551 "Note that in the case of MBR partitioning, deleting an extended partition "
12552 "also deletes any logical partitions it contains."
12556 #: ../fish/guestfish-actions.pod:3518
12561 #: ../fish/guestfish-actions.pod:3520
12564 " part-disk device parttype\n"
12567 " part-disk пристрій тип_розділу\n"
12571 #: ../fish/guestfish-actions.pod:3522
12573 "This command is simply a combination of L</part-init> followed by L</part-"
12574 "add> to create a single primary partition covering the whole disk."
12578 #: ../fish/guestfish-actions.pod:3526
12580 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12581 "possible values are described in L</part-init>."
12585 #: ../fish/guestfish-actions.pod:3532
12586 msgid "part-get-bootable"
12587 msgstr "part-get-bootable"
12590 #: ../fish/guestfish-actions.pod:3534
12593 " part-get-bootable device partnum\n"
12598 #: ../fish/guestfish-actions.pod:3536 ../src/guestfs-actions.pod:5365
12600 "This command returns true if the partition C<partnum> on C<device> has the "
12601 "bootable flag set."
12605 #: ../fish/guestfish-actions.pod:3539
12606 msgid "See also L</part-set-bootable>."
12607 msgstr "Див. також L</part-set-bootable>."
12610 #: ../fish/guestfish-actions.pod:3541
12611 msgid "part-get-mbr-id"
12612 msgstr "part-get-mbr-id"
12615 #: ../fish/guestfish-actions.pod:3543
12618 " part-get-mbr-id device partnum\n"
12623 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5381
12625 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12626 "partition C<partnum>."
12630 #: ../fish/guestfish-actions.pod:3548 ../fish/guestfish-actions.pod:3692
12632 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
12633 "undefined results for other partition table types (see L</part-get-"
12638 #: ../fish/guestfish-actions.pod:3552
12639 msgid "part-get-parttype"
12640 msgstr "part-get-parttype"
12643 #: ../fish/guestfish-actions.pod:3554
12646 " part-get-parttype device\n"
12649 " part-get-parttype пристрій\n"
12653 #: ../fish/guestfish-actions.pod:3556 ../src/guestfs-actions.pod:5398
12655 "This command examines the partition table on C<device> and returns the "
12656 "partition table type (format) being used."
12660 #: ../fish/guestfish-actions.pod:3559
12662 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12663 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
12664 "possible, although unusual. See L</part-init> for a full list."
12668 #: ../fish/guestfish-actions.pod:3564
12673 #: ../fish/guestfish-actions.pod:3566
12676 " part-init device parttype\n"
12681 #: ../fish/guestfish-actions.pod:3568 ../src/guestfs-actions.pod:5418
12683 "This creates an empty partition table on C<device> of one of the partition "
12684 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
12685 "(for large disks)."
12689 #: ../fish/guestfish-actions.pod:3572
12691 "Initially there are no partitions. Following this, you should call L</part-"
12692 "add> for each partition required."
12696 #: ../fish/guestfish-actions.pod:3575 ../src/guestfs-actions.pod:5425
12697 msgid "Possible values for C<parttype> are:"
12701 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
12706 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
12711 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
12712 msgid "Intel EFI / GPT partition table."
12716 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
12718 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12719 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
12720 "the C<mbr> format."
12724 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
12729 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
12734 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
12736 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12737 "Windows. This partition type will B<only> work for device sizes up to 2 "
12738 "TB. For large disks we recommend using C<gpt>."
12742 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5450
12744 "Other partition table types that may work but are not supported include:"
12748 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
12753 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
12754 msgid "AIX disk labels."
12755 msgstr "Мітки дисків AIX."
12758 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
12760 #| msgid "B<amiga> | B<rdb>"
12762 msgstr "B<amiga> | B<rdb>"
12765 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
12770 #: ../fish/guestfish-actions.pod:3613 ../src/guestfs-actions.pod:5463
12771 msgid "Amiga \"Rigid Disk Block\" format."
12772 msgstr "Формат \"Rigid Disk Block\" Amiga."
12775 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5465
12780 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5467
12781 msgid "BSD disk labels."
12782 msgstr "Мітки дисків BSD."
12785 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5469
12790 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5471
12791 msgid "DASD, used on IBM mainframes."
12792 msgstr "DASD, використовувалися у мейнфреймах IBM."
12795 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5473
12800 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5475
12801 msgid "MIPS/SGI volumes."
12802 msgstr "Томи MIPS/SGI."
12805 #: ../fish/guestfish-actions.pod:3627 ../src/guestfs-actions.pod:5477
12810 #: ../fish/guestfish-actions.pod:3629 ../src/guestfs-actions.pod:5479
12811 msgid "Old Mac partition format. Modern Macs use C<gpt>."
12812 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12815 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5481
12820 #: ../fish/guestfish-actions.pod:3633 ../src/guestfs-actions.pod:5483
12821 msgid "NEC PC-98 format, common in Japan apparently."
12822 msgstr "Формат NEC PC-98, поширений у Японії."
12825 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5485
12830 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5487
12831 msgid "Sun disk labels."
12832 msgstr "Мітки дисків Sun."
12835 #: ../fish/guestfish-actions.pod:3641
12840 #: ../fish/guestfish-actions.pod:3643
12843 " part-list device\n"
12846 " part-list device\n"
12850 #: ../fish/guestfish-actions.pod:3645 ../src/guestfs-actions.pod:5501
12852 "This command parses the partition table on C<device> and returns the list of "
12853 "partitions found."
12857 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5504
12858 msgid "The fields in the returned structure are:"
12862 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5508
12863 msgid "B<part_num>"
12864 msgstr "B<part_num>"
12867 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5510
12868 msgid "Partition number, counting from 1."
12872 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5512
12873 msgid "B<part_start>"
12874 msgstr "B<part_start>"
12877 #: ../fish/guestfish-actions.pod:3658
12879 "Start of the partition I<in bytes>. To get sectors you have to divide by "
12880 "the device's sector size, see L</blockdev-getss>."
12884 #: ../fish/guestfish-actions.pod:3661 ../src/guestfs-actions.pod:5517
12885 msgid "B<part_end>"
12886 msgstr "B<part_end>"
12889 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5519
12890 msgid "End of the partition in bytes."
12894 #: ../fish/guestfish-actions.pod:3665 ../src/guestfs-actions.pod:5521
12895 msgid "B<part_size>"
12896 msgstr "B<part_size>"
12899 #: ../fish/guestfish-actions.pod:3667 ../src/guestfs-actions.pod:5523
12900 msgid "Size of the partition in bytes."
12904 #: ../fish/guestfish-actions.pod:3671
12905 msgid "part-set-bootable"
12906 msgstr "part-set-bootable"
12909 #: ../fish/guestfish-actions.pod:3673
12912 " part-set-bootable device partnum true|false\n"
12917 #: ../fish/guestfish-actions.pod:3675 ../src/guestfs-actions.pod:5541
12919 "This sets the bootable flag on partition numbered C<partnum> on device "
12920 "C<device>. Note that partitions are numbered from 1."
12924 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5544
12926 "The bootable flag is used by some operating systems (notably Windows) to "
12927 "determine which partition to boot from. It is by no means universally "
12932 #: ../fish/guestfish-actions.pod:3682
12933 msgid "part-set-mbr-id"
12934 msgstr "part-set-mbr-id"
12937 #: ../fish/guestfish-actions.pod:3684
12940 " part-set-mbr-id device partnum idbyte\n"
12945 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5560
12947 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12948 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
12949 "documentation are in fact hexadecimal numbers, but usually documented "
12950 "without any leading \"0x\" which might be confusing."
12954 #: ../fish/guestfish-actions.pod:3696
12955 msgid "part-set-name"
12956 msgstr "part-set-name"
12959 #: ../fish/guestfish-actions.pod:3698
12962 " part-set-name device partnum name\n"
12967 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5582
12969 "This sets the partition name on partition numbered C<partnum> on device "
12970 "C<device>. Note that partitions are numbered from 1."
12974 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5585
12976 "The partition name can only be set on certain types of partition table. "
12977 "This works on C<gpt> but not on C<mbr> partitions."
12981 #: ../fish/guestfish-actions.pod:3706
12982 msgid "part-to-dev"
12983 msgstr "part-to-dev"
12986 #: ../fish/guestfish-actions.pod:3708
12989 " part-to-dev partition\n"
12992 " part-to-dev розділ\n"
12996 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5598
12998 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12999 "partition number, returning the device name (eg. \"/dev/sdb\")."
13003 #: ../fish/guestfish-actions.pod:3714
13005 "The named partition must exist, for example as a string returned from L</"
13006 "list-partitions>."
13010 #: ../fish/guestfish-actions.pod:3717
13011 msgid "ping-daemon"
13012 msgstr "ping-daemon"
13015 #: ../fish/guestfish-actions.pod:3719
13025 #: ../fish/guestfish-actions.pod:3721 ../src/guestfs-actions.pod:5615
13027 "This is a test probe into the guestfs daemon running inside the qemu "
13028 "subprocess. Calling this function checks that the daemon responds to the "
13029 "ping message, without affecting the daemon or attached block device(s) in "
13034 #: ../fish/guestfish-actions.pod:3726
13039 #: ../fish/guestfish-actions.pod:3728
13042 " pread path count offset\n"
13047 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5633
13049 "This command lets you read part of a file. It reads C<count> bytes of the "
13050 "file, starting at C<offset>, from file C<path>."
13054 #: ../fish/guestfish-actions.pod:3733 ../fish/guestfish-actions.pod:3748
13055 #: ../src/guestfs-actions.pod:5636 ../src/guestfs-actions.pod:5662
13057 "This may read fewer bytes than requested. For further details see the "
13058 "L<pread(2)> system call."
13062 #: ../fish/guestfish-actions.pod:3736
13063 msgid "See also L</pwrite>, L</pread-device>."
13064 msgstr "Див. також L</pwrite>, L</pread-device>."
13067 #: ../fish/guestfish-actions.pod:3741
13068 msgid "pread-device"
13069 msgstr "pread-device"
13072 #: ../fish/guestfish-actions.pod:3743
13075 " pread-device device count offset\n"
13080 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5659
13082 "This command lets you read part of a file. It reads C<count> bytes of "
13083 "C<device>, starting at C<offset>."
13087 #: ../fish/guestfish-actions.pod:3751
13088 msgid "See also L</pread>."
13089 msgstr "Див. також L</pread>."
13092 #: ../fish/guestfish-actions.pod:3756
13097 #: ../fish/guestfish-actions.pod:3758
13100 " pvcreate device\n"
13103 " pvcreate пристрій\n"
13107 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5682
13109 "This creates an LVM physical volume on the named C<device>, where C<device> "
13110 "should usually be a partition name such as C</dev/sda1>."
13114 #: ../fish/guestfish-actions.pod:3764
13119 #: ../fish/guestfish-actions.pod:3766
13122 " pvremove device\n"
13125 " pvremove пристрій\n"
13129 #: ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5696
13131 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13136 #: ../fish/guestfish-actions.pod:3771 ../src/guestfs-actions.pod:5699
13138 "The implementation uses the C<pvremove> command which refuses to wipe "
13139 "physical volumes that contain any volume groups, so you have to remove those "
13144 #: ../fish/guestfish-actions.pod:3775
13149 #: ../fish/guestfish-actions.pod:3777
13152 " pvresize device\n"
13155 " pvresize пристрій\n"
13159 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5713
13161 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13162 "the new size of the underlying device."
13166 #: ../fish/guestfish-actions.pod:3782
13167 msgid "pvresize-size"
13168 msgstr "pvresize-size"
13171 #: ../fish/guestfish-actions.pod:3784
13174 " pvresize-size device size\n"
13179 #: ../fish/guestfish-actions.pod:3786
13181 "This command is the same as L</pvresize> except that it allows you to "
13182 "specify the new size (in bytes) explicitly."
13186 #: ../fish/guestfish-actions.pod:3789
13191 #: ../fish/guestfish-actions.pod:3791
13201 #: ../fish/guestfish-actions.pod:3793 ../src/guestfs-actions.pod:5739
13203 "List all the physical volumes detected. This is the equivalent of the L<pvs"
13208 #: ../fish/guestfish-actions.pod:3796 ../src/guestfs-actions.pod:5742
13210 "This returns a list of just the device names that contain PVs (eg. C</dev/"
13215 #: ../fish/guestfish-actions.pod:3799
13216 msgid "See also L</pvs-full>."
13217 msgstr "Див. також L</pvs-full>."
13220 #: ../fish/guestfish-actions.pod:3801
13225 #: ../fish/guestfish-actions.pod:3803
13235 #: ../fish/guestfish-actions.pod:3805 ../src/guestfs-actions.pod:5758
13237 "List all the physical volumes detected. This is the equivalent of the L<pvs"
13238 "(8)> command. The \"full\" version includes all fields."
13242 #: ../fish/guestfish-actions.pod:3808
13247 #: ../fish/guestfish-actions.pod:3810
13253 " pvuuid пристрій\n"
13257 #: ../fish/guestfish-actions.pod:3812 ../src/guestfs-actions.pod:5773
13258 msgid "This command returns the UUID of the LVM PV C<device>."
13262 #: ../fish/guestfish-actions.pod:3814
13267 #: ../fish/guestfish-actions.pod:3816
13270 " pwrite path content offset\n"
13275 #: ../fish/guestfish-actions.pod:3818 ../src/guestfs-actions.pod:5789
13277 "This command writes to part of a file. It writes the data buffer C<content> "
13278 "to the file C<path> starting at offset C<offset>."
13282 #: ../fish/guestfish-actions.pod:3821 ../src/guestfs-actions.pod:5792
13284 "This command implements the L<pwrite(2)> system call, and like that system "
13285 "call it may not write the full data requested. The return value is the "
13286 "number of bytes that were actually written to the file. This could even be "
13287 "0, although short writes are unlikely for regular files in ordinary "
13292 #: ../fish/guestfish-actions.pod:3827
13293 msgid "See also L</pread>, L</pwrite-device>."
13294 msgstr "Див. також L</pread>, L</pwrite-device>."
13297 #: ../fish/guestfish-actions.pod:3832
13298 msgid "pwrite-device"
13299 msgstr "pwrite-device"
13302 #: ../fish/guestfish-actions.pod:3834
13305 " pwrite-device device content offset\n"
13310 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5816
13312 "This command writes to part of a device. It writes the data buffer "
13313 "C<content> to C<device> starting at offset C<offset>."
13317 #: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:5819
13319 "This command implements the L<pwrite(2)> system call, and like that system "
13320 "call it may not write the full data requested (although short writes to disk "
13321 "devices and partitions are probably impossible with standard Linux kernels)."
13325 #: ../fish/guestfish-actions.pod:3844
13326 msgid "See also L</pwrite>."
13327 msgstr "Див. також L</pwrite>."
13330 #: ../fish/guestfish-actions.pod:3849
13335 #: ../fish/guestfish-actions.pod:3851
13338 " read-file path\n"
13341 " read-file шлях\n"
13345 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5840
13346 msgid "This calls returns the contents of the file C<path> as a buffer."
13350 #: ../fish/guestfish-actions.pod:3856
13352 "Unlike L</cat>, this function can correctly handle files that contain "
13353 "embedded ASCII NUL characters. However unlike L</download>, this function "
13354 "is limited in the total size of file that can be handled."
13358 #: ../fish/guestfish-actions.pod:3864
13360 msgstr "read-lines"
13363 #: ../fish/guestfish-actions.pod:3866
13366 " read-lines path\n"
13369 " read-lines шлях\n"
13373 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5865
13375 "The file contents are returned as a list of lines. Trailing C<LF> and "
13376 "C<CRLF> character sequences are I<not> returned."
13380 #: ../fish/guestfish-actions.pod:3873
13382 "Note that this function cannot correctly handle binary files (specifically, "
13383 "files containing C<\\0> character which is treated as end of line). For "
13384 "those you need to use the L</read-file> function which has a more complex "
13389 #: ../fish/guestfish-actions.pod:3878
13394 #: ../fish/guestfish-actions.pod:3880
13400 " readdir каталог\n"
13404 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:5885
13405 msgid "This returns the list of directory entries in directory C<dir>."
13409 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
13411 "All entries in the directory are returned, including C<.> and C<..>. The "
13412 "entries are I<not> sorted, but returned in the same order as the underlying "
13417 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5891
13419 "Also this call returns basic file type information about each file. The "
13420 "C<ftyp> field will contain one of the following characters:"
13424 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
13429 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
13430 msgid "Block special"
13431 msgstr "Блоковий особливий"
13434 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
13439 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
13440 msgid "Char special"
13441 msgstr "Символьний особливий"
13444 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
13449 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:5906
13454 #: ../fish/guestfish-actions.pod:3905 ../src/guestfs-actions.pod:5908
13459 #: ../fish/guestfish-actions.pod:3907 ../src/guestfs-actions.pod:5910
13460 msgid "FIFO (named pipe)"
13461 msgstr "FIFO (іменований канал)"
13464 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5912
13469 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:5914
13470 msgid "Symbolic link"
13471 msgstr "Символічне посилання"
13474 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5916
13479 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5918
13480 msgid "Regular file"
13481 msgstr "Звичайний файл"
13484 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:5920
13489 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5922
13494 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:5924
13499 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5926
13500 msgid "Unknown file type"
13501 msgstr "Невідомий тип файла"
13504 #: ../fish/guestfish-actions.pod:3925 ../src/guestfs-actions.pod:5928
13509 #: ../fish/guestfish-actions.pod:3927 ../src/guestfs-actions.pod:5930
13511 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13515 #: ../fish/guestfish-actions.pod:3932
13517 "This function is primarily intended for use by programs. To get a simple "
13518 "list of names, use L</ls>. To get a printable directory for human "
13519 "consumption, use L</ll>."
13523 #: ../fish/guestfish-actions.pod:3936
13528 #: ../fish/guestfish-actions.pod:3938
13538 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:5951
13539 msgid "This command reads the target of a symbolic link."
13543 #: ../fish/guestfish-actions.pod:3942
13544 msgid "readlinklist"
13545 msgstr "readlinklist"
13548 #: ../fish/guestfish-actions.pod:3944
13551 " readlinklist path 'names ...'\n"
13556 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5965
13558 "This call allows you to do a C<readlink> operation on multiple files, where "
13559 "all files are in the directory C<path>. C<names> is the list of files from "
13564 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:5969
13566 "On return you get a list of strings, with a one-to-one correspondence to the "
13567 "C<names> list. Each string is the value of the symbolic link."
13571 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:5973
13573 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13574 "result string is the empty string C<\"\">. However the whole operation is "
13575 "completed even if there were C<readlink(2)> errors, and so you can call this "
13576 "function with names where you don't know if they are symbolic links already "
13577 "(albeit slightly less efficient)."
13581 #: ../fish/guestfish-actions.pod:3961 ../src/guestfs-actions.pod:5980
13583 "This call is intended for programs that want to efficiently list a directory "
13584 "contents without making many round-trips. Very long directory listings "
13585 "might cause the protocol message size to be exceeded, causing this call to "
13586 "fail. The caller must split up such requests into smaller groups of names."
13590 #: ../fish/guestfish-actions.pod:3968
13595 #: ../fish/guestfish-actions.pod:3970
13605 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:5999
13607 "Return the canonicalized absolute pathname of C<path>. The returned path "
13608 "has no C<.>, C<..> or symbolic link path elements."
13612 #: ../fish/guestfish-actions.pod:3975
13613 msgid "removexattr"
13614 msgstr "removexattr"
13617 #: ../fish/guestfish-actions.pod:3977
13620 " removexattr xattr path\n"
13625 #: ../fish/guestfish-actions.pod:3979 ../src/guestfs-actions.pod:6014
13627 "This call removes the extended attribute named C<xattr> of the file C<path>."
13631 #: ../fish/guestfish-actions.pod:3982
13632 msgid "See also: L</lremovexattr>, L<attr(5)>."
13633 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13636 #: ../fish/guestfish-actions.pod:3984
13641 #: ../fish/guestfish-actions.pod:3986
13644 " resize2fs device\n"
13647 " resize2fs пристрій\n"
13651 #: ../fish/guestfish-actions.pod:3988 ../src/guestfs-actions.pod:6029
13653 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13654 "underlying device."
13658 #: ../fish/guestfish-actions.pod:3991
13660 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13661 "before calling this command. For unknown reasons C<resize2fs> sometimes "
13662 "gives an error about this and sometimes not. In any case, it is always safe "
13663 "to call L</e2fsck-f> before calling this function."
13667 #: ../fish/guestfish-actions.pod:3997
13668 msgid "resize2fs-M"
13669 msgstr "resize2fs-M"
13672 #: ../fish/guestfish-actions.pod:3999
13675 " resize2fs-M device\n"
13678 " resize2fs-M пристрій\n"
13682 #: ../fish/guestfish-actions.pod:4001
13684 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13685 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
13690 #: ../fish/guestfish-actions.pod:4005
13692 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13693 "and read the C<Block size> and C<Block count> values. These two numbers, "
13694 "multiplied together, give the resulting size of the minimal filesystem in "
13699 #: ../fish/guestfish-actions.pod:4010
13700 msgid "resize2fs-size"
13701 msgstr "resize2fs-size"
13704 #: ../fish/guestfish-actions.pod:4012
13707 " resize2fs-size device size\n"
13712 #: ../fish/guestfish-actions.pod:4014
13714 "This command is the same as L</resize2fs> except that it allows you to "
13715 "specify the new size (in bytes) explicitly."
13719 #: ../fish/guestfish-actions.pod:4017
13724 #: ../fish/guestfish-actions.pod:4019
13734 #: ../fish/guestfish-actions.pod:4021 ../src/guestfs-actions.pod:6081
13735 msgid "Remove the single file C<path>."
13739 #: ../fish/guestfish-actions.pod:4023
13744 #: ../fish/guestfish-actions.pod:4025
13754 #: ../fish/guestfish-actions.pod:4027 ../src/guestfs-actions.pod:6093
13756 "Remove the file or directory C<path>, recursively removing the contents if "
13757 "its a directory. This is like the C<rm -rf> shell command."
13761 #: ../fish/guestfish-actions.pod:4031
13766 #: ../fish/guestfish-actions.pod:4033
13776 #: ../fish/guestfish-actions.pod:4035 ../src/guestfs-actions.pod:6107
13777 msgid "Remove the single directory C<path>."
13781 #: ../fish/guestfish-actions.pod:4037
13782 msgid "rmmountpoint"
13783 msgstr "rmmountpoint"
13786 #: ../fish/guestfish-actions.pod:4039
13789 " rmmountpoint exemptpath\n"
13794 #: ../fish/guestfish-actions.pod:4041
13796 "This calls removes a mountpoint that was previously created with L</"
13797 "mkmountpoint>. See L</mkmountpoint> for full details."
13801 #: ../fish/guestfish-actions.pod:4045
13802 msgid "scrub-device"
13803 msgstr "scrub-device"
13806 #: ../fish/guestfish-actions.pod:4047
13809 " scrub-device device\n"
13812 " scrub-device пристрій\n"
13816 #: ../fish/guestfish-actions.pod:4049 ../src/guestfs-actions.pod:6133
13818 "This command writes patterns over C<device> to make data retrieval more "
13823 #: ../fish/guestfish-actions.pod:4052 ../fish/guestfish-actions.pod:4067
13824 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6136
13825 #: ../src/guestfs-actions.pod:6157 ../src/guestfs-actions.pod:6176
13827 "It is an interface to the L<scrub(1)> program. See that manual page for "
13832 #: ../fish/guestfish-actions.pod:4058
13834 msgstr "scrub-file"
13837 #: ../fish/guestfish-actions.pod:4060
13840 " scrub-file file\n"
13843 " scrub-file файл\n"
13847 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6152
13849 "This command writes patterns over a file to make data retrieval more "
13854 #: ../fish/guestfish-actions.pod:4065 ../src/guestfs-actions.pod:6155
13855 msgid "The file is I<removed> after scrubbing."
13859 #: ../fish/guestfish-actions.pod:4070
13860 msgid "scrub-freespace"
13861 msgstr "scrub-freespace"
13864 #: ../fish/guestfish-actions.pod:4072
13867 " scrub-freespace dir\n"
13870 " scrub-freespace каталог\n"
13874 #: ../fish/guestfish-actions.pod:4074
13876 "This command creates the directory C<dir> and then fills it with files until "
13877 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13878 "deletes them. The intention is to scrub any free space on the partition "
13879 "containing C<dir>."
13883 #: ../fish/guestfish-actions.pod:4083
13885 msgstr "set-append"
13888 #: ../fish/guestfish-actions.pod:4085
13893 #: ../fish/guestfish-actions.pod:4087
13896 " set-append append\n"
13901 #: ../fish/guestfish-actions.pod:4089 ../src/guestfs-actions.pod:6189
13903 "This function is used to add additional options to the guest kernel command "
13908 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6192
13910 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13911 "environment variable."
13915 #: ../fish/guestfish-actions.pod:4095 ../src/guestfs-actions.pod:6195
13917 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13918 "(libguestfs always adds a few of its own)."
13922 #: ../fish/guestfish-actions.pod:4098
13923 msgid "set-attach-method"
13924 msgstr "set-attach-method"
13927 #: ../fish/guestfish-actions.pod:4100
13928 msgid "attach-method"
13932 #: ../fish/guestfish-actions.pod:4102
13935 " set-attach-method attachmethod\n"
13940 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6208
13942 "Set the method that libguestfs uses to connect to the back end guestfsd "
13943 "daemon. Possible methods are:"
13947 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6213
13948 #: ../src/guestfs.pod:2800
13949 msgid "C<appliance>"
13950 msgstr "C<appliance>"
13953 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6215
13955 "Launch an appliance and connect to it. This is the ordinary method and the "
13960 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6218
13961 msgid "C<unix:I<path>>"
13962 msgstr "C<unix:I<шлях>>"
13965 #: ../fish/guestfish-actions.pod:4116 ../src/guestfs-actions.pod:6220
13966 msgid "Connect to the Unix domain socket I<path>."
13967 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13970 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6222
13972 "This method lets you connect to an existing daemon or (using virtio-serial) "
13973 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
13974 "RUNNING DAEMONS>."
13978 #: ../fish/guestfish-actions.pod:4124
13979 msgid "set-autosync"
13980 msgstr "set-autosync"
13983 #: ../fish/guestfish-actions.pod:4126
13988 #: ../fish/guestfish-actions.pod:4128
13991 " set-autosync true|false\n"
13994 " set-autosync true|false\n"
13998 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6238
14000 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
14001 "effort attempt to make filesystems consistent and synchronized when the "
14002 "handle is closed (also if the program exits without closing handles)."
14006 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6243
14008 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14009 "disabled by default)."
14013 #: ../fish/guestfish-actions.pod:4138
14015 msgstr "set-direct"
14018 #: ../fish/guestfish-actions.pod:4140
14023 #: ../fish/guestfish-actions.pod:4142
14026 " set-direct true|false\n"
14029 " set-direct true|false\n"
14033 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6256
14035 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14036 "passed directly through to the appliance once it is launched."
14040 #: ../fish/guestfish-actions.pod:4148
14042 "One consequence of this is that log messages aren't caught by the library "
14043 "and handled by L</set-log-message-callback>, but go straight to stdout."
14047 #: ../fish/guestfish-actions.pod:4152 ../src/guestfs-actions.pod:6264
14048 msgid "You probably don't want to use this unless you know what you are doing."
14052 #: ../fish/guestfish-actions.pod:4155 ../src/guestfs-actions.pod:6267
14053 msgid "The default is disabled."
14057 #: ../fish/guestfish-actions.pod:4157
14058 msgid "set-e2label"
14059 msgstr "set-e2label"
14062 #: ../fish/guestfish-actions.pod:4159
14065 " set-e2label device label\n"
14070 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6280
14072 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14073 "C<label>. Filesystem labels are limited to 16 characters."
14077 #: ../fish/guestfish-actions.pod:4165
14079 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14080 "label on a filesystem."
14084 #: ../fish/guestfish-actions.pod:4168
14086 msgstr "set-e2uuid"
14089 #: ../fish/guestfish-actions.pod:4170
14092 " set-e2uuid device uuid\n"
14097 #: ../fish/guestfish-actions.pod:4172 ../src/guestfs-actions.pod:6298
14099 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14100 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
14101 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14105 #: ../fish/guestfish-actions.pod:4177
14107 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14108 "UUID of a filesystem."
14112 #: ../fish/guestfish-actions.pod:4180
14113 msgid "set-memsize"
14114 msgstr "set-memsize"
14117 #: ../fish/guestfish-actions.pod:4182
14122 #: ../fish/guestfish-actions.pod:4184
14125 " set-memsize memsize\n"
14130 #: ../fish/guestfish-actions.pod:4186
14132 "This sets the memory size in megabytes allocated to the qemu subprocess. "
14133 "This only has any effect if called before L</launch>."
14137 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6320
14139 "You can also change this by setting the environment variable "
14140 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14144 #: ../fish/guestfish-actions.pod:4197
14145 msgid "set-network"
14146 msgstr "set-network"
14149 #: ../fish/guestfish-actions.pod:4199
14154 #: ../fish/guestfish-actions.pod:4201
14157 " set-network true|false\n"
14160 " set-network true|false\n"
14164 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6337
14166 "If C<network> is true, then the network is enabled in the libguestfs "
14167 "appliance. The default is false."
14171 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6340
14173 "This affects whether commands are able to access the network (see L<guestfs"
14174 "(3)/RUNNING COMMANDS>)."
14178 #: ../fish/guestfish-actions.pod:4209
14180 "You must call this before calling L</launch>, otherwise it has no effect."
14184 #: ../fish/guestfish-actions.pod:4212
14189 #: ../fish/guestfish-actions.pod:4216
14192 " set-path searchpath\n"
14197 #: ../fish/guestfish-actions.pod:4218 ../src/guestfs-actions.pod:6356
14198 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14202 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6358
14204 "The default is C<$libdir/guestfs> unless overridden by setting "
14205 "C<LIBGUESTFS_PATH> environment variable."
14209 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6361
14210 msgid "Setting C<path> to C<NULL> restores the default path."
14214 #: ../fish/guestfish-actions.pod:4225
14219 #: ../fish/guestfish-actions.pod:4227
14224 #: ../fish/guestfish-actions.pod:4229
14227 " set-pgroup true|false\n"
14232 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6373
14234 "If C<pgroup> is true, child processes are placed into their own process "
14239 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6376
14241 "The practical upshot of this is that signals like C<SIGINT> (from users "
14242 "pressing C<^C>) won't be received by the child process."
14246 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6379
14248 "The default for this flag is false, because usually you want C<^C> to kill "
14253 #: ../fish/guestfish-actions.pod:4240
14258 #: ../fish/guestfish-actions.pod:4242
14263 #: ../fish/guestfish-actions.pod:4244
14273 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6392
14274 msgid "Set the qemu binary that we will use."
14278 #: ../fish/guestfish-actions.pod:4248 ../src/guestfs-actions.pod:6394
14280 "The default is chosen when the library was compiled by the configure script."
14284 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6397
14286 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14291 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6400
14292 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14296 #: ../fish/guestfish-actions.pod:4256 ../src/guestfs-actions.pod:6402
14298 "Note that you should call this function as early as possible after creating "
14299 "the handle. This is because some pre-launch operations depend on testing "
14300 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
14301 "don't retest features, and so you might see inconsistent results. Using the "
14302 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14303 "the qemu binary at the same time as the handle is created."
14307 #: ../fish/guestfish-actions.pod:4264
14308 msgid "set-recovery-proc"
14309 msgstr "set-recovery-proc"
14312 #: ../fish/guestfish-actions.pod:4266
14313 msgid "recovery-proc"
14314 msgstr "recovery-proc"
14317 #: ../fish/guestfish-actions.pod:4268
14320 " set-recovery-proc true|false\n"
14323 " set-recovery-proc true|false\n"
14327 #: ../fish/guestfish-actions.pod:4270
14329 "If this is called with the parameter C<false> then L</launch> does not "
14330 "create a recovery process. The purpose of the recovery process is to stop "
14331 "runaway qemu processes in the case where the main program aborts abruptly."
14335 #: ../fish/guestfish-actions.pod:4275
14337 "This only has any effect if called before L</launch>, and the default is "
14342 #: ../fish/guestfish-actions.pod:4278 ../src/guestfs-actions.pod:6428
14344 "About the only time when you would want to disable this is if the main "
14345 "process will fork itself into the background (\"daemonize\" itself). In "
14346 "this case the recovery process thinks that the main program has disappeared "
14347 "and so kills qemu, which is not very helpful."
14351 #: ../fish/guestfish-actions.pod:4284
14352 msgid "set-selinux"
14353 msgstr "set-selinux"
14356 #: ../fish/guestfish-actions.pod:4286
14361 #: ../fish/guestfish-actions.pod:4288
14364 " set-selinux true|false\n"
14367 " set-selinux true|false\n"
14371 #: ../fish/guestfish-actions.pod:4290 ../src/guestfs-actions.pod:6444
14373 "This sets the selinux flag that is passed to the appliance at boot time. "
14374 "The default is C<selinux=0> (disabled)."
14378 #: ../fish/guestfish-actions.pod:4293 ../src/guestfs-actions.pod:6447
14380 "Note that if SELinux is enabled, it is always in Permissive mode "
14381 "(C<enforcing=0>)."
14385 #: ../fish/guestfish-actions.pod:4299
14390 #: ../fish/guestfish-actions.pod:4301
14395 #: ../fish/guestfish-actions.pod:4303
14398 " set-trace true|false\n"
14401 " set-trace true|false\n"
14405 #: ../fish/guestfish-actions.pod:4305 ../src/guestfs-actions.pod:6463
14407 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14408 "return values are traced."
14412 #: ../fish/guestfish-actions.pod:4308 ../src/guestfs-actions.pod:6466
14414 "If you want to trace C API calls into libguestfs (and other libraries) then "
14415 "possibly a better way is to use the external ltrace(1) command."
14419 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6470
14421 "Command traces are disabled unless the environment variable "
14422 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14426 #: ../fish/guestfish-actions.pod:4315
14428 "Trace messages are normally sent to C<stderr>, unless you register a "
14429 "callback to send them somewhere else (see L</set-event-callback>)."
14433 #: ../fish/guestfish-actions.pod:4319
14434 msgid "set-verbose"
14435 msgstr "set-verbose"
14438 #: ../fish/guestfish-actions.pod:4321
14443 #: ../fish/guestfish-actions.pod:4323
14446 " set-verbose true|false\n"
14449 " set-verbose true|false\n"
14453 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6487
14454 msgid "If C<verbose> is true, this turns on verbose messages."
14458 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6489
14460 "Verbose messages are disabled unless the environment variable "
14461 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14465 #: ../fish/guestfish-actions.pod:4330
14467 "Verbose messages are normally sent to C<stderr>, unless you register a "
14468 "callback to send them somewhere else (see L</set-event-callback>)."
14472 #: ../fish/guestfish-actions.pod:4334
14477 #: ../fish/guestfish-actions.pod:4336
14480 " setcon context\n"
14483 " setcon контекст\n"
14487 #: ../fish/guestfish-actions.pod:4338 ../src/guestfs-actions.pod:6506
14489 "This sets the SELinux security context of the daemon to the string "
14494 #: ../fish/guestfish-actions.pod:4341 ../src/guestfs-actions.pod:6509
14495 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14499 #: ../fish/guestfish-actions.pod:4343
14504 #: ../fish/guestfish-actions.pod:4345
14507 " setxattr xattr val vallen path\n"
14512 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6524
14514 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14515 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
14519 #: ../fish/guestfish-actions.pod:4351
14520 msgid "See also: L</lsetxattr>, L<attr(5)>."
14521 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14524 #: ../fish/guestfish-actions.pod:4353
14529 #: ../fish/guestfish-actions.pod:4355
14532 " sfdisk device cyls heads sectors 'lines ...'\n"
14537 #: ../fish/guestfish-actions.pod:4357 ../src/guestfs-actions.pod:6551
14539 "This is a direct interface to the L<sfdisk(8)> program for creating "
14540 "partitions on block devices."
14544 #: ../fish/guestfish-actions.pod:4360 ../src/guestfs-actions.pod:6554
14545 msgid "C<device> should be a block device, for example C</dev/sda>."
14549 #: ../fish/guestfish-actions.pod:4362 ../src/guestfs-actions.pod:6556
14551 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14552 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14553 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
14554 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
14555 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14556 "the kernel) cannot work out the right geometry and you will need to tell it."
14560 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6564
14562 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
14563 "refer to the L<sfdisk(8)> manpage."
14567 #: ../fish/guestfish-actions.pod:4373 ../src/guestfs-actions.pod:6567
14569 "To create a single partition occupying the whole disk, you would pass "
14570 "C<lines> as a single element list, when the single element being the string "
14575 #: ../fish/guestfish-actions.pod:4377
14576 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14577 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14580 #: ../fish/guestfish-actions.pod:4383 ../fish/guestfish-actions.pod:4406
14581 #: ../fish/guestfish-actions.pod:4428
14583 "I<This function is deprecated.> In new code, use the L</part_add> call "
14588 #: ../fish/guestfish-actions.pod:4390
14593 #: ../fish/guestfish-actions.pod:4392
14596 " sfdiskM device 'lines ...'\n"
14601 #: ../fish/guestfish-actions.pod:4394
14603 "This is a simplified interface to the L</sfdisk> command, where partition "
14604 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14605 "you don't need to specify the cyls, heads and sectors parameters which were "
14606 "rarely if ever used anyway."
14610 #: ../fish/guestfish-actions.pod:4400
14611 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14613 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14616 #: ../fish/guestfish-actions.pod:4413
14621 #: ../fish/guestfish-actions.pod:4415
14624 " sfdisk-N device partnum cyls heads sectors line\n"
14629 #: ../fish/guestfish-actions.pod:4417 ../src/guestfs-actions.pod:6629
14631 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14632 "(note: C<n> counts from 1)."
14636 #: ../fish/guestfish-actions.pod:4420
14638 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
14639 "cyls/heads/sectors parameters."
14643 #: ../fish/guestfish-actions.pod:4423
14644 msgid "See also: L</part-add>"
14645 msgstr "Див. також L</part-add>"
14648 #: ../fish/guestfish-actions.pod:4435
14649 msgid "sfdisk-disk-geometry"
14650 msgstr "sfdisk-disk-geometry"
14653 #: ../fish/guestfish-actions.pod:4437
14656 " sfdisk-disk-geometry device\n"
14659 " sfdisk-disk-geometry пристрій\n"
14663 #: ../fish/guestfish-actions.pod:4439
14665 "This displays the disk geometry of C<device> read from the partition table. "
14666 "Especially in the case where the underlying block device has been resized, "
14667 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14668 "kernel-geometry>)."
14672 #: ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4453
14673 #: ../src/guestfs-actions.pod:6655 ../src/guestfs-actions.pod:6671
14674 msgid "The result is in human-readable format, and not designed to be parsed."
14678 #: ../fish/guestfish-actions.pod:4447
14679 msgid "sfdisk-kernel-geometry"
14680 msgstr "sfdisk-kernel-geometry"
14683 #: ../fish/guestfish-actions.pod:4449
14686 " sfdisk-kernel-geometry device\n"
14689 " sfdisk-kernel-geometry пристрій\n"
14693 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6669
14694 msgid "This displays the kernel's idea of the geometry of C<device>."
14698 #: ../fish/guestfish-actions.pod:4456
14703 #: ../fish/guestfish-actions.pod:4458
14706 " sfdisk-l device\n"
14709 " sfdisk-l пристрій\n"
14713 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6692
14715 "This displays the partition table on C<device>, in the human-readable output "
14716 "of the L<sfdisk(8)> command. It is not intended to be parsed."
14720 #: ../fish/guestfish-actions.pod:4464
14721 msgid "See also: L</part-list>"
14722 msgstr "Див. також L</part-list>"
14725 #: ../fish/guestfish-actions.pod:4466
14727 "I<This function is deprecated.> In new code, use the L</part_list> call "
14732 #: ../fish/guestfish-actions.pod:4473
14737 #: ../fish/guestfish-actions.pod:4475
14747 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6709
14749 "This call runs a command from the guest filesystem via the guest's C</bin/"
14754 #: ../fish/guestfish-actions.pod:4480
14755 msgid "This is like L</command>, but passes the command to:"
14759 #: ../fish/guestfish-actions.pod:4482 ../src/guestfs-actions.pod:6714
14762 " /bin/sh -c \"command\"\n"
14767 #: ../fish/guestfish-actions.pod:4484 ../src/guestfs-actions.pod:6716
14769 "Depending on the guest's shell, this usually results in wildcards being "
14770 "expanded, shell expressions being interpolated and so on."
14774 #: ../fish/guestfish-actions.pod:4488
14775 msgid "All the provisos about L</command> apply to this call."
14779 #: ../fish/guestfish-actions.pod:4490
14784 #: ../fish/guestfish-actions.pod:4492
14787 " sh-lines command\n"
14790 " sh-lines команда\n"
14794 #: ../fish/guestfish-actions.pod:4494
14795 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14799 #: ../fish/guestfish-actions.pod:4497
14800 msgid "See also: L</command-lines>"
14801 msgstr "Див. також L</command-lines>"
14804 #: ../fish/guestfish-actions.pod:4499
14809 #: ../fish/guestfish-actions.pod:4501
14815 " sleep час_у_секундах\n"
14819 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6750
14820 msgid "Sleep for C<secs> seconds."
14824 #: ../fish/guestfish-actions.pod:4505
14829 #: ../fish/guestfish-actions.pod:4507
14839 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6764
14840 msgid "This is the same as the C<stat(2)> system call."
14844 #: ../fish/guestfish-actions.pod:4513
14849 #: ../fish/guestfish-actions.pod:4515
14859 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6778
14861 "Returns file system statistics for any mounted file system. C<path> should "
14862 "be a file or directory in the mounted file system (typically it is the mount "
14863 "point itself, but it doesn't need to be)."
14867 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6782
14868 msgid "This is the same as the C<statvfs(2)> system call."
14872 #: ../fish/guestfish-actions.pod:4523
14877 #: ../fish/guestfish-actions.pod:4525
14887 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6796
14889 "This runs the L<strings(1)> command on a file and returns the list of "
14890 "printable strings found."
14894 #: ../fish/guestfish-actions.pod:4533
14899 #: ../fish/guestfish-actions.pod:4535
14902 " strings-e encoding path\n"
14905 " strings-e кодування шлях\n"
14909 #: ../fish/guestfish-actions.pod:4537
14911 "This is like the L</strings> command, but allows you to specify the encoding "
14912 "of strings that are looked for in the source file C<path>."
14916 #: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:6819
14917 msgid "Allowed encodings are:"
14918 msgstr "Можливими кодуваннями є:"
14921 #: ../fish/guestfish-actions.pod:4545 ../src/guestfs-actions.pod:6823
14926 #: ../fish/guestfish-actions.pod:4547
14928 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14929 "ISO-8859-X (this is what L</strings> uses)."
14933 #: ../fish/guestfish-actions.pod:4550 ../src/guestfs-actions.pod:6828
14938 #: ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:6830
14939 msgid "Single 8-bit-byte characters."
14940 msgstr "Окремі 8-бітові-байтові символи."
14943 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6832
14948 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:6834
14949 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14953 #: ../fish/guestfish-actions.pod:4559 ../src/guestfs-actions.pod:6837
14954 msgid "l (lower case letter L)"
14958 #: ../fish/guestfish-actions.pod:4561 ../src/guestfs-actions.pod:6839
14960 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
14961 "examining binaries in Windows guests."
14965 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6842
14970 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6844
14971 msgid "32-bit big endian such as UCS-4BE."
14975 #: ../fish/guestfish-actions.pod:4568 ../src/guestfs-actions.pod:6846
14980 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6848
14981 msgid "32-bit little endian such as UCS-4LE."
14985 #: ../fish/guestfish-actions.pod:4574 ../src/guestfs-actions.pod:6852
14986 msgid "The returned strings are transcoded to UTF-8."
14990 #: ../fish/guestfish-actions.pod:4579
14991 msgid "swapoff-device"
14992 msgstr "swapoff-device"
14995 #: ../fish/guestfish-actions.pod:4581
14998 " swapoff-device device\n"
15001 " swapoff-device пристрій\n"
15005 #: ../fish/guestfish-actions.pod:4583
15007 "This command disables the libguestfs appliance swap device or partition "
15008 "named C<device>. See L</swapon-device>."
15012 #: ../fish/guestfish-actions.pod:4587
15013 msgid "swapoff-file"
15014 msgstr "swapoff-file"
15017 #: ../fish/guestfish-actions.pod:4589
15020 " swapoff-file file\n"
15023 " swapoff-file файл\n"
15027 #: ../fish/guestfish-actions.pod:4591 ../src/guestfs-actions.pod:6883
15028 msgid "This command disables the libguestfs appliance swap on file."
15032 #: ../fish/guestfish-actions.pod:4593
15033 msgid "swapoff-label"
15034 msgstr "swapoff-label"
15037 #: ../fish/guestfish-actions.pod:4595
15040 " swapoff-label label\n"
15043 " swapoff-label мітка\n"
15047 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6895
15049 "This command disables the libguestfs appliance swap on labeled swap "
15054 #: ../fish/guestfish-actions.pod:4600
15055 msgid "swapoff-uuid"
15056 msgstr "swapoff-uuid"
15059 #: ../fish/guestfish-actions.pod:4602
15062 " swapoff-uuid uuid\n"
15065 " swapoff-uuid uuid\n"
15069 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6908
15071 "This command disables the libguestfs appliance swap partition with the given "
15076 #: ../fish/guestfish-actions.pod:4607
15077 msgid "swapon-device"
15078 msgstr "swapon-device"
15081 #: ../fish/guestfish-actions.pod:4609
15084 " swapon-device device\n"
15087 " swapon-device пристрій\n"
15091 #: ../fish/guestfish-actions.pod:4611
15093 "This command enables the libguestfs appliance to use the swap device or "
15094 "partition named C<device>. The increased memory is made available for all "
15095 "commands, for example those run using L</command> or L</sh>."
15099 #: ../fish/guestfish-actions.pod:4616 ../src/guestfs-actions.pod:6926
15101 "Note that you should not swap to existing guest swap partitions unless you "
15102 "know what you are doing. They may contain hibernation information, or other "
15103 "information that the guest doesn't want you to trash. You also risk leaking "
15104 "information about the host to the guest this way. Instead, attach a new "
15105 "host device to the guest and swap on that."
15109 #: ../fish/guestfish-actions.pod:4623
15110 msgid "swapon-file"
15111 msgstr "swapon-file"
15114 #: ../fish/guestfish-actions.pod:4625
15117 " swapon-file file\n"
15120 " swapon-file файл\n"
15124 #: ../fish/guestfish-actions.pod:4627
15126 "This command enables swap to a file. See L</swapon-device> for other notes."
15130 #: ../fish/guestfish-actions.pod:4630
15131 msgid "swapon-label"
15132 msgstr "swapon-label"
15135 #: ../fish/guestfish-actions.pod:4632
15138 " swapon-label label\n"
15141 " swapon-label мітка\n"
15145 #: ../fish/guestfish-actions.pod:4634
15147 "This command enables swap to a labeled swap partition. See L</swapon-"
15148 "device> for other notes."
15152 #: ../fish/guestfish-actions.pod:4637
15153 msgid "swapon-uuid"
15154 msgstr "swapon-uuid"
15157 #: ../fish/guestfish-actions.pod:4639
15160 " swapon-uuid uuid\n"
15163 " swapon-uuid uuid\n"
15167 #: ../fish/guestfish-actions.pod:4641
15169 "This command enables swap to a swap partition with the given UUID. See L</"
15170 "swapon-device> for other notes."
15174 #: ../fish/guestfish-actions.pod:4644
15179 #: ../fish/guestfish-actions.pod:4646
15189 #: ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:6981
15191 "This syncs the disk, so that any writes are flushed through to the "
15192 "underlying disk image."
15196 #: ../fish/guestfish-actions.pod:4651 ../src/guestfs-actions.pod:6984
15198 "You should always call this if you have modified a disk image, before "
15199 "closing the handle."
15203 #: ../fish/guestfish-actions.pod:4654
15208 #: ../fish/guestfish-actions.pod:4656
15218 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:6997
15220 "This command returns up to the last 10 lines of a file as a list of strings."
15224 #: ../fish/guestfish-actions.pod:4664
15229 #: ../fish/guestfish-actions.pod:4666
15232 " tail-n nrlines path\n"
15237 #: ../fish/guestfish-actions.pod:4668 ../src/guestfs-actions.pod:7016
15239 "If the parameter C<nrlines> is a positive number, this returns the last "
15240 "C<nrlines> lines of the file C<path>."
15244 #: ../fish/guestfish-actions.pod:4671 ../src/guestfs-actions.pod:7019
15246 "If the parameter C<nrlines> is a negative number, this returns lines from "
15247 "the file C<path>, starting with the C<-nrlines>th line."
15251 #: ../fish/guestfish-actions.pod:4679
15256 #: ../fish/guestfish-actions.pod:4681
15259 " tar-in (tarfile|-) directory\n"
15262 " tar-in (файл_tar|-) каталог\n"
15266 #: ../fish/guestfish-actions.pod:4683 ../src/guestfs-actions.pod:7040
15268 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15269 "tar file) into C<directory>."
15273 #: ../fish/guestfish-actions.pod:4686
15274 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15278 #: ../fish/guestfish-actions.pod:4691
15283 #: ../fish/guestfish-actions.pod:4693
15286 " tar-out directory (tarfile|-)\n"
15289 " tar-out каталог (файл tar|-)\n"
15293 #: ../fish/guestfish-actions.pod:4695 ../src/guestfs-actions.pod:7057
15295 "This command packs the contents of C<directory> and downloads it to local "
15300 #: ../fish/guestfish-actions.pod:4698
15301 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15305 #: ../fish/guestfish-actions.pod:4703
15310 #: ../fish/guestfish-actions.pod:4705
15313 " tgz-in (tarball|-) directory\n"
15316 " tgz-in (архів tar|-) каталог\n"
15320 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7074
15322 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15323 "tar file) into C<directory>."
15327 #: ../fish/guestfish-actions.pod:4710
15328 msgid "To upload an uncompressed tarball, use L</tar-in>."
15332 #: ../fish/guestfish-actions.pod:4714
15337 #: ../fish/guestfish-actions.pod:4716
15340 " tgz-out directory (tarball|-)\n"
15343 " tgz-out каталог (архів tar|-)\n"
15347 #: ../fish/guestfish-actions.pod:4718 ../src/guestfs-actions.pod:7090
15349 "This command packs the contents of C<directory> and downloads it to local "
15354 #: ../fish/guestfish-actions.pod:4721
15355 msgid "To download an uncompressed tarball, use L</tar-out>."
15359 #: ../fish/guestfish-actions.pod:4725
15364 #: ../fish/guestfish-actions.pod:4727
15374 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7105
15376 "Touch acts like the L<touch(1)> command. It can be used to update the "
15377 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15382 #: ../fish/guestfish-actions.pod:4733 ../src/guestfs-actions.pod:7109
15384 "This command only works on regular files, and will fail on other file types "
15385 "such as directories, symbolic links, block special etc."
15389 #: ../fish/guestfish-actions.pod:4736
15394 #: ../fish/guestfish-actions.pod:4738
15404 #: ../fish/guestfish-actions.pod:4740 ../src/guestfs-actions.pod:7122
15406 "This command truncates C<path> to a zero-length file. The file must exist "
15411 #: ../fish/guestfish-actions.pod:4743
15412 msgid "truncate-size"
15413 msgstr "truncate-size"
15416 #: ../fish/guestfish-actions.pod:4745
15419 " truncate-size path size\n"
15422 " truncate-size шлях розмір\n"
15426 #: ../fish/guestfish-actions.pod:4747 ../src/guestfs-actions.pod:7136
15428 "This command truncates C<path> to size C<size> bytes. The file must exist "
15433 #: ../fish/guestfish-actions.pod:4750
15435 "If the current file size is less than C<size> then the file is extended to "
15436 "the required size with zero bytes. This creates a sparse file (ie. disk "
15437 "blocks are not allocated for the file until you write to it). To create a "
15438 "non-sparse file of zeroes, use L</fallocate64> instead."
15442 #: ../fish/guestfish-actions.pod:4756
15447 #: ../fish/guestfish-actions.pod:4758
15450 " tune2fs-l device\n"
15453 " tune2fs-l пристрій\n"
15457 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7155
15459 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15464 #: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7158
15466 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
15467 "for more details. The list of fields returned isn't clearly defined, and "
15468 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15469 "and the filesystem itself."
15473 #: ../fish/guestfish-actions.pod:4768
15478 #: ../fish/guestfish-actions.pod:4770
15481 " txz-in (tarball|-) directory\n"
15484 " txz-in (архів tar|-) каталог\n"
15488 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7178
15490 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15491 "tar file) into C<directory>."
15495 #: ../fish/guestfish-actions.pod:4777
15500 #: ../fish/guestfish-actions.pod:4779
15503 " txz-out directory (tarball|-)\n"
15506 " txz-out каталог (архів tar|-)\n"
15510 #: ../fish/guestfish-actions.pod:4781 ../src/guestfs-actions.pod:7192
15512 "This command packs the contents of C<directory> and downloads it to local "
15513 "file C<tarball> (as an xz compressed tar archive)."
15517 #: ../fish/guestfish-actions.pod:4786
15522 #: ../fish/guestfish-actions.pod:4788
15532 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7205
15534 "This function sets the mask used for creating new files and device nodes to "
15539 #: ../fish/guestfish-actions.pod:4793 ../src/guestfs-actions.pod:7208
15541 "Typical umask values would be C<022> which creates new files with "
15542 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15543 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15547 #: ../fish/guestfish-actions.pod:4798 ../src/guestfs-actions.pod:7213
15549 "The default umask is C<022>. This is important because it means that "
15550 "directories and device nodes will be created with C<0644> or C<0755> mode "
15551 "even if you specify C<0777>."
15555 #: ../fish/guestfish-actions.pod:4802
15556 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15557 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15560 #: ../fish/guestfish-actions.pod:4805 ../src/guestfs-actions.pod:7220
15561 msgid "This call returns the previous umask."
15565 #: ../fish/guestfish-actions.pod:4807
15570 #: ../fish/guestfish-actions.pod:4809
15575 #: ../fish/guestfish-actions.pod:4811
15578 " umount pathordevice\n"
15581 " umount шлях_або_пристрій\n"
15585 #: ../fish/guestfish-actions.pod:4813 ../src/guestfs-actions.pod:7232
15587 "This unmounts the given filesystem. The filesystem may be specified either "
15588 "by its mountpoint (path) or the device which contains the filesystem."
15592 #: ../fish/guestfish-actions.pod:4817
15594 msgstr "umount-all"
15597 #: ../fish/guestfish-actions.pod:4819
15598 msgid "unmount-all"
15599 msgstr "unmount-all"
15602 #: ../fish/guestfish-actions.pod:4821
15612 #: ../fish/guestfish-actions.pod:4823 ../src/guestfs-actions.pod:7245
15613 msgid "This unmounts all mounted filesystems."
15617 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7247
15618 msgid "Some internal mounts are not unmounted by this call."
15622 #: ../fish/guestfish-actions.pod:4827
15627 #: ../fish/guestfish-actions.pod:4829
15630 " upload (filename|-) remotefilename\n"
15633 " upload (назва_файла|-) назва_віддаленого_файла\n"
15637 #: ../fish/guestfish-actions.pod:4831 ../fish/guestfish-actions.pod:4844
15638 #: ../src/guestfs-actions.pod:7260 ../src/guestfs-actions.pod:7284
15639 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15643 #: ../fish/guestfish-actions.pod:4836
15644 msgid "See also L</download>."
15645 msgstr "Див. також L</download>."
15648 #: ../fish/guestfish-actions.pod:4840
15649 msgid "upload-offset"
15650 msgstr "upload-offset"
15653 #: ../fish/guestfish-actions.pod:4842
15656 " upload-offset (filename|-) remotefilename offset\n"
15659 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15663 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7287
15665 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
15666 "The intention is to overwrite parts of existing files or devices, although "
15667 "if a non-existant file is specified then it is created with a \"hole\" "
15668 "before C<offset>. The size of the data written is implicit in the size of "
15669 "the source C<filename>."
15673 #: ../fish/guestfish-actions.pod:4854
15675 "Note that there is no limit on the amount of data that can be uploaded with "
15676 "this call, unlike with L</pwrite>, and this call always writes the full "
15677 "amount unless an error occurs."
15681 #: ../fish/guestfish-actions.pod:4859
15682 msgid "See also L</upload>, L</pwrite>."
15683 msgstr "Див. також L</upload>, L</pwrite>."
15686 #: ../fish/guestfish-actions.pod:4863
15691 #: ../fish/guestfish-actions.pod:4865
15694 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15699 #: ../fish/guestfish-actions.pod:4867 ../src/guestfs-actions.pod:7320
15700 msgid "This command sets the timestamps of a file with nanosecond precision."
15704 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7323
15706 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15711 #: ../fish/guestfish-actions.pod:4873 ../src/guestfs-actions.pod:7326
15713 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15714 "nanoseconds from the epoch."
15718 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7329
15720 "If the C<*nsecs> field contains the special value C<-1> then the "
15721 "corresponding timestamp is set to the current time. (The C<*secs> field is "
15722 "ignored in this case)."
15726 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7333
15728 "If the C<*nsecs> field contains the special value C<-2> then the "
15729 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
15734 #: ../fish/guestfish-actions.pod:4884
15739 #: ../fish/guestfish-actions.pod:4886
15749 #: ../fish/guestfish-actions.pod:4888 ../src/guestfs-actions.pod:7346
15751 "Return the libguestfs version number that the program is linked against."
15755 #: ../fish/guestfish-actions.pod:4891 ../src/guestfs-actions.pod:7349
15757 "Note that because of dynamic linking this is not necessarily the version of "
15758 "libguestfs that you compiled against. You can compile the program, and then "
15759 "at runtime dynamically link against a completely different C<libguestfs.so> "
15764 #: ../fish/guestfish-actions.pod:4896 ../src/guestfs-actions.pod:7354
15766 "This call was added in version C<1.0.58>. In previous versions of "
15767 "libguestfs there was no way to get the version number. From C code you can "
15768 "use dynamic linker functions to find out if this symbol exists (if it "
15769 "doesn't, then it's an earlier version)."
15773 #: ../fish/guestfish-actions.pod:4902 ../src/guestfs-actions.pod:7360
15775 "The call returns a structure with four elements. The first three (C<major>, "
15776 "C<minor> and C<release>) are numbers and correspond to the usual version "
15777 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
15778 "but may be used for distro-specific information."
15782 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7366
15784 "To construct the original version string: C<$major.$minor.$release$extra>"
15788 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7369
15789 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15793 #: ../fish/guestfish-actions.pod:4913
15795 "I<Note:> Don't use this call to test for availability of features. In "
15796 "enterprise distributions we backport features from later versions into "
15797 "earlier versions, making this an unreliable way to test for features. Use "
15798 "L</available> instead."
15802 #: ../fish/guestfish-actions.pod:4919
15807 #: ../fish/guestfish-actions.pod:4921
15810 " vfs-label device\n"
15813 " vfs-label пристрій\n"
15817 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7389
15818 msgid "This returns the filesystem label of the filesystem on C<device>."
15822 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7392
15823 msgid "If the filesystem is unlabeled, this returns the empty string."
15827 #: ../fish/guestfish-actions.pod:4928
15828 msgid "To find a filesystem from the label, use L</findfs-label>."
15832 #: ../fish/guestfish-actions.pod:4930
15837 #: ../fish/guestfish-actions.pod:4932
15840 " vfs-type device\n"
15843 " vfs-type пристрій\n"
15847 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7407
15849 "This command gets the filesystem type corresponding to the filesystem on "
15854 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7410
15856 "For most filesystems, the result is the name of the Linux VFS module which "
15857 "would be used to mount this filesystem if you mounted it without specifying "
15858 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
15862 #: ../fish/guestfish-actions.pod:4942
15867 #: ../fish/guestfish-actions.pod:4944
15870 " vfs-uuid device\n"
15873 " vfs-uuid пристрій\n"
15877 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7426
15878 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15882 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7429
15883 msgid "If the filesystem does not have a UUID, this returns the empty string."
15887 #: ../fish/guestfish-actions.pod:4951
15888 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15892 #: ../fish/guestfish-actions.pod:4953
15893 msgid "vg-activate"
15894 msgstr "vg-activate"
15897 #: ../fish/guestfish-actions.pod:4955
15900 " vg-activate true|false 'volgroups ...'\n"
15905 #: ../fish/guestfish-actions.pod:4957 ../src/guestfs-actions.pod:7445
15907 "This command activates or (if C<activate> is false) deactivates all logical "
15908 "volumes in the listed volume groups C<volgroups>."
15912 #: ../fish/guestfish-actions.pod:4960 ../src/guestfs-actions.pod:7448
15913 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15917 #: ../fish/guestfish-actions.pod:4962 ../src/guestfs-actions.pod:7450
15919 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15920 "activated or deactivated."
15924 #: ../fish/guestfish-actions.pod:4965
15925 msgid "vg-activate-all"
15926 msgstr "vg-activate-all"
15929 #: ../fish/guestfish-actions.pod:4967
15932 " vg-activate-all true|false\n"
15935 " vg-activate-all true|false\n"
15939 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7463
15941 "This command activates or (if C<activate> is false) deactivates all logical "
15942 "volumes in all volume groups."
15946 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7466
15947 msgid "This command is the same as running C<vgchange -a y|n>"
15951 #: ../fish/guestfish-actions.pod:4974
15956 #: ../fish/guestfish-actions.pod:4976
15959 " vgcreate volgroup 'physvols ...'\n"
15964 #: ../fish/guestfish-actions.pod:4978 ../src/guestfs-actions.pod:7479
15966 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15967 "of physical volumes C<physvols>."
15971 #: ../fish/guestfish-actions.pod:4981
15976 #: ../fish/guestfish-actions.pod:4983
15979 " vglvuuids vgname\n"
15984 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7492
15986 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15987 "volumes created in this volume group."
15991 #: ../fish/guestfish-actions.pod:4988
15993 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15994 "logical volumes and volume groups."
15998 #: ../fish/guestfish-actions.pod:4991
15999 msgid "See also L</vgpvuuids>."
16000 msgstr "Див. також L</vgpvuuids>."
16003 #: ../fish/guestfish-actions.pod:4993
16008 #: ../fish/guestfish-actions.pod:4995
16011 " vgpvuuids vgname\n"
16016 #: ../fish/guestfish-actions.pod:4997 ../src/guestfs-actions.pod:7512
16018 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16019 "volumes that this volume group resides on."
16023 #: ../fish/guestfish-actions.pod:5000
16025 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16026 "physical volumes and volume groups."
16030 #: ../fish/guestfish-actions.pod:5003
16031 msgid "See also L</vglvuuids>."
16032 msgstr "Див. також L</vglvuuids>."
16035 #: ../fish/guestfish-actions.pod:5005
16040 #: ../fish/guestfish-actions.pod:5007
16043 " vgremove vgname\n"
16048 #: ../fish/guestfish-actions.pod:5009 ../src/guestfs-actions.pod:7532
16049 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16053 #: ../fish/guestfish-actions.pod:5011 ../src/guestfs-actions.pod:7534
16055 "This also forcibly removes all logical volumes in the volume group (if any)."
16059 #: ../fish/guestfish-actions.pod:5014
16064 #: ../fish/guestfish-actions.pod:5016
16067 " vgrename volgroup newvolgroup\n"
16072 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7548
16073 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16077 #: ../fish/guestfish-actions.pod:5020
16082 #: ../fish/guestfish-actions.pod:5022
16092 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7559
16094 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
16099 #: ../fish/guestfish-actions.pod:5027 ../src/guestfs-actions.pod:7562
16101 "This returns a list of just the volume group names that were detected (eg. "
16106 #: ../fish/guestfish-actions.pod:5030
16107 msgid "See also L</vgs-full>."
16108 msgstr "Див. також L</vgs-full>."
16111 #: ../fish/guestfish-actions.pod:5032
16116 #: ../fish/guestfish-actions.pod:5034
16126 #: ../fish/guestfish-actions.pod:5036 ../src/guestfs-actions.pod:7578
16128 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
16129 "> command. The \"full\" version includes all fields."
16133 #: ../fish/guestfish-actions.pod:5039
16138 #: ../fish/guestfish-actions.pod:5041
16148 #: ../fish/guestfish-actions.pod:5043 ../src/guestfs-actions.pod:7592
16150 "This rescans all block devices and rebuilds the list of LVM physical "
16151 "volumes, volume groups and logical volumes."
16155 #: ../fish/guestfish-actions.pod:5046
16160 #: ../fish/guestfish-actions.pod:5048
16168 #: ../fish/guestfish-actions.pod:5050 ../src/guestfs-actions.pod:7605
16169 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16173 #: ../fish/guestfish-actions.pod:5052
16178 #: ../fish/guestfish-actions.pod:5054
16188 #: ../fish/guestfish-actions.pod:5056 ../src/guestfs-actions.pod:7645
16190 "This command counts the characters in a file, using the C<wc -c> external "
16195 #: ../fish/guestfish-actions.pod:5059
16200 #: ../fish/guestfish-actions.pod:5061
16210 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7658
16212 "This command counts the lines in a file, using the C<wc -l> external command."
16216 #: ../fish/guestfish-actions.pod:5066
16221 #: ../fish/guestfish-actions.pod:5068
16231 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7671
16233 "This command counts the words in a file, using the C<wc -w> external command."
16237 #: ../fish/guestfish-actions.pod:5073
16242 #: ../fish/guestfish-actions.pod:5075
16245 " write path content\n"
16248 " write шлях дані\n"
16252 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7686
16254 "This call creates a file called C<path>. The content of the file is the "
16255 "string C<content> (which can contain any 8 bit data)."
16259 #: ../fish/guestfish-actions.pod:5080
16260 msgid "See also L</write-append>."
16264 #: ../fish/guestfish-actions.pod:5085
16265 msgid "write-append"
16269 #: ../fish/guestfish-actions.pod:5087
16272 " write-append path content\n"
16277 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7706
16279 "This call appends C<content> to the end of file C<path>. If C<path> does "
16280 "not exist, then a new file is created."
16284 #: ../fish/guestfish-actions.pod:5092
16285 msgid "See also L</write>."
16289 #: ../fish/guestfish-actions.pod:5097
16291 msgstr "write-file"
16294 #: ../fish/guestfish-actions.pod:5099
16297 " write-file path content size\n"
16302 #: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:7733
16304 "This call creates a file called C<path>. The contents of the file is the "
16305 "string C<content> (which can contain any 8 bit data), with length C<size>."
16309 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7737
16311 "As a special case, if C<size> is C<0> then the length is calculated using "
16312 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16316 #: ../fish/guestfish-actions.pod:5109 ../src/guestfs-actions.pod:7741
16318 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16319 "I<not> work, even if the length is specified."
16323 #: ../fish/guestfish-actions.pod:5115
16325 "I<This function is deprecated.> In new code, use the L</write> call instead."
16329 #: ../fish/guestfish-actions.pod:5122
16334 #: ../fish/guestfish-actions.pod:5124
16337 " zegrep regex path\n"
16340 " zegrep формальний_вираз шлях\n"
16344 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7758
16346 "This calls the external C<zegrep> program and returns the matching lines."
16350 #: ../fish/guestfish-actions.pod:5132
16355 #: ../fish/guestfish-actions.pod:5134
16358 " zegrepi regex path\n"
16363 #: ../fish/guestfish-actions.pod:5136 ../src/guestfs-actions.pod:7777
16365 "This calls the external C<zegrep -i> program and returns the matching lines."
16369 #: ../fish/guestfish-actions.pod:5142
16374 #: ../fish/guestfish-actions.pod:5144
16384 #: ../fish/guestfish-actions.pod:5146 ../src/guestfs-actions.pod:7795
16385 msgid "This command writes zeroes over the first few blocks of C<device>."
16389 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7797
16391 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16392 "securely wipe the device). It should be sufficient to remove any partition "
16393 "tables, filesystem superblocks and so on."
16397 #: ../fish/guestfish-actions.pod:5152 ../fish/guestfish-actions.pod:5167
16398 #: ../src/guestfs-actions.pod:7801 ../src/guestfs-actions.pod:7827
16400 "If blocks are already zero, then this command avoids writing zeroes. This "
16401 "prevents the underlying device from becoming non-sparse or growing "
16406 #: ../fish/guestfish-actions.pod:5156
16407 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16411 #: ../fish/guestfish-actions.pod:5159
16412 msgid "zero-device"
16413 msgstr "zero-device"
16416 #: ../fish/guestfish-actions.pod:5161
16419 " zero-device device\n"
16422 " zero-device пристрій\n"
16426 #: ../fish/guestfish-actions.pod:5163
16428 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
16429 "which just zeroes the first few blocks of a device."
16433 #: ../fish/guestfish-actions.pod:5174
16438 #: ../fish/guestfish-actions.pod:5176
16441 " zerofree device\n"
16444 " zerofree пристрій\n"
16448 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7849
16450 "This runs the I<zerofree> program on C<device>. This program claims to zero "
16451 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16452 "possible to compress the filesystem more effectively."
16456 #: ../fish/guestfish-actions.pod:5183 ../src/guestfs-actions.pod:7854
16457 msgid "You should B<not> run this program if the filesystem is mounted."
16461 #: ../fish/guestfish-actions.pod:5186 ../src/guestfs-actions.pod:7857
16463 "It is possible that using this program can damage the filesystem or data on "
16468 #: ../fish/guestfish-actions.pod:5189
16473 #: ../fish/guestfish-actions.pod:5191
16476 " zfgrep pattern path\n"
16479 " zfgrep шаблон шлях\n"
16483 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7871
16485 "This calls the external C<zfgrep> program and returns the matching lines."
16489 #: ../fish/guestfish-actions.pod:5199
16494 #: ../fish/guestfish-actions.pod:5201
16497 " zfgrepi pattern path\n"
16500 " zfgrepi шаблон шлях\n"
16504 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:7890
16506 "This calls the external C<zfgrep -i> program and returns the matching lines."
16510 #: ../fish/guestfish-actions.pod:5209
16515 #: ../fish/guestfish-actions.pod:5211
16518 " zfile meth path\n"
16521 " zfile метод шлях\n"
16525 #: ../fish/guestfish-actions.pod:5213 ../src/guestfs-actions.pod:7916
16527 "This command runs C<file> after first decompressing C<path> using C<method>."
16531 #: ../fish/guestfish-actions.pod:5216 ../src/guestfs-actions.pod:7919
16532 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16536 #: ../fish/guestfish-actions.pod:5218
16538 "Since 1.0.63, use L</file> instead which can now process compressed files."
16542 #: ../fish/guestfish-actions.pod:5221
16544 "I<This function is deprecated.> In new code, use the L</file> call instead."
16548 #: ../fish/guestfish-actions.pod:5228
16553 #: ../fish/guestfish-actions.pod:5230
16556 " zgrep regex path\n"
16559 " zgrep формальний_вираз шлях\n"
16563 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:7936
16565 "This calls the external C<zgrep> program and returns the matching lines."
16569 #: ../fish/guestfish-actions.pod:5238
16574 #: ../fish/guestfish-actions.pod:5240
16577 " zgrepi regex path\n"
16580 " zgrepi формальний_вираз шлях\n"
16584 #: ../fish/guestfish-actions.pod:5242 ../src/guestfs-actions.pod:7955
16586 "This calls the external C<zgrep -i> program and returns the matching lines."
16590 #: ../fish/guestfish-commands.pod:1
16595 #: ../fish/guestfish-commands.pod:3
16600 #: ../fish/guestfish-commands.pod:5
16603 " alloc filename size\n"
16608 #: ../fish/guestfish-commands.pod:7
16610 "This creates an empty (zeroed) file of the given size, and then adds so it "
16611 "can be further examined."
16615 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16616 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16620 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16621 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16625 #: ../fish/guestfish-commands.pod:14
16627 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
16628 "image, see L</PREPARED DISK IMAGES>."
16632 #: ../fish/guestfish-commands.pod:17
16637 #: ../fish/guestfish-commands.pod:19
16640 " copy-in local [local ...] /remotedir\n"
16645 #: ../fish/guestfish-commands.pod:21
16647 "C<copy-in> copies local files or directories recursively into the disk "
16648 "image, placing them in the directory called C</remotedir> (which must "
16649 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
16650 "other commands as necessary."
16654 #: ../fish/guestfish-commands.pod:26
16656 "Multiple local files and directories can be specified, but the last "
16657 "parameter must always be a remote directory. Wildcards cannot be used."
16661 #: ../fish/guestfish-commands.pod:30
16666 #: ../fish/guestfish-commands.pod:32
16669 " copy-out remote [remote ...] localdir\n"
16674 #: ../fish/guestfish-commands.pod:34
16676 "C<copy-out> copies remote files or directories recursively out of the disk "
16677 "image, placing them on the host disk in a local directory called C<localdir> "
16678 "(which must exist). This guestfish meta-command turns into a sequence of L</"
16679 "download>, L</tar-out> and other commands as necessary."
16683 #: ../fish/guestfish-commands.pod:40
16685 "Multiple remote files and directories can be specified, but the last "
16686 "parameter must always be a local directory. To download to the current "
16687 "directory, use C<.> as in:"
16691 #: ../fish/guestfish-commands.pod:44
16694 " copy-out /home .\n"
16697 " copy-out /home .\n"
16701 #: ../fish/guestfish-commands.pod:46
16703 "Wildcards cannot be used in the ordinary command, but you can use them with "
16704 "the help of L</glob> like this:"
16708 #: ../fish/guestfish-commands.pod:49
16711 " glob copy-out /home/* .\n"
16714 " glob copy-out /home/* .\n"
16718 #: ../fish/guestfish-commands.pod:51
16723 #: ../fish/guestfish-commands.pod:53
16726 " display filename\n"
16731 #: ../fish/guestfish-commands.pod:55
16733 "Use C<display> (a graphical display program) to display an image file. It "
16734 "downloads the file, and runs C<display> on it."
16738 #: ../fish/guestfish-commands.pod:58
16740 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16741 "environment variable. For example to use the GNOME display program:"
16745 #: ../fish/guestfish-commands.pod:61
16748 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16753 #: ../fish/guestfish-commands.pod:63
16754 msgid "See also L<display(1)>."
16758 #: ../fish/guestfish-commands.pod:65
16763 #: ../fish/guestfish-commands.pod:67
16766 " echo [params ...]\n"
16769 " echo [параметри...]\n"
16773 #: ../fish/guestfish-commands.pod:69
16774 msgid "This echos the parameters to the terminal."
16778 #: ../fish/guestfish-commands.pod:71
16783 #: ../fish/guestfish-commands.pod:73
16788 #: ../fish/guestfish-commands.pod:75
16793 #: ../fish/guestfish-commands.pod:77
16799 " edit назва_файла\n"
16803 #: ../fish/guestfish-commands.pod:79
16805 "This is used to edit a file. It downloads the file, edits it locally using "
16806 "your editor, then uploads the result."
16810 #: ../fish/guestfish-commands.pod:82
16812 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
16813 "or C<emacs> you will get those corresponding editors."
16817 #: ../fish/guestfish-commands.pod:86
16822 #: ../fish/guestfish-commands.pod:88
16825 " glob command args...\n"
16828 " glob команда параметри...\n"
16832 #: ../fish/guestfish-commands.pod:90
16834 "Expand wildcards in any paths in the args list, and run C<command> "
16835 "repeatedly on each matching path."
16839 #: ../fish/guestfish-commands.pod:93
16840 msgid "See L</WILDCARDS AND GLOBBING>."
16841 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16844 #: ../fish/guestfish-commands.pod:95
16849 #: ../fish/guestfish-commands.pod:97
16852 " hexedit <filename|device>\n"
16853 " hexedit <filename|device> <max>\n"
16854 " hexedit <filename|device> <start> <max>\n"
16859 #: ../fish/guestfish-commands.pod:101
16861 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16866 #: ../fish/guestfish-commands.pod:104
16868 "This command works by downloading potentially the whole file or device, "
16869 "editing it locally, then uploading it. If the file or device is large, you "
16870 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16871 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
16872 "usual modifiers allowed such as C<1M> (1 megabyte)."
16876 #: ../fish/guestfish-commands.pod:111
16877 msgid "For example to edit the first few sectors of a disk you might do:"
16881 #: ../fish/guestfish-commands.pod:114
16884 " hexedit /dev/sda 1M\n"
16887 " hexedit /dev/sda 1M\n"
16891 #: ../fish/guestfish-commands.pod:116
16893 "which would allow you to edit anywhere within the first megabyte of the disk."
16897 #: ../fish/guestfish-commands.pod:119
16898 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16902 #: ../fish/guestfish-commands.pod:121
16905 " hexedit /dev/sda1 0x400 0x400\n"
16908 " hexedit /dev/sda1 0x400 0x400\n"
16912 #: ../fish/guestfish-commands.pod:123
16913 msgid "(assuming the superblock is in the standard location)."
16917 #: ../fish/guestfish-commands.pod:125
16919 "This command requires the external L<hexedit(1)> program. You can specify "
16920 "another program to use by setting the C<HEXEDITOR> environment variable."
16924 #: ../fish/guestfish-commands.pod:129
16925 msgid "See also L</hexdump>."
16926 msgstr "Див. також L</hexdump>."
16929 #: ../fish/guestfish-commands.pod:131
16934 #: ../fish/guestfish-commands.pod:133
16942 #: ../fish/guestfish-commands.pod:135
16944 "Change the local directory, ie. the current directory of guestfish itself."
16948 #: ../fish/guestfish-commands.pod:138
16949 msgid "Note that C<!cd> won't do what you might expect."
16953 #: ../fish/guestfish-commands.pod:140
16958 #: ../fish/guestfish-commands.pod:142
16963 #: ../fish/guestfish-commands.pod:144
16973 #: ../fish/guestfish-commands.pod:146
16974 msgid "Opens the manual page for guestfish."
16978 #: ../fish/guestfish-commands.pod:148
16983 #: ../fish/guestfish-commands.pod:150
16988 #: ../fish/guestfish-commands.pod:152
16996 #: ../fish/guestfish-commands.pod:154
17004 #: ../fish/guestfish-commands.pod:156
17005 msgid "This is used to view a file."
17009 #: ../fish/guestfish-commands.pod:158
17011 "The default viewer is C<$PAGER>. However if you use the alternate command "
17012 "C<less> you will get the C<less> command specifically."
17016 #: ../fish/guestfish-commands.pod:161
17021 #: ../fish/guestfish-commands.pod:163
17029 #: ../fish/guestfish-commands.pod:165
17031 "Close and reopen the libguestfs handle. It is not necessary to use this "
17032 "normally, because the handle is closed properly when guestfish exits. "
17033 "However this is occasionally useful for testing."
17037 #: ../fish/guestfish-commands.pod:169
17042 #: ../fish/guestfish-commands.pod:171
17045 " setenv VAR value\n"
17050 #: ../fish/guestfish-commands.pod:173
17051 msgid "Set the environment variable C<VAR> to the string C<value>."
17055 #: ../fish/guestfish-commands.pod:175
17057 "To print the value of an environment variable use a shell command such as:"
17061 #: ../fish/guestfish-commands.pod:178
17069 #: ../fish/guestfish-commands.pod:180
17074 #: ../fish/guestfish-commands.pod:182
17077 " sparse filename size\n"
17082 #: ../fish/guestfish-commands.pod:184
17084 "This creates an empty sparse file of the given size, and then adds so it can "
17085 "be further examined."
17089 #: ../fish/guestfish-commands.pod:187
17091 "In all respects it works the same as the L</alloc> command, except that the "
17092 "image file is allocated sparsely, which means that disk blocks are not "
17093 "assigned to the file until they are needed. Sparse disk files only use "
17094 "space when written to, but they are slower and there is a danger you could "
17095 "run out of real disk space during a write operation."
17099 #: ../fish/guestfish-commands.pod:197
17104 #: ../fish/guestfish-commands.pod:199
17114 #: ../fish/guestfish-commands.pod:201
17116 "This command returns a list of the optional groups known to the daemon, and "
17117 "indicates which ones are supported by this build of the libguestfs appliance."
17121 #: ../fish/guestfish-commands.pod:205
17122 msgid "See also L<guestfs(3)/AVAILABILITY>."
17126 #: ../fish/guestfish-commands.pod:207
17131 #: ../fish/guestfish-commands.pod:209
17134 " time command args...\n"
17139 #: ../fish/guestfish-commands.pod:211
17141 "Run the command as usual, but print the elapsed time afterwards. This can "
17142 "be useful for benchmarking operations."
17146 #: ../fish/guestfish-commands.pod:214
17151 #: ../fish/guestfish-commands.pod:216
17159 #: ../fish/guestfish-commands.pod:218
17160 msgid "Remove C<VAR> from the environment."
17164 #: ../fish/guestfish.pod:5
17165 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17169 #: ../fish/guestfish.pod:9
17172 " guestfish [--options] [commands]\n"
17177 #: ../fish/guestfish.pod:11
17185 #: ../fish/guestfish.pod:13
17188 " guestfish [--ro|--rw] -a disk.img\n"
17193 #: ../fish/guestfish.pod:15
17196 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17201 #: ../fish/guestfish.pod:17
17204 " guestfish -d libvirt-domain\n"
17209 #: ../fish/guestfish.pod:19
17212 " guestfish [--ro|--rw] -a disk.img -i\n"
17217 #: ../fish/guestfish.pod:21
17220 " guestfish -d libvirt-domain -i\n"
17225 #: ../fish/guestfish.pod:25
17227 "Using guestfish in read/write mode on live virtual machines can be "
17228 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
17229 "option to use guestfish safely if the disk image or virtual machine might be "
17234 #: ../fish/guestfish.pod:32
17236 "Guestfish is a shell and command-line tool for examining and modifying "
17237 "virtual machine filesystems. It uses libguestfs and exposes all of the "
17238 "functionality of the guestfs API, see L<guestfs(3)>."
17242 #: ../fish/guestfish.pod:36
17244 "Guestfish gives you structured access to the libguestfs API, from shell "
17245 "scripts or the command line or interactively. If you want to rescue a "
17246 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17251 #: ../fish/guestfish.pod:43
17252 msgid "As an interactive shell"
17256 #: ../fish/guestfish.pod:45
17264 #: ../fish/guestfish.pod:47
17267 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17268 " editing virtual machine filesystems.\n"
17273 #: ../fish/guestfish.pod:50
17276 " Type: 'help' for a list of commands\n"
17277 " 'man' to read the manual\n"
17278 " 'quit' to quit the shell\n"
17283 #: ../fish/guestfish.pod:54
17286 " ><fs> add-ro disk.img\n"
17288 " ><fs> list-filesystems\n"
17289 " /dev/sda1: ext4\n"
17290 " /dev/vg_guest/lv_root: ext4\n"
17291 " /dev/vg_guest/lv_swap: swap\n"
17292 " ><fs> mount /dev/vg_guest/lv_root /\n"
17293 " ><fs> cat /etc/fstab\n"
17295 " # Created by anaconda\n"
17302 #: ../fish/guestfish.pod:67
17303 msgid "From shell scripts"
17307 #: ../fish/guestfish.pod:69
17308 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17312 #: ../fish/guestfish.pod:71
17315 " guestfish <<_EOF_\n"
17318 " mount /dev/vg_guest/lv_root /\n"
17319 " write /etc/motd \"Welcome, new users\"\n"
17325 #: ../fish/guestfish.pod:78
17326 msgid "List the LVM logical volumes in a disk image:"
17330 #: ../fish/guestfish.pod:80
17333 " guestfish -a disk.img --ro <<_EOF_\n"
17341 #: ../fish/guestfish.pod:85
17342 msgid "List all the filesystems in a disk image:"
17346 #: ../fish/guestfish.pod:87
17349 " guestfish -a disk.img --ro <<_EOF_\n"
17351 " list-filesystems\n"
17357 #: ../fish/guestfish.pod:92
17358 msgid "On one command line"
17362 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17363 msgid "Update C</etc/resolv.conf> in a guest:"
17367 #: ../fish/guestfish.pod:96
17371 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17372 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17377 #: ../fish/guestfish.pod:100
17378 msgid "Edit C</boot/grub/grub.conf> interactively:"
17382 #: ../fish/guestfish.pod:102
17385 " guestfish --rw --add disk.img \\\n"
17386 " --mount /dev/vg_guest/lv_root \\\n"
17387 " --mount /dev/sda1:/boot \\\n"
17388 " edit /boot/grub/grub.conf\n"
17393 #: ../fish/guestfish.pod:107
17394 msgid "Mount disks automatically"
17398 #: ../fish/guestfish.pod:109
17400 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17404 #: ../fish/guestfish.pod:112
17407 " guestfish --ro -a disk.img -i cat /etc/group\n"
17412 #: ../fish/guestfish.pod:114
17415 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17420 #: ../fish/guestfish.pod:116
17421 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17425 #: ../fish/guestfish.pod:118
17428 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17433 #: ../fish/guestfish.pod:120
17434 msgid "As a script interpreter"
17438 #: ../fish/guestfish.pod:122
17439 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17443 #: ../fish/guestfish.pod:124
17446 " #!/usr/bin/guestfish -f\n"
17447 " sparse test1.img 100M\n"
17449 " part-disk /dev/sda mbr\n"
17450 " mkfs ext2 /dev/sda1\n"
17455 #: ../fish/guestfish.pod:130
17456 msgid "Start with a prepared disk"
17460 #: ../fish/guestfish.pod:132
17462 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17463 "single ext2-formatted partition:"
17467 #: ../fish/guestfish.pod:135
17470 " guestfish -N fs\n"
17475 #: ../fish/guestfish.pod:137
17476 msgid "To list what is available do:"
17480 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17483 " guestfish -N help | less\n"
17488 #: ../fish/guestfish.pod:141
17489 msgid "Remote control"
17490 msgstr "Дистанційне керування"
17493 #: ../fish/guestfish.pod:143
17496 " eval \"`guestfish --listen`\"\n"
17497 " guestfish --remote add-ro disk.img\n"
17498 " guestfish --remote run\n"
17499 " guestfish --remote lvs\n"
17502 " eval \"`guestfish --listen`\"\n"
17503 " guestfish --remote add-ro disk.img\n"
17504 " guestfish --remote run\n"
17505 " guestfish --remote lvs\n"
17509 #: ../fish/guestfish.pod:154
17510 msgid "Displays general help on options."
17514 #: ../fish/guestfish.pod:158
17515 msgid "B<--cmd-help>"
17516 msgstr "B<--cmd-help>"
17519 #: ../fish/guestfish.pod:160
17520 msgid "Lists all available guestfish commands."
17524 #: ../fish/guestfish.pod:162
17526 msgstr "B<-h команда>"
17529 #: ../fish/guestfish.pod:164
17530 msgid "B<--cmd-help cmd>"
17531 msgstr "B<--cmd-help команда>"
17534 #: ../fish/guestfish.pod:166
17535 msgid "Displays detailed help on a single command C<cmd>."
17539 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17540 msgid "B<-a image>"
17541 msgstr "B<-a образ>"
17544 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17545 msgid "B<--add image>"
17546 msgstr "B<--add образ>"
17549 #: ../fish/guestfish.pod:172
17550 msgid "Add a block device or virtual machine image to the shell."
17554 #: ../fish/guestfish.pod:177
17556 "Using this flag is mostly equivalent to using the C<add> command, with "
17557 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17558 "the I<--format=...> flag was given."
17562 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17564 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17565 "URI to use. The default is to use the default libvirt connection."
17569 #: ../fish/guestfish.pod:189
17574 #: ../fish/guestfish.pod:191
17576 "If using the I<--listen> option and a csh-like shell, use this option. See "
17577 "section L</REMOTE CONTROL AND CSH> below."
17581 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17582 msgid "B<-d libvirt-domain>"
17583 msgstr "B<-d домен-libvirt>"
17586 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17587 msgid "B<--domain libvirt-domain>"
17588 msgstr "B<--domain домен-libvirt>"
17591 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17593 "Add disks from the named libvirt domain. If the I<--ro> option is also "
17594 "used, then any libvirt domain can be used. However in write mode, only "
17595 "libvirt domains which are shut down can be named here."
17599 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17600 msgid "Domain UUIDs can be used instead of names."
17604 #: ../fish/guestfish.pod:204
17606 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17607 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17608 "if the I<--format:...> flag was given."
17612 #: ../fish/guestfish.pod:208
17617 #: ../fish/guestfish.pod:210
17618 msgid "B<--no-dest-paths>"
17619 msgstr "B<--no-dest-paths>"
17622 #: ../fish/guestfish.pod:212
17624 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
17625 "to hit the tab key to complete paths on the guest filesystem, but this "
17626 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17627 "allow this feature to be disabled."
17631 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17633 "When prompting for keys and passphrases, guestfish normally turns echoing "
17634 "off so you cannot see what you are typing. If you are not worried about "
17635 "Tempest attacks and there is no one else in the room you can specify this "
17636 "flag to see what you are typing."
17640 #: ../fish/guestfish.pod:224
17642 msgstr "B<-f файл>"
17645 #: ../fish/guestfish.pod:226
17646 msgid "B<--file file>"
17647 msgstr "B<--file файл>"
17650 #: ../fish/guestfish.pod:228
17651 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
17655 #: ../fish/guestfish.pod:231
17658 " #!/usr/bin/guestfish -f\n"
17661 " #!/usr/bin/guestfish -f\n"
17665 #: ../fish/guestfish.pod:244
17668 " guestfish --format=raw -a disk.img\n"
17671 " guestfish --format=raw -a disk.img\n"
17675 #: ../fish/guestfish.pod:248
17678 " guestfish --format=raw -a disk.img --format -a another.img\n"
17681 " guestfish --format=raw -a disk.img --format -a another.img\n"
17685 #: ../fish/guestfish.pod:253
17687 "If you have untrusted raw-format guest disk images, you should use this "
17688 "option to specify the disk format. This avoids a possible security problem "
17689 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
17693 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17694 msgid "B<--inspector>"
17695 msgstr "B<--inspector>"
17698 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17700 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17701 "system and mount filesystems as they would be mounted on the real virtual "
17706 #: ../fish/guestfish.pod:266
17707 msgid "Typical usage is either:"
17711 #: ../fish/guestfish.pod:268
17714 " guestfish -d myguest -i\n"
17717 " guestfish -d myguest -i\n"
17721 #: ../fish/guestfish.pod:270
17722 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17726 #: ../fish/guestfish.pod:272
17729 " guestfish --ro -d myguest -i\n"
17732 " guestfish --ro -d myguest -i\n"
17736 #: ../fish/guestfish.pod:274
17737 msgid "(for active domains, readonly), or specify the block device directly:"
17741 #: ../fish/guestfish.pod:276
17744 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17747 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17751 #: ../fish/guestfish.pod:278
17753 "Note that the command line syntax changed slightly over older versions of "
17754 "guestfish. You can still use the old syntax:"
17758 #: ../fish/guestfish.pod:281
17761 " guestfish [--ro] -i disk.img\n"
17764 " guestfish [--ro] -i disk.img\n"
17768 #: ../fish/guestfish.pod:283
17771 " guestfish [--ro] -i libvirt-domain\n"
17776 #: ../fish/guestfish.pod:285
17778 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17779 "then using other commands to mount the filesystems that were found."
17783 #: ../fish/guestfish.pod:294
17784 msgid "B<--listen>"
17785 msgstr "B<--listen>"
17788 #: ../fish/guestfish.pod:296
17790 "Fork into the background and listen for remote commands. See section L</"
17791 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17795 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17800 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17802 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
17803 "ATTACHING TO RUNNING DAEMONS>)."
17807 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17808 msgid "B<-m dev[:mountpoint[:options]]>"
17812 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17813 msgid "B<--mount dev[:mountpoint[:options]]>"
17817 #: ../fish/guestfish.pod:308
17818 msgid "Mount the named partition or logical volume on the given mountpoint."
17822 #: ../fish/guestfish.pod:310
17823 msgid "If the mountpoint is omitted, it defaults to C</>."
17827 #: ../fish/guestfish.pod:312
17828 msgid "You have to mount something on C</> before most commands will work."
17832 #: ../fish/guestfish.pod:314
17834 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17839 #: ../fish/guestfish.pod:317
17841 "If you don't know what filesystems a disk image contains, you can either run "
17842 "guestfish without this option, then list the partitions, filesystems and LVs "
17843 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17844 "commands), or you can use the L<virt-filesystems(1)> program."
17848 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17850 "The third (and rarely used) part of the mount parameter is the list of mount "
17851 "options used to mount the underlying filesystem. If this is not given, then "
17852 "the mount options are either the empty string or C<ro> (the latter if the "
17853 "I<--ro> flag is used). By specifying the mount options, you override this "
17854 "default choice. Probably the only time you would use this is to enable ACLs "
17855 "and/or extended attributes if the filesystem can support them:"
17859 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17862 " -m /dev/sda1:/:acl,user_xattr\n"
17867 #: ../fish/guestfish.pod:333
17868 msgid "Using this flag is equivalent to using the C<mount-options> command."
17872 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17873 #: ../resize/virt-resize.pod:358
17878 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17879 msgid "B<--no-sync>"
17880 msgstr "B<--no-sync>"
17883 #: ../fish/guestfish.pod:339
17885 "Disable autosync. This is enabled by default. See the discussion of "
17886 "autosync in the L<guestfs(3)> manpage."
17890 #: ../fish/guestfish.pod:342
17895 #: ../fish/guestfish.pod:344
17896 msgid "B<--new type>"
17897 msgstr "B<--new тип>"
17900 #: ../fish/guestfish.pod:346
17902 msgstr "B<-N help>"
17905 #: ../fish/guestfish.pod:348
17907 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
17908 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17909 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
17914 #: ../fish/guestfish.pod:353
17915 msgid "B<--progress-bars>"
17916 msgstr "B<--progress-bars>"
17919 #: ../fish/guestfish.pod:355
17920 msgid "Enable progress bars, even when guestfish is used non-interactively."
17924 #: ../fish/guestfish.pod:357
17926 "Progress bars are enabled by default when guestfish is used as an "
17927 "interactive shell."
17931 #: ../fish/guestfish.pod:360
17932 msgid "B<--no-progress-bars>"
17933 msgstr "B<--no-progress-bars>"
17936 #: ../fish/guestfish.pod:362
17937 msgid "Disable progress bars."
17941 #: ../fish/guestfish.pod:364
17942 msgid "B<--remote[=pid]>"
17943 msgstr "B<--remote[=pid]>"
17946 #: ../fish/guestfish.pod:366
17948 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
17949 "CONTROL GUESTFISH OVER A SOCKET> below."
17953 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17954 #: ../rescue/virt-rescue.pod:161
17959 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17960 #: ../rescue/virt-rescue.pod:163
17965 #: ../fish/guestfish.pod:373
17967 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17968 "mounts are done read-only."
17972 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17974 "The option must always be used if the disk image or virtual machine might be "
17975 "running, and is generally recommended in cases where you don't need write "
17976 "access to the disk."
17980 #: ../fish/guestfish.pod:380
17982 "Note that prepared disk images created with I<-N> are not affected by this "
17983 "option. Also commands like C<add> are not affected - you have to specify "
17984 "the C<readonly:true> option explicitly if you need it."
17988 #: ../fish/guestfish.pod:384
17989 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17993 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17994 #: ../rescue/virt-rescue.pod:173
17995 msgid "B<--selinux>"
17996 msgstr "B<--selinux>"
17999 #: ../fish/guestfish.pod:388
18000 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
18004 #: ../fish/guestfish.pod:394
18006 "Enable very verbose messages. This is particularly useful if you find a bug."
18010 #: ../fish/guestfish.pod:401
18011 msgid "Display the guestfish / libguestfs version number and exit."
18015 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
18016 #: ../rescue/virt-rescue.pod:190
18021 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
18022 #: ../rescue/virt-rescue.pod:192
18027 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
18029 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18030 "mounts are done read-write."
18034 #: ../fish/guestfish.pod:410
18035 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18039 #: ../fish/guestfish.pod:414
18040 msgid "Echo each command before executing it."
18044 #: ../fish/guestfish.pod:418
18045 msgid "COMMANDS ON COMMAND LINE"
18049 #: ../fish/guestfish.pod:420
18051 "Any additional (non-option) arguments are treated as commands to execute."
18055 #: ../fish/guestfish.pod:423
18057 "Commands to execute should be separated by a colon (C<:>), where the colon "
18058 "is a separate parameter. Thus:"
18062 #: ../fish/guestfish.pod:426
18065 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18070 #: ../fish/guestfish.pod:428
18072 "If there are no additional arguments, then we enter a shell, either an "
18073 "interactive shell with a prompt (if the input is a terminal) or a non-"
18074 "interactive shell."
18078 #: ../fish/guestfish.pod:432
18080 "In either command line mode or non-interactive shell, the first command that "
18081 "gives an error causes the whole shell to exit. In interactive mode (with a "
18082 "prompt) if a command fails, you can continue to enter commands."
18086 #: ../fish/guestfish.pod:437
18087 msgid "USING launch (OR run)"
18091 #: ../fish/guestfish.pod:439
18093 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18094 "then launch it, then mount any disks you need, and finally issue actions/"
18095 "commands. So the general order of the day is:"
18099 #: ../fish/guestfish.pod:447
18100 msgid "add or -a/--add"
18104 #: ../fish/guestfish.pod:451
18105 msgid "launch (aka run)"
18109 #: ../fish/guestfish.pod:455
18110 msgid "mount or -m/--mount"
18114 #: ../fish/guestfish.pod:459
18115 msgid "any other commands"
18119 #: ../fish/guestfish.pod:463
18121 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
18122 "guest before mounting or performing any other commands."
18126 #: ../fish/guestfish.pod:466
18128 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18129 "I<--new> options were given then C<run> is done automatically, simply "
18130 "because guestfish can't perform the action you asked for without doing this."
18134 #: ../fish/guestfish.pod:471
18135 msgid "OPENING DISKS FOR READ AND WRITE"
18139 #: ../fish/guestfish.pod:473
18141 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18142 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18143 "I<-i> and I<-m> open disk images read-only or for writing."
18147 #: ../fish/guestfish.pod:478
18149 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18150 "opening disk images supplied on the command line for write. To open a disk "
18151 "image read-only you have to do I<-a image --ro>."
18155 #: ../fish/guestfish.pod:482
18157 "This matters: If you accidentally open a live VM disk image writable then "
18158 "you will cause irreversible disk corruption."
18162 #: ../fish/guestfish.pod:485
18164 "In a future libguestfs we intend to change the default the other way. Disk "
18165 "images will be opened read-only. You will have to either specify "
18166 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18167 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18168 "access for disk images specified by those other command line options."
18172 #: ../fish/guestfish.pod:492
18174 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18175 "which does nothing (it is already the default). However it is highly "
18176 "recommended that you use this option to indicate that you need write access, "
18177 "and prepare your scripts for the day when this option will be required for "
18182 #: ../fish/guestfish.pod:498
18184 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18185 "other libguestfs program apart from guestfish and guestmount."
18189 #: ../fish/guestfish.pod:501
18194 #: ../fish/guestfish.pod:503
18196 "You can quote ordinary parameters using either single or double quotes. For "
18201 #: ../fish/guestfish.pod:506
18204 " add \"file with a space.img\"\n"
18209 #: ../fish/guestfish.pod:508
18212 " rm '/file name'\n"
18217 #: ../fish/guestfish.pod:510
18225 #: ../fish/guestfish.pod:512
18227 "A few commands require a list of strings to be passed. For these, use a "
18228 "whitespace-separated list, enclosed in quotes. Strings containing "
18229 "whitespace to be passed through must be enclosed in single quotes. A "
18230 "literal single quote must be escaped with a backslash."
18234 #: ../fish/guestfish.pod:517
18237 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18238 " command \"/bin/echo 'foo bar'\"\n"
18239 " command \"/bin/echo \\'foo\\'\"\n"
18244 #: ../fish/guestfish.pod:521
18245 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18249 #: ../fish/guestfish.pod:523
18251 "In double-quoted arguments (only) use backslash to insert special characters:"
18255 #: ../fish/guestfish.pod:528
18260 #: ../fish/guestfish.pod:530
18261 msgid "Alert (bell) character."
18265 #: ../fish/guestfish.pod:532
18270 #: ../fish/guestfish.pod:534
18271 msgid "Backspace character."
18275 #: ../fish/guestfish.pod:536
18280 #: ../fish/guestfish.pod:538
18281 msgid "Form feed character."
18285 #: ../fish/guestfish.pod:540
18290 #: ../fish/guestfish.pod:542
18291 msgid "Newline character."
18295 #: ../fish/guestfish.pod:544
18300 #: ../fish/guestfish.pod:546
18301 msgid "Carriage return character."
18305 #: ../fish/guestfish.pod:548
18310 #: ../fish/guestfish.pod:550
18311 msgid "Horizontal tab character."
18315 #: ../fish/guestfish.pod:552
18320 #: ../fish/guestfish.pod:554
18321 msgid "Vertical tab character."
18325 #: ../fish/guestfish.pod:556
18330 #: ../fish/guestfish.pod:558
18331 msgid "A literal double quote character."
18335 #: ../fish/guestfish.pod:560
18340 #: ../fish/guestfish.pod:562
18342 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
18347 #: ../fish/guestfish.pod:565
18352 #: ../fish/guestfish.pod:567
18354 "A character with hex value I<hh>. There must be precisely 2 hex digits."
18358 #: ../fish/guestfish.pod:570
18360 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18365 #: ../fish/guestfish.pod:573
18370 #: ../fish/guestfish.pod:575
18371 msgid "A literal backslash character."
18375 #: ../fish/guestfish.pod:579
18376 msgid "OPTIONAL ARGUMENTS"
18380 #: ../fish/guestfish.pod:581
18382 "Some commands take optional arguments. These arguments appear in this "
18383 "documentation as C<[argname:..]>. You can use them as in these examples:"
18387 #: ../fish/guestfish.pod:585
18390 " add-drive-opts filename\n"
18395 #: ../fish/guestfish.pod:587
18398 " add-drive-opts filename readonly:true\n"
18403 #: ../fish/guestfish.pod:589
18406 " add-drive-opts filename format:qcow2 readonly:false\n"
18411 #: ../fish/guestfish.pod:591
18413 "Each optional argument can appear at most once. All optional arguments must "
18414 "appear after the required ones."
18418 #: ../fish/guestfish.pod:594
18423 #: ../fish/guestfish.pod:596
18425 "This section applies to all commands which can take integers as parameters."
18429 #: ../fish/guestfish.pod:599
18430 msgid "SIZE SUFFIX"
18434 #: ../fish/guestfish.pod:601
18436 "When the command takes a parameter measured in bytes, you can use one of the "
18437 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18441 #: ../fish/guestfish.pod:607
18442 msgid "B<k> or B<K> or B<KiB>"
18443 msgstr "B<k>, B<K> або B<KiB>"
18446 #: ../fish/guestfish.pod:609
18447 msgid "The size in kilobytes (multiplied by 1024)."
18451 #: ../fish/guestfish.pod:611
18456 #: ../fish/guestfish.pod:613
18457 msgid "The size in SI 1000 byte units."
18461 #: ../fish/guestfish.pod:615
18462 msgid "B<M> or B<MiB>"
18463 msgstr "B<M> або B<MiB>"
18466 #: ../fish/guestfish.pod:617
18467 msgid "The size in megabytes (multiplied by 1048576)."
18471 #: ../fish/guestfish.pod:619
18476 #: ../fish/guestfish.pod:621
18477 msgid "The size in SI 1000000 byte units."
18481 #: ../fish/guestfish.pod:623
18482 msgid "B<G> or B<GiB>"
18483 msgstr "B<G> або B<GiB>"
18486 #: ../fish/guestfish.pod:625
18487 msgid "The size in gigabytes (multiplied by 2**30)."
18488 msgstr "Розмір у гігабайтах (з множником 2**30)."
18491 #: ../fish/guestfish.pod:627
18496 #: ../fish/guestfish.pod:629
18497 msgid "The size in SI 10**9 byte units."
18498 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18501 #: ../fish/guestfish.pod:631
18502 msgid "B<T> or B<TiB>"
18503 msgstr "B<T> або B<TiB>"
18506 #: ../fish/guestfish.pod:633
18507 msgid "The size in terabytes (multiplied by 2**40)."
18508 msgstr "Розмір у терабайтах (з множником 2**40)."
18511 #: ../fish/guestfish.pod:635
18516 #: ../fish/guestfish.pod:637
18517 msgid "The size in SI 10**12 byte units."
18521 #: ../fish/guestfish.pod:639
18522 msgid "B<P> or B<PiB>"
18523 msgstr "B<P> або B<PiB>"
18526 #: ../fish/guestfish.pod:641
18527 msgid "The size in petabytes (multiplied by 2**50)."
18531 #: ../fish/guestfish.pod:643
18536 #: ../fish/guestfish.pod:645
18537 msgid "The size in SI 10**15 byte units."
18541 #: ../fish/guestfish.pod:647
18542 msgid "B<E> or B<EiB>"
18543 msgstr "B<E> або B<EiB>"
18546 #: ../fish/guestfish.pod:649
18547 msgid "The size in exabytes (multiplied by 2**60)."
18551 #: ../fish/guestfish.pod:651
18556 #: ../fish/guestfish.pod:653
18557 msgid "The size in SI 10**18 byte units."
18561 #: ../fish/guestfish.pod:655
18562 msgid "B<Z> or B<ZiB>"
18563 msgstr "B<Z> або B<ZiB>"
18566 #: ../fish/guestfish.pod:657
18567 msgid "The size in zettabytes (multiplied by 2**70)."
18571 #: ../fish/guestfish.pod:659
18576 #: ../fish/guestfish.pod:661
18577 msgid "The size in SI 10**21 byte units."
18581 #: ../fish/guestfish.pod:663
18582 msgid "B<Y> or B<YiB>"
18583 msgstr "B<Y> або B<YiB>"
18586 #: ../fish/guestfish.pod:665
18587 msgid "The size in yottabytes (multiplied by 2**80)."
18591 #: ../fish/guestfish.pod:667
18596 #: ../fish/guestfish.pod:669
18597 msgid "The size in SI 10**24 byte units."
18601 #: ../fish/guestfish.pod:675
18604 " truncate-size /file 1G\n"
18609 #: ../fish/guestfish.pod:677
18610 msgid "would truncate the file to 1 gigabyte."
18614 #: ../fish/guestfish.pod:679
18616 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18617 "the parameter to L</memsize> is specified in megabytes already). Adding a "
18618 "suffix will probably not do what you expect."
18622 #: ../fish/guestfish.pod:683
18623 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18627 #: ../fish/guestfish.pod:685
18629 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18630 "octal number or C<0x> to prefix a hexadecimal number. For example:"
18634 #: ../fish/guestfish.pod:688
18637 " 1234 decimal number 1234\n"
18638 " 02322 octal number, equivalent to decimal 1234\n"
18639 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
18644 #: ../fish/guestfish.pod:692
18646 "When using the C<chmod> command, you almost always want to specify an octal "
18647 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18648 "L<chmod(1)> program):"
18652 #: ../fish/guestfish.pod:696
18655 " chmod 0777 /public # OK\n"
18656 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
18661 #: ../fish/guestfish.pod:699
18663 "Commands that return numbers usually print them in decimal, but some "
18664 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18665 "octal, preceeded by C<0>)."
18669 #: ../fish/guestfish.pod:703
18670 msgid "WILDCARDS AND GLOBBING"
18674 #: ../fish/guestfish.pod:705
18676 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18677 "(globbing) by default. So for example the following will not do what you "
18682 #: ../fish/guestfish.pod:709
18690 #: ../fish/guestfish.pod:711
18692 "Assuming you don't have a directory called literally C</home/*> then the "
18693 "above command will return an error."
18697 #: ../fish/guestfish.pod:714
18698 msgid "To perform wildcard expansion, use the C<glob> command."
18702 #: ../fish/guestfish.pod:716
18705 " glob rm-rf /home/*\n"
18710 #: ../fish/guestfish.pod:718
18712 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18713 "many times), equivalent to:"
18717 #: ../fish/guestfish.pod:721
18720 " rm-rf /home/jim\n"
18721 " rm-rf /home/joe\n"
18722 " rm-rf /home/mary\n"
18727 #: ../fish/guestfish.pod:725
18728 msgid "C<glob> only works on simple guest paths and not on device names."
18732 #: ../fish/guestfish.pod:727
18734 "If you have several parameters, each containing a wildcard, then glob will "
18735 "perform a Cartesian product."
18739 #: ../fish/guestfish.pod:730
18744 #: ../fish/guestfish.pod:732
18746 "Any line which starts with a I<#> character is treated as a comment and "
18747 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
18748 "a command. For example:"
18752 #: ../fish/guestfish.pod:736
18755 " # this is a comment\n"
18756 " # this is a comment\n"
18757 " foo # NOT a comment\n"
18762 #: ../fish/guestfish.pod:740
18763 msgid "Blank lines are also ignored."
18767 #: ../fish/guestfish.pod:742
18768 msgid "RUNNING COMMANDS LOCALLY"
18772 #: ../fish/guestfish.pod:744
18774 "Any line which starts with a I<!> character is treated as a command sent to "
18775 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
18779 #: ../fish/guestfish.pod:748
18783 " tgz-out /remote local/remote-data.tar.gz\n"
18788 #: ../fish/guestfish.pod:751
18790 "will create a directory C<local> on the host, and then export the contents "
18791 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
18792 "(See C<tgz-out>)."
18796 #: ../fish/guestfish.pod:755
18798 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
18799 "effect, due to the way that subprocesses work in Unix."
18803 #: ../fish/guestfish.pod:758
18804 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18808 #: ../fish/guestfish.pod:760
18810 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18811 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18812 "and executed as guestfish commands."
18816 #: ../fish/guestfish.pod:764
18818 "Thus you can use shell script to construct arbitrary guestfish commands "
18819 "which are then parsed by guestfish."
18823 #: ../fish/guestfish.pod:767
18825 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18826 "through C</foo.100>) using guestfish commands alone. However this is simple "
18827 "if we use a shell script to create the guestfish commands for us:"
18831 #: ../fish/guestfish.pod:772
18834 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18839 #: ../fish/guestfish.pod:774
18840 msgid "or with names like C</foo.001>:"
18844 #: ../fish/guestfish.pod:776
18847 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18852 #: ../fish/guestfish.pod:778
18854 "When using guestfish interactively it can be helpful to just run the shell "
18855 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18856 "ordinary I<!> local command), see what guestfish commands it would run, and "
18857 "when you are happy with those prepend the C<E<lt>> character to run the "
18858 "guestfish commands for real."
18862 #: ../fish/guestfish.pod:784
18867 #: ../fish/guestfish.pod:786
18869 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18870 "command (a guestfish command) to the second command (any host command). For "
18875 #: ../fish/guestfish.pod:790
18878 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18883 #: ../fish/guestfish.pod:792
18885 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18886 "program). The above command would list all accounts in the guest filesystem "
18887 "which have UID 0, ie. root accounts including backdoors. Other examples:"
18891 #: ../fish/guestfish.pod:797
18894 " hexdump /bin/ls | head\n"
18895 " list-devices | tail -1\n"
18896 " tgz-out / - | tar ztf -\n"
18901 #: ../fish/guestfish.pod:801
18903 "The space before the pipe symbol is required, any space after the pipe "
18904 "symbol is optional. Everything after the pipe symbol is just passed "
18905 "straight to the host shell, so it can contain redirections, globs and "
18906 "anything else that makes sense on the host side."
18910 #: ../fish/guestfish.pod:806
18912 "To use a literal argument which begins with a pipe symbol, you have to quote "
18917 #: ../fish/guestfish.pod:809
18925 #: ../fish/guestfish.pod:811
18926 msgid "HOME DIRECTORIES"
18930 #: ../fish/guestfish.pod:813
18932 "If a parameter starts with the character C<~> then the tilde may be expanded "
18933 "as a home directory path (either C<~> for the current user's home directory, "
18934 "or C<~user> for another user)."
18938 #: ../fish/guestfish.pod:817
18940 "Note that home directory expansion happens for users known I<on the host>, "
18941 "not in the guest filesystem."
18945 #: ../fish/guestfish.pod:820
18947 "To use a literal argument which begins with a tilde, you have to quote it, "
18952 #: ../fish/guestfish.pod:823
18960 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18961 msgid "ENCRYPTED DISKS"
18962 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18965 #: ../fish/guestfish.pod:827
18967 "Libguestfs has some support for Linux guests encrypted according to the "
18968 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18969 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
18970 "LUKS is supported."
18974 #: ../fish/guestfish.pod:832
18975 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18979 #: ../fish/guestfish.pod:834
18982 " ><fs> vfs-type /dev/sda2\n"
18988 #: ../fish/guestfish.pod:837
18990 "Then open those devices using L</luks-open>. This creates a device-mapper "
18991 "device called C</dev/mapper/luksdev>."
18995 #: ../fish/guestfish.pod:840
18998 " ><fs> luks-open /dev/sda2 luksdev\n"
18999 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19004 #: ../fish/guestfish.pod:843
19006 "Finally you have to tell LVM to scan for volume groups on the newly created "
19011 #: ../fish/guestfish.pod:846
19015 " vg-activate-all true\n"
19020 #: ../fish/guestfish.pod:849
19021 msgid "The logical volume(s) can now be mounted in the usual way."
19025 #: ../fish/guestfish.pod:851
19027 "Before closing a LUKS device you must unmount any logical volumes on it and "
19028 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19029 "one. Then you can close the mapper device:"
19033 #: ../fish/guestfish.pod:855
19036 " vg-activate false /dev/VG\n"
19037 " luks-close /dev/mapper/luksdev\n"
19042 #: ../fish/guestfish.pod:860
19044 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19045 "letters and paths (with some limitations). The following commands are "
19050 #: ../fish/guestfish.pod:864
19053 " file /WINDOWS/system32/config/system.LOG\n"
19058 #: ../fish/guestfish.pod:866
19061 " file win:\\windows\\system32\\config\\system.log\n"
19066 #: ../fish/guestfish.pod:868
19069 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19074 #: ../fish/guestfish.pod:870
19076 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19077 "where the drive is mounted, prepending that to the path, changing all "
19078 "backslash characters to forward slash, then resolving the result using L</"
19079 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
19080 "the parameter might be rewritten like this:"
19084 #: ../fish/guestfish.pod:876
19087 " win:e:\\foo\\bar => /e/FOO/bar\n"
19092 #: ../fish/guestfish.pod:878
19093 msgid "This only works in argument positions that expect a path."
19097 #: ../fish/guestfish.pod:880
19098 msgid "UPLOADING AND DOWNLOADING FILES"
19102 #: ../fish/guestfish.pod:882
19104 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19105 "others which upload from or download to a local file, you can use the "
19106 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
19110 #: ../fish/guestfish.pod:886
19118 #: ../fish/guestfish.pod:888
19120 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19124 #: ../fish/guestfish.pod:891
19127 " tar-out /etc - | tar tf -\n"
19132 #: ../fish/guestfish.pod:893
19134 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19135 "command (see L</PIPES>)."
19139 #: ../fish/guestfish.pod:896
19141 "When using C<-> to read from stdin, the input is read up to the end of "
19142 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
19143 "some arbitrary end marker:"
19147 #: ../fish/guestfish.pod:900
19150 " upload -<<END /foo\n"
19159 #: ../fish/guestfish.pod:906
19161 "Any string of characters can be used instead of C<END>. The end marker must "
19162 "appear on a line of its own, without any preceeding or following characters "
19163 "(not even spaces)."
19167 #: ../fish/guestfish.pod:910
19169 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19170 "upload local files (so-called \"FileIn\" parameters in the generator)."
19174 #: ../fish/guestfish.pod:913
19175 msgid "EXIT ON ERROR BEHAVIOUR"
19179 #: ../fish/guestfish.pod:915
19181 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19182 "taking commands from a human over a tty), and will exit on the first error "
19183 "in non-interactive mode (scripts, commands given on the command line)."
19187 #: ../fish/guestfish.pod:920
19189 "If you prefix a command with a I<-> character, then that command will not "
19190 "cause guestfish to exit, even if that (one) command returns an error."
19194 #: ../fish/guestfish.pod:924
19195 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19199 #: ../fish/guestfish.pod:926
19201 "Guestfish can be remote-controlled over a socket. This is useful "
19202 "particularly in shell scripts where you want to make several different "
19203 "changes to a filesystem, but you don't want the overhead of starting up a "
19204 "guestfish process each time."
19208 #: ../fish/guestfish.pod:931
19209 msgid "Start a guestfish server process using:"
19213 #: ../fish/guestfish.pod:933
19216 " eval \"`guestfish --listen`\"\n"
19221 #: ../fish/guestfish.pod:935
19222 msgid "and then send it commands by doing:"
19226 #: ../fish/guestfish.pod:937
19229 " guestfish --remote cmd [...]\n"
19234 #: ../fish/guestfish.pod:939
19235 msgid "To cause the server to exit, send it the exit command:"
19239 #: ../fish/guestfish.pod:943
19241 "Note that the server will normally exit if there is an error in a command. "
19242 "You can change this in the usual way. See section L</EXIT ON ERROR "
19247 #: ../fish/guestfish.pod:947
19248 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19252 #: ../fish/guestfish.pod:949
19254 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19255 "is how the I<--remote> option knows where to send the commands. You can "
19256 "have several guestfish listener processes running using:"
19260 #: ../fish/guestfish.pod:953
19263 " eval \"`guestfish --listen`\"\n"
19264 " pid1=$GUESTFISH_PID\n"
19265 " eval \"`guestfish --listen`\"\n"
19266 " pid2=$GUESTFISH_PID\n"
19268 " guestfish --remote=$pid1 cmd\n"
19269 " guestfish --remote=$pid2 cmd\n"
19274 #: ../fish/guestfish.pod:961
19275 msgid "REMOTE CONTROL AND CSH"
19279 #: ../fish/guestfish.pod:963
19281 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19286 #: ../fish/guestfish.pod:966
19289 " eval \"`guestfish --listen --csh`\"\n"
19294 #: ../fish/guestfish.pod:968
19295 msgid "REMOTE CONTROL DETAILS"
19299 #: ../fish/guestfish.pod:970
19301 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19302 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19303 "and C<$PID> is the process ID of the server."
19307 #: ../fish/guestfish.pod:974
19308 msgid "Guestfish client and server versions must match exactly."
19312 #: ../fish/guestfish.pod:976
19313 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19317 #: ../fish/guestfish.pod:978
19319 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19320 "context hangs, ie. don't do (note the backquotes):"
19324 #: ../fish/guestfish.pod:981
19327 #| " guestfish --ro -d myguest -i\n"
19330 " a=`guestfish --remote run`\n"
19333 " guestfish --ro -d myguest -i\n"
19337 #: ../fish/guestfish.pod:983
19339 "Since the C<run> command produces no output on stdout, this is not useful "
19340 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
19345 #: ../fish/guestfish.pod:987
19346 msgid "PREPARED DISK IMAGES"
19350 #: ../fish/guestfish.pod:989
19352 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19353 "preformatted disk images that guestfish can make for you to save typing. "
19354 "This is particularly useful for testing purposes. This option is used "
19355 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19356 "can be mixed with I<-a>)."
19360 #: ../fish/guestfish.pod:995
19362 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19363 "the second and so on. Existing files in the current directory are "
19368 #: ../fish/guestfish.pod:999
19370 "The type briefly describes how the disk should be sized, partitioned, how "
19371 "filesystem(s) should be created, and how content should be added. "
19372 "Optionally the type can be followed by extra parameters, separated by C<:> "
19373 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
19374 "allocated disk, containing a single partition, with the partition formatted "
19375 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19380 #: ../fish/guestfish.pod:1007
19381 msgid "To list the available types and any extra parameters they take, run:"
19385 #: ../fish/guestfish.pod:1011
19387 "Note that the prepared filesystem is not mounted. You would usually have to "
19388 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19392 #: ../fish/guestfish.pod:1015
19394 "If any I<-N> or I<--new> options are given, the guest is automatically "
19399 #: ../fish/guestfish.pod:1020
19400 msgid "Create a 100MB disk with an ext4-formatted partition:"
19404 #: ../fish/guestfish.pod:1022
19407 " guestfish -N fs:ext4\n"
19412 #: ../fish/guestfish.pod:1024
19413 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19417 #: ../fish/guestfish.pod:1026
19420 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19425 #: ../fish/guestfish.pod:1028
19426 msgid "Create a blank 200MB disk:"
19430 #: ../fish/guestfish.pod:1030
19433 " guestfish -N disk:200M\n"
19438 #: ../fish/guestfish.pod:1032
19439 msgid "PROGRESS BARS"
19443 #: ../fish/guestfish.pod:1034
19445 "Some (not all) long-running commands send progress notification messages as "
19446 "they are running. Guestfish turns these messages into progress bars."
19450 #: ../fish/guestfish.pod:1038
19452 "When a command that supports progress bars takes longer than two seconds to "
19453 "run, and if progress bars are enabled, then you will see one appearing below "
19458 #: ../fish/guestfish.pod:1042
19461 " ><fs> copy-size /large-file /another-file 2048M\n"
19462 " / 10% [#####-----------------------------------------] 00:30\n"
19467 #: ../fish/guestfish.pod:1045
19469 "The spinner on the left hand side moves round once for every progress "
19470 "notification received from the backend. This is a (reasonably) golden "
19471 "assurance that the command is \"doing something\" even if the progress bar "
19472 "is not moving, because the command is able to send the progress "
19473 "notifications. When the bar reaches 100% and the command finishes, the "
19474 "spinner disappears."
19478 #: ../fish/guestfish.pod:1052
19480 "Progress bars are enabled by default when guestfish is used interactively. "
19481 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19482 "and you can disable them completely using I<--no-progress-bars>."
19486 #: ../fish/guestfish.pod:1057
19487 msgid "GUESTFISH COMMANDS"
19491 #: ../fish/guestfish.pod:1059
19493 "The commands in this section are guestfish convenience commands, in other "
19494 "words, they are not part of the L<guestfs(3)> API."
19498 #: ../fish/guestfish.pod:1062
19503 #: ../fish/guestfish.pod:1064
19515 #: ../fish/guestfish.pod:1067
19516 msgid "Without any parameter, this provides general help."
19517 msgstr "Без параметра показує загальну довідкову інформацію."
19520 #: ../fish/guestfish.pod:1069
19521 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19525 #: ../fish/guestfish.pod:1071
19526 msgid "quit | exit"
19530 #: ../fish/guestfish.pod:1073
19531 msgid "This exits guestfish. You can also use C<^D> key."
19535 #: ../fish/guestfish.pod:1075
19536 msgid "@FISH_COMMANDS@"
19540 #: ../fish/guestfish.pod:1077
19545 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1479
19550 #: ../fish/guestfish.pod:1083
19552 "guestfish returns 0 if the commands completed without error, or 1 if there "
19557 #: ../fish/guestfish.pod:1090
19562 #: ../fish/guestfish.pod:1092
19564 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
19569 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3084
19570 msgid "FEBOOTSTRAP_KERNEL"
19574 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3086
19575 msgid "FEBOOTSTRAP_MODULES"
19579 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3088
19581 "These two environment variables allow the kernel that libguestfs uses in the "
19582 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19583 "most recent host kernel is chosen. For more information about kernel "
19584 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
19585 "available in febootstrap E<ge> 3.8."
19589 #: ../fish/guestfish.pod:1105
19590 msgid "GUESTFISH_DISPLAY_IMAGE"
19594 #: ../fish/guestfish.pod:1107
19596 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
19597 "If not set, it uses L<display(1)>."
19601 #: ../fish/guestfish.pod:1110
19602 msgid "GUESTFISH_PID"
19606 #: ../fish/guestfish.pod:1112
19608 "Used with the I<--remote> option to specify the remote guestfish process to "
19609 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19613 #: ../fish/guestfish.pod:1116
19618 #: ../fish/guestfish.pod:1118
19620 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
19621 "not specified, the external L<hexedit(1)> program is used."
19625 #: ../fish/guestfish.pod:1122
19630 #: ../fish/guestfish.pod:1124
19632 "If compiled with GNU readline support, various files in the home directory "
19633 "can be used. See L</FILES>."
19637 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3094
19638 msgid "LIBGUESTFS_APPEND"
19642 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3096
19643 msgid "Pass additional options to the guest kernel."
19647 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3098
19648 msgid "LIBGUESTFS_DEBUG"
19649 msgstr "LIBGUESTFS_DEBUG"
19652 #: ../fish/guestfish.pod:1133
19654 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
19655 "effect as using the B<-v> option."
19659 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3103
19660 msgid "LIBGUESTFS_MEMSIZE"
19661 msgstr "LIBGUESTFS_MEMSIZE"
19664 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3105
19666 "Set the memory allocated to the qemu process, in megabytes. For example:"
19670 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3108
19673 " LIBGUESTFS_MEMSIZE=700\n"
19676 " LIBGUESTFS_MEMSIZE=700\n"
19680 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3110
19681 msgid "LIBGUESTFS_PATH"
19685 #: ../fish/guestfish.pod:1145
19687 "Set the path that guestfish uses to search for kernel and initrd.img. See "
19688 "the discussion of paths in L<guestfs(3)>."
19692 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3115
19693 msgid "LIBGUESTFS_QEMU"
19697 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3117
19699 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
19700 "which was found at compile time by the configure script is used."
19704 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3123
19705 msgid "LIBGUESTFS_TRACE"
19709 #: ../fish/guestfish.pod:1156
19710 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19714 #: ../fish/guestfish.pod:1158
19716 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19719 #: ../fish/guestfish.pod:1160
19721 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
19726 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3128
19731 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3130
19733 "Location of temporary directory, defaults to C</tmp> except for the cached "
19734 "supermin appliance which defaults to C</var/tmp>."
19738 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3133
19740 "If libguestfs was compiled to use the supermin appliance then the real "
19741 "appliance is cached in this directory, shared between all handles belonging "
19742 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
19743 "use in case C</var/tmp> is not large enough."
19747 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19748 #: ../rescue/virt-rescue.pod:269
19753 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19754 #: ../rescue/virt-rescue.pod:273
19755 msgid "$HOME/.libguestfs-tools.rc"
19759 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19760 #: ../rescue/virt-rescue.pod:275
19761 msgid "/etc/libguestfs-tools.conf"
19765 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19766 #: ../rescue/virt-rescue.pod:277
19768 "This configuration file controls the default read-only or read-write mode "
19769 "(I<--ro> or I<--rw>)."
19773 #: ../fish/guestfish.pod:1187
19774 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19778 #: ../fish/guestfish.pod:1189
19779 msgid "$HOME/.guestfish"
19783 #: ../fish/guestfish.pod:1191
19785 "If compiled with GNU readline support, then the command history is saved in "
19790 #: ../fish/guestfish.pod:1194
19791 msgid "$HOME/.inputrc"
19795 #: ../fish/guestfish.pod:1196
19796 msgid "/etc/inputrc"
19800 #: ../fish/guestfish.pod:1198
19802 "If compiled with GNU readline support, then these files can be used to "
19803 "configure readline. For further information, please see L<readline(3)/"
19804 "INITIALIZATION FILE>."
19808 #: ../fish/guestfish.pod:1202
19809 msgid "To write rules which only apply to guestfish, use:"
19813 #: ../fish/guestfish.pod:1204
19823 #: ../fish/guestfish.pod:1208
19825 "Variables that you can set in inputrc that change the behaviour of guestfish "
19826 "in useful ways include:"
19830 #: ../fish/guestfish.pod:1213
19831 msgid "completion-ignore-case (default: on)"
19835 #: ../fish/guestfish.pod:1215
19837 "By default, guestfish will ignore case when tab-completing paths on the "
19842 #: ../fish/guestfish.pod:1218
19845 " set completion-ignore-case off\n"
19850 #: ../fish/guestfish.pod:1220
19851 msgid "to make guestfish case sensitive."
19855 #: ../fish/guestfish.pod:1224
19860 #: ../fish/guestfish.pod:1226
19861 msgid "test2.img (etc)"
19865 #: ../fish/guestfish.pod:1228
19867 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19868 "will be created in the file C<test1.img> in the current directory. The "
19869 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
19870 "the same name will be overwritten."
19874 #: ../fish/guestfish.pod:1237
19876 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19877 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19878 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19879 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19880 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19881 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19885 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3220
19886 #: ../test-tool/libguestfs-test-tool.pod:112
19887 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
19891 #: ../fish/virt-copy-in.pod:5
19893 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19897 #: ../fish/virt-copy-in.pod:9
19900 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19905 #: ../fish/virt-copy-in.pod:11
19908 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19913 #: ../fish/virt-copy-in.pod:15
19915 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19916 "causing disk corruption. The virtual machine must be shut down before you "
19917 "use this command."
19921 #: ../fish/virt-copy-in.pod:21
19923 "C<virt-copy-in> copies files and directories from the local disk into a "
19924 "virtual machine disk image or named libvirt domain."
19928 #: ../fish/virt-copy-in.pod:24
19930 "You can give one of more filenames and directories on the command line. "
19931 "Directories are copied in recursively. The final parameter must be the "
19932 "destination directory in the disk image which must be an absolute path "
19933 "starting with a C</> character."
19937 #: ../fish/virt-copy-in.pod:33
19940 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19945 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19946 msgid "Upload a home directory to a guest:"
19950 #: ../fish/virt-copy-in.pod:37
19953 " virt-copy-in -d MyGuest skel /home\n"
19958 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19959 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19960 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19964 #: ../fish/virt-copy-in.pod:41
19966 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19967 "> C<copy-in> command. For anything more complex than a trivial copy, you "
19968 "are probably better off using guestfish directly."
19972 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19973 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19975 "Since the shell script just passes options straight to guestfish, read "
19976 "L<guestfish(1)> to see the full list of options."
19980 #: ../fish/virt-copy-in.pod:52
19983 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19984 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19985 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19986 #| "libguestfs.org/>."
19988 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19989 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19991 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19992 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19993 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19997 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19998 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20000 #| msgid "Copyright (C) 2009 Red Hat Inc."
20001 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
20002 msgstr "© Red Hat Inc., 2009"
20005 #: ../fish/virt-copy-out.pod:5
20007 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20012 #: ../fish/virt-copy-out.pod:9
20015 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20020 #: ../fish/virt-copy-out.pod:11
20023 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20028 #: ../fish/virt-copy-out.pod:15
20030 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20031 "image or named libvirt domain."
20035 #: ../fish/virt-copy-out.pod:18
20037 "You can give one of more filenames and directories on the command line. "
20038 "Directories are copied out recursively."
20042 #: ../fish/virt-copy-out.pod:23
20043 msgid "Download the home directories from a virtual machine:"
20047 #: ../fish/virt-copy-out.pod:25
20051 " virt-copy-out -d MyGuest /home homes\n"
20056 #: ../fish/virt-copy-out.pod:30
20058 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20059 "> C<copy-out> command. For anything more complex than a trivial copy, you "
20060 "are probably better off using guestfish directly."
20064 #: ../fish/virt-copy-out.pod:41
20067 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20068 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20069 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20070 #| "libguestfs.org/>."
20072 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
20073 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20075 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20076 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20077 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20081 #: ../fish/virt-tar-in.pod:5
20082 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20086 #: ../fish/virt-tar-in.pod:9
20089 " virt-tar-in -a disk.img data.tar /destination\n"
20094 #: ../fish/virt-tar-in.pod:11
20097 " virt-tar-in -d domain data.tar /destination\n"
20102 #: ../fish/virt-tar-in.pod:13
20105 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20110 #: ../fish/virt-tar-in.pod:17
20112 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20113 "causing disk corruption. The virtual machine must be shut down before you "
20114 "use this command."
20118 #: ../fish/virt-tar-in.pod:23
20120 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20121 "image or named libvirt domain."
20125 #: ../fish/virt-tar-in.pod:26
20127 "The first parameter is the tar file. Use C<-> to read the tar file from "
20128 "standard input. The second parameter is the absolute target directory to "
20133 #: ../fish/virt-tar-in.pod:34
20136 " virt-tar-in -d MyGuest homes.tar /home\n"
20141 #: ../fish/virt-tar-in.pod:38
20143 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20144 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
20145 "probably better off using guestfish directly."
20149 #: ../fish/virt-tar-in.pod:49
20152 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20153 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20154 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20155 #| "libguestfs.org/>."
20157 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20158 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
20161 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20162 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20163 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20167 #: ../fish/virt-tar-out.pod:5
20169 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20173 #: ../fish/virt-tar-out.pod:9
20176 " virt-tar-out -a disk.img /dir files.tar\n"
20181 #: ../fish/virt-tar-out.pod:11
20184 " virt-tar-out -d domain /dir files.tar\n"
20189 #: ../fish/virt-tar-out.pod:13
20192 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20197 #: ../fish/virt-tar-out.pod:17
20199 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20203 #: ../fish/virt-tar-out.pod:20
20205 "The first parameter is the absolute path of the virtual machine directory. "
20206 "The second parameter is the tar file to write. Use C<-> to write to "
20211 #: ../fish/virt-tar-out.pod:26
20212 msgid "Download the home directories from a guest:"
20216 #: ../fish/virt-tar-out.pod:28
20219 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20224 #: ../fish/virt-tar-out.pod:32
20226 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20227 "> C<tar-out> command. For anything more complex than a trivial copy, you "
20228 "are probably better off using guestfish directly."
20232 #: ../fish/virt-tar-out.pod:43
20235 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20236 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20237 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20238 #| "libguestfs.org/>."
20240 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20241 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20243 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20244 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20245 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20249 #: ../fuse/guestmount.pod:5
20251 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20255 #: ../fuse/guestmount.pod:9
20258 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20263 #: ../fuse/guestmount.pod:11
20266 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20271 #: ../fuse/guestmount.pod:13
20274 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20279 #: ../fuse/guestmount.pod:17
20281 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20282 "machines. If you do this, you risk disk corruption in the VM."
20286 #: ../fuse/guestmount.pod:22
20288 "The guestmount program can be used to mount virtual machine filesystems and "
20289 "other disk images on the host. It uses libguestfs for access to the guest "
20290 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20291 "a mountable device."
20295 #: ../fuse/guestmount.pod:27
20297 "Along with other options, you have to give at least one device (I<-a> "
20298 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20299 "option) or use the I<-i> inspection option. How this works is better "
20300 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20305 #: ../fuse/guestmount.pod:33
20307 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
20308 "by you, and the filesystem will not be visible to any other users unless you "
20309 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
20310 "the filesystem, use the C<fusermount -u> command."
20314 #: ../fuse/guestmount.pod:41
20316 "For a typical Windows guest which has its main filesystem on the first "
20321 #: ../fuse/guestmount.pod:44
20324 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20329 #: ../fuse/guestmount.pod:46
20331 "For a typical Linux guest which has a /boot filesystem on the first "
20332 "partition, and the root filesystem on a logical volume:"
20336 #: ../fuse/guestmount.pod:49
20339 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20344 #: ../fuse/guestmount.pod:51
20345 msgid "To get libguestfs to detect guest mountpoints for you:"
20349 #: ../fuse/guestmount.pod:53
20352 " guestmount -a guest.img -i --ro /mnt\n"
20357 #: ../fuse/guestmount.pod:55
20358 msgid "For a libvirt guest called \"Guest\" you could do:"
20362 #: ../fuse/guestmount.pod:57
20365 " guestmount -d Guest -i --ro /mnt\n"
20370 #: ../fuse/guestmount.pod:59
20372 "If you don't know what filesystems are contained in a guest or disk image, "
20373 "use L<virt-filesystems(1)> first:"
20377 #: ../fuse/guestmount.pod:62
20380 " virt-filesystems MyGuest\n"
20385 #: ../fuse/guestmount.pod:64
20387 "If you want to trace the libguestfs calls but without excessive debugging "
20388 "information, we recommend:"
20392 #: ../fuse/guestmount.pod:67
20395 " guestmount [...] --trace /mnt\n"
20400 #: ../fuse/guestmount.pod:69
20401 msgid "If you want to debug the program, we recommend:"
20405 #: ../fuse/guestmount.pod:71
20408 " guestmount [...] --trace --verbose /mnt\n"
20413 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20414 #: ../resize/virt-resize.pod:544
20419 #: ../fuse/guestmount.pod:75
20420 msgid "Other users cannot see the filesystem by default"
20424 #: ../fuse/guestmount.pod:77
20426 "If you mount a filesystem as one user (eg. root), then other users will not "
20427 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
20428 "option when mounting:"
20432 #: ../fuse/guestmount.pod:81
20435 " sudo guestmount [...] -o allow_other /mnt\n"
20440 #: ../fuse/guestmount.pod:91
20441 msgid "Add a block device or virtual machine image."
20445 #: ../fuse/guestmount.pod:114
20446 msgid "B<--dir-cache-timeout N>"
20447 msgstr "B<--dir-cache-timeout N>"
20450 #: ../fuse/guestmount.pod:116
20452 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20453 "seconds. The readdir cache [actually, there are several semi-independent "
20454 "caches] is populated after a readdir(2) call with the stat and extended "
20455 "attributes of the files in the directory, in anticipation that they will be "
20456 "requested soon after."
20460 #: ../fuse/guestmount.pod:122
20462 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20463 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20464 "requests, only cache existing ones."
20468 #: ../fuse/guestmount.pod:142
20470 "If you have untrusted raw-format guest disk images, you should use this "
20471 "option to specify the disk format. This avoids a possible security problem "
20472 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
20473 "guestfs_add_drive_opts>."
20477 #: ../fuse/guestmount.pod:147
20478 msgid "B<--fuse-help>"
20479 msgstr "B<--fuse-help>"
20482 #: ../fuse/guestmount.pod:149
20483 msgid "Display help on special FUSE options (see I<-o> below)."
20487 #: ../fuse/guestmount.pod:153
20488 msgid "Display brief help and exit."
20492 #: ../fuse/guestmount.pod:177
20494 "Mount the named partition or logical volume on the given mountpoint B<in the "
20495 "guest> (this has nothing to do with mountpoints in the host)."
20499 #: ../fuse/guestmount.pod:180
20501 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
20502 "something on C</>."
20506 #: ../fuse/guestmount.pod:197
20508 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20509 "unmounted. If you specify this option, then we don't attempt to sync the "
20510 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
20514 #: ../fuse/guestmount.pod:202
20516 #| msgid "B<--partition>"
20517 msgid "B<-o option>"
20518 msgstr "B<--partition>"
20521 #: ../fuse/guestmount.pod:204
20523 #| msgid "B<--partition>"
20524 msgid "B<--option option>"
20525 msgstr "B<--partition>"
20528 #: ../fuse/guestmount.pod:206
20529 msgid "Pass extra options to FUSE."
20533 #: ../fuse/guestmount.pod:208
20535 "To get a list of all the extra options supported by FUSE, use the command "
20536 "below. Note that only the FUSE I<-o> options can be passed, and only some "
20537 "of them are a good idea."
20541 #: ../fuse/guestmount.pod:212
20544 " guestmount --fuse-help\n"
20549 #: ../fuse/guestmount.pod:214
20550 msgid "Some potentially useful FUSE options:"
20554 #: ../fuse/guestmount.pod:218
20555 msgid "B<-o allow_other>"
20559 #: ../fuse/guestmount.pod:220
20560 msgid "Allow other users to see the filesystem."
20564 #: ../fuse/guestmount.pod:222
20565 msgid "B<-o attr_timeout=N>"
20566 msgstr "B<-o attr_timeout=N>"
20569 #: ../fuse/guestmount.pod:224
20570 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20574 #: ../fuse/guestmount.pod:226
20575 msgid "B<-o kernel_cache>"
20579 #: ../fuse/guestmount.pod:228
20581 "Allow the kernel to cache files (reduces the number of reads that have to go "
20582 "through the L<guestfs(3)> API). This is generally a good idea if you can "
20583 "afford the extra memory usage."
20587 #: ../fuse/guestmount.pod:232
20588 msgid "B<-o uid=N> B<-o gid=N>"
20592 #: ../fuse/guestmount.pod:234
20594 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20595 "the chosen values."
20599 #: ../fuse/guestmount.pod:243
20601 "Add devices and mount everything read-only. Also disallow writes and make "
20602 "the disk appear read-only to FUSE."
20606 #: ../fuse/guestmount.pod:246
20608 "This is highly recommended if you are not going to edit the guest disk. If "
20609 "the guest is running and this option is I<not> supplied, then there is a "
20610 "strong risk of disk corruption in the guest. We try to prevent this from "
20611 "happening, but it is not always possible."
20615 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20616 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20620 #: ../fuse/guestmount.pod:255
20621 msgid "Enable SELinux support for the guest."
20625 #: ../fuse/guestmount.pod:261
20626 msgid "Enable verbose messages from underlying libguestfs."
20630 #: ../fuse/guestmount.pod:267
20631 msgid "Display the program version and exit."
20635 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20636 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20637 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20641 #: ../fuse/guestmount.pod:280
20648 #: ../fuse/guestmount.pod:282
20649 msgid "Trace libguestfs calls and entry into each FUSE function."
20653 #: ../fuse/guestmount.pod:284
20654 msgid "This also stops the daemon from forking into the background."
20658 #: ../fuse/guestmount.pod:310
20660 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20661 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20666 #: ../fuse/guestmount.pod:325
20667 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
20671 #: ../inspector/virt-inspector.pod:5
20673 "virt-inspector - Display operating system version and other information "
20674 "about a virtual machine"
20678 #: ../inspector/virt-inspector.pod:9
20681 #| " virt-list-partitions [--options] domname\n"
20684 " virt-inspector [--options] -d domname\n"
20687 " virt-list-partitions [--параметри] назва_домену\n"
20691 #: ../inspector/virt-inspector.pod:11
20694 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20697 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20700 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20704 #: ../inspector/virt-inspector.pod:15
20707 #| " virt-list-partitions [--options] domname\n"
20710 " virt-inspector domname\n"
20713 " virt-list-partitions [--параметри] назва_домену\n"
20717 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20720 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20723 " virt-inspector disk.img [disk.img ...]\n"
20726 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20730 #: ../inspector/virt-inspector.pod:21
20732 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20733 "determine the version of the operating system and other information about "
20734 "the virtual machine."
20738 #: ../inspector/virt-inspector.pod:25
20739 msgid "Virt-inspector produces XML output for feeding into other programs."
20743 #: ../inspector/virt-inspector.pod:27
20745 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20746 "the libvirt domain (see: C<virsh list --all>)."
20750 #: ../inspector/virt-inspector.pod:30
20752 "You can also run virt-inspector directly on disk images from a single "
20753 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
20754 "has several block devices, in which case you should list several I<-a> "
20755 "options one after another, with the first corresponding to the guest's C</"
20756 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20760 #: ../inspector/virt-inspector.pod:37
20762 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20763 "keys and similar."
20767 #: ../inspector/virt-inspector.pod:40
20769 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
20770 "inspect several virtual machines, you have to run virt-inspector several "
20771 "times (for example, from a shell script for-loop)."
20775 #: ../inspector/virt-inspector.pod:45
20777 "Because virt-inspector needs direct access to guest images, it won't "
20778 "normally work over remote libvirt connections."
20782 #: ../inspector/virt-inspector.pod:48
20784 "All of the information available from virt-inspector is also available "
20785 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
20786 "The same information can also be fetched using guestfish or via libguestfs "
20787 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20788 "WITH OTHER PROGRAMMING LANGUAGES>)."
20792 #: ../inspector/virt-inspector.pod:81
20794 "Libvirt is only used if you specify a C<domname> on the command line. If "
20795 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20800 #: ../inspector/virt-inspector.pod:94
20802 "When prompting for keys and passphrases, virt-inspector normally turns "
20803 "echoing off so you cannot see what you are typing. If you are not worried "
20804 "about Tempest attacks and there is no one else in the room you can specify "
20805 "this flag to see what you are typing."
20809 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20810 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20811 #: ../tools/virt-win-reg.pl:144
20813 "Specify the format of disk images given on the command line. If this is "
20814 "omitted then the format is autodetected from the content of the disk image."
20818 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20819 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20820 #: ../tools/virt-win-reg.pl:148
20822 "If disk images are requested from libvirt, then this program asks libvirt "
20823 "for this information. In this case, the value of the format parameter is "
20828 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20829 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
20830 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20831 #: ../tools/virt-win-reg.pl:152
20833 "If working with untrusted raw-format guest disk images, you should ensure "
20834 "the format is always specified."
20838 #: ../inspector/virt-inspector.pod:139
20839 msgid "Previous versions of virt-inspector allowed you to write either:"
20843 #: ../inspector/virt-inspector.pod:145
20846 #| " inspect-get-hostname root\n"
20849 " virt-inspector guestname\n"
20852 " inspect-get-hostname корінь\n"
20856 #: ../inspector/virt-inspector.pod:153
20861 #: ../inspector/virt-inspector.pod:155
20863 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20864 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
20865 "just an overview."
20869 #: ../inspector/virt-inspector.pod:159
20871 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20872 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
20873 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20874 "which is vanishingly rare in real world VMs."
20878 #: ../inspector/virt-inspector.pod:164
20879 msgid "E<lt>operatingsystemE<gt>"
20883 #: ../inspector/virt-inspector.pod:166
20885 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20886 "describe the operating system, its architecture, the descriptive \"product "
20887 "name\" string, the type of OS and so on, as in this example:"
20891 #: ../inspector/virt-inspector.pod:170
20894 " <operatingsystems>\n"
20895 " <operatingsystem>\n"
20896 " <root>/dev/sda2</root>\n"
20897 " <name>windows</name>\n"
20898 " <arch>i386</arch>\n"
20899 " <distro>windows</distro>\n"
20900 " <product_name>Windows 7 Enterprise</product_name>\n"
20901 " <product_variant>Client</product_variant>\n"
20902 " <major_version>6</major_version>\n"
20903 " <minor_version>1</minor_version>\n"
20904 " <windows_systemroot>/Windows</windows_systemroot>\n"
20905 " <format>installed</format>\n"
20910 #: ../inspector/virt-inspector.pod:183
20912 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20913 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20914 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20915 "architecture. The other fields are fairly self-explanatory, but because "
20916 "these fields are taken directly from the libguestfs inspection API you can "
20917 "find precise information from L<guestfs(3)/INSPECTION>."
20921 #: ../inspector/virt-inspector.pod:191
20923 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20924 "of view of libguestfs (block devices may have completely different names "
20925 "inside the VM itself)."
20929 #: ../inspector/virt-inspector.pod:195
20931 #| msgid "mountpoints"
20932 msgid "E<lt>mountpointsE<gt>"
20933 msgstr "mountpoints"
20936 #: ../inspector/virt-inspector.pod:197
20938 "Un*x-like guests typically have multiple filesystems which are mounted at "
20939 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20940 "element which looks like this:"
20944 #: ../inspector/virt-inspector.pod:201
20947 " <operatingsystems>\n"
20948 " <operatingsystem>\n"
20951 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20952 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20953 " </mountpoints>\n"
20958 #: ../inspector/virt-inspector.pod:209
20960 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20961 "and may have completely different names inside the guest. Only mountable "
20962 "filesystems appear in this list, not things like swap devices."
20966 #: ../inspector/virt-inspector.pod:214
20968 #| msgid "list-filesystems"
20969 msgid "E<lt>filesystemsE<gt>"
20970 msgstr "list-filesystems"
20973 #: ../inspector/virt-inspector.pod:216
20975 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20976 "filesystems belonging to the guest, including swap and empty partitions. "
20977 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20978 "this OS or shared with this OS and other OSes)."
20982 #: ../inspector/virt-inspector.pod:222
20983 msgid "You might see something like this:"
20987 #: ../inspector/virt-inspector.pod:224
20990 " <operatingsystems>\n"
20991 " <operatingsystem>\n"
20994 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20995 " <type>ext4</type>\n"
20996 " <label>Fedora-13-x86_64</label>\n"
20997 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21003 #: ../inspector/virt-inspector.pod:234
21005 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21006 "the label, and the UUID."
21010 #: ../inspector/virt-inspector.pod:237
21011 msgid "E<lt>applicationsE<gt>"
21015 #: ../inspector/virt-inspector.pod:239
21017 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21018 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21023 #: ../inspector/virt-inspector.pod:243
21025 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
21026 "Typical values would be C<rpm> and C<deb>."
21030 #: ../inspector/virt-inspector.pod:246
21032 "E<lt>package_managementE<gt>, if present, describes the package manager. "
21033 "Typical values include C<yum>, C<up2date> and C<apt>"
21037 #: ../inspector/virt-inspector.pod:249
21038 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21042 #: ../inspector/virt-inspector.pod:252
21045 " <operatingsystems>\n"
21046 " <operatingsystem>\n"
21048 " <applications>\n"
21050 " <name>coreutils</name>\n"
21051 " <version>8.5</version>\n"
21052 " <release>1</release>\n"
21053 " </application>\n"
21058 #: ../inspector/virt-inspector.pod:262
21060 "The version and release fields may not be available for some types guests. "
21061 "Other fields are possible, see L<guestfs(3)/"
21062 "guestfs_inspect_list_applications>."
21066 #: ../inspector/virt-inspector.pod:266
21067 msgid "E<lt>drive_mappingsE<gt>"
21071 #: ../inspector/virt-inspector.pod:268
21073 "For operating systems like Windows which use drive letters, virt-inspector "
21074 "is able to find out how drive letters map to filesystems."
21078 #: ../inspector/virt-inspector.pod:272
21081 " <operatingsystems>\n"
21082 " <operatingsystem>\n"
21084 " <drive_mappings>\n"
21085 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21086 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21087 " </drive_mappings>\n"
21092 #: ../inspector/virt-inspector.pod:280
21094 "In the example above, drive C maps to the filesystem on the second partition "
21095 "on the first disk, and drive E maps to the filesystem on the first partition "
21096 "on the second disk."
21100 #: ../inspector/virt-inspector.pod:284
21102 "Note that this only covers permanent local filesystem mappings, not things "
21103 "like network shares. Furthermore NTFS volume mount points may not be listed "
21108 #: ../inspector/virt-inspector.pod:288
21110 #| msgid "B<-s E<lt>NE<gt>>"
21111 msgid "E<lt>iconE<gt>"
21112 msgstr "B<-s E<lt>NE<gt>>"
21115 #: ../inspector/virt-inspector.pod:290
21117 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
21118 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
21119 "very large and high quality."
21123 #: ../inspector/virt-inspector.pod:294
21126 " <operatingsystems>\n"
21127 " <operatingsystem>\n"
21130 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21131 " [... many lines of base64 data ...]\n"
21137 #: ../inspector/virt-inspector.pod:302
21139 "To display the icon, you have to extract it and convert the base64 data back "
21140 "to a binary file. Use an XPath query or simply an editor to extract the "
21141 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21146 #: ../inspector/virt-inspector.pod:307
21149 " base64 -i -d < icon.data > icon.png\n"
21154 #: ../inspector/virt-inspector.pod:309
21155 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21159 #: ../inspector/virt-inspector.pod:311
21161 "Virt-inspector can detect some operating system installers on install disks, "
21162 "live CDs, bootable USB keys and more."
21166 #: ../inspector/virt-inspector.pod:314
21168 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21169 "fields may be present to indicate a live CD, network installer, or one part "
21170 "of a multipart CD. For example:"
21174 #: ../inspector/virt-inspector.pod:318
21177 " <operatingsystems>\n"
21178 " <operatingsystem>\n"
21179 " <root>/dev/sda</root>\n"
21180 " <name>linux</name>\n"
21181 " <arch>i386</arch>\n"
21182 " <distro>ubuntu</distro>\n"
21183 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
21184 " <major_version>10</major_version>\n"
21185 " <minor_version>10</minor_version>\n"
21186 " <format>installer</format>\n"
21192 #: ../inspector/virt-inspector.pod:330
21193 msgid "USING XPATH"
21197 #: ../inspector/virt-inspector.pod:332
21199 "You can use the XPath query language to select parts of the XML. We "
21200 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
21204 #: ../inspector/virt-inspector.pod:338
21207 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21209 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21210 " <type>ext4</type>\n"
21216 #: ../inspector/virt-inspector.pod:344
21219 " $ virt-inspector -d Guest | \\\n"
21220 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21226 #: ../inspector/virt-inspector.pod:348
21229 " $ virt-inspector -d Guest | \\\n"
21230 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21231 " [displays the guest icon, if there is one]\n"
21236 #: ../inspector/virt-inspector.pod:359
21237 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21241 #: ../inspector/virt-inspector.pod:361
21243 "Early versions of libguestfs shipped with a different virt-inspector program "
21244 "written in Perl (the current version is written in C). The XML output of "
21245 "the Perl virt-inspector was different and it could also output in other "
21246 "formats like text."
21250 #: ../inspector/virt-inspector.pod:366
21252 "The old virt-inspector is no longer supported or shipped with libguestfs."
21256 #: ../inspector/virt-inspector.pod:369
21258 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21259 "versions of virt-inspector with different names:"
21263 #: ../inspector/virt-inspector.pod:372
21266 " virt-inspector Old Perl version.\n"
21267 " virt-inspector2 New C version.\n"
21272 #: ../inspector/virt-inspector.pod:382
21275 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21276 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21277 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21279 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21280 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21282 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21283 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21284 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21287 #: ../inspector/virt-inspector.pod:399
21288 msgid "Matthew Booth L<mbooth@redhat.com>"
21292 #: ../java/examples/guestfs-java.pod:5
21293 msgid "guestfs-java - How to use libguestfs from Java"
21297 #: ../java/examples/guestfs-java.pod:9
21300 " import com.redhat.et.libguestfs.*;\n"
21305 #: ../java/examples/guestfs-java.pod:11
21308 " GuestFS g = new GuestFS ();\n"
21309 " g.add_drive_opts (\"disk.img\", null);\n"
21315 #: ../java/examples/guestfs-java.pod:17
21317 "This manual page documents how to call libguestfs from the Java programming "
21318 "language. This page just documents the differences from the C API and gives "
21319 "some examples. If you are not familiar with using libguestfs, you also need "
21320 "to read L<guestfs(3)>."
21324 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21325 msgid "CLOSING THE HANDLE"
21329 #: ../java/examples/guestfs-java.pod:24
21331 "The handle is closed when it is reaped by the garbage collector. Because "
21332 "libguestfs handles include a lot of state, it is also possible to close (and "
21333 "hence free) them explicitly by calling the C<close> method."
21337 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21338 #: ../python/examples/guestfs-python.pod:21
21339 #: ../ruby/examples/guestfs-ruby.pod:22
21346 #: ../java/examples/guestfs-java.pod:31
21348 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21349 "exception. This has a single parameter which is the error message (a "
21354 #: ../java/examples/guestfs-java.pod:35
21355 msgid "Calling any method on a closed handle raises the same exception."
21359 #: ../java/examples/guestfs-java.pod:47
21362 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21363 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21364 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21366 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
21367 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21368 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21370 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21371 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21372 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21375 #: ../ocaml/examples/guestfs-ocaml.pod:5
21376 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21380 #: ../ocaml/examples/guestfs-ocaml.pod:9
21381 msgid "Module style:"
21385 #: ../ocaml/examples/guestfs-ocaml.pod:11
21388 " let g = Guestfs.create () in\n"
21389 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21390 " Guestfs.launch g;\n"
21395 #: ../ocaml/examples/guestfs-ocaml.pod:15
21396 msgid "Object-oriented style:"
21400 #: ../ocaml/examples/guestfs-ocaml.pod:17
21403 " let g = new Guestfs.guestfs () in\n"
21404 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21410 #: ../ocaml/examples/guestfs-ocaml.pod:21
21413 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21415 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21420 #: ../ocaml/examples/guestfs-ocaml.pod:27
21422 "This manual page documents how to call libguestfs from the OCaml programming "
21423 "language. This page just documents the differences from the C API and gives "
21424 "some examples. If you are not familiar with using libguestfs, you also need "
21425 "to read L<guestfs(3)>."
21429 #: ../ocaml/examples/guestfs-ocaml.pod:32
21430 msgid "PROGRAMMING STYLES"
21434 #: ../ocaml/examples/guestfs-ocaml.pod:34
21436 "There are two different programming styles supported by the OCaml bindings. "
21437 "You can use a module style, with each C function mapped to an OCaml function:"
21441 #: ../ocaml/examples/guestfs-ocaml.pod:38
21444 #| " int guestfs_last_errno (guestfs_h *g);\n"
21447 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21450 " int guestfs_last_errno (guestfs_h *g);\n"
21454 #: ../ocaml/examples/guestfs-ocaml.pod:40
21459 #: ../ocaml/examples/guestfs-ocaml.pod:42
21462 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21467 #: ../ocaml/examples/guestfs-ocaml.pod:44
21469 "Alternately you can use an object-oriented style, calling methods on the "
21470 "class C<Guestfs.guestfs>:"
21474 #: ../ocaml/examples/guestfs-ocaml.pod:47
21477 " method set_verbose : bool -> unit\n"
21482 #: ../ocaml/examples/guestfs-ocaml.pod:49
21484 "The object-oriented style is usually briefer, and the minor performance "
21485 "penalty isn't noticable in the general overhead of performing libguestfs "
21490 #: ../ocaml/examples/guestfs-ocaml.pod:55
21492 "The handle is closed when it is reaped by the garbage collector. Because "
21493 "libguestfs handles include a lot of state, it is also possible to close (and "
21494 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21499 #: ../ocaml/examples/guestfs-ocaml.pod:62
21501 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21502 "exception. This has a single parameter which is the error message (a "
21507 #: ../ocaml/examples/guestfs-ocaml.pod:66
21509 "Calling any function/method on a closed handle raises C<Guestfs."
21510 "Handle_closed>. The single parameter is the name of the function that you "
21515 #: ../ocaml/examples/guestfs-ocaml.pod:80
21518 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21519 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21520 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21522 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21523 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21524 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21526 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21527 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21528 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21531 #: ../perl/examples/guestfs-perl.pod:5
21532 msgid "guestfs-perl - How to use libguestfs from Perl"
21536 #: ../perl/examples/guestfs-perl.pod:9
21539 " use Sys::Guestfs;\n"
21544 #: ../perl/examples/guestfs-perl.pod:11
21547 " my $h = Sys::Guestfs->new ();\n"
21548 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21549 " $h->launch ();\n"
21550 " $h->mount_options ('', '/dev/sda1', '/');\n"
21551 " $h->touch ('/hello');\n"
21557 #: ../perl/examples/guestfs-perl.pod:20
21559 "This manual page documents how to call libguestfs from the Perl programming "
21560 "language. This page just documents the differences from the C API and gives "
21561 "some examples. If you are not familiar with using libguestfs, you also need "
21562 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
21566 #: ../perl/examples/guestfs-perl.pod:26
21571 #: ../perl/examples/guestfs-perl.pod:28
21573 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21578 #: ../perl/examples/guestfs-perl.pod:41
21581 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21582 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21583 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21585 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
21586 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
21587 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21589 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21590 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21591 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21594 #: ../python/examples/guestfs-python.pod:5
21595 msgid "guestfs-python - How to use libguestfs from Python"
21599 #: ../python/examples/guestfs-python.pod:9
21602 " import guestfs\n"
21603 " g = guestfs.GuestFS ()\n"
21604 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21610 #: ../python/examples/guestfs-python.pod:16
21612 "This manual page documents how to call libguestfs from the Python "
21613 "programming language. This page just documents the differences from the C "
21614 "API and gives some examples. If you are not familiar with using libguestfs, "
21615 "you also need to read L<guestfs(3)>."
21619 #: ../python/examples/guestfs-python.pod:23
21621 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21622 "single string argument which is the error message."
21626 #: ../python/examples/guestfs-python.pod:26
21627 msgid "MORE DOCUMENTATION"
21631 #: ../python/examples/guestfs-python.pod:28
21636 #: ../python/examples/guestfs-python.pod:30
21640 " >>> import guestfs\n"
21641 " >>> help (guestfs)\n"
21646 #: ../python/examples/guestfs-python.pod:44
21649 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21650 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21651 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21653 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21654 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
21655 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21657 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21658 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21659 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21662 #: ../rescue/virt-rescue.pod:5
21663 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21667 #: ../rescue/virt-rescue.pod:9
21670 #| " virt-list-partitions [--options] domname\n"
21673 " virt-rescue [--options] -d domname\n"
21676 " virt-list-partitions [--параметри] назва_домену\n"
21680 #: ../rescue/virt-rescue.pod:11
21683 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21686 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21689 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21693 #: ../rescue/virt-rescue.pod:15
21696 #| " virt-list-partitions [--options] domname\n"
21699 " virt-rescue [--options] domname\n"
21702 " virt-list-partitions [--параметри] назва_домену\n"
21706 #: ../rescue/virt-rescue.pod:17
21709 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21712 " virt-rescue [--options] disk.img [disk.img ...]\n"
21715 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21719 #: ../rescue/virt-rescue.pod:21
21721 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
21722 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
21723 "you from doing this, but doesn't catch all cases."
21727 #: ../rescue/virt-rescue.pod:25
21729 "However if you use the I<--ro> (read only) option, then you can attach a "
21730 "shell to a live virtual machine. The results might be strange or "
21731 "inconsistent at times but you won't get disk corruption."
21735 #: ../rescue/virt-rescue.pod:31
21737 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21738 "need for a CD. virt-rescue gives you a rescue shell and some simple "
21739 "recovery tools which you can use to examine or rescue a virtual machine or "
21744 #: ../rescue/virt-rescue.pod:36
21746 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21747 "on disk image(s):"
21751 #: ../rescue/virt-rescue.pod:39
21754 " virt-rescue -d GuestName\n"
21759 #: ../rescue/virt-rescue.pod:41
21762 " virt-rescue --ro -a /path/to/disk.img\n"
21767 #: ../rescue/virt-rescue.pod:43
21770 " virt-rescue -a /dev/sdc\n"
21775 #: ../rescue/virt-rescue.pod:45
21776 msgid "For live VMs you I<must> use the --ro option."
21780 #: ../rescue/virt-rescue.pod:47
21782 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21783 "in an interactive bash shell where you can use many ordinary Linux "
21784 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21785 "appliance. You must mount the virtual machine's filesystems by hand. There "
21786 "is an empty directory called C</sysroot> where you can mount filesystems."
21790 #: ../rescue/virt-rescue.pod:54
21792 "In the example below, we list logical volumes, then choose one to mount "
21793 "under C</sysroot>:"
21797 #: ../rescue/virt-rescue.pod:57
21801 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
21802 " lv_root vg_f11x64 -wi-a- 8.83G\n"
21803 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21804 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21805 " ><rescue> ls /sysroot\n"
21810 #: ../rescue/virt-rescue.pod:64
21812 "If you don't know what filesystems are available on the virtual machine then "
21813 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21817 #: ../rescue/virt-rescue.pod:70
21819 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21820 "virtual machine. For example you can use it on a blank file if you want to "
21821 "partition that file (although we would recommend using L<guestfish(1)> "
21822 "instead as it is more suitable for this purpose). You can even use virt-"
21823 "rescue on things like SD cards."
21827 #: ../rescue/virt-rescue.pod:76
21829 "Virt-rescue does not require root. You only need to run it as root if you "
21830 "need root to open the disk image."
21834 #: ../rescue/virt-rescue.pod:79
21836 "This tool is just designed for quick interactive hacking on a virtual "
21837 "machine. For more structured access to a virtual machine disk image, you "
21838 "should use L<guestfs(3)>. To get a structured shell that you can use to "
21839 "make scripted changes to guests, use L<guestfish(1)>."
21843 #: ../rescue/virt-rescue.pod:103
21844 msgid "B<--append kernelopts>"
21848 #: ../rescue/virt-rescue.pod:105
21849 msgid "Pass additional options to the rescue kernel."
21853 #: ../rescue/virt-rescue.pod:135
21856 #| " guestfish --format=raw -a disk.img\n"
21859 " virt-rescue --format=raw -a disk.img\n"
21862 " guestfish --format=raw -a disk.img\n"
21866 #: ../rescue/virt-rescue.pod:139
21869 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21872 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21875 " guestfish --format=raw -a disk.img --format -a another.img\n"
21879 #: ../rescue/virt-rescue.pod:148
21884 #: ../rescue/virt-rescue.pod:150
21886 #| msgid "B<--merge>"
21887 msgid "B<--memsize MB>"
21888 msgstr "B<--merge>"
21891 #: ../rescue/virt-rescue.pod:152
21893 "Change the amount of memory allocated to the rescue system. The default is "
21894 "set by libguestfs and is small but adequate for running system tools. The "
21895 "occasional program might need more memory. The parameter is specified in "
21900 #: ../rescue/virt-rescue.pod:157
21902 #| msgid "B<--inspector>"
21903 msgid "B<--network>"
21904 msgstr "B<--inspector>"
21907 #: ../rescue/virt-rescue.pod:159
21908 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
21912 #: ../rescue/virt-rescue.pod:165
21913 msgid "Open the image read-only."
21917 #: ../rescue/virt-rescue.pod:175
21919 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
21920 "SELINUX> before using this option."
21924 #: ../rescue/virt-rescue.pod:194
21926 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21927 "are done read-write."
21931 #: ../rescue/virt-rescue.pod:207
21932 msgid "Previous versions of virt-rescue allowed you to write either:"
21936 #: ../rescue/virt-rescue.pod:209
21939 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21942 " virt-rescue disk.img [disk.img ...]\n"
21945 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21949 #: ../rescue/virt-rescue.pod:213
21952 #| " file-architecture filename\n"
21955 " virt-rescue guestname\n"
21958 " file-architecture назва_файла\n"
21962 #: ../rescue/virt-rescue.pod:221
21967 #: ../rescue/virt-rescue.pod:223
21969 "Adding the I<--network> option enables QEMU user networking in the rescue "
21970 "appliance. There are some differences between user networking and ordinary "
21975 #: ../rescue/virt-rescue.pod:229
21976 msgid "ping does not work"
21980 #: ../rescue/virt-rescue.pod:231
21982 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21983 "send the ping packets, and because virt-rescue must be able to run as non-"
21984 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
21985 "The ping command will appear to resolve addresses but will not be able to "
21986 "send or receive any packets. This does not mean that the network is not "
21991 #: ../rescue/virt-rescue.pod:238
21992 msgid "cannot receive connections"
21996 #: ../rescue/virt-rescue.pod:240
21997 msgid "QEMU user networking cannot receive incoming connections."
22001 #: ../rescue/virt-rescue.pod:242
22002 msgid "making TCP connections"
22006 #: ../rescue/virt-rescue.pod:244
22008 "The virt-rescue appliance needs to be small and so does not include many "
22009 "network tools. In particular there is no L<telnet(1)> command. You can "
22010 "make TCP connections from the shell using the magical C</dev/tcp/"
22011 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22015 #: ../rescue/virt-rescue.pod:249
22018 " exec 3<>/dev/tcp/redhat.com/80\n"
22019 " echo \"GET /\" >&3\n"
22025 #: ../rescue/virt-rescue.pod:253
22026 msgid "See L<bash(1)> for more details."
22030 #: ../rescue/virt-rescue.pod:259
22032 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
22033 "ENVIRONMENT VARIABLES> for the complete list."
22037 #: ../rescue/virt-rescue.pod:286
22040 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22041 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22042 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22044 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22045 "libguestfs.org/>."
22047 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22048 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22049 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22052 #: ../resize/virt-resize.pod:5
22053 msgid "virt-resize - Resize a virtual machine disk"
22057 #: ../resize/virt-resize.pod:9
22060 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22061 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22062 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22067 #: ../resize/virt-resize.pod:15
22069 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22070 "larger or smaller overall, and resizing or deleting any partitions contained "
22075 #: ../resize/virt-resize.pod:19
22077 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
22078 "not> be used on live virtual machines - for consistent results, shut the "
22079 "virtual machine down before resizing it."
22083 #: ../resize/virt-resize.pod:23
22085 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22086 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22090 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
22091 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1261 ../src/guestfs.pod:1400
22092 #: ../src/guestfs.pod:2578
22097 #: ../resize/virt-resize.pod:33
22099 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22100 "fill the extra 5GB of space."
22104 #: ../resize/virt-resize.pod:36
22107 " virt-filesystems --long -h --all -a olddisk\n"
22112 #: ../resize/virt-resize.pod:38
22115 " truncate -r olddisk newdisk\n"
22116 " truncate -s +5G newdisk\n"
22121 #: ../resize/virt-resize.pod:41
22124 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22125 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22130 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
22131 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1265 ../src/guestfs.pod:1404
22132 #: ../src/guestfs.pod:2603
22137 #: ../resize/virt-resize.pod:46
22139 "As above, but make the /boot partition 200MB bigger, while giving the "
22140 "remaining space to /dev/sda2:"
22144 #: ../resize/virt-resize.pod:49
22147 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22148 " olddisk newdisk\n"
22153 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
22154 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1410
22159 #: ../resize/virt-resize.pod:54
22161 "As in the first example, but expand a logical volume as the final step. "
22162 "This is what you would typically use for Linux guests that use LVM:"
22166 #: ../resize/virt-resize.pod:58
22169 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22170 " olddisk newdisk\n"
22175 #: ../resize/virt-resize.pod:61
22180 #: ../resize/virt-resize.pod:63
22182 "As in the first example, but the output format will be qcow2 instead of a "
22187 #: ../resize/virt-resize.pod:66
22190 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22191 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22196 #: ../resize/virt-resize.pod:71
22197 msgid "DETAILED USAGE"
22201 #: ../resize/virt-resize.pod:73
22202 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22206 #: ../resize/virt-resize.pod:77
22207 msgid "1. Shut down the virtual machine"
22211 #: ../resize/virt-resize.pod:79
22212 msgid "2. Locate input disk image"
22216 #: ../resize/virt-resize.pod:81
22218 "Locate the input disk image (ie. the file or device on the host containing "
22219 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
22220 "dumpxml> like this to find the disk image name:"
22224 #: ../resize/virt-resize.pod:85
22227 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22228 " Found 1 nodes:\n"
22230 " <source dev=\"/dev/vg/lv_guest\" />\n"
22235 #: ../resize/virt-resize.pod:90
22236 msgid "3. Look at current sizing"
22240 #: ../resize/virt-resize.pod:92
22241 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22245 #: ../resize/virt-resize.pod:95
22248 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22249 " Name Type Size Parent\n"
22250 " /dev/sda1 partition 101M /dev/sda\n"
22251 " /dev/sda2 partition 7.9G /dev/sda\n"
22252 " /dev/sda device 8.0G -\n"
22257 #: ../resize/virt-resize.pod:101
22259 "(This example is a virtual machine with an 8 GB disk which we would like to "
22260 "expand up to 10 GB)."
22264 #: ../resize/virt-resize.pod:104
22265 msgid "4. Create output disk"
22269 #: ../resize/virt-resize.pod:106
22271 "Virt-resize cannot do in-place disk modifications. You have to have space "
22272 "to store the resized output disk."
22276 #: ../resize/virt-resize.pod:109
22278 "To store the resized disk image in a file, create a file of a suitable size:"
22282 #: ../resize/virt-resize.pod:112
22285 " # rm -f outdisk\n"
22286 " # truncate -s 10G outdisk\n"
22291 #: ../resize/virt-resize.pod:115
22292 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22296 #: ../resize/virt-resize.pod:117
22299 " # lvcreate -L 10G -n lv_name vg_name\n"
22304 #: ../resize/virt-resize.pod:119
22305 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22309 #: ../resize/virt-resize.pod:121
22312 " # virsh pool-list\n"
22313 " # virsh vol-create-as poolname newvol 10G\n"
22318 #: ../resize/virt-resize.pod:124
22323 #: ../resize/virt-resize.pod:126
22325 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22326 "file) and the output disk. The output disk is the one created in the "
22331 #: ../resize/virt-resize.pod:130
22334 " # virt-resize indisk outdisk\n"
22339 #: ../resize/virt-resize.pod:132
22341 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22342 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
22343 "larger, then an extra, empty partition is created at the end of the disk "
22344 "covering the extra space. If C<outdisk> is smaller, then it will give an "
22349 #: ../resize/virt-resize.pod:138
22351 "More realistically you'd want to expand existing partitions in the disk "
22352 "image by passing extra options (for the full list see the L</OPTIONS> "
22357 #: ../resize/virt-resize.pod:142
22359 "L</--expand> is the most useful option. It expands the named partition "
22360 "within the disk to fill any extra space:"
22364 #: ../resize/virt-resize.pod:145
22367 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22372 #: ../resize/virt-resize.pod:147
22374 "(In this case, an extra partition is I<not> created at the end of the disk, "
22375 "because there will be no unused space)."
22379 #: ../resize/virt-resize.pod:150
22381 "L</--resize> is the other commonly used option. The following would "
22382 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22383 "rest of the available space:"
22387 #: ../resize/virt-resize.pod:154
22390 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22391 " indisk outdisk\n"
22396 #: ../resize/virt-resize.pod:157
22398 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22399 "if virt-resize knows how, it will resize the contents, the equivalent of "
22400 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22401 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
22402 "filesystems, so you would have to online resize them after booting the guest."
22406 #: ../resize/virt-resize.pod:164
22407 msgid "Other options are covered below."
22411 #: ../resize/virt-resize.pod:166
22416 #: ../resize/virt-resize.pod:168
22417 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22421 #: ../resize/virt-resize.pod:170
22422 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22426 #: ../resize/virt-resize.pod:172
22429 #| " edit filename\n"
22432 " # virsh edit guestname\n"
22435 " edit назва_файла\n"
22439 #: ../resize/virt-resize.pod:174
22441 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22442 "html#elementsDisks>"
22446 #: ../resize/virt-resize.pod:177
22447 msgid "Then start up the domain with the new, resized disk:"
22451 #: ../resize/virt-resize.pod:179
22454 #| " ln-s target linkname\n"
22457 " # virsh start guestname\n"
22460 " ln-s призначення назва_посилання\n"
22464 #: ../resize/virt-resize.pod:181
22466 "and check that it still works. See also the L</NOTES> section below for "
22467 "additional information."
22471 #: ../resize/virt-resize.pod:184
22472 msgid "7. Resize LVs etc inside the guest"
22476 #: ../resize/virt-resize.pod:186
22477 msgid "(This can also be done offline using L<guestfish(1)>)"
22481 #: ../resize/virt-resize.pod:188
22483 "Once the guest has booted you should see the new space available, at least "
22484 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
22485 "may need to resize LVs inside PVs, and also resize filesystem types that "
22486 "virt-resize does not know how to expand."
22490 #: ../resize/virt-resize.pod:195
22491 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22495 #: ../resize/virt-resize.pod:197
22497 "Shrinking is somewhat more complex than expanding, and only an overview is "
22502 #: ../resize/virt-resize.pod:200
22504 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22505 "filesystems). The user has to shrink content before passing the disk image "
22506 "to virt-resize, and virt-resize will check that the content has been shrunk "
22511 #: ../resize/virt-resize.pod:205
22512 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22516 #: ../resize/virt-resize.pod:207
22518 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22519 "steps 3 and 4 above to allocate a new disk image."
22523 #: ../resize/virt-resize.pod:210
22525 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22529 #: ../resize/virt-resize.pod:213
22530 msgid "IGNORING OR DELETING PARTITIONS"
22534 #: ../resize/virt-resize.pod:215
22536 "virt-resize also gives a convenient way to ignore or delete partitions when "
22537 "copying from the input disk to the output disk. Ignoring a partition speeds "
22538 "up the copy where you don't care about the existing contents of a "
22539 "partition. Deleting a partition removes it completely, but note that it "
22540 "also renumbers any partitions after the one which is deleted, which can "
22541 "leave some guests unbootable."
22545 #: ../resize/virt-resize.pod:222
22546 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22550 #: ../resize/virt-resize.pod:224
22552 "If the input disk is in qcow2 format, then you may prefer that the output is "
22553 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
22554 "the fly. The output format is simply determined by the format of the empty "
22555 "output container that you provide. Thus to create qcow2 output, use:"
22559 #: ../resize/virt-resize.pod:230
22562 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22567 #: ../resize/virt-resize.pod:232
22568 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22572 #: ../resize/virt-resize.pod:234
22573 msgid "Similarly, to get non-sparse raw output use:"
22577 #: ../resize/virt-resize.pod:236
22580 #| " fallocate path len\n"
22583 " fallocate -l size outdisk\n"
22586 " fallocate шлях довжина\n"
22590 #: ../resize/virt-resize.pod:238
22592 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22593 "dev/zero of=outdisk bs=1M count=..>)"
22597 #: ../resize/virt-resize.pod:247
22598 msgid "Display help."
22602 #: ../resize/virt-resize.pod:249
22607 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22608 #: ../tools/virt-win-reg.pl:120
22610 msgstr "B<--debug>"
22613 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22614 msgid "Enable debugging messages."
22618 #: ../resize/virt-resize.pod:255
22620 #| msgid "B<--no-dest-paths>"
22621 msgid "B<--delete part>"
22622 msgstr "B<--no-dest-paths>"
22625 #: ../resize/virt-resize.pod:257
22627 "Delete the named partition. It would be more accurate to describe this as "
22628 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22629 "the original disk image is left intact."
22633 #: ../resize/virt-resize.pod:261
22635 "Note that when you delete a partition, then anything contained in the "
22636 "partition is also deleted. Furthermore, this causes any partitions that "
22637 "come after to be I<renumbered>, which can easily make your guest unbootable."
22641 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22642 #: ../resize/virt-resize.pod:454
22643 msgid "You can give this option multiple times."
22647 #: ../resize/virt-resize.pod:268
22649 #| msgid "B<--partition>"
22650 msgid "B<--expand part>"
22651 msgstr "B<--partition>"
22654 #: ../resize/virt-resize.pod:270
22656 "Expand the named partition so it uses up all extra space (space left over "
22657 "after any other resize changes that you request have been done)."
22661 #: ../resize/virt-resize.pod:273
22663 "If virt-resize knows how, it will expand the direct content of the "
22664 "partition. For example, if the partition is an LVM PV, it will expand the "
22665 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
22666 "content it doesn't know about alone."
22670 #: ../resize/virt-resize.pod:278
22671 msgid "Currently virt-resize can resize:"
22675 #: ../resize/virt-resize.pod:284
22676 msgid "ext2, ext3 and ext4 filesystems."
22680 #: ../resize/virt-resize.pod:288
22681 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22685 #: ../resize/virt-resize.pod:290
22687 "The filesystem must have been shut down consistently last time it was used. "
22688 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22689 "consistency check, so at the first boot after resizing Windows will check "
22694 #: ../resize/virt-resize.pod:297
22696 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
22697 "inside the PV, but see the I<--LV-expand> option. The user could also "
22698 "resize LVs as desired after boot."
22702 #: ../resize/virt-resize.pod:303
22703 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22707 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22708 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22712 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22713 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22714 #: ../tools/virt-win-reg.pl:142
22715 msgid "B<--format> raw"
22719 #: ../resize/virt-resize.pod:311
22721 "Specify the format of the input disk image. If this flag is not given then "
22722 "it is auto-detected from the image itself."
22726 #: ../resize/virt-resize.pod:317
22728 "Note that this option I<does not> affect the output format. See L</QCOW2 "
22729 "AND NON-SPARSE RAW FORMATS>."
22733 #: ../resize/virt-resize.pod:320
22735 #| msgid "B<--format>"
22736 msgid "B<--ignore part>"
22737 msgstr "B<--format>"
22740 #: ../resize/virt-resize.pod:322
22742 "Ignore the named partition. Effectively this means the partition is "
22743 "allocated on the destination disk, but the content is not copied across from "
22744 "the source disk. The content of the partition will be blank (all zero "
22749 #: ../resize/virt-resize.pod:329
22750 msgid "B<--LV-expand logvol>"
22754 #: ../resize/virt-resize.pod:331
22756 "This takes the logical volume and, as a final step, expands it to fill all "
22757 "the space available in its volume group. A typical usage, assuming a Linux "
22758 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22759 "lv_root> would be:"
22763 #: ../resize/virt-resize.pod:336
22766 " virt-resize indisk outdisk \\\n"
22767 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22772 #: ../resize/virt-resize.pod:339
22774 "This would first expand the partition (and PV), and then expand the root "
22775 "device to fill the extra space in the PV."
22779 #: ../resize/virt-resize.pod:342
22781 "The contents of the LV are also resized if virt-resize knows how to do "
22782 "that. You can stop virt-resize from trying to expand the content by using "
22783 "the option I<--no-expand-content>."
22787 #: ../resize/virt-resize.pod:346
22788 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22792 #: ../resize/virt-resize.pod:348
22794 "You can give this option multiple times, I<but> it doesn't make sense to do "
22795 "this unless the logical volumes you specify are all in different volume "
22800 #: ../resize/virt-resize.pod:352
22802 #| msgid "B<-h> | B<--human-readable>"
22803 msgid "B<--machine-readable>"
22804 msgstr "B<-h> | B<--human-readable>"
22807 #: ../resize/virt-resize.pod:354
22809 "This option is used to make the output more machine friendly when being "
22810 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
22814 #: ../resize/virt-resize.pod:360
22816 #| msgid "B<--debug>"
22817 msgid "B<--dryrun>"
22818 msgstr "B<--debug>"
22821 #: ../resize/virt-resize.pod:362
22822 msgid "Print a summary of what would be done, but don't do anything."
22826 #: ../resize/virt-resize.pod:364
22827 msgid "B<--no-copy-boot-loader>"
22831 #: ../resize/virt-resize.pod:366
22833 "By default, virt-resize copies over some sectors at the start of the disk "
22834 "(up to the beginning of the first partition). Commonly these sectors "
22835 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22836 "in order for the guest to boot correctly."
22840 #: ../resize/virt-resize.pod:371
22842 "If you specify this flag, then this initial copy is not done. You may need "
22843 "to reinstall the boot loader in this case."
22847 #: ../resize/virt-resize.pod:374
22849 #| msgid "B<--partition>"
22850 msgid "B<--no-extra-partition>"
22851 msgstr "B<--partition>"
22854 #: ../resize/virt-resize.pod:376
22856 "By default, virt-resize creates an extra partition if there is any extra, "
22857 "unused space after all resizing has happened. Use this option to prevent "
22858 "the extra partition from being created. If you do this then the extra space "
22859 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22860 "tool in the guest."
22864 #: ../resize/virt-resize.pod:382
22866 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22871 #: ../resize/virt-resize.pod:385
22873 #| msgid "B<--no-dest-paths>"
22874 msgid "B<--no-expand-content>"
22875 msgstr "B<--no-dest-paths>"
22878 #: ../resize/virt-resize.pod:387
22880 "By default, virt-resize will try to expand the direct contents of "
22881 "partitions, if it knows how (see I<--expand> option above)."
22885 #: ../resize/virt-resize.pod:390
22887 "If you give the I<--no-expand-content> option then virt-resize will not "
22892 #: ../resize/virt-resize.pod:393
22894 #| msgid "ntfsresize-size"
22895 msgid "B<--ntfsresize-force>"
22896 msgstr "ntfsresize-size"
22899 #: ../resize/virt-resize.pod:395
22901 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22902 "the NTFS disk is marked as needing a consistency check. You have to use "
22903 "this option if you want to resize a Windows guest multiple times without "
22904 "booting into Windows between each resize."
22908 #: ../resize/virt-resize.pod:401
22910 #| msgid "B<--format>"
22911 msgid "B<--output-format> raw"
22912 msgstr "B<--format>"
22915 #: ../resize/virt-resize.pod:403
22917 "Specify the format of the output disk image. If this flag is not given then "
22918 "it is auto-detected from the image itself."
22922 #: ../resize/virt-resize.pod:409
22924 "Note that this option I<does not create> the output format. This option "
22925 "just tells libguestfs what it is so it doesn't try to guess it. You still "
22926 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
22927 "SPARSE RAW FORMATS>."
22931 #: ../resize/virt-resize.pod:414
22936 #: ../resize/virt-resize.pod:416
22938 #| msgid "B<--live>"
22943 #: ../resize/virt-resize.pod:418
22944 msgid "Don't print the summary."
22948 #: ../resize/virt-resize.pod:420
22950 #| msgid "B<part_size>"
22951 msgid "B<--resize part=size>"
22952 msgstr "B<part_size>"
22955 #: ../resize/virt-resize.pod:422
22957 "Resize the named partition (expanding or shrinking it) so that it has the "
22962 #: ../resize/virt-resize.pod:425
22964 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22965 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22966 "size; or as a relative number or percentage. For example:"
22970 #: ../resize/virt-resize.pod:431
22973 #| " hexedit /dev/sda 1M\n"
22976 " --resize /dev/sda2=10G\n"
22979 " hexedit /dev/sda 1M\n"
22983 #: ../resize/virt-resize.pod:433
22986 #| " pvresize device\n"
22989 " --resize /dev/sda4=90%\n"
22992 " pvresize пристрій\n"
22996 #: ../resize/virt-resize.pod:435
22999 #| " hexedit /dev/sda 1M\n"
23002 " --resize /dev/sda2=+1G\n"
23005 " hexedit /dev/sda 1M\n"
23009 #: ../resize/virt-resize.pod:437
23012 #| " hexedit /dev/sda 1M\n"
23015 " --resize /dev/sda2=-200M\n"
23018 " hexedit /dev/sda 1M\n"
23022 #: ../resize/virt-resize.pod:439
23025 #| " hexedit /dev/sda 1M\n"
23028 " --resize /dev/sda1=+128K\n"
23031 " hexedit /dev/sda 1M\n"
23035 #: ../resize/virt-resize.pod:441
23038 #| " hexedit /dev/sda 1M\n"
23041 " --resize /dev/sda1=+10%\n"
23044 " hexedit /dev/sda 1M\n"
23048 #: ../resize/virt-resize.pod:443
23051 #| " hexedit /dev/sda 1M\n"
23054 " --resize /dev/sda1=-10%\n"
23057 " hexedit /dev/sda 1M\n"
23061 #: ../resize/virt-resize.pod:445
23063 "You can increase the size of any partition. Virt-resize will expand the "
23064 "direct content of the partition if it knows how (see I<--expand> below)."
23068 #: ../resize/virt-resize.pod:449
23070 "You can only I<decrease> the size of partitions that contain filesystems or "
23071 "PVs which have already been shrunk. Virt-resize will check this has been "
23072 "done before proceeding, or else will print an error (see also I<--resize-"
23077 #: ../resize/virt-resize.pod:456
23078 msgid "B<--resize-force part=size>"
23082 #: ../resize/virt-resize.pod:458
23084 "This is the same as I<--resize> except that it will let you decrease the "
23085 "size of any partition. Generally this means you will lose any data which "
23086 "was at the end of the partition you shrink, but you may not care about that "
23087 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23088 "as a swap partition)."
23092 #: ../resize/virt-resize.pod:464
23093 msgid "See also the I<--ignore> option."
23097 #: ../resize/virt-resize.pod:466
23099 #| msgid "B<--partition>"
23100 msgid "B<--shrink part>"
23101 msgstr "B<--partition>"
23104 #: ../resize/virt-resize.pod:468
23106 "Shrink the named partition until the overall disk image fits in the "
23107 "destination. The named partition B<must> contain a filesystem or PV which "
23108 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23109 "online tools). Virt-resize will check this and give an error if it has not "
23114 #: ../resize/virt-resize.pod:474
23116 "The amount by which the overall disk must be shrunk (after carrying out all "
23117 "other operations requested by the user) is called the \"deficit\". For "
23118 "example, a straight copy (assume no other operations) from a 5GB disk image "
23119 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
23120 "would give an error unless the user specified a partition to shrink and that "
23121 "partition had more than a gigabyte of free space."
23125 #: ../resize/virt-resize.pod:492
23126 msgid "MACHINE READABLE OUTPUT"
23130 #: ../resize/virt-resize.pod:494
23132 "The I<--machine-readable> option can be used to make the output more machine "
23133 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23138 #: ../resize/virt-resize.pod:498
23139 msgid "There are two ways to use this option."
23143 #: ../resize/virt-resize.pod:500
23145 "Firstly use the option on its own to query the capabilities of the virt-"
23146 "resize binary. Typical output looks like this:"
23150 #: ../resize/virt-resize.pod:503
23153 " $ virt-resize --machine-readable\n"
23155 " ntfsresize-force\n"
23163 #: ../resize/virt-resize.pod:510
23165 "A list of features is printed, one per line, and the program exits with "
23170 #: ../resize/virt-resize.pod:513
23172 "Secondly use the option in conjunction with other options to make the "
23173 "regular program output more machine friendly."
23177 #: ../resize/virt-resize.pod:516
23178 msgid "At the moment this means:"
23182 #: ../resize/virt-resize.pod:522
23184 "Progress bar messages can be parsed from stdout by looking for this regular "
23189 #: ../resize/virt-resize.pod:525
23192 " ^[0-9]+/[0-9]+$\n"
23197 #: ../resize/virt-resize.pod:529
23199 "The calling program should treat messages sent to stdout (except for "
23200 "progress bar messages) as status messages. They can be logged and/or "
23201 "displayed to the user."
23205 #: ../resize/virt-resize.pod:535
23207 "The calling program should treat messages sent to stderr as error messages. "
23208 "In addition, virt-resize exits with a non-zero status code if there was a "
23213 #: ../resize/virt-resize.pod:541
23215 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
23216 "readable> option and will return an error."
23220 #: ../resize/virt-resize.pod:546
23221 msgid "\"Partition 1 does not end on cylinder boundary.\""
23225 #: ../resize/virt-resize.pod:548
23227 "Virt-resize aligns partitions to multiples of 64 sectors. Usually this "
23228 "means the partitions will not be aligned to the ancient CHS geometry. "
23229 "However CHS geometry is meaningless for disks manufactured since the early "
23230 "1990s, and doubly so for virtual hard drives. Alignment of partitions to "
23231 "cylinders is not required by any modern operating system."
23235 #: ../resize/virt-resize.pod:555
23236 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23240 #: ../resize/virt-resize.pod:557
23242 "In Windows Vista and later versions, Microsoft switched to using a separate "
23243 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
23244 "and C</dev/sda2> is the main (C:) drive. We have not had any luck resizing "
23245 "the boot partition. Doing so seems to break the guest completely. However "
23246 "expanding the second partition (ie. C: drive) should work."
23250 #: ../resize/virt-resize.pod:564
23252 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23253 "NTFS partitions have been expanded. This is just a safety check and (unless "
23254 "it find errors) is nothing to worry about."
23258 #: ../resize/virt-resize.pod:568
23259 msgid "GUEST BOOT STUCK AT \"GRUB\""
23263 #: ../resize/virt-resize.pod:570
23265 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23266 "printing C<GRUB> on the console, try reinstalling grub. This sometimes "
23267 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23268 "although we think is to do with partition alignment."
23272 #: ../resize/virt-resize.pod:575
23275 " guestfish -i -a newdisk\n"
23276 " ><fs> cat /boot/grub/device.map\n"
23277 " # check the contents of this file are sensible or\n"
23278 " # edit the file if necessary\n"
23279 " ><fs> grub-install / /dev/vda\n"
23285 #: ../resize/virt-resize.pod:582
23287 "For more flexible guest reconfiguration, including if you need to specify "
23288 "other parameters to grub-install, use L<virt-rescue(1)>."
23292 #: ../resize/virt-resize.pod:585
23293 msgid "ALTERNATIVE TOOLS"
23297 #: ../resize/virt-resize.pod:587
23299 "There are several proprietary tools for resizing partitions. We won't "
23300 "mention any here."
23304 #: ../resize/virt-resize.pod:590
23306 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23307 "operations on disk images. They can resize and move partitions, but I don't "
23308 "think they can do anything with the contents, and they certainly don't "
23313 #: ../resize/virt-resize.pod:595
23315 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23316 "but at a much lower level. You will probably end up hand-calculating sector "
23317 "offsets, which is something that virt-resize was designed to avoid. If you "
23318 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23323 #: ../resize/virt-resize.pod:615
23325 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23326 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23327 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23328 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
23332 #: ../ruby/examples/guestfs-ruby.pod:5
23333 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23337 #: ../ruby/examples/guestfs-ruby.pod:9
23340 " require 'guestfs'\n"
23341 " g = Guestfs::Guestfs.new()\n"
23342 " g.add_drive_opts(\"disk.img\",\n"
23343 " :readonly => 1, :format => \"raw\")\n"
23349 #: ../ruby/examples/guestfs-ruby.pod:17
23351 "This manual page documents how to call libguestfs from the Ruby programming "
23352 "language. This page just documents the differences from the C API and gives "
23353 "some examples. If you are not familiar with using libguestfs, you also need "
23354 "to read L<guestfs(3)>."
23358 #: ../ruby/examples/guestfs-ruby.pod:24
23360 "Errors from libguestfs functions are mapped into the C<Error> exception. "
23361 "This has a single parameter which is the error message (a string)."
23365 #: ../ruby/examples/guestfs-ruby.pod:38
23368 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23369 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23370 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23372 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23373 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
23374 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23376 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23377 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23378 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23381 #: ../src/guestfs-actions.pod:1
23382 msgid "guestfs_add_cdrom"
23386 #: ../src/guestfs-actions.pod:3
23390 " guestfs_add_cdrom (guestfs_h *g,\n"
23391 " const char *filename);\n"
23396 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
23397 #: ../src/guestfs-actions.pod:270
23399 "I<This function is deprecated.> In new code, use the L</"
23400 "guestfs_add_drive_opts> call instead."
23404 #: ../src/guestfs-actions.pod:24
23406 "This call checks for the existence of C<filename>. This stops you from "
23407 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23408 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
23413 #: ../src/guestfs-actions.pod:31
23415 "If you just want to add an ISO file (often you use this as an efficient way "
23416 "to transfer large files into the guest), then you should probably use "
23417 "C<guestfs_add_drive_ro> instead."
23421 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
23422 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23423 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
23424 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23425 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23426 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23427 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23428 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23429 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23430 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23431 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23432 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23433 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23434 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
23435 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
23436 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
23437 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
23438 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1520
23439 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
23440 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
23441 #: ../src/guestfs-actions.pod:2368 ../src/guestfs-actions.pod:2512
23442 #: ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:2608
23443 #: ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:3667
23444 #: ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3881
23445 #: ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:3908
23446 #: ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:3937
23447 #: ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4045
23448 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4082
23449 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:4128
23450 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4182
23451 #: ../src/guestfs-actions.pod:4201 ../src/guestfs-actions.pod:4236
23452 #: ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4284
23453 #: ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4313
23454 #: ../src/guestfs-actions.pod:4328 ../src/guestfs-actions.pod:4345
23455 #: ../src/guestfs-actions.pod:4438 ../src/guestfs-actions.pod:4458
23456 #: ../src/guestfs-actions.pod:4471 ../src/guestfs-actions.pod:4522
23457 #: ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4558
23458 #: ../src/guestfs-actions.pod:4574 ../src/guestfs-actions.pod:4588
23459 #: ../src/guestfs-actions.pod:4602 ../src/guestfs-actions.pod:4619
23460 #: ../src/guestfs-actions.pod:4634 ../src/guestfs-actions.pod:4661
23461 #: ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4797
23462 #: ../src/guestfs-actions.pod:4828 ../src/guestfs-actions.pod:4847
23463 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4878
23464 #: ../src/guestfs-actions.pod:4895 ../src/guestfs-actions.pod:4908
23465 #: ../src/guestfs-actions.pod:4923 ../src/guestfs-actions.pod:4938
23466 #: ../src/guestfs-actions.pod:4980 ../src/guestfs-actions.pod:5006
23467 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5065
23468 #: ../src/guestfs-actions.pod:5079 ../src/guestfs-actions.pod:5096
23469 #: ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5198
23470 #: ../src/guestfs-actions.pod:5245 ../src/guestfs-actions.pod:5288
23471 #: ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5333
23472 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5491
23473 #: ../src/guestfs-actions.pod:5548 ../src/guestfs-actions.pod:5570
23474 #: ../src/guestfs-actions.pod:5588 ../src/guestfs-actions.pod:5620
23475 #: ../src/guestfs-actions.pod:5686 ../src/guestfs-actions.pod:5703
23476 #: ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:5730
23477 #: ../src/guestfs-actions.pod:6019 ../src/guestfs-actions.pod:6038
23478 #: ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071
23479 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097
23480 #: ../src/guestfs-actions.pod:6109 ../src/guestfs-actions.pod:6123
23481 #: ../src/guestfs-actions.pod:6139 ../src/guestfs-actions.pod:6160
23482 #: ../src/guestfs-actions.pod:6179 ../src/guestfs-actions.pod:6198
23483 #: ../src/guestfs-actions.pod:6228 ../src/guestfs-actions.pod:6246
23484 #: ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6287
23485 #: ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6327
23486 #: ../src/guestfs-actions.pod:6346 ../src/guestfs-actions.pod:6363
23487 #: ../src/guestfs-actions.pod:6382 ../src/guestfs-actions.pod:6410
23488 #: ../src/guestfs-actions.pod:6434 ../src/guestfs-actions.pod:6453
23489 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6496
23490 #: ../src/guestfs-actions.pod:6511 ../src/guestfs-actions.pod:6530
23491 #: ../src/guestfs-actions.pod:6574 ../src/guestfs-actions.pod:6604
23492 #: ../src/guestfs-actions.pod:6637 ../src/guestfs-actions.pod:6752
23493 #: ../src/guestfs-actions.pod:6873 ../src/guestfs-actions.pod:6885
23494 #: ../src/guestfs-actions.pod:6898 ../src/guestfs-actions.pod:6911
23495 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946
23496 #: ../src/guestfs-actions.pod:6959 ../src/guestfs-actions.pod:6972
23497 #: ../src/guestfs-actions.pod:6987 ../src/guestfs-actions.pod:7046
23498 #: ../src/guestfs-actions.pod:7063 ../src/guestfs-actions.pod:7079
23499 #: ../src/guestfs-actions.pod:7095 ../src/guestfs-actions.pod:7112
23500 #: ../src/guestfs-actions.pod:7125 ../src/guestfs-actions.pod:7145
23501 #: ../src/guestfs-actions.pod:7181 ../src/guestfs-actions.pod:7195
23502 #: ../src/guestfs-actions.pod:7236 ../src/guestfs-actions.pod:7249
23503 #: ../src/guestfs-actions.pod:7267 ../src/guestfs-actions.pod:7301
23504 #: ../src/guestfs-actions.pod:7337 ../src/guestfs-actions.pod:7453
23505 #: ../src/guestfs-actions.pod:7468 ../src/guestfs-actions.pod:7482
23506 #: ../src/guestfs-actions.pod:7537 ../src/guestfs-actions.pod:7550
23507 #: ../src/guestfs-actions.pod:7595 ../src/guestfs-actions.pod:7635
23508 #: ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7711
23509 #: ../src/guestfs-actions.pod:7744 ../src/guestfs-actions.pod:7808
23510 #: ../src/guestfs-actions.pod:7831 ../src/guestfs-actions.pod:7860
23511 msgid "This function returns 0 on success or -1 on error."
23515 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23516 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
23517 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
23518 #: ../src/guestfs-actions.pod:3654 ../src/guestfs-actions.pod:3674
23519 #: ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:6248
23520 #: ../src/guestfs-actions.pod:6365 ../src/guestfs-actions.pod:6498
23521 #: ../src/guestfs-actions.pod:6989 ../src/guestfs-actions.pod:7114
23522 #: ../src/guestfs-actions.pod:7637
23523 msgid "(Added in 0.3)"
23527 #: ../src/guestfs-actions.pod:41
23528 msgid "guestfs_add_domain"
23532 #: ../src/guestfs-actions.pod:43
23536 " guestfs_add_domain (guestfs_h *g,\n"
23537 " const char *dom,\n"
23543 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23544 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2857
23545 #: ../src/guestfs-actions.pod:4673 ../src/guestfs-actions.pod:4992
23546 #: ../src/guestfs-actions.pod:5209
23548 "You may supply a list of optional arguments to this call. Use zero or more "
23549 "of the following pairs of parameters, and terminate the list with C<-1> on "
23550 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
23554 #: ../src/guestfs-actions.pod:53
23557 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23558 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23559 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23560 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23561 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23566 #: ../src/guestfs-actions.pod:59
23568 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
23569 "It works by connecting to libvirt, requesting the domain and domain XML from "
23570 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23575 #: ../src/guestfs-actions.pod:94
23577 "The other optional parameters are passed directly through to "
23578 "C<guestfs_add_drive_opts>."
23582 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23583 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23584 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23585 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
23586 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
23587 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
23588 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
23589 #: ../src/guestfs-actions.pod:2499 ../src/guestfs-actions.pod:2975
23590 #: ../src/guestfs-actions.pod:2993 ../src/guestfs-actions.pod:5168
23591 #: ../src/guestfs-actions.pod:5388 ../src/guestfs-actions.pod:5800
23592 #: ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:7222
23593 #: ../src/guestfs-actions.pod:7648 ../src/guestfs-actions.pod:7661
23594 #: ../src/guestfs-actions.pod:7674
23595 msgid "On error this function returns -1."
23599 #: ../src/guestfs-actions.pod:99
23600 msgid "(Added in 1.7.4)"
23604 #: ../src/guestfs-actions.pod:101
23605 msgid "guestfs_add_domain_va"
23609 #: ../src/guestfs-actions.pod:103
23613 " guestfs_add_domain_va (guestfs_h *g,\n"
23614 " const char *dom,\n"
23615 " va_list args);\n"
23620 #: ../src/guestfs-actions.pod:108
23621 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23625 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23626 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23627 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23628 #: ../src/guestfs-actions.pod:2941 ../src/guestfs-actions.pod:2953
23629 #: ../src/guestfs-actions.pod:4738 ../src/guestfs-actions.pod:4750
23630 #: ../src/guestfs-actions.pod:5020 ../src/guestfs-actions.pod:5032
23631 #: ../src/guestfs-actions.pod:5258 ../src/guestfs-actions.pod:5269
23632 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23633 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23636 #: ../src/guestfs-actions.pod:112
23637 msgid "guestfs_add_domain_argv"
23638 msgstr "guestfs_add_domain_argv"
23641 #: ../src/guestfs-actions.pod:114
23645 " guestfs_add_domain_argv (guestfs_h *g,\n"
23646 " const char *dom,\n"
23647 " const struct guestfs_add_domain_argv *optargs);\n"
23652 #: ../src/guestfs-actions.pod:119
23653 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23657 #: ../src/guestfs-actions.pod:123
23658 msgid "guestfs_add_drive"
23662 #: ../src/guestfs-actions.pod:125
23666 " guestfs_add_drive (guestfs_h *g,\n"
23667 " const char *filename);\n"
23672 #: ../src/guestfs-actions.pod:129
23674 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23675 "optional parameters, so the disk is added writable, with the format being "
23676 "detected automatically."
23680 #: ../src/guestfs-actions.pod:133
23682 "Automatic detection of the format opens you up to a potential security hole "
23683 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
23684 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
23685 "you should think about replacing calls to this function with calls to "
23686 "C<guestfs_add_drive_opts>, and specifying the format."
23690 #: ../src/guestfs-actions.pod:144
23691 msgid "guestfs_add_drive_opts"
23695 #: ../src/guestfs-actions.pod:146
23699 " guestfs_add_drive_opts (guestfs_h *g,\n"
23700 " const char *filename,\n"
23706 #: ../src/guestfs-actions.pod:156
23709 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23710 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23711 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23716 #: ../src/guestfs-actions.pod:185
23718 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
23719 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
23720 "Possible formats include C<raw> and C<qcow2>."
23724 #: ../src/guestfs-actions.pod:196
23726 "This rarely-used option lets you emulate the behaviour of the deprecated "
23727 "C<guestfs_add_drive_with_if> call (q.v.)"
23731 #: ../src/guestfs-actions.pod:203
23732 msgid "(Added in 1.5.23)"
23736 #: ../src/guestfs-actions.pod:205
23737 msgid "guestfs_add_drive_opts_va"
23741 #: ../src/guestfs-actions.pod:207
23745 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23746 " const char *filename,\n"
23747 " va_list args);\n"
23752 #: ../src/guestfs-actions.pod:212
23753 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23757 #: ../src/guestfs-actions.pod:216
23758 msgid "guestfs_add_drive_opts_argv"
23762 #: ../src/guestfs-actions.pod:218
23766 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23767 " const char *filename,\n"
23768 " const struct guestfs_add_drive_opts_argv *optargs);\n"
23773 #: ../src/guestfs-actions.pod:223
23774 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23778 #: ../src/guestfs-actions.pod:227
23779 msgid "guestfs_add_drive_ro"
23783 #: ../src/guestfs-actions.pod:229
23787 " guestfs_add_drive_ro (guestfs_h *g,\n"
23788 " const char *filename);\n"
23793 #: ../src/guestfs-actions.pod:233
23795 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23796 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23797 "disk is added read-only, with the format being detected automatically."
23801 #: ../src/guestfs-actions.pod:240
23802 msgid "(Added in 1.0.38)"
23806 #: ../src/guestfs-actions.pod:242
23807 msgid "guestfs_add_drive_ro_with_if"
23811 #: ../src/guestfs-actions.pod:244
23815 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23816 " const char *filename,\n"
23817 " const char *iface);\n"
23822 #: ../src/guestfs-actions.pod:256
23824 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23825 "QEMU interface emulation to use at run time."
23829 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23830 #: ../src/guestfs-actions.pod:2458
23831 msgid "(Added in 1.0.84)"
23835 #: ../src/guestfs-actions.pod:263
23836 msgid "guestfs_add_drive_with_if"
23840 #: ../src/guestfs-actions.pod:265
23844 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23845 " const char *filename,\n"
23846 " const char *iface);\n"
23851 #: ../src/guestfs-actions.pod:277
23853 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23854 "QEMU interface emulation to use at run time."
23858 #: ../src/guestfs-actions.pod:284
23859 msgid "guestfs_aug_clear"
23863 #: ../src/guestfs-actions.pod:286
23867 " guestfs_aug_clear (guestfs_h *g,\n"
23868 " const char *augpath);\n"
23873 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
23874 msgid "(Added in 1.3.4)"
23878 #: ../src/guestfs-actions.pod:297
23879 msgid "guestfs_aug_close"
23883 #: ../src/guestfs-actions.pod:299
23887 " guestfs_aug_close (guestfs_h *g);\n"
23892 #: ../src/guestfs-actions.pod:302
23894 "Close the current Augeas handle and free up any resources used by it. After "
23895 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23896 "any other Augeas functions."
23900 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23901 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23902 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
23903 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
23904 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
23905 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
23906 #: ../src/guestfs-actions.pod:5877
23907 msgid "(Added in 0.7)"
23911 #: ../src/guestfs-actions.pod:311
23912 msgid "guestfs_aug_defnode"
23916 #: ../src/guestfs-actions.pod:313
23919 " struct guestfs_int_bool *\n"
23920 " guestfs_aug_defnode (guestfs_h *g,\n"
23921 " const char *name,\n"
23922 " const char *expr,\n"
23923 " const char *val);\n"
23928 #: ../src/guestfs-actions.pod:322
23930 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23931 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
23932 "containing that single node."
23936 #: ../src/guestfs-actions.pod:330
23938 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23939 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
23943 #: ../src/guestfs-actions.pod:336
23944 msgid "guestfs_aug_defvar"
23948 #: ../src/guestfs-actions.pod:338
23952 " guestfs_aug_defvar (guestfs_h *g,\n"
23953 " const char *name,\n"
23954 " const char *expr);\n"
23959 #: ../src/guestfs-actions.pod:354
23960 msgid "guestfs_aug_get"
23964 #: ../src/guestfs-actions.pod:356
23968 " guestfs_aug_get (guestfs_h *g,\n"
23969 " const char *augpath);\n"
23974 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
23975 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
23976 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
23977 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
23978 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
23979 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
23980 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
23981 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2014
23982 #: ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2209
23983 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2627
23984 #: ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:2825
23985 #: ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:3058
23986 #: ../src/guestfs-actions.pod:3086 ../src/guestfs-actions.pod:3107
23987 #: ../src/guestfs-actions.pod:3141 ../src/guestfs-actions.pod:3200
23988 #: ../src/guestfs-actions.pod:3220 ../src/guestfs-actions.pod:3240
23989 #: ../src/guestfs-actions.pod:3867 ../src/guestfs-actions.pod:4220
23990 #: ../src/guestfs-actions.pod:4390 ../src/guestfs-actions.pod:4500
23991 #: ../src/guestfs-actions.pod:5406 ../src/guestfs-actions.pod:5605
23992 #: ../src/guestfs-actions.pod:5775 ../src/guestfs-actions.pod:5953
23993 #: ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6658
23994 #: ../src/guestfs-actions.pod:6674 ../src/guestfs-actions.pod:6698
23995 #: ../src/guestfs-actions.pod:6722 ../src/guestfs-actions.pod:7396
23996 #: ../src/guestfs-actions.pod:7415 ../src/guestfs-actions.pod:7433
23997 #: ../src/guestfs-actions.pod:7607 ../src/guestfs-actions.pod:7924
23999 "This function returns a string, or NULL on error. I<The caller must free "
24000 "the returned string after use>."
24004 #: ../src/guestfs-actions.pod:368
24005 msgid "guestfs_aug_init"
24009 #: ../src/guestfs-actions.pod:370
24013 " guestfs_aug_init (guestfs_h *g,\n"
24014 " const char *root,\n"
24020 #: ../src/guestfs-actions.pod:379
24021 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24025 #: ../src/guestfs-actions.pod:404
24027 "This option is only useful when debugging Augeas lenses. Use of this option "
24028 "may require additional memory for the libguestfs appliance. You may need to "
24029 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24030 "C<guestfs_set_memsize>."
24034 #: ../src/guestfs-actions.pod:419
24035 msgid "Do not load the tree in C<guestfs_aug_init>."
24039 #: ../src/guestfs-actions.pod:423
24040 msgid "To close the handle, you can call C<guestfs_aug_close>."
24044 #: ../src/guestfs-actions.pod:431
24045 msgid "guestfs_aug_insert"
24049 #: ../src/guestfs-actions.pod:433
24053 " guestfs_aug_insert (guestfs_h *g,\n"
24054 " const char *augpath,\n"
24055 " const char *label,\n"
24061 #: ../src/guestfs-actions.pod:451
24062 msgid "guestfs_aug_load"
24066 #: ../src/guestfs-actions.pod:453
24070 " guestfs_aug_load (guestfs_h *g);\n"
24075 #: ../src/guestfs-actions.pod:465
24076 msgid "guestfs_aug_ls"
24080 #: ../src/guestfs-actions.pod:467
24084 " guestfs_aug_ls (guestfs_h *g,\n"
24085 " const char *augpath);\n"
24090 #: ../src/guestfs-actions.pod:471
24092 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24093 "sorting the resulting nodes into alphabetical order."
24097 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
24098 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
24099 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
24100 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
24101 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
24102 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
24103 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:2405
24104 #: ../src/guestfs-actions.pod:2476 ../src/guestfs-actions.pod:2525
24105 #: ../src/guestfs-actions.pod:2786 ../src/guestfs-actions.pod:3160
24106 #: ../src/guestfs-actions.pod:3436 ../src/guestfs-actions.pod:3750
24107 #: ../src/guestfs-actions.pod:3767 ../src/guestfs-actions.pod:3787
24108 #: ../src/guestfs-actions.pod:3849 ../src/guestfs-actions.pod:3954
24109 #: ../src/guestfs-actions.pod:4362 ../src/guestfs-actions.pod:5129
24110 #: ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:5873
24111 #: ../src/guestfs-actions.pod:5987 ../src/guestfs-actions.pod:6738
24112 #: ../src/guestfs-actions.pod:6799 ../src/guestfs-actions.pod:6854
24113 #: ../src/guestfs-actions.pod:7000 ../src/guestfs-actions.pod:7024
24114 #: ../src/guestfs-actions.pod:7500 ../src/guestfs-actions.pod:7520
24115 #: ../src/guestfs-actions.pod:7567 ../src/guestfs-actions.pod:7761
24116 #: ../src/guestfs-actions.pod:7780 ../src/guestfs-actions.pod:7874
24117 #: ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7939
24118 #: ../src/guestfs-actions.pod:7958
24120 "This function returns a NULL-terminated array of strings (like L<environ(3)"
24121 ">), or NULL if there was an error. I<The caller must free the strings and "
24122 "the array after use>."
24126 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
24127 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
24128 #: ../src/guestfs-actions.pod:3514 ../src/guestfs-actions.pod:3545
24129 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4253
24130 #: ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4473
24131 #: ../src/guestfs-actions.pod:4636 ../src/guestfs-actions.pod:5133
24132 #: ../src/guestfs-actions.pod:5688 ../src/guestfs-actions.pod:6085
24133 #: ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6111
24134 #: ../src/guestfs-actions.pod:6579 ../src/guestfs-actions.pod:7238
24135 #: ../src/guestfs-actions.pod:7251 ../src/guestfs-actions.pod:7484
24136 #: ../src/guestfs-actions.pod:7749
24137 msgid "(Added in 0.8)"
24141 #: ../src/guestfs-actions.pod:480
24142 msgid "guestfs_aug_match"
24146 #: ../src/guestfs-actions.pod:482
24150 " guestfs_aug_match (guestfs_h *g,\n"
24151 " const char *augpath);\n"
24156 #: ../src/guestfs-actions.pod:496
24157 msgid "guestfs_aug_mv"
24161 #: ../src/guestfs-actions.pod:498
24165 " guestfs_aug_mv (guestfs_h *g,\n"
24166 " const char *src,\n"
24167 " const char *dest);\n"
24172 #: ../src/guestfs-actions.pod:510
24173 msgid "guestfs_aug_rm"
24177 #: ../src/guestfs-actions.pod:512
24181 " guestfs_aug_rm (guestfs_h *g,\n"
24182 " const char *augpath);\n"
24187 #: ../src/guestfs-actions.pod:524
24188 msgid "guestfs_aug_save"
24192 #: ../src/guestfs-actions.pod:526
24196 " guestfs_aug_save (guestfs_h *g);\n"
24201 #: ../src/guestfs-actions.pod:531
24203 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
24208 #: ../src/guestfs-actions.pod:538
24209 msgid "guestfs_aug_set"
24213 #: ../src/guestfs-actions.pod:540
24217 " guestfs_aug_set (guestfs_h *g,\n"
24218 " const char *augpath,\n"
24219 " const char *val);\n"
24224 #: ../src/guestfs-actions.pod:547
24226 "In the Augeas API, it is possible to clear a node by setting the value to "
24227 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
24228 "this call. Instead you must use the C<guestfs_aug_clear> call."
24232 #: ../src/guestfs-actions.pod:556
24233 msgid "guestfs_available"
24237 #: ../src/guestfs-actions.pod:558
24241 " guestfs_available (guestfs_h *g,\n"
24242 " char *const *groups);\n"
24247 #: ../src/guestfs-actions.pod:566
24249 "The libguestfs groups, and the functions that those groups correspond to, "
24250 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
24251 "runtime by calling C<guestfs_available_all_groups>."
24255 #: ../src/guestfs-actions.pod:590
24256 msgid "You must call C<guestfs_launch> before calling this function."
24260 #: ../src/guestfs-actions.pod:612
24262 "This call was added in version C<1.0.80>. In previous versions of "
24263 "libguestfs all you could do would be to speculatively execute a command to "
24264 "find out if the daemon implemented it. See also C<guestfs_version>."
24268 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
24269 msgid "(Added in 1.0.80)"
24273 #: ../src/guestfs-actions.pod:623
24274 msgid "guestfs_available_all_groups"
24278 #: ../src/guestfs-actions.pod:625
24282 " guestfs_available_all_groups (guestfs_h *g);\n"
24287 #: ../src/guestfs-actions.pod:628
24289 "This command returns a list of all optional groups that this daemon knows "
24290 "about. Note this returns both supported and unsupported groups. To find "
24291 "out which ones the daemon can actually support you have to call "
24292 "C<guestfs_available> on each member of the returned list."
24296 #: ../src/guestfs-actions.pod:634
24297 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24301 #: ../src/guestfs-actions.pod:640
24302 msgid "(Added in 1.3.15)"
24306 #: ../src/guestfs-actions.pod:642
24307 msgid "guestfs_base64_in"
24311 #: ../src/guestfs-actions.pod:644
24315 " guestfs_base64_in (guestfs_h *g,\n"
24316 " const char *base64file,\n"
24317 " const char *filename);\n"
24322 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24323 msgid "(Added in 1.3.5)"
24327 #: ../src/guestfs-actions.pod:656
24328 msgid "guestfs_base64_out"
24332 #: ../src/guestfs-actions.pod:658
24336 " guestfs_base64_out (guestfs_h *g,\n"
24337 " const char *filename,\n"
24338 " const char *base64file);\n"
24343 #: ../src/guestfs-actions.pod:670
24344 msgid "guestfs_blockdev_flushbufs"
24348 #: ../src/guestfs-actions.pod:672
24352 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24353 " const char *device);\n"
24358 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
24359 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
24360 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
24361 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24362 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24363 msgid "(Added in 0.9.3)"
24367 #: ../src/guestfs-actions.pod:685
24368 msgid "guestfs_blockdev_getbsz"
24372 #: ../src/guestfs-actions.pod:687
24376 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24377 " const char *device);\n"
24382 #: ../src/guestfs-actions.pod:702
24383 msgid "guestfs_blockdev_getro"
24387 #: ../src/guestfs-actions.pod:704
24391 " guestfs_blockdev_getro (guestfs_h *g,\n"
24392 " const char *device);\n"
24397 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
24398 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
24399 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
24400 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
24401 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
24402 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3257
24403 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3291
24404 #: ../src/guestfs-actions.pod:3453 ../src/guestfs-actions.pod:3467
24405 #: ../src/guestfs-actions.pod:3482 ../src/guestfs-actions.pod:3496
24406 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3527
24407 #: ../src/guestfs-actions.pod:3543 ../src/guestfs-actions.pod:3557
24408 #: ../src/guestfs-actions.pod:3570 ../src/guestfs-actions.pod:3584
24409 #: ../src/guestfs-actions.pod:3599 ../src/guestfs-actions.pod:3614
24410 #: ../src/guestfs-actions.pod:3627 ../src/guestfs-actions.pod:3641
24411 #: ../src/guestfs-actions.pod:5370
24412 msgid "This function returns a C truth value on success or -1 on error."
24416 #: ../src/guestfs-actions.pod:717
24417 msgid "guestfs_blockdev_getsize64"
24421 #: ../src/guestfs-actions.pod:719
24425 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24426 " const char *device);\n"
24431 #: ../src/guestfs-actions.pod:725
24432 msgid "See also C<guestfs_blockdev_getsz>."
24436 #: ../src/guestfs-actions.pod:733
24437 msgid "guestfs_blockdev_getss"
24441 #: ../src/guestfs-actions.pod:735
24445 " guestfs_blockdev_getss (guestfs_h *g,\n"
24446 " const char *device);\n"
24451 #: ../src/guestfs-actions.pod:742
24453 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24458 #: ../src/guestfs-actions.pod:751
24459 msgid "guestfs_blockdev_getsz"
24463 #: ../src/guestfs-actions.pod:753
24467 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24468 " const char *device);\n"
24473 #: ../src/guestfs-actions.pod:760
24475 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24476 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24480 #: ../src/guestfs-actions.pod:770
24481 msgid "guestfs_blockdev_rereadpt"
24485 #: ../src/guestfs-actions.pod:772
24489 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24490 " const char *device);\n"
24495 #: ../src/guestfs-actions.pod:784
24496 msgid "guestfs_blockdev_setbsz"
24500 #: ../src/guestfs-actions.pod:786
24504 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24505 " const char *device,\n"
24506 " int blocksize);\n"
24511 #: ../src/guestfs-actions.pod:802
24512 msgid "guestfs_blockdev_setro"
24516 #: ../src/guestfs-actions.pod:804
24520 " guestfs_blockdev_setro (guestfs_h *g,\n"
24521 " const char *device);\n"
24526 #: ../src/guestfs-actions.pod:816
24527 msgid "guestfs_blockdev_setrw"
24531 #: ../src/guestfs-actions.pod:818
24535 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24536 " const char *device);\n"
24541 #: ../src/guestfs-actions.pod:830
24542 msgid "guestfs_btrfs_filesystem_resize"
24546 #: ../src/guestfs-actions.pod:832
24550 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24551 " const char *mountpoint,\n"
24557 #: ../src/guestfs-actions.pod:842
24560 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24565 #: ../src/guestfs-actions.pod:865
24566 msgid "(Added in 1.11.17)"
24570 #: ../src/guestfs-actions.pod:867
24571 msgid "guestfs_btrfs_filesystem_resize_va"
24575 #: ../src/guestfs-actions.pod:869
24579 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24580 " const char *mountpoint,\n"
24581 " va_list args);\n"
24586 #: ../src/guestfs-actions.pod:874
24587 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24591 #: ../src/guestfs-actions.pod:878
24592 msgid "guestfs_btrfs_filesystem_resize_argv"
24596 #: ../src/guestfs-actions.pod:880
24600 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24601 " const char *mountpoint,\n"
24602 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24607 #: ../src/guestfs-actions.pod:885
24608 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24612 #: ../src/guestfs-actions.pod:889
24613 msgid "guestfs_case_sensitive_path"
24617 #: ../src/guestfs-actions.pod:891
24621 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24622 " const char *path);\n"
24627 #: ../src/guestfs-actions.pod:917
24629 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
24630 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24631 "how the directories were originally created under Windows)."
24635 #: ../src/guestfs-actions.pod:925
24636 msgid "See also C<guestfs_realpath>."
24640 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7418
24641 msgid "(Added in 1.0.75)"
24645 #: ../src/guestfs-actions.pod:932
24646 msgid "guestfs_cat"
24650 #: ../src/guestfs-actions.pod:934
24654 " guestfs_cat (guestfs_h *g,\n"
24655 " const char *path);\n"
24660 #: ../src/guestfs-actions.pod:940
24662 "Note that this function cannot correctly handle binary files (specifically, "
24663 "files containing C<\\0> character which is treated as end of string). For "
24664 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24665 "functions which have a more complex interface."
24669 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3771
24670 #: ../src/guestfs-actions.pod:3853 ../src/guestfs-actions.pod:3870
24671 #: ../src/guestfs-actions.pod:3958 ../src/guestfs-actions.pod:4366
24672 #: ../src/guestfs-actions.pod:4380 ../src/guestfs-actions.pod:5751
24673 #: ../src/guestfs-actions.pod:5765 ../src/guestfs-actions.pod:7571
24674 #: ../src/guestfs-actions.pod:7585
24675 msgid "(Added in 0.4)"
24679 #: ../src/guestfs-actions.pod:953
24680 msgid "guestfs_checksum"
24684 #: ../src/guestfs-actions.pod:955
24688 " guestfs_checksum (guestfs_h *g,\n"
24689 " const char *csumtype,\n"
24690 " const char *path);\n"
24695 #: ../src/guestfs-actions.pod:1001
24696 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24700 #: ../src/guestfs-actions.pod:1003
24701 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24705 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
24706 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3469
24707 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3559
24708 #: ../src/guestfs-actions.pod:3586 ../src/guestfs-actions.pod:7274
24709 msgid "(Added in 1.0.2)"
24713 #: ../src/guestfs-actions.pod:1010
24714 msgid "guestfs_checksum_device"
24718 #: ../src/guestfs-actions.pod:1012
24722 " guestfs_checksum_device (guestfs_h *g,\n"
24723 " const char *csumtype,\n"
24724 " const char *device);\n"
24729 #: ../src/guestfs-actions.pod:1017
24731 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24732 "device named C<device>. For the types of checksums supported see the "
24733 "C<guestfs_checksum> command."
24737 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5200
24738 #: ../src/guestfs-actions.pod:5335 ../src/guestfs-actions.pod:5372
24739 #: ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5572
24740 #: ../src/guestfs-actions.pod:7183 ../src/guestfs-actions.pod:7197
24741 #: ../src/guestfs-actions.pod:7597
24742 msgid "(Added in 1.3.2)"
24746 #: ../src/guestfs-actions.pod:1026
24747 msgid "guestfs_checksums_out"
24751 #: ../src/guestfs-actions.pod:1028
24755 " guestfs_checksums_out (guestfs_h *g,\n"
24756 " const char *csumtype,\n"
24757 " const char *directory,\n"
24758 " const char *sumsfile);\n"
24763 #: ../src/guestfs-actions.pod:1048
24764 msgid "(Added in 1.3.7)"
24768 #: ../src/guestfs-actions.pod:1050
24769 msgid "guestfs_chmod"
24773 #: ../src/guestfs-actions.pod:1052
24777 " guestfs_chmod (guestfs_h *g,\n"
24779 " const char *path);\n"
24784 #: ../src/guestfs-actions.pod:1070
24785 msgid "guestfs_chown"
24789 #: ../src/guestfs-actions.pod:1072
24793 " guestfs_chown (guestfs_h *g,\n"
24796 " const char *path);\n"
24801 #: ../src/guestfs-actions.pod:1088
24802 msgid "guestfs_command"
24806 #: ../src/guestfs-actions.pod:1090
24810 " guestfs_command (guestfs_h *g,\n"
24811 " char *const *arguments);\n"
24816 #: ../src/guestfs-actions.pod:1099
24818 "The single parameter is an argv-style list of arguments. The first element "
24819 "is the name of the program to run. Subsequent elements are parameters. The "
24820 "list must be non-empty (ie. must contain a program name). Note that the "
24821 "command runs directly, and is I<not> invoked via the shell (see "
24826 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24827 #: ../src/guestfs-actions.pod:1615
24828 msgid "(Added in 0.9.1)"
24832 #: ../src/guestfs-actions.pod:1132
24833 msgid "guestfs_command_lines"
24837 #: ../src/guestfs-actions.pod:1134
24841 " guestfs_command_lines (guestfs_h *g,\n"
24842 " char *const *arguments);\n"
24847 #: ../src/guestfs-actions.pod:1138
24849 "This is the same as C<guestfs_command>, but splits the result into a list of "
24854 #: ../src/guestfs-actions.pod:1141
24855 msgid "See also: C<guestfs_sh_lines>"
24859 #: ../src/guestfs-actions.pod:1152
24860 msgid "guestfs_config"
24864 #: ../src/guestfs-actions.pod:1154
24868 " guestfs_config (guestfs_h *g,\n"
24869 " const char *qemuparam,\n"
24870 " const char *qemuvalue);\n"
24875 #: ../src/guestfs-actions.pod:1172
24876 msgid "guestfs_copy_size"
24880 #: ../src/guestfs-actions.pod:1174
24884 " guestfs_copy_size (guestfs_h *g,\n"
24885 " const char *src,\n"
24886 " const char *dest,\n"
24887 " int64_t size);\n"
24892 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
24893 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
24894 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
24895 #: ../src/guestfs-actions.pod:3669 ../src/guestfs-actions.pod:7269
24896 #: ../src/guestfs-actions.pod:7303 ../src/guestfs-actions.pod:7810
24897 #: ../src/guestfs-actions.pod:7833
24899 "This long-running command can generate progress notification messages so "
24900 "that the caller can display a progress bar or indicator. To receive these "
24901 "messages, the caller must register a progress event callback. See L<guestfs"
24902 "(3)/GUESTFS_EVENT_PROGRESS>."
24906 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4393
24907 #: ../src/guestfs-actions.pod:5778 ../src/guestfs-actions.pod:7504
24908 #: ../src/guestfs-actions.pod:7524 ../src/guestfs-actions.pod:7610
24909 msgid "(Added in 1.0.87)"
24913 #: ../src/guestfs-actions.pod:1195
24918 #: ../src/guestfs-actions.pod:1197
24922 " guestfs_cp (guestfs_h *g,\n"
24923 " const char *src,\n"
24924 " const char *dest);\n"
24929 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
24930 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
24931 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5147
24932 #: ../src/guestfs-actions.pod:5622
24933 msgid "(Added in 1.0.18)"
24937 #: ../src/guestfs-actions.pod:1209
24938 msgid "guestfs_cp_a"
24942 #: ../src/guestfs-actions.pod:1211
24946 " guestfs_cp_a (guestfs_h *g,\n"
24947 " const char *src,\n"
24948 " const char *dest);\n"
24953 #: ../src/guestfs-actions.pod:1223
24958 #: ../src/guestfs-actions.pod:1225
24962 " guestfs_dd (guestfs_h *g,\n"
24963 " const char *src,\n"
24964 " const char *dest);\n"
24969 #: ../src/guestfs-actions.pod:1235
24971 "If the destination is a device, it must be as large or larger than the "
24972 "source file or device, otherwise the copy will fail. This command cannot do "
24973 "partial copies (see C<guestfs_copy_size>)."
24977 #: ../src/guestfs-actions.pod:1243
24982 #: ../src/guestfs-actions.pod:1245
24986 " guestfs_df (guestfs_h *g);\n"
24991 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
24993 "This command is mostly useful for interactive sessions. It is I<not> "
24994 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
24999 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
25000 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2388
25001 #: ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2480
25002 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:5047
25003 #: ../src/guestfs-actions.pod:7007 ../src/guestfs-actions.pod:7031
25004 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7663
25005 #: ../src/guestfs-actions.pod:7676
25006 msgid "(Added in 1.0.54)"
25010 #: ../src/guestfs-actions.pod:1259
25011 msgid "guestfs_df_h"
25015 #: ../src/guestfs-actions.pod:1261
25019 " guestfs_df_h (guestfs_h *g);\n"
25024 #: ../src/guestfs-actions.pod:1276
25025 msgid "guestfs_dmesg"
25029 #: ../src/guestfs-actions.pod:1278
25033 " guestfs_dmesg (guestfs_h *g);\n"
25038 #: ../src/guestfs-actions.pod:1285
25040 "Another way to get the same information is to enable verbose messages with "
25041 "C<guestfs_set_verbose> or by setting the environment variable "
25042 "C<LIBGUESTFS_DEBUG=1> before running the program."
25046 #: ../src/guestfs-actions.pod:1295
25047 msgid "guestfs_download"
25051 #: ../src/guestfs-actions.pod:1297
25055 " guestfs_download (guestfs_h *g,\n"
25056 " const char *remotefilename,\n"
25057 " const char *filename);\n"
25062 #: ../src/guestfs-actions.pod:1307
25063 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
25067 #: ../src/guestfs-actions.pod:1318
25068 msgid "guestfs_download_offset"
25072 #: ../src/guestfs-actions.pod:1320
25076 " guestfs_download_offset (guestfs_h *g,\n"
25077 " const char *remotefilename,\n"
25078 " const char *filename,\n"
25079 " int64_t offset,\n"
25080 " int64_t size);\n"
25085 #: ../src/guestfs-actions.pod:1333
25087 "Note that there is no limit on the amount of data that can be downloaded "
25088 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
25089 "full amount unless an error occurs."
25093 #: ../src/guestfs-actions.pod:1338
25094 msgid "See also C<guestfs_download>, C<guestfs_pread>."
25098 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7308
25099 msgid "(Added in 1.5.17)"
25103 #: ../src/guestfs-actions.pod:1349
25104 msgid "guestfs_drop_caches"
25108 #: ../src/guestfs-actions.pod:1351
25112 " guestfs_drop_caches (guestfs_h *g,\n"
25113 " int whattodrop);\n"
25118 #: ../src/guestfs-actions.pod:1369
25123 #: ../src/guestfs-actions.pod:1371
25127 " guestfs_du (guestfs_h *g,\n"
25128 " const char *path);\n"
25133 #: ../src/guestfs-actions.pod:1394
25134 msgid "guestfs_e2fsck_f"
25138 #: ../src/guestfs-actions.pod:1396
25142 " guestfs_e2fsck_f (guestfs_h *g,\n"
25143 " const char *device);\n"
25148 #: ../src/guestfs-actions.pod:1404
25150 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
25151 "Normally you should use C<guestfs_fsck>."
25155 #: ../src/guestfs-actions.pod:1409
25156 msgid "(Added in 1.0.29)"
25160 #: ../src/guestfs-actions.pod:1411
25161 msgid "guestfs_echo_daemon"
25165 #: ../src/guestfs-actions.pod:1413
25169 " guestfs_echo_daemon (guestfs_h *g,\n"
25170 " char *const *words);\n"
25175 #: ../src/guestfs-actions.pod:1422
25176 msgid "See also C<guestfs_ping_daemon>."
25180 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
25181 #: ../src/guestfs-actions.pod:6479
25182 msgid "(Added in 1.0.69)"
25186 #: ../src/guestfs-actions.pod:1429
25187 msgid "guestfs_egrep"
25191 #: ../src/guestfs-actions.pod:1431
25195 " guestfs_egrep (guestfs_h *g,\n"
25196 " const char *regex,\n"
25197 " const char *path);\n"
25202 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
25203 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
25204 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
25205 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2501
25206 #: ../src/guestfs-actions.pod:2514 ../src/guestfs-actions.pod:2529
25207 #: ../src/guestfs-actions.pod:2575 ../src/guestfs-actions.pod:2597
25208 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:3883
25209 #: ../src/guestfs-actions.pod:3897 ../src/guestfs-actions.pod:3910
25210 #: ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:4925
25211 #: ../src/guestfs-actions.pod:5956 ../src/guestfs-actions.pod:6005
25212 #: ../src/guestfs-actions.pod:6875 ../src/guestfs-actions.pod:6887
25213 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6913
25214 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948
25215 #: ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:6974
25216 #: ../src/guestfs-actions.pod:7768 ../src/guestfs-actions.pod:7787
25217 #: ../src/guestfs-actions.pod:7881 ../src/guestfs-actions.pod:7900
25218 #: ../src/guestfs-actions.pod:7946 ../src/guestfs-actions.pod:7965
25219 msgid "(Added in 1.0.66)"
25223 #: ../src/guestfs-actions.pod:1448
25224 msgid "guestfs_egrepi"
25228 #: ../src/guestfs-actions.pod:1450
25232 " guestfs_egrepi (guestfs_h *g,\n"
25233 " const char *regex,\n"
25234 " const char *path);\n"
25239 #: ../src/guestfs-actions.pod:1467
25240 msgid "guestfs_equal"
25244 #: ../src/guestfs-actions.pod:1469
25248 " guestfs_equal (guestfs_h *g,\n"
25249 " const char *file1,\n"
25250 " const char *file2);\n"
25255 #: ../src/guestfs-actions.pod:1483
25256 msgid "guestfs_exists"
25260 #: ../src/guestfs-actions.pod:1485
25264 " guestfs_exists (guestfs_h *g,\n"
25265 " const char *path);\n"
25270 #: ../src/guestfs-actions.pod:1492
25271 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
25275 #: ../src/guestfs-actions.pod:1498
25276 msgid "guestfs_fallocate"
25280 #: ../src/guestfs-actions.pod:1500
25284 " guestfs_fallocate (guestfs_h *g,\n"
25285 " const char *path,\n"
25291 #: ../src/guestfs-actions.pod:1505
25293 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
25298 #: ../src/guestfs-actions.pod:1524
25299 msgid "guestfs_fallocate64"
25303 #: ../src/guestfs-actions.pod:1526
25307 " guestfs_fallocate64 (guestfs_h *g,\n"
25308 " const char *path,\n"
25314 #: ../src/guestfs-actions.pod:1535
25316 "Note that this call allocates disk blocks for the file. To create a sparse "
25317 "file use C<guestfs_truncate_size> instead."
25321 #: ../src/guestfs-actions.pod:1538
25323 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25324 "oversight it only allowed 30 bit lengths to be specified, effectively "
25325 "limiting the maximum size of files created through that call to 1GB."
25329 #: ../src/guestfs-actions.pod:1549
25330 msgid "(Added in 1.3.17)"
25334 #: ../src/guestfs-actions.pod:1551
25335 msgid "guestfs_fgrep"
25339 #: ../src/guestfs-actions.pod:1553
25343 " guestfs_fgrep (guestfs_h *g,\n"
25344 " const char *pattern,\n"
25345 " const char *path);\n"
25350 #: ../src/guestfs-actions.pod:1570
25351 msgid "guestfs_fgrepi"
25355 #: ../src/guestfs-actions.pod:1572
25359 " guestfs_fgrepi (guestfs_h *g,\n"
25360 " const char *pattern,\n"
25361 " const char *path);\n"
25366 #: ../src/guestfs-actions.pod:1589
25367 msgid "guestfs_file"
25371 #: ../src/guestfs-actions.pod:1591
25375 " guestfs_file (guestfs_h *g,\n"
25376 " const char *path);\n"
25381 #: ../src/guestfs-actions.pod:1609
25383 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25384 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25388 #: ../src/guestfs-actions.pod:1617
25389 msgid "guestfs_file_architecture"
25393 #: ../src/guestfs-actions.pod:1619
25397 " guestfs_file_architecture (guestfs_h *g,\n"
25398 " const char *filename);\n"
25403 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
25404 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2630
25405 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2790
25406 #: ../src/guestfs-actions.pod:2977 ../src/guestfs-actions.pod:2995
25407 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3110
25408 #: ../src/guestfs-actions.pod:3203 ../src/guestfs-actions.pod:3440
25409 #: ../src/guestfs-actions.pod:3572
25410 msgid "(Added in 1.5.3)"
25414 #: ../src/guestfs-actions.pod:1729
25415 msgid "guestfs_filesize"
25419 #: ../src/guestfs-actions.pod:1731
25423 " guestfs_filesize (guestfs_h *g,\n"
25424 " const char *file);\n"
25429 #: ../src/guestfs-actions.pod:1737
25431 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25432 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
25433 "devices, use C<guestfs_blockdev_getsize64>."
25437 #: ../src/guestfs-actions.pod:1743
25438 msgid "(Added in 1.0.82)"
25442 #: ../src/guestfs-actions.pod:1745
25443 msgid "guestfs_fill"
25447 #: ../src/guestfs-actions.pod:1747
25451 " guestfs_fill (guestfs_h *g,\n"
25454 " const char *path);\n"
25459 #: ../src/guestfs-actions.pod:1757
25461 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25462 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
25463 "bytes use C<guestfs_fill_pattern>."
25467 #: ../src/guestfs-actions.pod:1769
25468 msgid "(Added in 1.0.79)"
25472 #: ../src/guestfs-actions.pod:1771
25473 msgid "guestfs_fill_pattern"
25477 #: ../src/guestfs-actions.pod:1773
25481 " guestfs_fill_pattern (guestfs_h *g,\n"
25482 " const char *pattern,\n"
25484 " const char *path);\n"
25489 #: ../src/guestfs-actions.pod:1779
25491 "This function is like C<guestfs_fill> except that it creates a new file of "
25492 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
25493 "pattern is truncated if necessary to ensure the length of the file is "
25494 "exactly C<len> bytes."
25498 #: ../src/guestfs-actions.pod:1791
25499 msgid "(Added in 1.3.12)"
25503 #: ../src/guestfs-actions.pod:1793
25504 msgid "guestfs_find"
25508 #: ../src/guestfs-actions.pod:1795
25512 " guestfs_find (guestfs_h *g,\n"
25513 " const char *directory);\n"
25518 #: ../src/guestfs-actions.pod:1811
25520 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25524 #: ../src/guestfs-actions.pod:1824
25525 msgid "See also C<guestfs_find0>."
25529 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4330
25530 #: ../src/guestfs-actions.pod:6040
25531 msgid "(Added in 1.0.27)"
25535 #: ../src/guestfs-actions.pod:1835
25536 msgid "guestfs_find0"
25540 #: ../src/guestfs-actions.pod:1837
25544 " guestfs_find0 (guestfs_h *g,\n"
25545 " const char *directory,\n"
25546 " const char *files);\n"
25551 #: ../src/guestfs-actions.pod:1846
25553 "This command works the same way as C<guestfs_find> with the following "
25558 #: ../src/guestfs-actions.pod:1873
25559 msgid "(Added in 1.0.74)"
25563 #: ../src/guestfs-actions.pod:1875
25564 msgid "guestfs_findfs_label"
25568 #: ../src/guestfs-actions.pod:1877
25572 " guestfs_findfs_label (guestfs_h *g,\n"
25573 " const char *label);\n"
25578 #: ../src/guestfs-actions.pod:1885
25579 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25583 #: ../src/guestfs-actions.pod:1892
25584 msgid "guestfs_findfs_uuid"
25588 #: ../src/guestfs-actions.pod:1894
25592 " guestfs_findfs_uuid (guestfs_h *g,\n"
25593 " const char *uuid);\n"
25598 #: ../src/guestfs-actions.pod:1902
25599 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25603 #: ../src/guestfs-actions.pod:1909
25604 msgid "guestfs_fsck"
25608 #: ../src/guestfs-actions.pod:1911
25612 " guestfs_fsck (guestfs_h *g,\n"
25613 " const char *fstype,\n"
25614 " const char *device);\n"
25619 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7815
25620 msgid "(Added in 1.0.16)"
25624 #: ../src/guestfs-actions.pod:1948
25625 msgid "guestfs_get_append"
25629 #: ../src/guestfs-actions.pod:1950
25633 " guestfs_get_append (guestfs_h *g);\n"
25638 #: ../src/guestfs-actions.pod:1958
25640 "This function returns a string which may be NULL. There is no way to return "
25641 "an error from this function. The string is owned by the guest handle and "
25642 "must I<not> be freed."
25646 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5718
25647 #: ../src/guestfs-actions.pod:6200 ../src/guestfs-actions.pod:6642
25648 #: ../src/guestfs-actions.pod:6661 ../src/guestfs-actions.pod:6677
25649 #: ../src/guestfs-actions.pod:6701 ../src/guestfs-actions.pod:7455
25650 #: ../src/guestfs-actions.pod:7470 ../src/guestfs-actions.pod:7862
25651 msgid "(Added in 1.0.26)"
25655 #: ../src/guestfs-actions.pod:1964
25656 msgid "guestfs_get_attach_method"
25660 #: ../src/guestfs-actions.pod:1966
25664 " guestfs_get_attach_method (guestfs_h *g);\n"
25669 #: ../src/guestfs-actions.pod:1969
25670 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
25674 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6230
25675 msgid "(Added in 1.9.8)"
25679 #: ../src/guestfs-actions.pod:1976
25680 msgid "guestfs_get_autosync"
25684 #: ../src/guestfs-actions.pod:1978
25688 " guestfs_get_autosync (guestfs_h *g);\n"
25693 #: ../src/guestfs-actions.pod:1987
25694 msgid "guestfs_get_direct"
25698 #: ../src/guestfs-actions.pod:1989
25702 " guestfs_get_direct (guestfs_h *g);\n"
25707 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6271
25708 msgid "(Added in 1.0.72)"
25712 #: ../src/guestfs-actions.pod:1998
25713 msgid "guestfs_get_e2label"
25717 #: ../src/guestfs-actions.pod:2000
25721 " guestfs_get_e2label (guestfs_h *g,\n"
25722 " const char *device);\n"
25727 #: ../src/guestfs-actions.pod:2004
25729 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
25734 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
25735 #: ../src/guestfs-actions.pod:6289 ../src/guestfs-actions.pod:6308
25736 msgid "(Added in 1.0.15)"
25740 #: ../src/guestfs-actions.pod:2019
25741 msgid "guestfs_get_e2uuid"
25745 #: ../src/guestfs-actions.pod:2021
25749 " guestfs_get_e2uuid (guestfs_h *g,\n"
25750 " const char *device);\n"
25755 #: ../src/guestfs-actions.pod:2025
25757 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
25762 #: ../src/guestfs-actions.pod:2040
25763 msgid "guestfs_get_memsize"
25767 #: ../src/guestfs-actions.pod:2042
25771 " guestfs_get_memsize (guestfs_h *g);\n"
25776 #: ../src/guestfs-actions.pod:2048
25778 "If C<guestfs_set_memsize> was not called on this handle, and if "
25779 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25780 "value for memsize."
25784 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4621
25785 #: ../src/guestfs-actions.pod:4830 ../src/guestfs-actions.pod:4849
25786 #: ../src/guestfs-actions.pod:4868 ../src/guestfs-actions.pod:4880
25787 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4910
25788 #: ../src/guestfs-actions.pod:5943 ../src/guestfs-actions.pod:6329
25789 #: ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:7224
25790 msgid "(Added in 1.0.55)"
25794 #: ../src/guestfs-actions.pod:2059
25795 msgid "guestfs_get_network"
25799 #: ../src/guestfs-actions.pod:2061
25803 " guestfs_get_network (guestfs_h *g);\n"
25808 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6348
25809 msgid "(Added in 1.5.4)"
25813 #: ../src/guestfs-actions.pod:2070
25814 msgid "guestfs_get_path"
25818 #: ../src/guestfs-actions.pod:2072
25822 " guestfs_get_path (guestfs_h *g);\n"
25827 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
25829 "This function returns a string, or NULL on error. The string is owned by "
25830 "the guest handle and must I<not> be freed."
25834 #: ../src/guestfs-actions.pod:2085
25835 msgid "guestfs_get_pgroup"
25839 #: ../src/guestfs-actions.pod:2087
25843 " guestfs_get_pgroup (guestfs_h *g);\n"
25848 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6384
25849 #: ../src/guestfs-actions.pod:7716
25851 #| msgid "(Added in 1.5.1)"
25852 msgid "(Added in 1.11.18)"
25853 msgstr "(Додано у 1.5.1)"
25856 #: ../src/guestfs-actions.pod:2096
25857 msgid "guestfs_get_pid"
25861 #: ../src/guestfs-actions.pod:2098
25865 " guestfs_get_pid (guestfs_h *g);\n"
25870 #: ../src/guestfs-actions.pod:2108
25871 msgid "(Added in 1.0.56)"
25875 #: ../src/guestfs-actions.pod:2110
25876 msgid "guestfs_get_qemu"
25880 #: ../src/guestfs-actions.pod:2112
25884 " guestfs_get_qemu (guestfs_h *g);\n"
25889 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6412
25890 msgid "(Added in 1.0.6)"
25894 #: ../src/guestfs-actions.pod:2125
25895 msgid "guestfs_get_recovery_proc"
25899 #: ../src/guestfs-actions.pod:2127
25903 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25908 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3694
25909 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4428
25910 #: ../src/guestfs-actions.pod:4460 ../src/guestfs-actions.pod:5648
25911 #: ../src/guestfs-actions.pod:5991 ../src/guestfs-actions.pod:6436
25912 #: ../src/guestfs-actions.pod:7127 ../src/guestfs-actions.pod:7147
25913 #: ../src/guestfs-actions.pod:7339
25914 msgid "(Added in 1.0.77)"
25918 #: ../src/guestfs-actions.pod:2136
25919 msgid "guestfs_get_selinux"
25923 #: ../src/guestfs-actions.pod:2138
25927 " guestfs_get_selinux (guestfs_h *g);\n"
25932 #: ../src/guestfs-actions.pod:2141
25934 "This returns the current setting of the selinux flag which is passed to the "
25935 "appliance at boot time. See C<guestfs_set_selinux>."
25939 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
25940 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6513
25941 msgid "(Added in 1.0.67)"
25945 #: ../src/guestfs-actions.pod:2151
25946 msgid "guestfs_get_state"
25950 #: ../src/guestfs-actions.pod:2153
25954 " guestfs_get_state (guestfs_h *g);\n"
25959 #: ../src/guestfs-actions.pod:2165
25960 msgid "guestfs_get_trace"
25964 #: ../src/guestfs-actions.pod:2167
25968 " guestfs_get_trace (guestfs_h *g);\n"
25973 #: ../src/guestfs-actions.pod:2176
25974 msgid "guestfs_get_umask"
25978 #: ../src/guestfs-actions.pod:2178
25982 " guestfs_get_umask (guestfs_h *g);\n"
25987 #: ../src/guestfs-actions.pod:2181
25989 "Return the current umask. By default the umask is C<022> unless it has been "
25990 "set by calling C<guestfs_umask>."
25994 #: ../src/guestfs-actions.pod:2188
25995 msgid "guestfs_get_verbose"
25999 #: ../src/guestfs-actions.pod:2190
26003 " guestfs_get_verbose (guestfs_h *g);\n"
26008 #: ../src/guestfs-actions.pod:2199
26009 msgid "guestfs_getcon"
26013 #: ../src/guestfs-actions.pod:2201
26017 " guestfs_getcon (guestfs_h *g);\n"
26022 #: ../src/guestfs-actions.pod:2206
26024 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
26028 #: ../src/guestfs-actions.pod:2214
26029 msgid "guestfs_getxattr"
26033 #: ../src/guestfs-actions.pod:2216
26037 " guestfs_getxattr (guestfs_h *g,\n"
26038 " const char *path,\n"
26039 " const char *name,\n"
26040 " size_t *size_r);\n"
26045 #: ../src/guestfs-actions.pod:2222
26047 "Get a single extended attribute from file C<path> named C<name>. This call "
26048 "follows symlinks. If you want to lookup an extended attribute for the "
26049 "symlink itself, use C<guestfs_lgetxattr>."
26053 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3708
26055 "Normally it is better to get all extended attributes from a file in one go "
26056 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
26057 "implementations are buggy and do not provide a way to list out attributes. "
26058 "For these filesystems (notably ntfs-3g) you have to know the names of the "
26059 "extended attributes you want in advance and call this function."
26063 #: ../src/guestfs-actions.pod:2236
26064 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
26068 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2451
26069 #: ../src/guestfs-actions.pod:2925 ../src/guestfs-actions.pod:3720
26070 #: ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:5667
26071 #: ../src/guestfs-actions.pod:5848
26073 "This function returns a buffer, or NULL on error. The size of the returned "
26074 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
26079 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3724
26080 msgid "(Added in 1.7.24)"
26084 #: ../src/guestfs-actions.pod:2244
26085 msgid "guestfs_getxattrs"
26089 #: ../src/guestfs-actions.pod:2246
26092 " struct guestfs_xattr_list *\n"
26093 " guestfs_getxattrs (guestfs_h *g,\n"
26094 " const char *path);\n"
26099 #: ../src/guestfs-actions.pod:2256
26100 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
26104 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3736
26105 #: ../src/guestfs-actions.pod:4424
26107 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
26108 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
26112 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3740
26113 #: ../src/guestfs-actions.pod:3939 ../src/guestfs-actions.pod:3975
26114 #: ../src/guestfs-actions.pod:6021 ../src/guestfs-actions.pod:6532
26115 #: ../src/guestfs-actions.pod:7927
26116 msgid "(Added in 1.0.59)"
26120 #: ../src/guestfs-actions.pod:2264
26121 msgid "guestfs_glob_expand"
26125 #: ../src/guestfs-actions.pod:2266
26129 " guestfs_glob_expand (guestfs_h *g,\n"
26130 " const char *pattern);\n"
26135 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6725
26136 #: ../src/guestfs-actions.pod:6742
26137 msgid "(Added in 1.0.50)"
26141 #: ../src/guestfs-actions.pod:2287
26142 msgid "guestfs_grep"
26146 #: ../src/guestfs-actions.pod:2289
26150 " guestfs_grep (guestfs_h *g,\n"
26151 " const char *regex,\n"
26152 " const char *path);\n"
26157 #: ../src/guestfs-actions.pod:2306
26158 msgid "guestfs_grepi"
26162 #: ../src/guestfs-actions.pod:2308
26166 " guestfs_grepi (guestfs_h *g,\n"
26167 " const char *regex,\n"
26168 " const char *path);\n"
26173 #: ../src/guestfs-actions.pod:2325
26174 msgid "guestfs_grub_install"
26178 #: ../src/guestfs-actions.pod:2327
26182 " guestfs_grub_install (guestfs_h *g,\n"
26183 " const char *root,\n"
26184 " const char *device);\n"
26189 #: ../src/guestfs-actions.pod:2370
26190 msgid "(Added in 1.0.17)"
26194 #: ../src/guestfs-actions.pod:2372
26195 msgid "guestfs_head"
26199 #: ../src/guestfs-actions.pod:2374
26203 " guestfs_head (guestfs_h *g,\n"
26204 " const char *path);\n"
26209 #: ../src/guestfs-actions.pod:2390
26210 msgid "guestfs_head_n"
26214 #: ../src/guestfs-actions.pod:2392
26218 " guestfs_head_n (guestfs_h *g,\n"
26220 " const char *path);\n"
26225 #: ../src/guestfs-actions.pod:2414
26226 msgid "guestfs_hexdump"
26230 #: ../src/guestfs-actions.pod:2416
26234 " guestfs_hexdump (guestfs_h *g,\n"
26235 " const char *path);\n"
26240 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:6806
26241 #: ../src/guestfs-actions.pod:6861
26242 msgid "(Added in 1.0.22)"
26246 #: ../src/guestfs-actions.pod:2431
26247 msgid "guestfs_initrd_cat"
26251 #: ../src/guestfs-actions.pod:2433
26255 " guestfs_initrd_cat (guestfs_h *g,\n"
26256 " const char *initrdpath,\n"
26257 " const char *filename,\n"
26258 " size_t *size_r);\n"
26263 #: ../src/guestfs-actions.pod:2449
26264 msgid "See also C<guestfs_initrd_list>."
26268 #: ../src/guestfs-actions.pod:2460
26269 msgid "guestfs_initrd_list"
26273 #: ../src/guestfs-actions.pod:2462
26277 " guestfs_initrd_list (guestfs_h *g,\n"
26278 " const char *path);\n"
26283 #: ../src/guestfs-actions.pod:2482
26284 msgid "guestfs_inotify_add_watch"
26288 #: ../src/guestfs-actions.pod:2484
26292 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26293 " const char *path,\n"
26299 #: ../src/guestfs-actions.pod:2503
26300 msgid "guestfs_inotify_close"
26304 #: ../src/guestfs-actions.pod:2505
26308 " guestfs_inotify_close (guestfs_h *g);\n"
26313 #: ../src/guestfs-actions.pod:2516
26314 msgid "guestfs_inotify_files"
26318 #: ../src/guestfs-actions.pod:2518
26322 " guestfs_inotify_files (guestfs_h *g);\n"
26327 #: ../src/guestfs-actions.pod:2521
26329 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26330 "returns a list of pathnames of objects that were touched. The returned "
26331 "pathnames are sorted and deduplicated."
26335 #: ../src/guestfs-actions.pod:2531
26336 msgid "guestfs_inotify_init"
26340 #: ../src/guestfs-actions.pod:2533
26344 " guestfs_inotify_init (guestfs_h *g,\n"
26345 " int maxevents);\n"
26350 #: ../src/guestfs-actions.pod:2541
26352 "C<maxevents> is the maximum number of events which will be queued up between "
26353 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
26354 "passed as C<0>, then the kernel (or previously set) default is used. For "
26355 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
26356 "throws away events, but records the fact that it threw them away by setting "
26357 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26358 "C<guestfs_inotify_read>)."
26362 #: ../src/guestfs-actions.pod:2551
26364 "Before any events are generated, you have to add some watches to the "
26365 "internal watch list. See: C<guestfs_inotify_add_watch>, "
26366 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26370 #: ../src/guestfs-actions.pod:2557
26372 "Queued up events should be read periodically by calling "
26373 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26374 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
26375 "often enough then you risk the internal queue overflowing."
26379 #: ../src/guestfs-actions.pod:2564
26381 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
26382 "This also removes any watches automatically."
26386 #: ../src/guestfs-actions.pod:2577
26387 msgid "guestfs_inotify_read"
26391 #: ../src/guestfs-actions.pod:2579
26394 " struct guestfs_inotify_event_list *\n"
26395 " guestfs_inotify_read (guestfs_h *g);\n"
26400 #: ../src/guestfs-actions.pod:2593
26402 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26403 "there was an error. I<The caller must call "
26404 "C<guestfs_free_inotify_event_list> after use>."
26408 #: ../src/guestfs-actions.pod:2599
26409 msgid "guestfs_inotify_rm_watch"
26413 #: ../src/guestfs-actions.pod:2601
26417 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26423 #: ../src/guestfs-actions.pod:2605
26425 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
26429 #: ../src/guestfs-actions.pod:2612
26430 msgid "guestfs_inspect_get_arch"
26434 #: ../src/guestfs-actions.pod:2614
26438 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26439 " const char *root);\n"
26444 #: ../src/guestfs-actions.pod:2618
26446 "This returns the architecture of the inspected operating system. The "
26447 "possible return values are listed under C<guestfs_file_architecture>."
26451 #: ../src/guestfs-actions.pod:2632
26452 msgid "guestfs_inspect_get_distro"
26456 #: ../src/guestfs-actions.pod:2634
26460 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26461 " const char *root);\n"
26466 #: ../src/guestfs-actions.pod:2726
26467 msgid "guestfs_inspect_get_drive_mappings"
26471 #: ../src/guestfs-actions.pod:2728
26475 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26476 " const char *root);\n"
26481 #: ../src/guestfs-actions.pod:2757
26483 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26484 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26488 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:3029
26489 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:5109
26490 #: ../src/guestfs-actions.pod:7163
26492 "This function returns a NULL-terminated array of strings, or NULL if there "
26493 "was an error. The array of strings will always have length C<2n+1>, where "
26494 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
26495 "caller must free the strings and the array after use>."
26499 #: ../src/guestfs-actions.pod:2767 ../src/guestfs-actions.pod:3223
26500 msgid "(Added in 1.9.17)"
26504 #: ../src/guestfs-actions.pod:2769
26505 msgid "guestfs_inspect_get_filesystems"
26509 #: ../src/guestfs-actions.pod:2771
26513 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26514 " const char *root);\n"
26519 #: ../src/guestfs-actions.pod:2783
26521 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26522 "C<guestfs_inspect_get_mountpoints>."
26526 #: ../src/guestfs-actions.pod:2792
26527 msgid "guestfs_inspect_get_format"
26531 #: ../src/guestfs-actions.pod:2794
26535 " guestfs_inspect_get_format (guestfs_h *g,\n"
26536 " const char *root);\n"
26541 #: ../src/guestfs-actions.pod:2828 ../src/guestfs-actions.pod:3259
26542 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3293
26543 #: ../src/guestfs-actions.pod:6059
26544 msgid "(Added in 1.9.4)"
26548 #: ../src/guestfs-actions.pod:2830
26549 msgid "guestfs_inspect_get_hostname"
26553 #: ../src/guestfs-actions.pod:2832
26557 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26558 " const char *root);\n"
26563 #: ../src/guestfs-actions.pod:2847
26564 msgid "(Added in 1.7.9)"
26568 #: ../src/guestfs-actions.pod:2849
26569 msgid "guestfs_inspect_get_icon"
26573 #: ../src/guestfs-actions.pod:2851
26577 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26578 " const char *root,\n"
26579 " size_t *size_r,\n"
26585 #: ../src/guestfs-actions.pod:2862
26588 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26589 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26594 #: ../src/guestfs-actions.pod:2929 ../src/guestfs-actions.pod:3754
26595 #: ../src/guestfs-actions.pod:5008
26596 msgid "(Added in 1.11.12)"
26600 #: ../src/guestfs-actions.pod:2931
26601 msgid "guestfs_inspect_get_icon_va"
26605 #: ../src/guestfs-actions.pod:2933
26609 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26610 " const char *root,\n"
26611 " size_t *size_r,\n"
26612 " va_list args);\n"
26617 #: ../src/guestfs-actions.pod:2939
26618 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26622 #: ../src/guestfs-actions.pod:2943
26623 msgid "guestfs_inspect_get_icon_argv"
26627 #: ../src/guestfs-actions.pod:2945
26631 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26632 " const char *root,\n"
26633 " size_t *size_r,\n"
26634 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
26639 #: ../src/guestfs-actions.pod:2951
26640 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26644 #: ../src/guestfs-actions.pod:2955
26645 msgid "guestfs_inspect_get_major_version"
26649 #: ../src/guestfs-actions.pod:2957
26653 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26654 " const char *root);\n"
26659 #: ../src/guestfs-actions.pod:2979
26660 msgid "guestfs_inspect_get_minor_version"
26664 #: ../src/guestfs-actions.pod:2981
26668 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26669 " const char *root);\n"
26674 #: ../src/guestfs-actions.pod:2990
26676 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26677 "C<guestfs_inspect_get_major_version>."
26681 #: ../src/guestfs-actions.pod:2997
26682 msgid "guestfs_inspect_get_mountpoints"
26686 #: ../src/guestfs-actions.pod:2999
26690 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26691 " const char *root);\n"
26696 #: ../src/guestfs-actions.pod:3020
26698 "For operating systems like Windows which still use drive letters, this call "
26699 "will only return an entry for the first drive \"mounted on\" C</>. For "
26700 "information about the mapping of drive letters to partitions, see "
26701 "C<guestfs_inspect_get_drive_mappings>."
26705 #: ../src/guestfs-actions.pod:3026
26707 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26708 "C<guestfs_inspect_get_filesystems>."
26712 #: ../src/guestfs-actions.pod:3037
26713 msgid "guestfs_inspect_get_package_format"
26717 #: ../src/guestfs-actions.pod:3039
26721 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26722 " const char *root);\n"
26727 #: ../src/guestfs-actions.pod:3043
26729 "This function and C<guestfs_inspect_get_package_management> return the "
26730 "package format and package management tool used by the inspected operating "
26731 "system. For example for Fedora these functions would return C<rpm> (package "
26732 "format) and C<yum> (package management)."
26736 #: ../src/guestfs-actions.pod:3061 ../src/guestfs-actions.pod:3089
26737 msgid "(Added in 1.7.5)"
26741 #: ../src/guestfs-actions.pod:3063
26742 msgid "guestfs_inspect_get_package_management"
26746 #: ../src/guestfs-actions.pod:3065
26750 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26751 " const char *root);\n"
26756 #: ../src/guestfs-actions.pod:3069
26758 "C<guestfs_inspect_get_package_format> and this function return the package "
26759 "format and package management tool used by the inspected operating system. "
26760 "For example for Fedora these functions would return C<rpm> (package format) "
26761 "and C<yum> (package management)."
26765 #: ../src/guestfs-actions.pod:3091
26766 msgid "guestfs_inspect_get_product_name"
26770 #: ../src/guestfs-actions.pod:3093
26774 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26775 " const char *root);\n"
26780 #: ../src/guestfs-actions.pod:3112
26781 msgid "guestfs_inspect_get_product_variant"
26785 #: ../src/guestfs-actions.pod:3114
26789 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26790 " const char *root);\n"
26795 #: ../src/guestfs-actions.pod:3137
26797 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26798 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26802 #: ../src/guestfs-actions.pod:3144
26803 msgid "(Added in 1.9.13)"
26807 #: ../src/guestfs-actions.pod:3146
26808 msgid "guestfs_inspect_get_roots"
26812 #: ../src/guestfs-actions.pod:3148
26816 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26821 #: ../src/guestfs-actions.pod:3151
26823 "This function is a convenient way to get the list of root devices, as "
26824 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26825 "the whole inspection process."
26829 #: ../src/guestfs-actions.pod:3155
26831 "This returns an empty list if either no root devices were found or the "
26832 "caller has not called C<guestfs_inspect_os>."
26836 #: ../src/guestfs-actions.pod:3164
26837 msgid "(Added in 1.7.3)"
26841 #: ../src/guestfs-actions.pod:3166
26842 msgid "guestfs_inspect_get_type"
26846 #: ../src/guestfs-actions.pod:3168
26850 " guestfs_inspect_get_type (guestfs_h *g,\n"
26851 " const char *root);\n"
26856 #: ../src/guestfs-actions.pod:3205
26857 msgid "guestfs_inspect_get_windows_current_control_set"
26861 #: ../src/guestfs-actions.pod:3207
26865 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26866 " const char *root);\n"
26871 #: ../src/guestfs-actions.pod:3225
26872 msgid "guestfs_inspect_get_windows_systemroot"
26876 #: ../src/guestfs-actions.pod:3227
26880 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26881 " const char *root);\n"
26886 #: ../src/guestfs-actions.pod:3243
26887 msgid "(Added in 1.5.25)"
26891 #: ../src/guestfs-actions.pod:3245
26892 msgid "guestfs_inspect_is_live"
26896 #: ../src/guestfs-actions.pod:3247
26900 " guestfs_inspect_is_live (guestfs_h *g,\n"
26901 " const char *root);\n"
26906 #: ../src/guestfs-actions.pod:3251
26908 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26909 "disk), then this returns true if a live image was detected on the disk."
26913 #: ../src/guestfs-actions.pod:3261
26914 msgid "guestfs_inspect_is_multipart"
26918 #: ../src/guestfs-actions.pod:3263
26922 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26923 " const char *root);\n"
26928 #: ../src/guestfs-actions.pod:3267
26930 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26931 "disk), then this returns true if the disk is part of a set."
26935 #: ../src/guestfs-actions.pod:3277
26936 msgid "guestfs_inspect_is_netinst"
26940 #: ../src/guestfs-actions.pod:3279
26944 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26945 " const char *root);\n"
26950 #: ../src/guestfs-actions.pod:3283
26952 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26953 "disk), then this returns true if the disk is a network installer, ie. not a "
26954 "self-contained install CD but one which is likely to require network access "
26955 "to complete the install."
26959 #: ../src/guestfs-actions.pod:3295
26960 msgid "guestfs_inspect_list_applications"
26964 #: ../src/guestfs-actions.pod:3297
26967 " struct guestfs_application_list *\n"
26968 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26969 " const char *root);\n"
26974 #: ../src/guestfs-actions.pod:3303
26976 "I<Note:> This call works differently from other parts of the inspection "
26977 "API. You have to call C<guestfs_inspect_os>, then "
26978 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26979 "this. Listing applications is a significantly more difficult operation "
26980 "which requires access to the full filesystem. Also note that unlike the "
26981 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26982 "the libguestfs handle, this call actually reads parts of the mounted "
26983 "filesystems during the call."
26987 #: ../src/guestfs-actions.pod:3393
26989 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26990 "there was an error. I<The caller must call C<guestfs_free_application_list> "
26995 #: ../src/guestfs-actions.pod:3397
26996 msgid "(Added in 1.7.8)"
27000 #: ../src/guestfs-actions.pod:3399
27001 msgid "guestfs_inspect_os"
27005 #: ../src/guestfs-actions.pod:3401
27009 " guestfs_inspect_os (guestfs_h *g);\n"
27014 #: ../src/guestfs-actions.pod:3417
27016 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
27017 "functions in order to query further information about each operating system, "
27018 "such as the name and version."
27022 #: ../src/guestfs-actions.pod:3422
27024 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
27025 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
27026 "the contents. This should be called with no disks currently mounted. The "
27027 "function may also use Augeas, so any existing Augeas handle will be closed."
27031 #: ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3765
27032 #: ../src/guestfs-actions.pod:3847
27033 msgid "See also C<guestfs_list_filesystems>."
27037 #: ../src/guestfs-actions.pod:3442
27038 msgid "guestfs_is_blockdev"
27042 #: ../src/guestfs-actions.pod:3444
27046 " guestfs_is_blockdev (guestfs_h *g,\n"
27047 " const char *path);\n"
27052 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3480
27053 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3525
27054 #: ../src/guestfs-actions.pod:3541 ../src/guestfs-actions.pod:3597
27055 #: ../src/guestfs-actions.pod:3612
27056 msgid "See also C<guestfs_stat>."
27060 #: ../src/guestfs-actions.pod:3455 ../src/guestfs-actions.pod:3484
27061 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3601
27062 #: ../src/guestfs-actions.pod:3616
27063 msgid "(Added in 1.5.10)"
27067 #: ../src/guestfs-actions.pod:3457
27068 msgid "guestfs_is_busy"
27072 #: ../src/guestfs-actions.pod:3459
27076 " guestfs_is_busy (guestfs_h *g);\n"
27081 #: ../src/guestfs-actions.pod:3471
27082 msgid "guestfs_is_chardev"
27086 #: ../src/guestfs-actions.pod:3473
27090 " guestfs_is_chardev (guestfs_h *g,\n"
27091 " const char *path);\n"
27096 #: ../src/guestfs-actions.pod:3486
27097 msgid "guestfs_is_config"
27101 #: ../src/guestfs-actions.pod:3488
27105 " guestfs_is_config (guestfs_h *g);\n"
27110 #: ../src/guestfs-actions.pod:3500
27111 msgid "guestfs_is_dir"
27115 #: ../src/guestfs-actions.pod:3502
27119 " guestfs_is_dir (guestfs_h *g,\n"
27120 " const char *path);\n"
27125 #: ../src/guestfs-actions.pod:3516
27126 msgid "guestfs_is_fifo"
27130 #: ../src/guestfs-actions.pod:3518
27134 " guestfs_is_fifo (guestfs_h *g,\n"
27135 " const char *path);\n"
27140 #: ../src/guestfs-actions.pod:3531
27141 msgid "guestfs_is_file"
27145 #: ../src/guestfs-actions.pod:3533
27149 " guestfs_is_file (guestfs_h *g,\n"
27150 " const char *path);\n"
27155 #: ../src/guestfs-actions.pod:3547
27156 msgid "guestfs_is_launching"
27160 #: ../src/guestfs-actions.pod:3549
27164 " guestfs_is_launching (guestfs_h *g);\n"
27169 #: ../src/guestfs-actions.pod:3561
27170 msgid "guestfs_is_lv"
27174 #: ../src/guestfs-actions.pod:3563
27178 " guestfs_is_lv (guestfs_h *g,\n"
27179 " const char *device);\n"
27184 #: ../src/guestfs-actions.pod:3574
27185 msgid "guestfs_is_ready"
27189 #: ../src/guestfs-actions.pod:3576
27193 " guestfs_is_ready (guestfs_h *g);\n"
27198 #: ../src/guestfs-actions.pod:3588
27199 msgid "guestfs_is_socket"
27203 #: ../src/guestfs-actions.pod:3590
27207 " guestfs_is_socket (guestfs_h *g,\n"
27208 " const char *path);\n"
27213 #: ../src/guestfs-actions.pod:3603
27214 msgid "guestfs_is_symlink"
27218 #: ../src/guestfs-actions.pod:3605
27222 " guestfs_is_symlink (guestfs_h *g,\n"
27223 " const char *path);\n"
27228 #: ../src/guestfs-actions.pod:3618
27229 msgid "guestfs_is_zero"
27233 #: ../src/guestfs-actions.pod:3620
27237 " guestfs_is_zero (guestfs_h *g,\n"
27238 " const char *path);\n"
27243 #: ../src/guestfs-actions.pod:3629 ../src/guestfs-actions.pod:3643
27244 msgid "(Added in 1.11.8)"
27248 #: ../src/guestfs-actions.pod:3631
27249 msgid "guestfs_is_zero_device"
27253 #: ../src/guestfs-actions.pod:3633
27257 " guestfs_is_zero_device (guestfs_h *g,\n"
27258 " const char *device);\n"
27263 #: ../src/guestfs-actions.pod:3645
27264 msgid "guestfs_kill_subprocess"
27268 #: ../src/guestfs-actions.pod:3647
27272 " guestfs_kill_subprocess (guestfs_h *g);\n"
27277 #: ../src/guestfs-actions.pod:3656
27278 msgid "guestfs_launch"
27282 #: ../src/guestfs-actions.pod:3658
27286 " guestfs_launch (guestfs_h *g);\n"
27291 #: ../src/guestfs-actions.pod:3676
27292 msgid "guestfs_lchown"
27296 #: ../src/guestfs-actions.pod:3678
27300 " guestfs_lchown (guestfs_h *g,\n"
27303 " const char *path);\n"
27308 #: ../src/guestfs-actions.pod:3684
27310 "Change the file owner to C<owner> and group to C<group>. This is like "
27311 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27312 "changed, not the target."
27316 #: ../src/guestfs-actions.pod:3696
27317 msgid "guestfs_lgetxattr"
27321 #: ../src/guestfs-actions.pod:3698
27325 " guestfs_lgetxattr (guestfs_h *g,\n"
27326 " const char *path,\n"
27327 " const char *name,\n"
27328 " size_t *size_r);\n"
27333 #: ../src/guestfs-actions.pod:3718
27334 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27338 #: ../src/guestfs-actions.pod:3726
27339 msgid "guestfs_lgetxattrs"
27343 #: ../src/guestfs-actions.pod:3728
27346 " struct guestfs_xattr_list *\n"
27347 " guestfs_lgetxattrs (guestfs_h *g,\n"
27348 " const char *path);\n"
27353 #: ../src/guestfs-actions.pod:3732
27355 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27356 "then it returns the extended attributes of the link itself."
27360 #: ../src/guestfs-actions.pod:3742
27361 msgid "guestfs_list_9p"
27365 #: ../src/guestfs-actions.pod:3744
27369 " guestfs_list_9p (guestfs_h *g);\n"
27374 #: ../src/guestfs-actions.pod:3756
27375 msgid "guestfs_list_devices"
27379 #: ../src/guestfs-actions.pod:3758
27383 " guestfs_list_devices (guestfs_h *g);\n"
27388 #: ../src/guestfs-actions.pod:3773
27389 msgid "guestfs_list_dm_devices"
27393 #: ../src/guestfs-actions.pod:3775
27397 " guestfs_list_dm_devices (guestfs_h *g);\n"
27402 #: ../src/guestfs-actions.pod:3780
27404 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27405 "previous call to C<guestfs_luks_open>."
27409 #: ../src/guestfs-actions.pod:3783
27411 "Device mapper devices which correspond to logical volumes are I<not> "
27412 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
27417 #: ../src/guestfs-actions.pod:3791 ../src/guestfs-actions.pod:5247
27418 msgid "(Added in 1.11.15)"
27422 #: ../src/guestfs-actions.pod:3793
27423 msgid "guestfs_list_filesystems"
27427 #: ../src/guestfs-actions.pod:3795
27431 " guestfs_list_filesystems (guestfs_h *g);\n"
27436 #: ../src/guestfs-actions.pod:3815
27438 "This command runs other libguestfs commands, which might include "
27439 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27440 "soon after launch and only when nothing is mounted."
27444 #: ../src/guestfs-actions.pod:3819
27446 "Not all of the filesystems returned will be mountable. In particular, swap "
27447 "partitions are returned in the list. Also this command does not check that "
27448 "each filesystem found is valid and mountable, and some filesystems might be "
27449 "mountable but require special options. Filesystems may not all belong to a "
27450 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27454 #: ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:5608
27455 msgid "(Added in 1.5.15)"
27459 #: ../src/guestfs-actions.pod:3835
27460 msgid "guestfs_list_partitions"
27461 msgstr "guestfs_list_partitions"
27464 #: ../src/guestfs-actions.pod:3837
27468 " guestfs_list_partitions (guestfs_h *g);\n"
27472 " guestfs_list_partitions (guestfs_h *g);\n"
27476 #: ../src/guestfs-actions.pod:3844
27478 "This does not return logical volumes. For that you will need to call "
27483 #: ../src/guestfs-actions.pod:3855
27485 msgstr "guestfs_ll"
27488 #: ../src/guestfs-actions.pod:3857
27492 " guestfs_ll (guestfs_h *g,\n"
27493 " const char *directory);\n"
27497 " guestfs_ll (guestfs_h *g,\n"
27498 " const char *directory);\n"
27502 #: ../src/guestfs-actions.pod:3872
27504 msgstr "guestfs_ln"
27507 #: ../src/guestfs-actions.pod:3874
27511 " guestfs_ln (guestfs_h *g,\n"
27512 " const char *target,\n"
27513 " const char *linkname);\n"
27517 " guestfs_ln (guestfs_h *g,\n"
27518 " const char *target,\n"
27519 " const char *linkname);\n"
27523 #: ../src/guestfs-actions.pod:3885
27524 msgid "guestfs_ln_f"
27525 msgstr "guestfs_ln_f"
27528 #: ../src/guestfs-actions.pod:3887
27532 " guestfs_ln_f (guestfs_h *g,\n"
27533 " const char *target,\n"
27534 " const char *linkname);\n"
27538 " guestfs_ln_f (guestfs_h *g,\n"
27539 " const char *target,\n"
27540 " const char *linkname);\n"
27544 #: ../src/guestfs-actions.pod:3899
27545 msgid "guestfs_ln_s"
27546 msgstr "guestfs_ln_s"
27549 #: ../src/guestfs-actions.pod:3901
27553 " guestfs_ln_s (guestfs_h *g,\n"
27554 " const char *target,\n"
27555 " const char *linkname);\n"
27559 " guestfs_ln_s (guestfs_h *g,\n"
27560 " const char *target,\n"
27561 " const char *linkname);\n"
27565 #: ../src/guestfs-actions.pod:3912
27566 msgid "guestfs_ln_sf"
27567 msgstr "guestfs_ln_sf"
27570 #: ../src/guestfs-actions.pod:3914
27574 " guestfs_ln_sf (guestfs_h *g,\n"
27575 " const char *target,\n"
27576 " const char *linkname);\n"
27580 " guestfs_ln_sf (guestfs_h *g,\n"
27581 " const char *target,\n"
27582 " const char *linkname);\n"
27586 #: ../src/guestfs-actions.pod:3926
27587 msgid "guestfs_lremovexattr"
27588 msgstr "guestfs_lremovexattr"
27591 #: ../src/guestfs-actions.pod:3928
27595 " guestfs_lremovexattr (guestfs_h *g,\n"
27596 " const char *xattr,\n"
27597 " const char *path);\n"
27601 " guestfs_lremovexattr (guestfs_h *g,\n"
27602 " const char *xattr,\n"
27603 " const char *path);\n"
27607 #: ../src/guestfs-actions.pod:3933
27609 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27610 "link, then it removes an extended attribute of the link itself."
27614 #: ../src/guestfs-actions.pod:3941
27616 msgstr "guestfs_ls"
27619 #: ../src/guestfs-actions.pod:3943
27623 " guestfs_ls (guestfs_h *g,\n"
27624 " const char *directory);\n"
27628 " guestfs_ls (guestfs_h *g,\n"
27629 " const char *directory);\n"
27633 #: ../src/guestfs-actions.pod:3951
27635 "This command is mostly useful for interactive sessions. Programs should "
27636 "probably use C<guestfs_readdir> instead."
27640 #: ../src/guestfs-actions.pod:3960
27641 msgid "guestfs_lsetxattr"
27642 msgstr "guestfs_lsetxattr"
27645 #: ../src/guestfs-actions.pod:3962
27649 " guestfs_lsetxattr (guestfs_h *g,\n"
27650 " const char *xattr,\n"
27651 " const char *val,\n"
27653 " const char *path);\n"
27657 " guestfs_lsetxattr (guestfs_h *g,\n"
27658 " const char *xattr,\n"
27659 " const char *val,\n"
27661 " const char *path);\n"
27665 #: ../src/guestfs-actions.pod:3969
27667 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27668 "then it sets an extended attribute of the link itself."
27672 #: ../src/guestfs-actions.pod:3977
27673 msgid "guestfs_lstat"
27674 msgstr "guestfs_lstat"
27677 #: ../src/guestfs-actions.pod:3979
27680 " struct guestfs_stat *\n"
27681 " guestfs_lstat (guestfs_h *g,\n"
27682 " const char *path);\n"
27685 " struct guestfs_stat *\n"
27686 " guestfs_lstat (guestfs_h *g,\n"
27687 " const char *path);\n"
27691 #: ../src/guestfs-actions.pod:3985
27693 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27694 "link, then the link is stat-ed, not the file it refers to."
27698 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:6766
27700 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27701 "error. I<The caller must call C<guestfs_free_stat> after use>."
27705 #: ../src/guestfs-actions.pod:3995 ../src/guestfs-actions.pod:6770
27706 #: ../src/guestfs-actions.pod:6788 ../src/guestfs-actions.pod:7169
27707 msgid "(Added in 0.9.2)"
27708 msgstr "(Додано у 0.9.2)"
27711 #: ../src/guestfs-actions.pod:3997
27712 msgid "guestfs_lstatlist"
27713 msgstr "guestfs_lstatlist"
27716 #: ../src/guestfs-actions.pod:3999
27719 " struct guestfs_stat_list *\n"
27720 " guestfs_lstatlist (guestfs_h *g,\n"
27721 " const char *path,\n"
27722 " char *const *names);\n"
27725 " struct guestfs_stat_list *\n"
27726 " guestfs_lstatlist (guestfs_h *g,\n"
27727 " const char *path,\n"
27728 " char *const *names);\n"
27732 #: ../src/guestfs-actions.pod:4004
27734 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27735 "files, where all files are in the directory C<path>. C<names> is the list "
27736 "of files from this directory."
27740 #: ../src/guestfs-actions.pod:4013
27742 "This call is intended for programs that want to efficiently list a directory "
27743 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
27744 "for a similarly efficient call for getting extended attributes. Very long "
27745 "directory listings might cause the protocol message size to be exceeded, "
27746 "causing this call to fail. The caller must split up such requests into "
27747 "smaller groups of names."
27751 #: ../src/guestfs-actions.pod:4021
27753 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27754 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
27758 #: ../src/guestfs-actions.pod:4027
27759 msgid "guestfs_luks_add_key"
27760 msgstr "guestfs_luks_add_key"
27763 #: ../src/guestfs-actions.pod:4029
27767 " guestfs_luks_add_key (guestfs_h *g,\n"
27768 " const char *device,\n"
27769 " const char *key,\n"
27770 " const char *newkey,\n"
27775 " guestfs_luks_add_key (guestfs_h *g,\n"
27776 " const char *device,\n"
27777 " const char *key,\n"
27778 " const char *newkey,\n"
27783 #: ../src/guestfs-actions.pod:4041
27785 "Note that if C<keyslot> already contains a key, then this command will "
27786 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
27790 #: ../src/guestfs-actions.pod:4047 ../src/guestfs-actions.pod:4087
27791 #: ../src/guestfs-actions.pod:4110 ../src/guestfs-actions.pod:4130
27792 #: ../src/guestfs-actions.pod:4165 ../src/guestfs-actions.pod:4184
27794 "This function takes a key or passphrase parameter which could contain "
27795 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
27800 #: ../src/guestfs-actions.pod:4051 ../src/guestfs-actions.pod:4091
27801 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4134
27802 msgid "(Added in 1.5.2)"
27803 msgstr "(Додано у 1.5.2)"
27806 #: ../src/guestfs-actions.pod:4053
27807 msgid "guestfs_luks_close"
27808 msgstr "guestfs_luks_close"
27811 #: ../src/guestfs-actions.pod:4055
27815 " guestfs_luks_close (guestfs_h *g,\n"
27816 " const char *device);\n"
27820 " guestfs_luks_close (guestfs_h *g,\n"
27821 " const char *device);\n"
27825 #: ../src/guestfs-actions.pod:4059
27827 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27828 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
27829 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27830 "underlying block device."
27834 #: ../src/guestfs-actions.pod:4067 ../src/guestfs-actions.pod:4169
27835 #: ../src/guestfs-actions.pod:4188 ../src/guestfs-actions.pod:4238
27836 #: ../src/guestfs-actions.pod:4286
27837 msgid "(Added in 1.5.1)"
27838 msgstr "(Додано у 1.5.1)"
27841 #: ../src/guestfs-actions.pod:4069
27842 msgid "guestfs_luks_format"
27843 msgstr "guestfs_luks_format"
27846 #: ../src/guestfs-actions.pod:4071
27850 " guestfs_luks_format (guestfs_h *g,\n"
27851 " const char *device,\n"
27852 " const char *key,\n"
27857 " guestfs_luks_format (guestfs_h *g,\n"
27858 " const char *device,\n"
27859 " const char *key,\n"
27864 #: ../src/guestfs-actions.pod:4093
27865 msgid "guestfs_luks_format_cipher"
27866 msgstr "guestfs_luks_format_cipher"
27869 #: ../src/guestfs-actions.pod:4095
27873 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27874 " const char *device,\n"
27875 " const char *key,\n"
27877 " const char *cipher);\n"
27881 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27882 " const char *device,\n"
27883 " const char *key,\n"
27885 " const char *cipher);\n"
27889 #: ../src/guestfs-actions.pod:4102
27891 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27892 "set the C<cipher> used."
27896 #: ../src/guestfs-actions.pod:4116
27897 msgid "guestfs_luks_kill_slot"
27898 msgstr "guestfs_luks_kill_slot"
27901 #: ../src/guestfs-actions.pod:4118
27905 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27906 " const char *device,\n"
27907 " const char *key,\n"
27912 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27913 " const char *device,\n"
27914 " const char *key,\n"
27919 #: ../src/guestfs-actions.pod:4136
27920 msgid "guestfs_luks_open"
27921 msgstr "guestfs_luks_open"
27924 #: ../src/guestfs-actions.pod:4138
27928 " guestfs_luks_open (guestfs_h *g,\n"
27929 " const char *device,\n"
27930 " const char *key,\n"
27931 " const char *mapname);\n"
27935 " guestfs_luks_open (guestfs_h *g,\n"
27936 " const char *device,\n"
27937 " const char *key,\n"
27938 " const char *mapname);\n"
27942 #: ../src/guestfs-actions.pod:4156
27944 "If this block device contains LVM volume groups, then calling "
27945 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27950 #: ../src/guestfs-actions.pod:4160
27951 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27955 #: ../src/guestfs-actions.pod:4171
27956 msgid "guestfs_luks_open_ro"
27957 msgstr "guestfs_luks_open_ro"
27960 #: ../src/guestfs-actions.pod:4173
27964 " guestfs_luks_open_ro (guestfs_h *g,\n"
27965 " const char *device,\n"
27966 " const char *key,\n"
27967 " const char *mapname);\n"
27971 " guestfs_luks_open_ro (guestfs_h *g,\n"
27972 " const char *device,\n"
27973 " const char *key,\n"
27974 " const char *mapname);\n"
27978 #: ../src/guestfs-actions.pod:4179
27980 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27985 #: ../src/guestfs-actions.pod:4190
27986 msgid "guestfs_lvcreate"
27987 msgstr "guestfs_lvcreate"
27990 #: ../src/guestfs-actions.pod:4192
27994 " guestfs_lvcreate (guestfs_h *g,\n"
27995 " const char *logvol,\n"
27996 " const char *volgroup,\n"
28001 " guestfs_lvcreate (guestfs_h *g,\n"
28002 " const char *logvol,\n"
28003 " const char *volgroup,\n"
28008 #: ../src/guestfs-actions.pod:4205
28009 msgid "guestfs_lvm_canonical_lv_name"
28010 msgstr "guestfs_lvm_canonical_lv_name"
28013 #: ../src/guestfs-actions.pod:4207
28017 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28018 " const char *lvname);\n"
28022 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28023 " const char *lvname);\n"
28027 #: ../src/guestfs-actions.pod:4218
28028 msgid "See also C<guestfs_is_lv>."
28032 #: ../src/guestfs-actions.pod:4223
28033 msgid "(Added in 1.5.24)"
28034 msgstr "(Додано у 1.5.24)"
28037 #: ../src/guestfs-actions.pod:4225
28038 msgid "guestfs_lvm_clear_filter"
28039 msgstr "guestfs_lvm_clear_filter"
28042 #: ../src/guestfs-actions.pod:4227
28046 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28050 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28054 #: ../src/guestfs-actions.pod:4230
28056 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
28057 "see every block device."
28061 #: ../src/guestfs-actions.pod:4240
28062 msgid "guestfs_lvm_remove_all"
28063 msgstr "guestfs_lvm_remove_all"
28066 #: ../src/guestfs-actions.pod:4242
28070 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28074 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28078 #: ../src/guestfs-actions.pod:4255
28079 msgid "guestfs_lvm_set_filter"
28080 msgstr "guestfs_lvm_set_filter"
28083 #: ../src/guestfs-actions.pod:4257
28087 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28088 " char *const *devices);\n"
28092 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28093 " char *const *devices);\n"
28097 #: ../src/guestfs-actions.pod:4288
28098 msgid "guestfs_lvremove"
28099 msgstr "guestfs_lvremove"
28102 #: ../src/guestfs-actions.pod:4290
28106 " guestfs_lvremove (guestfs_h *g,\n"
28107 " const char *device);\n"
28111 " guestfs_lvremove (guestfs_h *g,\n"
28112 " const char *device);\n"
28116 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:5705
28117 #: ../src/guestfs-actions.pod:7539
28118 msgid "(Added in 1.0.13)"
28119 msgstr "(Додано у 1.0.13)"
28122 #: ../src/guestfs-actions.pod:4304
28123 msgid "guestfs_lvrename"
28124 msgstr "guestfs_lvrename"
28127 #: ../src/guestfs-actions.pod:4306
28131 " guestfs_lvrename (guestfs_h *g,\n"
28132 " const char *logvol,\n"
28133 " const char *newlogvol);\n"
28137 " guestfs_lvrename (guestfs_h *g,\n"
28138 " const char *logvol,\n"
28139 " const char *newlogvol);\n"
28143 #: ../src/guestfs-actions.pod:4315 ../src/guestfs-actions.pod:7552
28144 msgid "(Added in 1.0.83)"
28145 msgstr "(Додано у 1.0.83)"
28148 #: ../src/guestfs-actions.pod:4317
28149 msgid "guestfs_lvresize"
28150 msgstr "guestfs_lvresize"
28153 #: ../src/guestfs-actions.pod:4319
28157 " guestfs_lvresize (guestfs_h *g,\n"
28158 " const char *device,\n"
28163 " guestfs_lvresize (guestfs_h *g,\n"
28164 " const char *device,\n"
28169 #: ../src/guestfs-actions.pod:4332
28170 msgid "guestfs_lvresize_free"
28171 msgstr "guestfs_lvresize_free"
28174 #: ../src/guestfs-actions.pod:4334
28178 " guestfs_lvresize_free (guestfs_h *g,\n"
28179 " const char *lv,\n"
28184 " guestfs_lvresize_free (guestfs_h *g,\n"
28185 " const char *lv,\n"
28190 #: ../src/guestfs-actions.pod:4347
28191 msgid "(Added in 1.3.3)"
28192 msgstr "(Додано у 1.3.3)"
28195 #: ../src/guestfs-actions.pod:4349
28196 msgid "guestfs_lvs"
28197 msgstr "guestfs_lvs"
28200 #: ../src/guestfs-actions.pod:4351
28204 " guestfs_lvs (guestfs_h *g);\n"
28208 " guestfs_lvs (guestfs_h *g);\n"
28212 #: ../src/guestfs-actions.pod:4360
28213 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
28217 #: ../src/guestfs-actions.pod:4368
28218 msgid "guestfs_lvs_full"
28219 msgstr "guestfs_lvs_full"
28222 #: ../src/guestfs-actions.pod:4370
28225 " struct guestfs_lvm_lv_list *\n"
28226 " guestfs_lvs_full (guestfs_h *g);\n"
28229 " struct guestfs_lvm_lv_list *\n"
28230 " guestfs_lvs_full (guestfs_h *g);\n"
28234 #: ../src/guestfs-actions.pod:4376
28236 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
28237 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
28241 #: ../src/guestfs-actions.pod:4382
28242 msgid "guestfs_lvuuid"
28243 msgstr "guestfs_lvuuid"
28246 #: ../src/guestfs-actions.pod:4384
28250 " guestfs_lvuuid (guestfs_h *g,\n"
28251 " const char *device);\n"
28255 " guestfs_lvuuid (guestfs_h *g,\n"
28256 " const char *device);\n"
28260 #: ../src/guestfs-actions.pod:4395
28261 msgid "guestfs_lxattrlist"
28262 msgstr "guestfs_lxattrlist"
28265 #: ../src/guestfs-actions.pod:4397
28268 " struct guestfs_xattr_list *\n"
28269 " guestfs_lxattrlist (guestfs_h *g,\n"
28270 " const char *path,\n"
28271 " char *const *names);\n"
28274 " struct guestfs_xattr_list *\n"
28275 " guestfs_lxattrlist (guestfs_h *g,\n"
28276 " const char *path,\n"
28277 " char *const *names);\n"
28281 #: ../src/guestfs-actions.pod:4416
28283 "This call is intended for programs that want to efficiently list a directory "
28284 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
28285 "a similarly efficient call for getting standard stats. Very long directory "
28286 "listings might cause the protocol message size to be exceeded, causing this "
28287 "call to fail. The caller must split up such requests into smaller groups of "
28292 #: ../src/guestfs-actions.pod:4430
28293 msgid "guestfs_mkdir"
28294 msgstr "guestfs_mkdir"
28297 #: ../src/guestfs-actions.pod:4432
28301 " guestfs_mkdir (guestfs_h *g,\n"
28302 " const char *path);\n"
28306 " guestfs_mkdir (guestfs_h *g,\n"
28307 " const char *path);\n"
28311 #: ../src/guestfs-actions.pod:4442
28312 msgid "guestfs_mkdir_mode"
28313 msgstr "guestfs_mkdir_mode"
28316 #: ../src/guestfs-actions.pod:4444
28320 " guestfs_mkdir_mode (guestfs_h *g,\n"
28321 " const char *path,\n"
28326 " guestfs_mkdir_mode (guestfs_h *g,\n"
28327 " const char *path,\n"
28332 #: ../src/guestfs-actions.pod:4456
28333 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28337 #: ../src/guestfs-actions.pod:4462
28338 msgid "guestfs_mkdir_p"
28339 msgstr "guestfs_mkdir_p"
28342 #: ../src/guestfs-actions.pod:4464
28346 " guestfs_mkdir_p (guestfs_h *g,\n"
28347 " const char *path);\n"
28351 " guestfs_mkdir_p (guestfs_h *g,\n"
28352 " const char *path);\n"
28356 #: ../src/guestfs-actions.pod:4475
28357 msgid "guestfs_mkdtemp"
28358 msgstr "guestfs_mkdtemp"
28361 #: ../src/guestfs-actions.pod:4477
28365 " guestfs_mkdtemp (guestfs_h *g,\n"
28366 " const char *template);\n"
28370 " guestfs_mkdtemp (guestfs_h *g,\n"
28371 " const char *template);\n"
28375 #: ../src/guestfs-actions.pod:4505
28376 msgid "guestfs_mke2fs_J"
28377 msgstr "guestfs_mke2fs_J"
28380 #: ../src/guestfs-actions.pod:4507
28384 " guestfs_mke2fs_J (guestfs_h *g,\n"
28385 " const char *fstype,\n"
28386 " int blocksize,\n"
28387 " const char *device,\n"
28388 " const char *journal);\n"
28392 " guestfs_mke2fs_J (guestfs_h *g,\n"
28393 " const char *fstype,\n"
28394 " int blocksize,\n"
28395 " const char *device,\n"
28396 " const char *journal);\n"
28400 #: ../src/guestfs-actions.pod:4520
28401 msgid "See also C<guestfs_mke2journal>."
28405 #: ../src/guestfs-actions.pod:4524 ../src/guestfs-actions.pod:4542
28406 #: ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4576
28407 #: ../src/guestfs-actions.pod:4590 ../src/guestfs-actions.pod:4604
28408 #: ../src/guestfs-actions.pod:4663 ../src/guestfs-actions.pod:4940
28409 msgid "(Added in 1.0.68)"
28410 msgstr "(Додано у 1.0.68)"
28413 #: ../src/guestfs-actions.pod:4526
28414 msgid "guestfs_mke2fs_JL"
28415 msgstr "guestfs_mke2fs_JL"
28418 #: ../src/guestfs-actions.pod:4528
28422 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28423 " const char *fstype,\n"
28424 " int blocksize,\n"
28425 " const char *device,\n"
28426 " const char *label);\n"
28430 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28431 " const char *fstype,\n"
28432 " int blocksize,\n"
28433 " const char *device,\n"
28434 " const char *label);\n"
28438 #: ../src/guestfs-actions.pod:4538
28439 msgid "See also C<guestfs_mke2journal_L>."
28443 #: ../src/guestfs-actions.pod:4544
28444 msgid "guestfs_mke2fs_JU"
28445 msgstr "guestfs_mke2fs_JU"
28448 #: ../src/guestfs-actions.pod:4546
28452 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28453 " const char *fstype,\n"
28454 " int blocksize,\n"
28455 " const char *device,\n"
28456 " const char *uuid);\n"
28460 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28461 " const char *fstype,\n"
28462 " int blocksize,\n"
28463 " const char *device,\n"
28464 " const char *uuid);\n"
28468 #: ../src/guestfs-actions.pod:4556
28469 msgid "See also C<guestfs_mke2journal_U>."
28473 #: ../src/guestfs-actions.pod:4562
28474 msgid "guestfs_mke2journal"
28475 msgstr "guestfs_mke2journal"
28478 #: ../src/guestfs-actions.pod:4564
28482 " guestfs_mke2journal (guestfs_h *g,\n"
28483 " int blocksize,\n"
28484 " const char *device);\n"
28488 " guestfs_mke2journal (guestfs_h *g,\n"
28489 " int blocksize,\n"
28490 " const char *device);\n"
28494 #: ../src/guestfs-actions.pod:4578
28495 msgid "guestfs_mke2journal_L"
28496 msgstr "guestfs_mke2journal_L"
28499 #: ../src/guestfs-actions.pod:4580
28503 " guestfs_mke2journal_L (guestfs_h *g,\n"
28504 " int blocksize,\n"
28505 " const char *label,\n"
28506 " const char *device);\n"
28510 " guestfs_mke2journal_L (guestfs_h *g,\n"
28511 " int blocksize,\n"
28512 " const char *label,\n"
28513 " const char *device);\n"
28517 #: ../src/guestfs-actions.pod:4592
28518 msgid "guestfs_mke2journal_U"
28519 msgstr "guestfs_mke2journal_U"
28522 #: ../src/guestfs-actions.pod:4594
28526 " guestfs_mke2journal_U (guestfs_h *g,\n"
28527 " int blocksize,\n"
28528 " const char *uuid,\n"
28529 " const char *device);\n"
28533 " guestfs_mke2journal_U (guestfs_h *g,\n"
28534 " int blocksize,\n"
28535 " const char *uuid,\n"
28536 " const char *device);\n"
28540 #: ../src/guestfs-actions.pod:4606
28541 msgid "guestfs_mkfifo"
28542 msgstr "guestfs_mkfifo"
28545 #: ../src/guestfs-actions.pod:4608
28549 " guestfs_mkfifo (guestfs_h *g,\n"
28551 " const char *path);\n"
28555 " guestfs_mkfifo (guestfs_h *g,\n"
28557 " const char *path);\n"
28561 #: ../src/guestfs-actions.pod:4613
28563 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
28564 "is just a convenient wrapper around C<guestfs_mknod>."
28568 #: ../src/guestfs-actions.pod:4623
28569 msgid "guestfs_mkfs"
28570 msgstr "guestfs_mkfs"
28573 #: ../src/guestfs-actions.pod:4625
28577 " guestfs_mkfs (guestfs_h *g,\n"
28578 " const char *fstype,\n"
28579 " const char *device);\n"
28583 " guestfs_mkfs (guestfs_h *g,\n"
28584 " const char *fstype,\n"
28585 " const char *device);\n"
28589 #: ../src/guestfs-actions.pod:4638
28590 msgid "guestfs_mkfs_b"
28591 msgstr "guestfs_mkfs_b"
28594 #: ../src/guestfs-actions.pod:4640
28598 " guestfs_mkfs_b (guestfs_h *g,\n"
28599 " const char *fstype,\n"
28600 " int blocksize,\n"
28601 " const char *device);\n"
28605 " guestfs_mkfs_b (guestfs_h *g,\n"
28606 " const char *fstype,\n"
28607 " int blocksize,\n"
28608 " const char *device);\n"
28612 #: ../src/guestfs-actions.pod:4646
28614 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
28619 #: ../src/guestfs-actions.pod:4653
28621 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28622 "block size of the resulting filesystem. Supported block sizes depend on the "
28623 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28627 #: ../src/guestfs-actions.pod:4665
28628 msgid "guestfs_mkfs_opts"
28629 msgstr "guestfs_mkfs_opts"
28632 #: ../src/guestfs-actions.pod:4667
28636 " guestfs_mkfs_opts (guestfs_h *g,\n"
28637 " const char *fstype,\n"
28638 " const char *device,\n"
28643 " guestfs_mkfs_opts (guestfs_h *g,\n"
28644 " const char *fstype,\n"
28645 " const char *device,\n"
28650 #: ../src/guestfs-actions.pod:4678
28653 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28654 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28655 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28656 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28661 #: ../src/guestfs-actions.pod:4726
28662 msgid "(Added in 1.7.19)"
28663 msgstr "(Додано у 1.7.19)"
28666 #: ../src/guestfs-actions.pod:4728
28667 msgid "guestfs_mkfs_opts_va"
28668 msgstr "guestfs_mkfs_opts_va"
28671 #: ../src/guestfs-actions.pod:4730
28675 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28676 " const char *fstype,\n"
28677 " const char *device,\n"
28678 " va_list args);\n"
28682 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28683 " const char *fstype,\n"
28684 " const char *device,\n"
28685 " va_list args);\n"
28689 #: ../src/guestfs-actions.pod:4736
28690 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28694 #: ../src/guestfs-actions.pod:4740
28695 msgid "guestfs_mkfs_opts_argv"
28696 msgstr "guestfs_mkfs_opts_argv"
28699 #: ../src/guestfs-actions.pod:4742
28703 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28704 " const char *fstype,\n"
28705 " const char *device,\n"
28706 " const struct guestfs_mkfs_opts_argv *optargs);\n"
28710 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28711 " const char *fstype,\n"
28712 " const char *device,\n"
28713 " const struct guestfs_mkfs_opts_argv *optargs);\n"
28717 #: ../src/guestfs-actions.pod:4748
28718 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28722 #: ../src/guestfs-actions.pod:4752
28723 msgid "guestfs_mkmountpoint"
28724 msgstr "guestfs_mkmountpoint"
28727 #: ../src/guestfs-actions.pod:4754
28731 " guestfs_mkmountpoint (guestfs_h *g,\n"
28732 " const char *exemptpath);\n"
28736 " guestfs_mkmountpoint (guestfs_h *g,\n"
28737 " const char *exemptpath);\n"
28741 #: ../src/guestfs-actions.pod:4758
28743 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28744 "that can be used to create extra mountpoints before mounting the first "
28749 #: ../src/guestfs-actions.pod:4782
28751 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
28752 "may get unexpected errors if you try to mix these calls. It is safest to "
28753 "manually unmount filesystems and remove mountpoints after use."
28757 #: ../src/guestfs-actions.pod:4786
28759 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28760 "first, so for this to work for manual mountpoints, you must ensure that the "
28761 "innermost mountpoints have the longest pathnames, as in the example code "
28766 #: ../src/guestfs-actions.pod:4793
28768 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28769 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28770 "can also trigger these issues."
28774 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:5115
28775 #: ../src/guestfs-actions.pod:6125
28776 msgid "(Added in 1.0.62)"
28777 msgstr "(Додано у 1.0.62)"
28780 #: ../src/guestfs-actions.pod:4801
28781 msgid "guestfs_mknod"
28785 #: ../src/guestfs-actions.pod:4803
28789 " guestfs_mknod (guestfs_h *g,\n"
28793 " const char *path);\n"
28798 #: ../src/guestfs-actions.pod:4818
28800 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28801 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28802 "regular file). These constants are available in the standard Linux header "
28803 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28804 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28805 "the appropriate constant for you."
28809 #: ../src/guestfs-actions.pod:4832
28810 msgid "guestfs_mknod_b"
28814 #: ../src/guestfs-actions.pod:4834
28818 " guestfs_mknod_b (guestfs_h *g,\n"
28822 " const char *path);\n"
28827 #: ../src/guestfs-actions.pod:4841
28829 "This call creates a block device node called C<path> with mode C<mode> and "
28830 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
28831 "wrapper around C<guestfs_mknod>."
28835 #: ../src/guestfs-actions.pod:4851
28836 msgid "guestfs_mknod_c"
28840 #: ../src/guestfs-actions.pod:4853
28844 " guestfs_mknod_c (guestfs_h *g,\n"
28848 " const char *path);\n"
28853 #: ../src/guestfs-actions.pod:4860
28855 "This call creates a char device node called C<path> with mode C<mode> and "
28856 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
28857 "wrapper around C<guestfs_mknod>."
28861 #: ../src/guestfs-actions.pod:4870
28862 msgid "guestfs_mkswap"
28866 #: ../src/guestfs-actions.pod:4872
28870 " guestfs_mkswap (guestfs_h *g,\n"
28871 " const char *device);\n"
28876 #: ../src/guestfs-actions.pod:4882
28877 msgid "guestfs_mkswap_L"
28881 #: ../src/guestfs-actions.pod:4884
28885 " guestfs_mkswap_L (guestfs_h *g,\n"
28886 " const char *label,\n"
28887 " const char *device);\n"
28892 #: ../src/guestfs-actions.pod:4899
28893 msgid "guestfs_mkswap_U"
28897 #: ../src/guestfs-actions.pod:4901
28901 " guestfs_mkswap_U (guestfs_h *g,\n"
28902 " const char *uuid,\n"
28903 " const char *device);\n"
28908 #: ../src/guestfs-actions.pod:4912
28909 msgid "guestfs_mkswap_file"
28913 #: ../src/guestfs-actions.pod:4914
28917 " guestfs_mkswap_file (guestfs_h *g,\n"
28918 " const char *path);\n"
28923 #: ../src/guestfs-actions.pod:4920
28925 "This command just writes a swap file signature to an existing file. To "
28926 "create the file itself, use something like C<guestfs_fallocate>."
28930 #: ../src/guestfs-actions.pod:4927
28931 msgid "guestfs_modprobe"
28935 #: ../src/guestfs-actions.pod:4929
28939 " guestfs_modprobe (guestfs_h *g,\n"
28940 " const char *modulename);\n"
28945 #: ../src/guestfs-actions.pod:4942
28946 msgid "guestfs_mount"
28950 #: ../src/guestfs-actions.pod:4944
28954 " guestfs_mount (guestfs_h *g,\n"
28955 " const char *device,\n"
28956 " const char *mountpoint);\n"
28961 #: ../src/guestfs-actions.pod:4949
28963 "I<This function is deprecated.> In new code, use the L</"
28964 "guestfs_mount_options> call instead."
28968 #: ../src/guestfs-actions.pod:4970
28970 "B<Important note:> When you use this call, the filesystem options C<sync> "
28971 "and C<noatime> are set implicitly. This was originally done because we "
28972 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28973 "very large negative performance impact and negligible effect on "
28974 "reliability. Therefore we recommend that you avoid using C<guestfs_mount> "
28975 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28976 "(use an empty string for the first parameter if you don't want any options)."
28980 #: ../src/guestfs-actions.pod:4984
28981 msgid "guestfs_mount_9p"
28985 #: ../src/guestfs-actions.pod:4986
28989 " guestfs_mount_9p (guestfs_h *g,\n"
28990 " const char *mounttag,\n"
28991 " const char *mountpoint,\n"
28997 #: ../src/guestfs-actions.pod:4997
29000 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
29005 #: ../src/guestfs-actions.pod:5010
29006 msgid "guestfs_mount_9p_va"
29010 #: ../src/guestfs-actions.pod:5012
29014 " guestfs_mount_9p_va (guestfs_h *g,\n"
29015 " const char *mounttag,\n"
29016 " const char *mountpoint,\n"
29017 " va_list args);\n"
29022 #: ../src/guestfs-actions.pod:5018
29023 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
29027 #: ../src/guestfs-actions.pod:5022
29028 msgid "guestfs_mount_9p_argv"
29032 #: ../src/guestfs-actions.pod:5024
29036 " guestfs_mount_9p_argv (guestfs_h *g,\n"
29037 " const char *mounttag,\n"
29038 " const char *mountpoint,\n"
29039 " const struct guestfs_mount_9p_argv *optargs);\n"
29044 #: ../src/guestfs-actions.pod:5030
29045 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
29049 #: ../src/guestfs-actions.pod:5034
29050 msgid "guestfs_mount_loop"
29054 #: ../src/guestfs-actions.pod:5036
29058 " guestfs_mount_loop (guestfs_h *g,\n"
29059 " const char *file,\n"
29060 " const char *mountpoint);\n"
29065 #: ../src/guestfs-actions.pod:5049
29066 msgid "guestfs_mount_options"
29070 #: ../src/guestfs-actions.pod:5051
29074 " guestfs_mount_options (guestfs_h *g,\n"
29075 " const char *options,\n"
29076 " const char *device,\n"
29077 " const char *mountpoint);\n"
29082 #: ../src/guestfs-actions.pod:5057
29084 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29085 "the mount options as for the L<mount(8)> I<-o> flag."
29089 #: ../src/guestfs-actions.pod:5067 ../src/guestfs-actions.pod:5081
29090 #: ../src/guestfs-actions.pod:5098
29091 msgid "(Added in 1.0.10)"
29095 #: ../src/guestfs-actions.pod:5069
29096 msgid "guestfs_mount_ro"
29100 #: ../src/guestfs-actions.pod:5071
29104 " guestfs_mount_ro (guestfs_h *g,\n"
29105 " const char *device,\n"
29106 " const char *mountpoint);\n"
29111 #: ../src/guestfs-actions.pod:5076
29113 "This is the same as the C<guestfs_mount> command, but it mounts the "
29114 "filesystem with the read-only (I<-o ro>) flag."
29118 #: ../src/guestfs-actions.pod:5083
29119 msgid "guestfs_mount_vfs"
29123 #: ../src/guestfs-actions.pod:5085
29127 " guestfs_mount_vfs (guestfs_h *g,\n"
29128 " const char *options,\n"
29129 " const char *vfstype,\n"
29130 " const char *device,\n"
29131 " const char *mountpoint);\n"
29136 #: ../src/guestfs-actions.pod:5092
29138 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29139 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
29144 #: ../src/guestfs-actions.pod:5100
29145 msgid "guestfs_mountpoints"
29149 #: ../src/guestfs-actions.pod:5102
29153 " guestfs_mountpoints (guestfs_h *g);\n"
29158 #: ../src/guestfs-actions.pod:5105
29160 "This call is similar to C<guestfs_mounts>. That call returns a list of "
29161 "devices. This one returns a hash table (map) of device name to directory "
29162 "where the device is mounted."
29166 #: ../src/guestfs-actions.pod:5117
29167 msgid "guestfs_mounts"
29171 #: ../src/guestfs-actions.pod:5119
29175 " guestfs_mounts (guestfs_h *g);\n"
29180 #: ../src/guestfs-actions.pod:5127
29181 msgid "See also: C<guestfs_mountpoints>"
29185 #: ../src/guestfs-actions.pod:5135
29190 #: ../src/guestfs-actions.pod:5137
29194 " guestfs_mv (guestfs_h *g,\n"
29195 " const char *src,\n"
29196 " const char *dest);\n"
29201 #: ../src/guestfs-actions.pod:5149
29202 msgid "guestfs_ntfs_3g_probe"
29206 #: ../src/guestfs-actions.pod:5151
29210 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
29212 " const char *device);\n"
29217 #: ../src/guestfs-actions.pod:5170
29218 msgid "(Added in 1.0.43)"
29222 #: ../src/guestfs-actions.pod:5172
29223 msgid "guestfs_ntfsresize"
29227 #: ../src/guestfs-actions.pod:5174
29231 " guestfs_ntfsresize (guestfs_h *g,\n"
29232 " const char *device);\n"
29237 #: ../src/guestfs-actions.pod:5178 ../src/guestfs-actions.pod:5278
29239 "I<This function is deprecated.> In new code, use the L</"
29240 "guestfs_ntfsresize_opts> call instead."
29244 #: ../src/guestfs-actions.pod:5202
29245 msgid "guestfs_ntfsresize_opts"
29249 #: ../src/guestfs-actions.pod:5204
29253 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
29254 " const char *device,\n"
29260 #: ../src/guestfs-actions.pod:5214
29263 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
29264 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
29269 #: ../src/guestfs-actions.pod:5234
29271 "After the resize operation, the filesystem is always marked as requiring a "
29272 "consistency check (for safety). You have to boot into Windows to perform "
29273 "this check and clear this condition. If you I<don't> set the C<force> "
29274 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
29275 "times on a single filesystem without booting into Windows between each "
29280 #: ../src/guestfs-actions.pod:5249
29281 msgid "guestfs_ntfsresize_opts_va"
29285 #: ../src/guestfs-actions.pod:5251
29289 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
29290 " const char *device,\n"
29291 " va_list args);\n"
29296 #: ../src/guestfs-actions.pod:5256
29297 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
29301 #: ../src/guestfs-actions.pod:5260
29302 msgid "guestfs_ntfsresize_opts_argv"
29306 #: ../src/guestfs-actions.pod:5262
29310 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29311 " const char *device,\n"
29312 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
29317 #: ../src/guestfs-actions.pod:5267
29318 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29322 #: ../src/guestfs-actions.pod:5271
29323 msgid "guestfs_ntfsresize_size"
29327 #: ../src/guestfs-actions.pod:5273
29331 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29332 " const char *device,\n"
29333 " int64_t size);\n"
29338 #: ../src/guestfs-actions.pod:5285
29340 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29341 "to specify the new size (in bytes) explicitly."
29345 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5732
29346 #: ../src/guestfs-actions.pod:5805 ../src/guestfs-actions.pod:6073
29347 #: ../src/guestfs-actions.pod:7696
29348 msgid "(Added in 1.3.14)"
29352 #: ../src/guestfs-actions.pod:5292
29353 msgid "guestfs_part_add"
29357 #: ../src/guestfs-actions.pod:5294
29361 " guestfs_part_add (guestfs_h *g,\n"
29362 " const char *device,\n"
29363 " const char *prlogex,\n"
29364 " int64_t startsect,\n"
29365 " int64_t endsect);\n"
29370 #: ../src/guestfs-actions.pod:5301
29372 "This command adds a partition to C<device>. If there is no partition table "
29373 "on the device, call C<guestfs_part_init> first."
29377 #: ../src/guestfs-actions.pod:5313
29379 "Creating a partition which covers the whole disk is not so easy. Use "
29380 "C<guestfs_part_disk> to do that."
29384 #: ../src/guestfs-actions.pod:5318 ../src/guestfs-actions.pod:5356
29385 #: ../src/guestfs-actions.pod:5409 ../src/guestfs-actions.pod:5493
29386 #: ../src/guestfs-actions.pod:5531 ../src/guestfs-actions.pod:5550
29387 #: ../src/guestfs-actions.pod:5590
29388 msgid "(Added in 1.0.78)"
29392 #: ../src/guestfs-actions.pod:5320
29393 msgid "guestfs_part_del"
29397 #: ../src/guestfs-actions.pod:5322
29401 " guestfs_part_del (guestfs_h *g,\n"
29402 " const char *device,\n"
29408 #: ../src/guestfs-actions.pod:5337
29409 msgid "guestfs_part_disk"
29413 #: ../src/guestfs-actions.pod:5339
29417 " guestfs_part_disk (guestfs_h *g,\n"
29418 " const char *device,\n"
29419 " const char *parttype);\n"
29424 #: ../src/guestfs-actions.pod:5344
29426 "This command is simply a combination of C<guestfs_part_init> followed by "
29427 "C<guestfs_part_add> to create a single primary partition covering the whole "
29432 #: ../src/guestfs-actions.pod:5348
29434 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29435 "possible values are described in C<guestfs_part_init>."
29439 #: ../src/guestfs-actions.pod:5358
29440 msgid "guestfs_part_get_bootable"
29444 #: ../src/guestfs-actions.pod:5360
29448 " guestfs_part_get_bootable (guestfs_h *g,\n"
29449 " const char *device,\n"
29455 #: ../src/guestfs-actions.pod:5368
29456 msgid "See also C<guestfs_part_set_bootable>."
29460 #: ../src/guestfs-actions.pod:5374
29461 msgid "guestfs_part_get_mbr_id"
29465 #: ../src/guestfs-actions.pod:5376
29469 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29470 " const char *device,\n"
29476 #: ../src/guestfs-actions.pod:5384 ../src/guestfs-actions.pod:5566
29478 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
29479 "undefined results for other partition table types (see "
29480 "C<guestfs_part_get_parttype>)."
29484 #: ../src/guestfs-actions.pod:5392
29485 msgid "guestfs_part_get_parttype"
29489 #: ../src/guestfs-actions.pod:5394
29493 " guestfs_part_get_parttype (guestfs_h *g,\n"
29494 " const char *device);\n"
29499 #: ../src/guestfs-actions.pod:5401
29501 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29502 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
29503 "possible, although unusual. See C<guestfs_part_init> for a full list."
29507 #: ../src/guestfs-actions.pod:5411
29508 msgid "guestfs_part_init"
29512 #: ../src/guestfs-actions.pod:5413
29516 " guestfs_part_init (guestfs_h *g,\n"
29517 " const char *device,\n"
29518 " const char *parttype);\n"
29523 #: ../src/guestfs-actions.pod:5422
29525 "Initially there are no partitions. Following this, you should call "
29526 "C<guestfs_part_add> for each partition required."
29530 #: ../src/guestfs-actions.pod:5495
29531 msgid "guestfs_part_list"
29532 msgstr "guestfs_part_list"
29535 #: ../src/guestfs-actions.pod:5497
29538 " struct guestfs_partition_list *\n"
29539 " guestfs_part_list (guestfs_h *g,\n"
29540 " const char *device);\n"
29543 " struct guestfs_partition_list *\n"
29544 " guestfs_part_list (guestfs_h *g,\n"
29545 " const char *device);\n"
29549 #: ../src/guestfs-actions.pod:5514
29551 "Start of the partition I<in bytes>. To get sectors you have to divide by "
29552 "the device's sector size, see C<guestfs_blockdev_getss>."
29556 #: ../src/guestfs-actions.pod:5527
29558 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29559 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
29564 #: ../src/guestfs-actions.pod:5533
29565 msgid "guestfs_part_set_bootable"
29569 #: ../src/guestfs-actions.pod:5535
29573 " guestfs_part_set_bootable (guestfs_h *g,\n"
29574 " const char *device,\n"
29576 " int bootable);\n"
29581 #: ../src/guestfs-actions.pod:5552
29582 msgid "guestfs_part_set_mbr_id"
29586 #: ../src/guestfs-actions.pod:5554
29590 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29591 " const char *device,\n"
29598 #: ../src/guestfs-actions.pod:5574
29599 msgid "guestfs_part_set_name"
29603 #: ../src/guestfs-actions.pod:5576
29607 " guestfs_part_set_name (guestfs_h *g,\n"
29608 " const char *device,\n"
29610 " const char *name);\n"
29615 #: ../src/guestfs-actions.pod:5592
29616 msgid "guestfs_part_to_dev"
29620 #: ../src/guestfs-actions.pod:5594
29624 " guestfs_part_to_dev (guestfs_h *g,\n"
29625 " const char *partition);\n"
29630 #: ../src/guestfs-actions.pod:5602
29632 "The named partition must exist, for example as a string returned from "
29633 "C<guestfs_list_partitions>."
29637 #: ../src/guestfs-actions.pod:5610
29638 msgid "guestfs_ping_daemon"
29642 #: ../src/guestfs-actions.pod:5612
29646 " guestfs_ping_daemon (guestfs_h *g);\n"
29651 #: ../src/guestfs-actions.pod:5624
29652 msgid "guestfs_pread"
29656 #: ../src/guestfs-actions.pod:5626
29660 " guestfs_pread (guestfs_h *g,\n"
29661 " const char *path,\n"
29663 " int64_t offset,\n"
29664 " size_t *size_r);\n"
29669 #: ../src/guestfs-actions.pod:5639
29670 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29674 #: ../src/guestfs-actions.pod:5650
29675 msgid "guestfs_pread_device"
29679 #: ../src/guestfs-actions.pod:5652
29683 " guestfs_pread_device (guestfs_h *g,\n"
29684 " const char *device,\n"
29686 " int64_t offset,\n"
29687 " size_t *size_r);\n"
29692 #: ../src/guestfs-actions.pod:5665
29693 msgid "See also C<guestfs_pread>."
29697 #: ../src/guestfs-actions.pod:5674
29698 msgid "(Added in 1.5.21)"
29702 #: ../src/guestfs-actions.pod:5676
29703 msgid "guestfs_pvcreate"
29707 #: ../src/guestfs-actions.pod:5678
29711 " guestfs_pvcreate (guestfs_h *g,\n"
29712 " const char *device);\n"
29717 #: ../src/guestfs-actions.pod:5690
29718 msgid "guestfs_pvremove"
29722 #: ../src/guestfs-actions.pod:5692
29726 " guestfs_pvremove (guestfs_h *g,\n"
29727 " const char *device);\n"
29732 #: ../src/guestfs-actions.pod:5707
29733 msgid "guestfs_pvresize"
29737 #: ../src/guestfs-actions.pod:5709
29741 " guestfs_pvresize (guestfs_h *g,\n"
29742 " const char *device);\n"
29747 #: ../src/guestfs-actions.pod:5720
29748 msgid "guestfs_pvresize_size"
29752 #: ../src/guestfs-actions.pod:5722
29756 " guestfs_pvresize_size (guestfs_h *g,\n"
29757 " const char *device,\n"
29758 " int64_t size);\n"
29763 #: ../src/guestfs-actions.pod:5727
29765 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29766 "specify the new size (in bytes) explicitly."
29770 #: ../src/guestfs-actions.pod:5734
29771 msgid "guestfs_pvs"
29775 #: ../src/guestfs-actions.pod:5736
29779 " guestfs_pvs (guestfs_h *g);\n"
29784 #: ../src/guestfs-actions.pod:5745
29785 msgid "See also C<guestfs_pvs_full>."
29789 #: ../src/guestfs-actions.pod:5753
29790 msgid "guestfs_pvs_full"
29794 #: ../src/guestfs-actions.pod:5755
29797 " struct guestfs_lvm_pv_list *\n"
29798 " guestfs_pvs_full (guestfs_h *g);\n"
29803 #: ../src/guestfs-actions.pod:5761
29805 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29806 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29810 #: ../src/guestfs-actions.pod:5767
29811 msgid "guestfs_pvuuid"
29815 #: ../src/guestfs-actions.pod:5769
29819 " guestfs_pvuuid (guestfs_h *g,\n"
29820 " const char *device);\n"
29825 #: ../src/guestfs-actions.pod:5780
29826 msgid "guestfs_pwrite"
29830 #: ../src/guestfs-actions.pod:5782
29834 " guestfs_pwrite (guestfs_h *g,\n"
29835 " const char *path,\n"
29836 " const char *content,\n"
29837 " size_t content_size,\n"
29838 " int64_t offset);\n"
29843 #: ../src/guestfs-actions.pod:5798
29844 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29848 #: ../src/guestfs-actions.pod:5807
29849 msgid "guestfs_pwrite_device"
29853 #: ../src/guestfs-actions.pod:5809
29857 " guestfs_pwrite_device (guestfs_h *g,\n"
29858 " const char *device,\n"
29859 " const char *content,\n"
29860 " size_t content_size,\n"
29861 " int64_t offset);\n"
29866 #: ../src/guestfs-actions.pod:5824
29867 msgid "See also C<guestfs_pwrite>."
29871 #: ../src/guestfs-actions.pod:5831
29872 msgid "(Added in 1.5.20)"
29876 #: ../src/guestfs-actions.pod:5833
29877 msgid "guestfs_read_file"
29881 #: ../src/guestfs-actions.pod:5835
29885 " guestfs_read_file (guestfs_h *g,\n"
29886 " const char *path,\n"
29887 " size_t *size_r);\n"
29892 #: ../src/guestfs-actions.pod:5843
29894 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29895 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
29896 "function is limited in the total size of file that can be handled."
29900 #: ../src/guestfs-actions.pod:5855
29901 msgid "(Added in 1.0.63)"
29905 #: ../src/guestfs-actions.pod:5857
29906 msgid "guestfs_read_lines"
29910 #: ../src/guestfs-actions.pod:5859
29914 " guestfs_read_lines (guestfs_h *g,\n"
29915 " const char *path);\n"
29920 #: ../src/guestfs-actions.pod:5868
29922 "Note that this function cannot correctly handle binary files (specifically, "
29923 "files containing C<\\0> character which is treated as end of line). For "
29924 "those you need to use the C<guestfs_read_file> function which has a more "
29925 "complex interface."
29929 #: ../src/guestfs-actions.pod:5879
29930 msgid "guestfs_readdir"
29934 #: ../src/guestfs-actions.pod:5881
29937 " struct guestfs_dirent_list *\n"
29938 " guestfs_readdir (guestfs_h *g,\n"
29939 " const char *dir);\n"
29944 #: ../src/guestfs-actions.pod:5935
29946 "This function is primarily intended for use by programs. To get a simple "
29947 "list of names, use C<guestfs_ls>. To get a printable directory for human "
29948 "consumption, use C<guestfs_ll>."
29952 #: ../src/guestfs-actions.pod:5939
29954 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29955 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
29959 #: ../src/guestfs-actions.pod:5945
29960 msgid "guestfs_readlink"
29964 #: ../src/guestfs-actions.pod:5947
29968 " guestfs_readlink (guestfs_h *g,\n"
29969 " const char *path);\n"
29974 #: ../src/guestfs-actions.pod:5958
29975 msgid "guestfs_readlinklist"
29979 #: ../src/guestfs-actions.pod:5960
29983 " guestfs_readlinklist (guestfs_h *g,\n"
29984 " const char *path,\n"
29985 " char *const *names);\n"
29990 #: ../src/guestfs-actions.pod:5993
29991 msgid "guestfs_realpath"
29995 #: ../src/guestfs-actions.pod:5995
29999 " guestfs_realpath (guestfs_h *g,\n"
30000 " const char *path);\n"
30005 #: ../src/guestfs-actions.pod:6007
30006 msgid "guestfs_removexattr"
30010 #: ../src/guestfs-actions.pod:6009
30014 " guestfs_removexattr (guestfs_h *g,\n"
30015 " const char *xattr,\n"
30016 " const char *path);\n"
30021 #: ../src/guestfs-actions.pod:6017
30022 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
30026 #: ../src/guestfs-actions.pod:6023
30027 msgid "guestfs_resize2fs"
30031 #: ../src/guestfs-actions.pod:6025
30035 " guestfs_resize2fs (guestfs_h *g,\n"
30036 " const char *device);\n"
30041 #: ../src/guestfs-actions.pod:6032
30043 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
30044 "C<device> before calling this command. For unknown reasons C<resize2fs> "
30045 "sometimes gives an error about this and sometimes not. In any case, it is "
30046 "always safe to call C<guestfs_e2fsck_f> before calling this function."
30050 #: ../src/guestfs-actions.pod:6042
30051 msgid "guestfs_resize2fs_M"
30055 #: ../src/guestfs-actions.pod:6044
30059 " guestfs_resize2fs_M (guestfs_h *g,\n"
30060 " const char *device);\n"
30065 #: ../src/guestfs-actions.pod:6048
30067 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
30068 "resized to its minimum size. This works like the I<-M> option to the "
30069 "C<resize2fs> command."
30073 #: ../src/guestfs-actions.pod:6052
30075 "To get the resulting size of the filesystem you should call "
30076 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
30077 "These two numbers, multiplied together, give the resulting size of the "
30078 "minimal filesystem in bytes."
30082 #: ../src/guestfs-actions.pod:6061
30083 msgid "guestfs_resize2fs_size"
30087 #: ../src/guestfs-actions.pod:6063
30091 " guestfs_resize2fs_size (guestfs_h *g,\n"
30092 " const char *device,\n"
30093 " int64_t size);\n"
30098 #: ../src/guestfs-actions.pod:6068
30100 "This command is the same as C<guestfs_resize2fs> except that it allows you "
30101 "to specify the new size (in bytes) explicitly."
30105 #: ../src/guestfs-actions.pod:6075
30110 #: ../src/guestfs-actions.pod:6077
30114 " guestfs_rm (guestfs_h *g,\n"
30115 " const char *path);\n"
30120 #: ../src/guestfs-actions.pod:6087
30121 msgid "guestfs_rm_rf"
30125 #: ../src/guestfs-actions.pod:6089
30129 " guestfs_rm_rf (guestfs_h *g,\n"
30130 " const char *path);\n"
30135 #: ../src/guestfs-actions.pod:6101
30136 msgid "guestfs_rmdir"
30140 #: ../src/guestfs-actions.pod:6103
30144 " guestfs_rmdir (guestfs_h *g,\n"
30145 " const char *path);\n"
30150 #: ../src/guestfs-actions.pod:6113
30151 msgid "guestfs_rmmountpoint"
30155 #: ../src/guestfs-actions.pod:6115
30159 " guestfs_rmmountpoint (guestfs_h *g,\n"
30160 " const char *exemptpath);\n"
30165 #: ../src/guestfs-actions.pod:6119
30167 "This calls removes a mountpoint that was previously created with "
30168 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
30172 #: ../src/guestfs-actions.pod:6127
30173 msgid "guestfs_scrub_device"
30177 #: ../src/guestfs-actions.pod:6129
30181 " guestfs_scrub_device (guestfs_h *g,\n"
30182 " const char *device);\n"
30187 #: ../src/guestfs-actions.pod:6144 ../src/guestfs-actions.pod:6162
30188 #: ../src/guestfs-actions.pod:6181
30189 msgid "(Added in 1.0.52)"
30193 #: ../src/guestfs-actions.pod:6146
30194 msgid "guestfs_scrub_file"
30198 #: ../src/guestfs-actions.pod:6148
30202 " guestfs_scrub_file (guestfs_h *g,\n"
30203 " const char *file);\n"
30208 #: ../src/guestfs-actions.pod:6164
30209 msgid "guestfs_scrub_freespace"
30213 #: ../src/guestfs-actions.pod:6166
30217 " guestfs_scrub_freespace (guestfs_h *g,\n"
30218 " const char *dir);\n"
30223 #: ../src/guestfs-actions.pod:6170
30225 "This command creates the directory C<dir> and then fills it with files until "
30226 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
30227 "and deletes them. The intention is to scrub any free space on the partition "
30228 "containing C<dir>."
30232 #: ../src/guestfs-actions.pod:6183
30233 msgid "guestfs_set_append"
30237 #: ../src/guestfs-actions.pod:6185
30241 " guestfs_set_append (guestfs_h *g,\n"
30242 " const char *append);\n"
30247 #: ../src/guestfs-actions.pod:6202
30248 msgid "guestfs_set_attach_method"
30252 #: ../src/guestfs-actions.pod:6204
30256 " guestfs_set_attach_method (guestfs_h *g,\n"
30257 " const char *attachmethod);\n"
30262 #: ../src/guestfs-actions.pod:6232
30263 msgid "guestfs_set_autosync"
30267 #: ../src/guestfs-actions.pod:6234
30271 " guestfs_set_autosync (guestfs_h *g,\n"
30272 " int autosync);\n"
30277 #: ../src/guestfs-actions.pod:6250
30278 msgid "guestfs_set_direct"
30282 #: ../src/guestfs-actions.pod:6252
30286 " guestfs_set_direct (guestfs_h *g,\n"
30292 #: ../src/guestfs-actions.pod:6260
30294 "One consequence of this is that log messages aren't caught by the library "
30295 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
30300 #: ../src/guestfs-actions.pod:6273
30301 msgid "guestfs_set_e2label"
30305 #: ../src/guestfs-actions.pod:6275
30309 " guestfs_set_e2label (guestfs_h *g,\n"
30310 " const char *device,\n"
30311 " const char *label);\n"
30316 #: ../src/guestfs-actions.pod:6284
30318 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30319 "the existing label on a filesystem."
30323 #: ../src/guestfs-actions.pod:6291
30324 msgid "guestfs_set_e2uuid"
30328 #: ../src/guestfs-actions.pod:6293
30332 " guestfs_set_e2uuid (guestfs_h *g,\n"
30333 " const char *device,\n"
30334 " const char *uuid);\n"
30339 #: ../src/guestfs-actions.pod:6303
30341 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30342 "the existing UUID of a filesystem."
30346 #: ../src/guestfs-actions.pod:6310
30347 msgid "guestfs_set_memsize"
30351 #: ../src/guestfs-actions.pod:6312
30355 " guestfs_set_memsize (guestfs_h *g,\n"
30361 #: ../src/guestfs-actions.pod:6316
30363 "This sets the memory size in megabytes allocated to the qemu subprocess. "
30364 "This only has any effect if called before C<guestfs_launch>."
30368 #: ../src/guestfs-actions.pod:6331
30369 msgid "guestfs_set_network"
30373 #: ../src/guestfs-actions.pod:6333
30377 " guestfs_set_network (guestfs_h *g,\n"
30383 #: ../src/guestfs-actions.pod:6343
30385 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30390 #: ../src/guestfs-actions.pod:6350
30391 msgid "guestfs_set_path"
30395 #: ../src/guestfs-actions.pod:6352
30399 " guestfs_set_path (guestfs_h *g,\n"
30400 " const char *searchpath);\n"
30405 #: ../src/guestfs-actions.pod:6367
30406 msgid "guestfs_set_pgroup"
30410 #: ../src/guestfs-actions.pod:6369
30414 " guestfs_set_pgroup (guestfs_h *g,\n"
30420 #: ../src/guestfs-actions.pod:6386
30421 msgid "guestfs_set_qemu"
30425 #: ../src/guestfs-actions.pod:6388
30429 " guestfs_set_qemu (guestfs_h *g,\n"
30430 " const char *qemu);\n"
30435 #: ../src/guestfs-actions.pod:6414
30436 msgid "guestfs_set_recovery_proc"
30440 #: ../src/guestfs-actions.pod:6416
30444 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30445 " int recoveryproc);\n"
30450 #: ../src/guestfs-actions.pod:6420
30452 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30453 "not create a recovery process. The purpose of the recovery process is to "
30454 "stop runaway qemu processes in the case where the main program aborts "
30459 #: ../src/guestfs-actions.pod:6425
30461 "This only has any effect if called before C<guestfs_launch>, and the default "
30466 #: ../src/guestfs-actions.pod:6438
30467 msgid "guestfs_set_selinux"
30471 #: ../src/guestfs-actions.pod:6440
30475 " guestfs_set_selinux (guestfs_h *g,\n"
30481 #: ../src/guestfs-actions.pod:6457
30482 msgid "guestfs_set_trace"
30486 #: ../src/guestfs-actions.pod:6459
30490 " guestfs_set_trace (guestfs_h *g,\n"
30496 #: ../src/guestfs-actions.pod:6473
30498 "Trace messages are normally sent to C<stderr>, unless you register a "
30499 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30503 #: ../src/guestfs-actions.pod:6481
30504 msgid "guestfs_set_verbose"
30508 #: ../src/guestfs-actions.pod:6483
30512 " guestfs_set_verbose (guestfs_h *g,\n"
30518 #: ../src/guestfs-actions.pod:6492
30520 "Verbose messages are normally sent to C<stderr>, unless you register a "
30521 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30525 #: ../src/guestfs-actions.pod:6500
30526 msgid "guestfs_setcon"
30530 #: ../src/guestfs-actions.pod:6502
30534 " guestfs_setcon (guestfs_h *g,\n"
30535 " const char *context);\n"
30540 #: ../src/guestfs-actions.pod:6515
30541 msgid "guestfs_setxattr"
30545 #: ../src/guestfs-actions.pod:6517
30549 " guestfs_setxattr (guestfs_h *g,\n"
30550 " const char *xattr,\n"
30551 " const char *val,\n"
30553 " const char *path);\n"
30558 #: ../src/guestfs-actions.pod:6528
30559 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30563 #: ../src/guestfs-actions.pod:6534
30564 msgid "guestfs_sfdisk"
30568 #: ../src/guestfs-actions.pod:6536
30572 " guestfs_sfdisk (guestfs_h *g,\n"
30573 " const char *device,\n"
30577 " char *const *lines);\n"
30582 #: ../src/guestfs-actions.pod:6544 ../src/guestfs-actions.pod:6588
30583 #: ../src/guestfs-actions.pod:6622
30585 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
30590 #: ../src/guestfs-actions.pod:6571
30592 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30596 #: ../src/guestfs-actions.pod:6581
30597 msgid "guestfs_sfdiskM"
30601 #: ../src/guestfs-actions.pod:6583
30605 " guestfs_sfdiskM (guestfs_h *g,\n"
30606 " const char *device,\n"
30607 " char *const *lines);\n"
30612 #: ../src/guestfs-actions.pod:6595
30614 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30615 "partition sizes are specified in megabytes only (rounded to the nearest "
30616 "cylinder) and you don't need to specify the cyls, heads and sectors "
30617 "parameters which were rarely if ever used anyway."
30621 #: ../src/guestfs-actions.pod:6601
30623 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30624 "C<guestfs_part_disk>"
30628 #: ../src/guestfs-actions.pod:6611
30629 msgid "guestfs_sfdisk_N"
30633 #: ../src/guestfs-actions.pod:6613
30637 " guestfs_sfdisk_N (guestfs_h *g,\n"
30638 " const char *device,\n"
30643 " const char *line);\n"
30648 #: ../src/guestfs-actions.pod:6632
30650 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
30651 "for the cyls/heads/sectors parameters."
30655 #: ../src/guestfs-actions.pod:6635
30656 msgid "See also: C<guestfs_part_add>"
30660 #: ../src/guestfs-actions.pod:6644
30661 msgid "guestfs_sfdisk_disk_geometry"
30665 #: ../src/guestfs-actions.pod:6646
30669 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30670 " const char *device);\n"
30675 #: ../src/guestfs-actions.pod:6650
30677 "This displays the disk geometry of C<device> read from the partition table. "
30678 "Especially in the case where the underlying block device has been resized, "
30679 "this can be different from the kernel's idea of the geometry (see "
30680 "C<guestfs_sfdisk_kernel_geometry>)."
30684 #: ../src/guestfs-actions.pod:6663
30685 msgid "guestfs_sfdisk_kernel_geometry"
30689 #: ../src/guestfs-actions.pod:6665
30693 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30694 " const char *device);\n"
30699 #: ../src/guestfs-actions.pod:6679
30700 msgid "guestfs_sfdisk_l"
30704 #: ../src/guestfs-actions.pod:6681
30708 " guestfs_sfdisk_l (guestfs_h *g,\n"
30709 " const char *device);\n"
30714 #: ../src/guestfs-actions.pod:6685
30716 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
30721 #: ../src/guestfs-actions.pod:6696
30722 msgid "See also: C<guestfs_part_list>"
30726 #: ../src/guestfs-actions.pod:6703
30731 #: ../src/guestfs-actions.pod:6705
30735 " guestfs_sh (guestfs_h *g,\n"
30736 " const char *command);\n"
30741 #: ../src/guestfs-actions.pod:6712
30742 msgid "This is like C<guestfs_command>, but passes the command to:"
30746 #: ../src/guestfs-actions.pod:6720
30747 msgid "All the provisos about C<guestfs_command> apply to this call."
30751 #: ../src/guestfs-actions.pod:6727
30752 msgid "guestfs_sh_lines"
30756 #: ../src/guestfs-actions.pod:6729
30760 " guestfs_sh_lines (guestfs_h *g,\n"
30761 " const char *command);\n"
30766 #: ../src/guestfs-actions.pod:6733
30768 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30773 #: ../src/guestfs-actions.pod:6736
30774 msgid "See also: C<guestfs_command_lines>"
30778 #: ../src/guestfs-actions.pod:6744
30779 msgid "guestfs_sleep"
30783 #: ../src/guestfs-actions.pod:6746
30787 " guestfs_sleep (guestfs_h *g,\n"
30793 #: ../src/guestfs-actions.pod:6754
30794 msgid "(Added in 1.0.41)"
30798 #: ../src/guestfs-actions.pod:6756 ../src/guestfs-structs.pod:109
30799 msgid "guestfs_stat"
30803 #: ../src/guestfs-actions.pod:6758
30806 " struct guestfs_stat *\n"
30807 " guestfs_stat (guestfs_h *g,\n"
30808 " const char *path);\n"
30813 #: ../src/guestfs-actions.pod:6772 ../src/guestfs-structs.pod:135
30814 msgid "guestfs_statvfs"
30818 #: ../src/guestfs-actions.pod:6774
30821 " struct guestfs_statvfs *\n"
30822 " guestfs_statvfs (guestfs_h *g,\n"
30823 " const char *path);\n"
30828 #: ../src/guestfs-actions.pod:6784
30830 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30831 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
30835 #: ../src/guestfs-actions.pod:6790
30836 msgid "guestfs_strings"
30840 #: ../src/guestfs-actions.pod:6792
30844 " guestfs_strings (guestfs_h *g,\n"
30845 " const char *path);\n"
30850 #: ../src/guestfs-actions.pod:6808
30851 msgid "guestfs_strings_e"
30855 #: ../src/guestfs-actions.pod:6810
30859 " guestfs_strings_e (guestfs_h *g,\n"
30860 " const char *encoding,\n"
30861 " const char *path);\n"
30866 #: ../src/guestfs-actions.pod:6815
30868 "This is like the C<guestfs_strings> command, but allows you to specify the "
30869 "encoding of strings that are looked for in the source file C<path>."
30873 #: ../src/guestfs-actions.pod:6825
30875 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30876 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30880 #: ../src/guestfs-actions.pod:6863
30881 msgid "guestfs_swapoff_device"
30885 #: ../src/guestfs-actions.pod:6865
30889 " guestfs_swapoff_device (guestfs_h *g,\n"
30890 " const char *device);\n"
30895 #: ../src/guestfs-actions.pod:6869
30897 "This command disables the libguestfs appliance swap device or partition "
30898 "named C<device>. See C<guestfs_swapon_device>."
30902 #: ../src/guestfs-actions.pod:6877
30903 msgid "guestfs_swapoff_file"
30907 #: ../src/guestfs-actions.pod:6879
30911 " guestfs_swapoff_file (guestfs_h *g,\n"
30912 " const char *file);\n"
30917 #: ../src/guestfs-actions.pod:6889
30918 msgid "guestfs_swapoff_label"
30922 #: ../src/guestfs-actions.pod:6891
30926 " guestfs_swapoff_label (guestfs_h *g,\n"
30927 " const char *label);\n"
30932 #: ../src/guestfs-actions.pod:6902
30933 msgid "guestfs_swapoff_uuid"
30937 #: ../src/guestfs-actions.pod:6904
30941 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30942 " const char *uuid);\n"
30947 #: ../src/guestfs-actions.pod:6915
30948 msgid "guestfs_swapon_device"
30952 #: ../src/guestfs-actions.pod:6917
30956 " guestfs_swapon_device (guestfs_h *g,\n"
30957 " const char *device);\n"
30962 #: ../src/guestfs-actions.pod:6921
30964 "This command enables the libguestfs appliance to use the swap device or "
30965 "partition named C<device>. The increased memory is made available for all "
30966 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30970 #: ../src/guestfs-actions.pod:6937
30971 msgid "guestfs_swapon_file"
30975 #: ../src/guestfs-actions.pod:6939
30979 " guestfs_swapon_file (guestfs_h *g,\n"
30980 " const char *file);\n"
30985 #: ../src/guestfs-actions.pod:6943
30987 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
30992 #: ../src/guestfs-actions.pod:6950
30993 msgid "guestfs_swapon_label"
30997 #: ../src/guestfs-actions.pod:6952
31001 " guestfs_swapon_label (guestfs_h *g,\n"
31002 " const char *label);\n"
31007 #: ../src/guestfs-actions.pod:6956
31009 "This command enables swap to a labeled swap partition. See "
31010 "C<guestfs_swapon_device> for other notes."
31014 #: ../src/guestfs-actions.pod:6963
31015 msgid "guestfs_swapon_uuid"
31019 #: ../src/guestfs-actions.pod:6965
31023 " guestfs_swapon_uuid (guestfs_h *g,\n"
31024 " const char *uuid);\n"
31029 #: ../src/guestfs-actions.pod:6969
31031 "This command enables swap to a swap partition with the given UUID. See "
31032 "C<guestfs_swapon_device> for other notes."
31036 #: ../src/guestfs-actions.pod:6976
31037 msgid "guestfs_sync"
31041 #: ../src/guestfs-actions.pod:6978
31045 " guestfs_sync (guestfs_h *g);\n"
31050 #: ../src/guestfs-actions.pod:6991
31051 msgid "guestfs_tail"
31055 #: ../src/guestfs-actions.pod:6993
31059 " guestfs_tail (guestfs_h *g,\n"
31060 " const char *path);\n"
31065 #: ../src/guestfs-actions.pod:7009
31066 msgid "guestfs_tail_n"
31070 #: ../src/guestfs-actions.pod:7011
31074 " guestfs_tail_n (guestfs_h *g,\n"
31076 " const char *path);\n"
31081 #: ../src/guestfs-actions.pod:7033
31082 msgid "guestfs_tar_in"
31086 #: ../src/guestfs-actions.pod:7035
31090 " guestfs_tar_in (guestfs_h *g,\n"
31091 " const char *tarfile,\n"
31092 " const char *directory);\n"
31097 #: ../src/guestfs-actions.pod:7043
31099 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
31103 #: ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7065
31104 #: ../src/guestfs-actions.pod:7081 ../src/guestfs-actions.pod:7097
31105 msgid "(Added in 1.0.3)"
31109 #: ../src/guestfs-actions.pod:7050
31110 msgid "guestfs_tar_out"
31114 #: ../src/guestfs-actions.pod:7052
31118 " guestfs_tar_out (guestfs_h *g,\n"
31119 " const char *directory,\n"
31120 " const char *tarfile);\n"
31125 #: ../src/guestfs-actions.pod:7060
31127 "To download a compressed tarball, use C<guestfs_tgz_out> or "
31128 "C<guestfs_txz_out>."
31132 #: ../src/guestfs-actions.pod:7067
31133 msgid "guestfs_tgz_in"
31137 #: ../src/guestfs-actions.pod:7069
31141 " guestfs_tgz_in (guestfs_h *g,\n"
31142 " const char *tarball,\n"
31143 " const char *directory);\n"
31148 #: ../src/guestfs-actions.pod:7077
31149 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
31153 #: ../src/guestfs-actions.pod:7083
31154 msgid "guestfs_tgz_out"
31158 #: ../src/guestfs-actions.pod:7085
31162 " guestfs_tgz_out (guestfs_h *g,\n"
31163 " const char *directory,\n"
31164 " const char *tarball);\n"
31169 #: ../src/guestfs-actions.pod:7093
31170 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
31174 #: ../src/guestfs-actions.pod:7099
31175 msgid "guestfs_touch"
31179 #: ../src/guestfs-actions.pod:7101
31183 " guestfs_touch (guestfs_h *g,\n"
31184 " const char *path);\n"
31189 #: ../src/guestfs-actions.pod:7116
31190 msgid "guestfs_truncate"
31194 #: ../src/guestfs-actions.pod:7118
31198 " guestfs_truncate (guestfs_h *g,\n"
31199 " const char *path);\n"
31204 #: ../src/guestfs-actions.pod:7129
31205 msgid "guestfs_truncate_size"
31209 #: ../src/guestfs-actions.pod:7131
31213 " guestfs_truncate_size (guestfs_h *g,\n"
31214 " const char *path,\n"
31215 " int64_t size);\n"
31220 #: ../src/guestfs-actions.pod:7139
31222 "If the current file size is less than C<size> then the file is extended to "
31223 "the required size with zero bytes. This creates a sparse file (ie. disk "
31224 "blocks are not allocated for the file until you write to it). To create a "
31225 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
31229 #: ../src/guestfs-actions.pod:7149
31230 msgid "guestfs_tune2fs_l"
31234 #: ../src/guestfs-actions.pod:7151
31238 " guestfs_tune2fs_l (guestfs_h *g,\n"
31239 " const char *device);\n"
31244 #: ../src/guestfs-actions.pod:7171
31245 msgid "guestfs_txz_in"
31249 #: ../src/guestfs-actions.pod:7173
31253 " guestfs_txz_in (guestfs_h *g,\n"
31254 " const char *tarball,\n"
31255 " const char *directory);\n"
31260 #: ../src/guestfs-actions.pod:7185
31261 msgid "guestfs_txz_out"
31265 #: ../src/guestfs-actions.pod:7187
31269 " guestfs_txz_out (guestfs_h *g,\n"
31270 " const char *directory,\n"
31271 " const char *tarball);\n"
31276 #: ../src/guestfs-actions.pod:7199
31277 msgid "guestfs_umask"
31281 #: ../src/guestfs-actions.pod:7201
31285 " guestfs_umask (guestfs_h *g,\n"
31291 #: ../src/guestfs-actions.pod:7217
31293 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
31294 "C<guestfs_mkdir>."
31298 #: ../src/guestfs-actions.pod:7226
31299 msgid "guestfs_umount"
31303 #: ../src/guestfs-actions.pod:7228
31307 " guestfs_umount (guestfs_h *g,\n"
31308 " const char *pathordevice);\n"
31313 #: ../src/guestfs-actions.pod:7240
31314 msgid "guestfs_umount_all"
31318 #: ../src/guestfs-actions.pod:7242
31322 " guestfs_umount_all (guestfs_h *g);\n"
31327 #: ../src/guestfs-actions.pod:7253
31328 msgid "guestfs_upload"
31332 #: ../src/guestfs-actions.pod:7255
31336 " guestfs_upload (guestfs_h *g,\n"
31337 " const char *filename,\n"
31338 " const char *remotefilename);\n"
31343 #: ../src/guestfs-actions.pod:7265
31344 msgid "See also C<guestfs_download>."
31348 #: ../src/guestfs-actions.pod:7276
31349 msgid "guestfs_upload_offset"
31353 #: ../src/guestfs-actions.pod:7278
31357 " guestfs_upload_offset (guestfs_h *g,\n"
31358 " const char *filename,\n"
31359 " const char *remotefilename,\n"
31360 " int64_t offset);\n"
31365 #: ../src/guestfs-actions.pod:7294
31367 "Note that there is no limit on the amount of data that can be uploaded with "
31368 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31369 "full amount unless an error occurs."
31373 #: ../src/guestfs-actions.pod:7299
31374 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31378 #: ../src/guestfs-actions.pod:7310
31379 msgid "guestfs_utimens"
31383 #: ../src/guestfs-actions.pod:7312
31387 " guestfs_utimens (guestfs_h *g,\n"
31388 " const char *path,\n"
31389 " int64_t atsecs,\n"
31390 " int64_t atnsecs,\n"
31391 " int64_t mtsecs,\n"
31392 " int64_t mtnsecs);\n"
31397 #: ../src/guestfs-actions.pod:7341 ../src/guestfs-structs.pod:175
31398 msgid "guestfs_version"
31402 #: ../src/guestfs-actions.pod:7343
31405 " struct guestfs_version *\n"
31406 " guestfs_version (guestfs_h *g);\n"
31411 #: ../src/guestfs-actions.pod:7371
31413 "I<Note:> Don't use this call to test for availability of features. In "
31414 "enterprise distributions we backport features from later versions into "
31415 "earlier versions, making this an unreliable way to test for features. Use "
31416 "C<guestfs_available> instead."
31420 #: ../src/guestfs-actions.pod:7377
31422 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31423 "error. I<The caller must call C<guestfs_free_version> after use>."
31427 #: ../src/guestfs-actions.pod:7381
31428 msgid "(Added in 1.0.58)"
31432 #: ../src/guestfs-actions.pod:7383
31433 msgid "guestfs_vfs_label"
31437 #: ../src/guestfs-actions.pod:7385
31441 " guestfs_vfs_label (guestfs_h *g,\n"
31442 " const char *device);\n"
31447 #: ../src/guestfs-actions.pod:7394
31448 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31452 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-actions.pod:7436
31453 msgid "(Added in 1.3.18)"
31457 #: ../src/guestfs-actions.pod:7401
31458 msgid "guestfs_vfs_type"
31462 #: ../src/guestfs-actions.pod:7403
31466 " guestfs_vfs_type (guestfs_h *g,\n"
31467 " const char *device);\n"
31472 #: ../src/guestfs-actions.pod:7420
31473 msgid "guestfs_vfs_uuid"
31477 #: ../src/guestfs-actions.pod:7422
31481 " guestfs_vfs_uuid (guestfs_h *g,\n"
31482 " const char *device);\n"
31487 #: ../src/guestfs-actions.pod:7431
31488 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31492 #: ../src/guestfs-actions.pod:7438
31493 msgid "guestfs_vg_activate"
31497 #: ../src/guestfs-actions.pod:7440
31501 " guestfs_vg_activate (guestfs_h *g,\n"
31503 " char *const *volgroups);\n"
31508 #: ../src/guestfs-actions.pod:7457
31509 msgid "guestfs_vg_activate_all"
31513 #: ../src/guestfs-actions.pod:7459
31517 " guestfs_vg_activate_all (guestfs_h *g,\n"
31518 " int activate);\n"
31523 #: ../src/guestfs-actions.pod:7472
31524 msgid "guestfs_vgcreate"
31528 #: ../src/guestfs-actions.pod:7474
31532 " guestfs_vgcreate (guestfs_h *g,\n"
31533 " const char *volgroup,\n"
31534 " char *const *physvols);\n"
31539 #: ../src/guestfs-actions.pod:7486
31540 msgid "guestfs_vglvuuids"
31544 #: ../src/guestfs-actions.pod:7488
31548 " guestfs_vglvuuids (guestfs_h *g,\n"
31549 " const char *vgname);\n"
31554 #: ../src/guestfs-actions.pod:7495
31556 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31557 "associate logical volumes and volume groups."
31561 #: ../src/guestfs-actions.pod:7498
31562 msgid "See also C<guestfs_vgpvuuids>."
31566 #: ../src/guestfs-actions.pod:7506
31567 msgid "guestfs_vgpvuuids"
31571 #: ../src/guestfs-actions.pod:7508
31575 " guestfs_vgpvuuids (guestfs_h *g,\n"
31576 " const char *vgname);\n"
31581 #: ../src/guestfs-actions.pod:7515
31583 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31584 "associate physical volumes and volume groups."
31588 #: ../src/guestfs-actions.pod:7518
31589 msgid "See also C<guestfs_vglvuuids>."
31593 #: ../src/guestfs-actions.pod:7526
31594 msgid "guestfs_vgremove"
31598 #: ../src/guestfs-actions.pod:7528
31602 " guestfs_vgremove (guestfs_h *g,\n"
31603 " const char *vgname);\n"
31608 #: ../src/guestfs-actions.pod:7541
31609 msgid "guestfs_vgrename"
31613 #: ../src/guestfs-actions.pod:7543
31617 " guestfs_vgrename (guestfs_h *g,\n"
31618 " const char *volgroup,\n"
31619 " const char *newvolgroup);\n"
31624 #: ../src/guestfs-actions.pod:7554
31625 msgid "guestfs_vgs"
31629 #: ../src/guestfs-actions.pod:7556
31633 " guestfs_vgs (guestfs_h *g);\n"
31638 #: ../src/guestfs-actions.pod:7565
31639 msgid "See also C<guestfs_vgs_full>."
31643 #: ../src/guestfs-actions.pod:7573
31644 msgid "guestfs_vgs_full"
31648 #: ../src/guestfs-actions.pod:7575
31651 " struct guestfs_lvm_vg_list *\n"
31652 " guestfs_vgs_full (guestfs_h *g);\n"
31657 #: ../src/guestfs-actions.pod:7581
31659 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31660 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31664 #: ../src/guestfs-actions.pod:7587
31665 msgid "guestfs_vgscan"
31669 #: ../src/guestfs-actions.pod:7589
31673 " guestfs_vgscan (guestfs_h *g);\n"
31678 #: ../src/guestfs-actions.pod:7599
31679 msgid "guestfs_vguuid"
31683 #: ../src/guestfs-actions.pod:7601
31687 " guestfs_vguuid (guestfs_h *g,\n"
31688 " const char *vgname);\n"
31693 #: ../src/guestfs-actions.pod:7612
31694 msgid "guestfs_wait_ready"
31698 #: ../src/guestfs-actions.pod:7614
31702 " guestfs_wait_ready (guestfs_h *g);\n"
31707 #: ../src/guestfs-actions.pod:7617
31709 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
31714 #: ../src/guestfs-actions.pod:7624
31715 msgid "This function is a no op."
31719 #: ../src/guestfs-actions.pod:7626
31721 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31722 "calling C<guestfs_launch> to wait for the launch to complete. However this "
31723 "is no longer necessary because C<guestfs_launch> now does the waiting."
31727 #: ../src/guestfs-actions.pod:7631
31729 "If you see any calls to this function in code then you can just remove them, "
31730 "unless you want to retain compatibility with older versions of the API."
31734 #: ../src/guestfs-actions.pod:7639
31735 msgid "guestfs_wc_c"
31739 #: ../src/guestfs-actions.pod:7641
31743 " guestfs_wc_c (guestfs_h *g,\n"
31744 " const char *path);\n"
31749 #: ../src/guestfs-actions.pod:7652
31750 msgid "guestfs_wc_l"
31754 #: ../src/guestfs-actions.pod:7654
31758 " guestfs_wc_l (guestfs_h *g,\n"
31759 " const char *path);\n"
31764 #: ../src/guestfs-actions.pod:7665
31765 msgid "guestfs_wc_w"
31769 #: ../src/guestfs-actions.pod:7667
31773 " guestfs_wc_w (guestfs_h *g,\n"
31774 " const char *path);\n"
31779 #: ../src/guestfs-actions.pod:7678
31780 msgid "guestfs_write"
31784 #: ../src/guestfs-actions.pod:7680
31788 " guestfs_write (guestfs_h *g,\n"
31789 " const char *path,\n"
31790 " const char *content,\n"
31791 " size_t content_size);\n"
31796 #: ../src/guestfs-actions.pod:7689
31797 msgid "See also C<guestfs_write_append>."
31801 #: ../src/guestfs-actions.pod:7698
31802 msgid "guestfs_write_append"
31806 #: ../src/guestfs-actions.pod:7700
31810 " guestfs_write_append (guestfs_h *g,\n"
31811 " const char *path,\n"
31812 " const char *content,\n"
31813 " size_t content_size);\n"
31818 #: ../src/guestfs-actions.pod:7709
31819 msgid "See also C<guestfs_write>."
31823 #: ../src/guestfs-actions.pod:7718
31824 msgid "guestfs_write_file"
31825 msgstr "guestfs_write_file"
31828 #: ../src/guestfs-actions.pod:7720
31832 " guestfs_write_file (guestfs_h *g,\n"
31833 " const char *path,\n"
31834 " const char *content,\n"
31839 " guestfs_write_file (guestfs_h *g,\n"
31840 " const char *path,\n"
31841 " const char *content,\n"
31846 #: ../src/guestfs-actions.pod:7726
31848 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
31853 #: ../src/guestfs-actions.pod:7751
31854 msgid "guestfs_zegrep"
31855 msgstr "guestfs_zegrep"
31858 #: ../src/guestfs-actions.pod:7753
31862 " guestfs_zegrep (guestfs_h *g,\n"
31863 " const char *regex,\n"
31864 " const char *path);\n"
31868 " guestfs_zegrep (guestfs_h *g,\n"
31869 " const char *regex,\n"
31870 " const char *path);\n"
31874 #: ../src/guestfs-actions.pod:7770
31875 msgid "guestfs_zegrepi"
31876 msgstr "guestfs_zegrepi"
31879 #: ../src/guestfs-actions.pod:7772
31883 " guestfs_zegrepi (guestfs_h *g,\n"
31884 " const char *regex,\n"
31885 " const char *path);\n"
31889 " guestfs_zegrepi (guestfs_h *g,\n"
31890 " const char *regex,\n"
31891 " const char *path);\n"
31895 #: ../src/guestfs-actions.pod:7789
31896 msgid "guestfs_zero"
31897 msgstr "guestfs_zero"
31900 #: ../src/guestfs-actions.pod:7791
31904 " guestfs_zero (guestfs_h *g,\n"
31905 " const char *device);\n"
31909 " guestfs_zero (guestfs_h *g,\n"
31910 " const char *device);\n"
31914 #: ../src/guestfs-actions.pod:7805
31916 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31917 "C<guestfs_is_zero_device>"
31921 #: ../src/guestfs-actions.pod:7817
31922 msgid "guestfs_zero_device"
31923 msgstr "guestfs_zero_device"
31926 #: ../src/guestfs-actions.pod:7819
31930 " guestfs_zero_device (guestfs_h *g,\n"
31931 " const char *device);\n"
31935 " guestfs_zero_device (guestfs_h *g,\n"
31936 " const char *device);\n"
31940 #: ../src/guestfs-actions.pod:7823
31942 "This command writes zeroes over the entire C<device>. Compare with "
31943 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31947 #: ../src/guestfs-actions.pod:7841
31948 msgid "(Added in 1.3.1)"
31949 msgstr "(Додано у 1.3.1)"
31952 #: ../src/guestfs-actions.pod:7843
31953 msgid "guestfs_zerofree"
31954 msgstr "guestfs_zerofree"
31957 #: ../src/guestfs-actions.pod:7845
31961 " guestfs_zerofree (guestfs_h *g,\n"
31962 " const char *device);\n"
31966 " guestfs_zerofree (guestfs_h *g,\n"
31967 " const char *device);\n"
31971 #: ../src/guestfs-actions.pod:7864
31972 msgid "guestfs_zfgrep"
31973 msgstr "guestfs_zfgrep"
31976 #: ../src/guestfs-actions.pod:7866
31980 " guestfs_zfgrep (guestfs_h *g,\n"
31981 " const char *pattern,\n"
31982 " const char *path);\n"
31986 " guestfs_zfgrep (guestfs_h *g,\n"
31987 " const char *pattern,\n"
31988 " const char *path);\n"
31992 #: ../src/guestfs-actions.pod:7883
31993 msgid "guestfs_zfgrepi"
31994 msgstr "guestfs_zfgrepi"
31997 #: ../src/guestfs-actions.pod:7885
32001 " guestfs_zfgrepi (guestfs_h *g,\n"
32002 " const char *pattern,\n"
32003 " const char *path);\n"
32007 " guestfs_zfgrepi (guestfs_h *g,\n"
32008 " const char *pattern,\n"
32009 " const char *path);\n"
32013 #: ../src/guestfs-actions.pod:7902
32014 msgid "guestfs_zfile"
32015 msgstr "guestfs_zfile"
32018 #: ../src/guestfs-actions.pod:7904
32022 " guestfs_zfile (guestfs_h *g,\n"
32023 " const char *meth,\n"
32024 " const char *path);\n"
32028 " guestfs_zfile (guestfs_h *g,\n"
32029 " const char *meth,\n"
32030 " const char *path);\n"
32034 #: ../src/guestfs-actions.pod:7909
32036 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
32041 #: ../src/guestfs-actions.pod:7921
32043 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
32048 #: ../src/guestfs-actions.pod:7929
32049 msgid "guestfs_zgrep"
32050 msgstr "guestfs_zgrep"
32053 #: ../src/guestfs-actions.pod:7931
32057 " guestfs_zgrep (guestfs_h *g,\n"
32058 " const char *regex,\n"
32059 " const char *path);\n"
32063 " guestfs_zgrep (guestfs_h *g,\n"
32064 " const char *regex,\n"
32065 " const char *path);\n"
32069 #: ../src/guestfs-actions.pod:7948
32070 msgid "guestfs_zgrepi"
32071 msgstr "guestfs_zgrepi"
32074 #: ../src/guestfs-actions.pod:7950
32078 " guestfs_zgrepi (guestfs_h *g,\n"
32079 " const char *regex,\n"
32080 " const char *path);\n"
32084 " guestfs_zgrepi (guestfs_h *g,\n"
32085 " const char *regex,\n"
32086 " const char *path);\n"
32090 #: ../src/guestfs-availability.pod:3
32095 #: ../src/guestfs-availability.pod:5
32097 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
32098 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
32099 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
32100 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
32101 "L</guestfs_aug_save> L</guestfs_aug_set>"
32105 #: ../src/guestfs-availability.pod:21
32110 #: ../src/guestfs-availability.pod:23
32111 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
32115 #: ../src/guestfs-availability.pod:26
32117 #| msgid "B<scrub>"
32122 #: ../src/guestfs-availability.pod:28
32123 msgid "The following functions: L</guestfs_grub_install>"
32127 #: ../src/guestfs-availability.pod:31
32129 msgstr "B<inotify>"
32132 #: ../src/guestfs-availability.pod:33
32134 "The following functions: L</guestfs_inotify_add_watch> L</"
32135 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
32136 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
32140 #: ../src/guestfs-availability.pod:41
32141 msgid "B<linuxfsuuid>"
32142 msgstr "B<linuxfsuuid>"
32145 #: ../src/guestfs-availability.pod:43
32147 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
32148 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
32152 #: ../src/guestfs-availability.pod:50
32153 msgid "B<linuxmodules>"
32154 msgstr "B<linuxmodules>"
32157 #: ../src/guestfs-availability.pod:52
32158 msgid "The following functions: L</guestfs_modprobe>"
32162 #: ../src/guestfs-availability.pod:55
32163 msgid "B<linuxxattrs>"
32164 msgstr "B<linuxxattrs>"
32167 #: ../src/guestfs-availability.pod:57
32169 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
32170 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
32171 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
32172 "guestfs_setxattr>"
32176 #: ../src/guestfs-availability.pod:68
32181 #: ../src/guestfs-availability.pod:70
32183 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
32184 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
32185 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
32189 #: ../src/guestfs-availability.pod:79
32194 #: ../src/guestfs-availability.pod:81
32196 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
32197 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
32198 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
32199 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
32200 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
32201 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
32202 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
32206 #: ../src/guestfs-availability.pod:104
32211 #: ../src/guestfs-availability.pod:106
32213 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
32214 "guestfs_mknod_b> L</guestfs_mknod_c>"
32218 #: ../src/guestfs-availability.pod:112
32223 #: ../src/guestfs-availability.pod:114
32224 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
32228 #: ../src/guestfs-availability.pod:117
32229 msgid "B<ntfsprogs>"
32230 msgstr "B<ntfsprogs>"
32233 #: ../src/guestfs-availability.pod:119
32235 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
32236 "L</guestfs_ntfsresize_size>"
32240 #: ../src/guestfs-availability.pod:124
32241 msgid "B<realpath>"
32242 msgstr "B<realpath>"
32245 #: ../src/guestfs-availability.pod:126
32246 msgid "The following functions: L</guestfs_realpath>"
32250 #: ../src/guestfs-availability.pod:129
32255 #: ../src/guestfs-availability.pod:131
32257 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
32258 "guestfs_scrub_freespace>"
32262 #: ../src/guestfs-availability.pod:136
32264 msgstr "B<selinux>"
32267 #: ../src/guestfs-availability.pod:138
32268 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
32272 #: ../src/guestfs-availability.pod:142
32277 #: ../src/guestfs-availability.pod:144
32278 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
32282 #: ../src/guestfs-availability.pod:148
32283 msgid "B<zerofree>"
32284 msgstr "B<zerofree>"
32287 #: ../src/guestfs-availability.pod:150
32288 msgid "The following functions: L</guestfs_zerofree>"
32292 #: ../src/guestfs-structs.pod:1
32293 msgid "guestfs_int_bool"
32297 #: ../src/guestfs-structs.pod:3
32300 " struct guestfs_int_bool {\n"
32308 #: ../src/guestfs-structs.pod:8
32311 " struct guestfs_int_bool_list {\n"
32312 " uint32_t len; /* Number of elements in list. */\n"
32313 " struct guestfs_int_bool *val; /* Elements. */\n"
32319 #: ../src/guestfs-structs.pod:13
32322 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32323 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32328 #: ../src/guestfs-structs.pod:16
32329 msgid "guestfs_lvm_pv"
32333 #: ../src/guestfs-structs.pod:18
32336 " struct guestfs_lvm_pv {\n"
32337 " char *pv_name;\n"
32338 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32339 " char pv_uuid[32];\n"
32341 " uint64_t pv_size;\n"
32342 " uint64_t dev_size;\n"
32343 " uint64_t pv_free;\n"
32344 " uint64_t pv_used;\n"
32345 " char *pv_attr;\n"
32346 " int64_t pv_pe_count;\n"
32347 " int64_t pv_pe_alloc_count;\n"
32348 " char *pv_tags;\n"
32349 " uint64_t pe_start;\n"
32350 " int64_t pv_mda_count;\n"
32351 " uint64_t pv_mda_free;\n"
32357 #: ../src/guestfs-structs.pod:36
32360 " struct guestfs_lvm_pv_list {\n"
32361 " uint32_t len; /* Number of elements in list. */\n"
32362 " struct guestfs_lvm_pv *val; /* Elements. */\n"
32368 #: ../src/guestfs-structs.pod:41
32371 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32372 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32377 #: ../src/guestfs-structs.pod:44
32378 msgid "guestfs_lvm_vg"
32382 #: ../src/guestfs-structs.pod:46
32385 " struct guestfs_lvm_vg {\n"
32386 " char *vg_name;\n"
32387 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32388 " char vg_uuid[32];\n"
32390 " char *vg_attr;\n"
32391 " uint64_t vg_size;\n"
32392 " uint64_t vg_free;\n"
32393 " char *vg_sysid;\n"
32394 " uint64_t vg_extent_size;\n"
32395 " int64_t vg_extent_count;\n"
32396 " int64_t vg_free_count;\n"
32397 " int64_t max_lv;\n"
32398 " int64_t max_pv;\n"
32399 " int64_t pv_count;\n"
32400 " int64_t lv_count;\n"
32401 " int64_t snap_count;\n"
32402 " int64_t vg_seqno;\n"
32403 " char *vg_tags;\n"
32404 " int64_t vg_mda_count;\n"
32405 " uint64_t vg_mda_free;\n"
32411 #: ../src/guestfs-structs.pod:69
32414 " struct guestfs_lvm_vg_list {\n"
32415 " uint32_t len; /* Number of elements in list. */\n"
32416 " struct guestfs_lvm_vg *val; /* Elements. */\n"
32422 #: ../src/guestfs-structs.pod:74
32425 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32426 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32431 #: ../src/guestfs-structs.pod:77
32432 msgid "guestfs_lvm_lv"
32436 #: ../src/guestfs-structs.pod:79
32439 " struct guestfs_lvm_lv {\n"
32440 " char *lv_name;\n"
32441 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32442 " char lv_uuid[32];\n"
32443 " char *lv_attr;\n"
32444 " int64_t lv_major;\n"
32445 " int64_t lv_minor;\n"
32446 " int64_t lv_kernel_major;\n"
32447 " int64_t lv_kernel_minor;\n"
32448 " uint64_t lv_size;\n"
32449 " int64_t seg_count;\n"
32451 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
32452 " float snap_percent;\n"
32453 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
32454 " float copy_percent;\n"
32455 " char *move_pv;\n"
32456 " char *lv_tags;\n"
32457 " char *mirror_log;\n"
32458 " char *modules;\n"
32464 #: ../src/guestfs-structs.pod:101
32467 " struct guestfs_lvm_lv_list {\n"
32468 " uint32_t len; /* Number of elements in list. */\n"
32469 " struct guestfs_lvm_lv *val; /* Elements. */\n"
32475 #: ../src/guestfs-structs.pod:106
32478 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32479 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32484 #: ../src/guestfs-structs.pod:111
32487 " struct guestfs_stat {\n"
32491 " int64_t nlink;\n"
32496 " int64_t blksize;\n"
32497 " int64_t blocks;\n"
32498 " int64_t atime;\n"
32499 " int64_t mtime;\n"
32500 " int64_t ctime;\n"
32506 #: ../src/guestfs-structs.pod:127
32509 " struct guestfs_stat_list {\n"
32510 " uint32_t len; /* Number of elements in list. */\n"
32511 " struct guestfs_stat *val; /* Elements. */\n"
32517 #: ../src/guestfs-structs.pod:132
32520 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32521 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32526 #: ../src/guestfs-structs.pod:137
32529 " struct guestfs_statvfs {\n"
32530 " int64_t bsize;\n"
32531 " int64_t frsize;\n"
32532 " int64_t blocks;\n"
32533 " int64_t bfree;\n"
32534 " int64_t bavail;\n"
32535 " int64_t files;\n"
32536 " int64_t ffree;\n"
32537 " int64_t favail;\n"
32540 " int64_t namemax;\n"
32546 #: ../src/guestfs-structs.pod:151
32549 " struct guestfs_statvfs_list {\n"
32550 " uint32_t len; /* Number of elements in list. */\n"
32551 " struct guestfs_statvfs *val; /* Elements. */\n"
32557 #: ../src/guestfs-structs.pod:156
32560 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32561 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32566 #: ../src/guestfs-structs.pod:159
32567 msgid "guestfs_dirent"
32571 #: ../src/guestfs-structs.pod:161
32574 " struct guestfs_dirent {\n"
32583 #: ../src/guestfs-structs.pod:167
32586 " struct guestfs_dirent_list {\n"
32587 " uint32_t len; /* Number of elements in list. */\n"
32588 " struct guestfs_dirent *val; /* Elements. */\n"
32594 #: ../src/guestfs-structs.pod:172
32597 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32598 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32603 #: ../src/guestfs-structs.pod:177
32606 " struct guestfs_version {\n"
32607 " int64_t major;\n"
32608 " int64_t minor;\n"
32609 " int64_t release;\n"
32616 #: ../src/guestfs-structs.pod:184
32619 " struct guestfs_version_list {\n"
32620 " uint32_t len; /* Number of elements in list. */\n"
32621 " struct guestfs_version *val; /* Elements. */\n"
32627 #: ../src/guestfs-structs.pod:189
32630 " void guestfs_free_version (struct guestfs_free_version *);\n"
32631 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32636 #: ../src/guestfs-structs.pod:192
32637 msgid "guestfs_xattr"
32641 #: ../src/guestfs-structs.pod:194
32644 " struct guestfs_xattr {\n"
32645 " char *attrname;\n"
32646 " /* The next two fields describe a byte array. */\n"
32647 " uint32_t attrval_len;\n"
32648 " char *attrval;\n"
32654 #: ../src/guestfs-structs.pod:201
32657 " struct guestfs_xattr_list {\n"
32658 " uint32_t len; /* Number of elements in list. */\n"
32659 " struct guestfs_xattr *val; /* Elements. */\n"
32665 #: ../src/guestfs-structs.pod:206
32668 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32669 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32674 #: ../src/guestfs-structs.pod:209
32675 msgid "guestfs_inotify_event"
32679 #: ../src/guestfs-structs.pod:211
32682 " struct guestfs_inotify_event {\n"
32683 " int64_t in_wd;\n"
32684 " uint32_t in_mask;\n"
32685 " uint32_t in_cookie;\n"
32686 " char *in_name;\n"
32692 #: ../src/guestfs-structs.pod:218
32695 " struct guestfs_inotify_event_list {\n"
32696 " uint32_t len; /* Number of elements in list. */\n"
32697 " struct guestfs_inotify_event *val; /* Elements. */\n"
32703 #: ../src/guestfs-structs.pod:223
32706 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32707 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32712 #: ../src/guestfs-structs.pod:226
32713 msgid "guestfs_partition"
32717 #: ../src/guestfs-structs.pod:228
32720 " struct guestfs_partition {\n"
32721 " int32_t part_num;\n"
32722 " uint64_t part_start;\n"
32723 " uint64_t part_end;\n"
32724 " uint64_t part_size;\n"
32730 #: ../src/guestfs-structs.pod:235
32733 " struct guestfs_partition_list {\n"
32734 " uint32_t len; /* Number of elements in list. */\n"
32735 " struct guestfs_partition *val; /* Elements. */\n"
32741 #: ../src/guestfs-structs.pod:240
32744 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32745 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32750 #: ../src/guestfs-structs.pod:243
32751 msgid "guestfs_application"
32755 #: ../src/guestfs-structs.pod:245
32758 " struct guestfs_application {\n"
32759 " char *app_name;\n"
32760 " char *app_display_name;\n"
32761 " int32_t app_epoch;\n"
32762 " char *app_version;\n"
32763 " char *app_release;\n"
32764 " char *app_install_path;\n"
32765 " char *app_trans_path;\n"
32766 " char *app_publisher;\n"
32767 " char *app_url;\n"
32768 " char *app_source_package;\n"
32769 " char *app_summary;\n"
32770 " char *app_description;\n"
32776 #: ../src/guestfs-structs.pod:260
32779 " struct guestfs_application_list {\n"
32780 " uint32_t len; /* Number of elements in list. */\n"
32781 " struct guestfs_application *val; /* Elements. */\n"
32787 #: ../src/guestfs-structs.pod:265
32790 " void guestfs_free_application (struct guestfs_free_application *);\n"
32791 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32796 #: ../src/guestfs.pod:5
32797 msgid "guestfs - Library for accessing and modifying virtual machine images"
32799 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32803 #: ../src/guestfs.pod:11
32806 " guestfs_h *g = guestfs_create ();\n"
32807 " guestfs_add_drive (g, \"guest.img\");\n"
32808 " guestfs_launch (g);\n"
32809 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32810 " guestfs_touch (g, \"/hello\");\n"
32811 " guestfs_umount (g, \"/\");\n"
32812 " guestfs_close (g);\n"
32815 " guestfs_h *g = guestfs_create ();\n"
32816 " guestfs_add_drive (g, \"guest.img\");\n"
32817 " guestfs_launch (g);\n"
32818 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32819 " guestfs_touch (g, \"/hello\");\n"
32820 " guestfs_umount (g, \"/\");\n"
32821 " guestfs_close (g);\n"
32825 #: ../src/guestfs.pod:25
32827 "Libguestfs is a library for accessing and modifying guest disk images. "
32828 "Amongst the things this is good for: making batch configuration changes to "
32829 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32830 "between virtualization systems (see also: virt-p2v), performing partial "
32831 "backups, performing partial guest clones, cloning guests and changing "
32832 "registry/UUID/hostname info, and much else besides."
32836 #: ../src/guestfs.pod:33
32838 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32839 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32840 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32845 #: ../src/guestfs.pod:38
32847 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32848 "what filesystem is in each LV, etc.). It can also run commands in the "
32849 "context of the guest. Also you can access filesystems over FUSE."
32853 #: ../src/guestfs.pod:43
32855 "Libguestfs is a library that can be linked with C and C++ management "
32856 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32857 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
32862 #: ../src/guestfs.pod:48
32864 "You don't need to be root to use libguestfs, although obviously you do need "
32865 "enough permissions to access the disk images."
32869 #: ../src/guestfs.pod:51
32871 "Libguestfs is a large API because it can do many things. For a gentle "
32872 "introduction, please read the L</API OVERVIEW> section next."
32876 #: ../src/guestfs.pod:54
32878 "There are also some example programs in the L<guestfs-examples(3)> manual "
32883 #: ../src/guestfs.pod:57
32884 msgid "API OVERVIEW"
32888 #: ../src/guestfs.pod:59
32890 "This section provides a gentler overview of the libguestfs API. We also try "
32891 "to group API calls together, where that may not be obvious from reading "
32892 "about the individual calls in the main section of this manual."
32896 #: ../src/guestfs.pod:64
32901 #: ../src/guestfs.pod:66
32903 "Before you can use libguestfs calls, you have to create a handle. Then you "
32904 "must add at least one disk image to the handle, followed by launching the "
32905 "handle, then performing whatever operations you want, and finally closing "
32906 "the handle. By convention we use the single letter C<g> for the name of the "
32907 "handle variable, although of course you can use any name you want."
32911 #: ../src/guestfs.pod:73
32912 msgid "The general structure of all libguestfs-using programs looks like this:"
32916 #: ../src/guestfs.pod:76
32919 " guestfs_h *g = guestfs_create ();\n"
32922 " guestfs_h *g = guestfs_create ();\n"
32926 #: ../src/guestfs.pod:78
32929 " /* Call guestfs_add_drive additional times if there are\n"
32930 " * multiple disk images.\n"
32932 " guestfs_add_drive (g, \"guest.img\");\n"
32937 #: ../src/guestfs.pod:83
32940 " /* Most manipulation calls won't work until you've launched\n"
32941 " * the handle 'g'. You have to do this _after_ adding drives\n"
32942 " * and _before_ other commands.\n"
32944 " guestfs_launch (g);\n"
32949 #: ../src/guestfs.pod:89
32952 " /* Now you can examine what partitions, LVs etc are available.\n"
32954 " char **partitions = guestfs_list_partitions (g);\n"
32955 " char **logvols = guestfs_lvs (g);\n"
32958 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32960 " char **partitions = guestfs_list_partitions (g);\n"
32961 " char **logvols = guestfs_lvs (g);\n"
32965 #: ../src/guestfs.pod:94
32968 " /* To access a filesystem in the image, you must mount it.\n"
32970 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32973 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32975 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32979 #: ../src/guestfs.pod:98
32982 " /* Now you can perform filesystem actions on the guest\n"
32985 " guestfs_touch (g, \"/hello\");\n"
32990 #: ../src/guestfs.pod:103
32993 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
32994 " * it is done automatically when you close the handle. See\n"
32995 " * discussion of autosync in this page.\n"
32997 " guestfs_sync (g);\n"
33002 #: ../src/guestfs.pod:109
33005 " /* Close the handle 'g'. */\n"
33006 " guestfs_close (g);\n"
33009 " /* Закрити дескриптор 'g'. */\n"
33010 " guestfs_close (g);\n"
33014 #: ../src/guestfs.pod:112
33016 "The code above doesn't include any error checking. In real code you should "
33017 "check return values carefully for errors. In general all functions that "
33018 "return integers return C<-1> on error, and all functions that return "
33019 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
33020 "how to handle errors, and consult the documentation for each function call "
33021 "below to see precisely how they return error indications. See L<guestfs-"
33022 "examples(3)> for fully worked examples."
33026 #: ../src/guestfs.pod:121
33027 msgid "DISK IMAGES"
33028 msgstr "ОБРАЗИ ДИСКІВ"
33031 #: ../src/guestfs.pod:123
33033 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
33034 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
33035 "actual block device, or simply an empty file of zeroes that you have created "
33036 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
33041 #: ../src/guestfs.pod:129
33043 "The call you should use in modern code for adding drives is L</"
33044 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
33045 "specifying that the format is raw, do:"
33049 #: ../src/guestfs.pod:133
33052 " guestfs_add_drive_opts (g, filename,\n"
33053 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33057 " guestfs_add_drive_opts (g, filename,\n"
33058 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33063 #: ../src/guestfs.pod:137
33064 msgid "You can add a disk read-only using:"
33065 msgstr "Ви можете додати диск у режимі лише читання:"
33068 #: ../src/guestfs.pod:139
33071 " guestfs_add_drive_opts (g, filename,\n"
33072 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33073 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33077 " guestfs_add_drive_opts (g, filename,\n"
33078 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33079 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33084 #: ../src/guestfs.pod:144
33086 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
33087 "libguestfs won't modify the file."
33091 #: ../src/guestfs.pod:147
33093 "Be extremely cautious if the disk image is in use, eg. if it is being used "
33094 "by a virtual machine. Adding it read-write will almost certainly cause disk "
33095 "corruption, but adding it read-only is safe."
33099 #: ../src/guestfs.pod:151
33101 "You must add at least one disk image, and you may add multiple disk images. "
33102 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
33103 "first one you added), C</dev/sdb> (for the second one you added), etc."
33107 #: ../src/guestfs.pod:156
33109 "Once L</guestfs_launch> has been called you cannot add any more images. You "
33110 "can call L</guestfs_list_devices> to get a list of the device names, in the "
33111 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
33115 #: ../src/guestfs.pod:161
33117 msgstr "МОНТУВАННЯ"
33120 #: ../src/guestfs.pod:163
33122 "Before you can read or write files, create directories and so on in a disk "
33123 "image that contains filesystems, you have to mount those filesystems using "
33124 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
33125 "a disk image contains (for example) one partition with a filesystem on that "
33126 "partition, then you can mount it directly:"
33130 #: ../src/guestfs.pod:170
33133 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33136 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33140 #: ../src/guestfs.pod:172
33142 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
33143 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
33144 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
33145 "that these are libguestfs virtual devices, and are nothing to do with host "
33150 #: ../src/guestfs.pod:178
33152 "If you are given a disk image and you don't know what it contains then you "
33153 "have to find out. Libguestfs can do that too: use L</"
33154 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
33155 "LVs, and either try mounting each to see what is mountable, or else examine "
33156 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
33157 "filesystems, use L</guestfs_list_filesystems>."
33161 #: ../src/guestfs.pod:186
33163 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
33164 "L</INSPECTION> below). But you might find it easier to look at higher level "
33165 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
33169 #: ../src/guestfs.pod:191
33171 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
33172 "several other variations of the C<guestfs_mount_*> call."
33176 #: ../src/guestfs.pod:194
33177 msgid "FILESYSTEM ACCESS AND MODIFICATION"
33178 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
33181 #: ../src/guestfs.pod:196
33183 "The majority of the libguestfs API consists of fairly low-level calls for "
33184 "accessing and modifying the files, directories, symlinks etc on mounted "
33185 "filesystems. There are over a hundred such calls which you can find listed "
33186 "in detail below in this man page, and we don't even pretend to cover them "
33187 "all in this overview."
33191 #: ../src/guestfs.pod:202
33193 "Specify filenames as full paths, starting with C<\"/\"> and including the "
33196 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
33197 "точкою монтування."
33200 #: ../src/guestfs.pod:205
33202 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
33203 "the file called C<\"etc/passwd\"> then you could do:"
33205 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
33206 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
33210 #: ../src/guestfs.pod:208
33213 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33216 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33220 #: ../src/guestfs.pod:210
33222 "This would return C<data> as a newly allocated buffer containing the full "
33223 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
33224 "or C<NULL> if there was an error."
33228 #: ../src/guestfs.pod:214
33230 "As another example, to create a top-level directory on that filesystem "
33231 "called C<\"var\"> you would do:"
33235 #: ../src/guestfs.pod:217
33238 " guestfs_mkdir (g, \"/var\");\n"
33241 " guestfs_mkdir (g, \"/var\");\n"
33245 #: ../src/guestfs.pod:219
33246 msgid "To create a symlink you could do:"
33247 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
33250 #: ../src/guestfs.pod:221
33253 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33254 " \"/etc/rc3.d/S30portmap\");\n"
33257 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33258 " \"/etc/rc3.d/S30portmap\");\n"
33262 #: ../src/guestfs.pod:224
33264 "Libguestfs will reject attempts to use relative paths and there is no "
33265 "concept of a current working directory."
33269 #: ../src/guestfs.pod:227
33271 "Libguestfs can return errors in many situations: for example if the "
33272 "filesystem isn't writable, or if a file or directory that you requested "
33273 "doesn't exist. If you are using the C API (documented here) you have to "
33274 "check for those error conditions after each call. (Other language bindings "
33275 "turn these errors into exceptions)."
33279 #: ../src/guestfs.pod:233
33281 "File writes are affected by the per-handle umask, set by calling L</"
33282 "guestfs_umask> and defaulting to 022. See L</UMASK>."
33286 #: ../src/guestfs.pod:236
33287 msgid "PARTITIONING"
33288 msgstr "ПОДІЛ НА РОЗДІЛИ"
33291 #: ../src/guestfs.pod:238
33293 "Libguestfs contains API calls to read, create and modify partition tables on "
33298 #: ../src/guestfs.pod:241
33300 "In the common case where you want to create a single partition covering the "
33301 "whole disk, you should use the L</guestfs_part_disk> call:"
33305 #: ../src/guestfs.pod:245
33308 " const char *parttype = \"mbr\";\n"
33309 " if (disk_is_larger_than_2TB)\n"
33310 " parttype = \"gpt\";\n"
33311 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33314 " const char *parttype = \"mbr\";\n"
33315 " if (disk_is_larger_than_2TB)\n"
33316 " parttype = \"gpt\";\n"
33317 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33321 #: ../src/guestfs.pod:250
33323 "Obviously this effectively wipes anything that was on that disk image before."
33327 #: ../src/guestfs.pod:253
33332 #: ../src/guestfs.pod:255
33334 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
33335 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
33336 "you familiarize yourself with the concepts of physical volumes, volume "
33337 "groups and logical volumes."
33341 #: ../src/guestfs.pod:260
33343 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
33344 "tldp.org/HOWTO/LVM-HOWTO/>."
33348 #: ../src/guestfs.pod:263
33349 msgid "DOWNLOADING"
33350 msgstr "ОТРИМАННЯ ДАНИХ"
33353 #: ../src/guestfs.pod:265
33355 "Use L</guestfs_cat> to download small, text only files. This call is "
33356 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33357 "NUL (C<\\0>) characters. However the API is very simple to use."
33361 #: ../src/guestfs.pod:269
33363 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33364 "bit data, since it returns a (pointer, size) pair. However it is still "
33365 "limited to \"small\" files, less than 2 MB."
33369 #: ../src/guestfs.pod:273
33371 "L</guestfs_download> can be used to download any file, with no limits on "
33372 "content or size (even files larger than 4 GB)."
33376 #: ../src/guestfs.pod:276
33378 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33382 #: ../src/guestfs.pod:279
33384 msgstr "ВИВАНТАЖЕННЯ"
33387 #: ../src/guestfs.pod:281
33389 "It's often the case that you want to write a file or files to the disk image."
33393 #: ../src/guestfs.pod:284
33395 "To write a small file with fixed content, use L</guestfs_write>. To create "
33396 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
33397 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
33398 "of other functions for creating test files, for example L</guestfs_fill> and "
33399 "L</guestfs_fill_pattern>."
33403 #: ../src/guestfs.pod:290
33405 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
33406 "file content or size (even files larger than 4 GB)."
33410 #: ../src/guestfs.pod:293
33412 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33416 #: ../src/guestfs.pod:295
33418 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33419 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
33420 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
33421 "in a predictable way (eg. adding it last after all other drives) then you "
33422 "can get the device name from L</guestfs_list_devices> and mount it directly "
33423 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
33424 "portable between kernel versions, and they don't support labels or UUIDs. "
33425 "If you want to pre-build an image or you need to mount it using a label or "
33426 "UUID, use an ISO image instead."
33430 #: ../src/guestfs.pod:306
33432 msgstr "КОПІЮВАННЯ"
33435 #: ../src/guestfs.pod:308
33437 "There are various different commands for copying between files and devices "
33438 "and in and out of the guest filesystem. These are summarised in the table "
33443 #: ../src/guestfs.pod:314
33444 msgid "B<file> to B<file>"
33445 msgstr "B<файл> у B<файл>"
33448 #: ../src/guestfs.pod:316
33450 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33451 "directories recursively."
33455 #: ../src/guestfs.pod:319
33456 msgid "B<file or device> to B<file or device>"
33457 msgstr "B<файл або пристрій> у B<файл або пристрій>"
33460 #: ../src/guestfs.pod:321
33462 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33463 "devices in the guest."
33467 #: ../src/guestfs.pod:324
33468 msgid "Example: duplicate the contents of an LV:"
33472 #: ../src/guestfs.pod:326
33475 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33478 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33482 #: ../src/guestfs.pod:328
33484 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33485 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
33486 "guestfs_copy_size>."
33490 #: ../src/guestfs.pod:332
33491 msgid "B<file on the host> to B<file or device>"
33495 #: ../src/guestfs.pod:334
33496 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
33500 #: ../src/guestfs.pod:336
33501 msgid "B<file or device> to B<file on the host>"
33505 #: ../src/guestfs.pod:338
33506 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
33510 #: ../src/guestfs.pod:342
33511 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33515 #: ../src/guestfs.pod:344
33517 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33518 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33519 "appears you can only upload and download to files. However many Un*x-like "
33520 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33521 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33522 "and arbitrary file descriptor N."
33526 #: ../src/guestfs.pod:352
33527 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33531 #: ../src/guestfs.pod:355
33534 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33537 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33541 #: ../src/guestfs.pod:357
33542 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33546 #: ../src/guestfs.pod:359
33549 " char devfd[64];\n"
33550 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33551 " guestfs_tar_out (g, \"/\", devfd);\n"
33554 " char devfd[64];\n"
33555 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33556 " guestfs_tar_out (g, \"/\", devfd);\n"
33560 #: ../src/guestfs.pod:363
33561 msgid "LISTING FILES"
33562 msgstr "СПИСКИ ФАЙЛІВ"
33565 #: ../src/guestfs.pod:365
33567 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33568 "L<guestfish(1)>-equivalent command C<ll>)."
33572 #: ../src/guestfs.pod:368
33574 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33575 "programs, as a flat list of strings."
33579 #: ../src/guestfs.pod:371
33581 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33582 "directory, plus additional information about each one. It is more "
33583 "equivalent to using the L<readdir(3)> call on a local filesystem."
33587 #: ../src/guestfs.pod:375
33589 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33593 #: ../src/guestfs.pod:378
33594 msgid "RUNNING COMMANDS"
33595 msgstr "ВИКОНАННЯ КОМАНД"
33598 #: ../src/guestfs.pod:380
33600 "Although libguestfs is primarily an API for manipulating files inside guest "
33601 "images, we also provide some limited facilities for running commands inside "
33606 #: ../src/guestfs.pod:384
33607 msgid "There are many limitations to this:"
33611 #: ../src/guestfs.pod:390
33613 "The kernel version that the command runs under will be different from what "
33618 #: ../src/guestfs.pod:395
33620 "If the command needs to communicate with daemons, then most likely they "
33621 "won't be running."
33625 #: ../src/guestfs.pod:400
33626 msgid "The command will be running in limited memory."
33630 #: ../src/guestfs.pod:404
33632 "The network may not be available unless you enable it (see L</"
33633 "guestfs_set_network>)."
33637 #: ../src/guestfs.pod:409
33638 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33642 #: ../src/guestfs.pod:413
33644 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33648 #: ../src/guestfs.pod:418
33650 "For SELinux guests, you may need to enable SELinux and load policy first. "
33651 "See L</SELINUX> in this manpage."
33655 #: ../src/guestfs.pod:423
33657 "I<Security:> It is not safe to run commands from untrusted, possibly "
33658 "malicious guests. These commands may attempt to exploit your program by "
33659 "sending unexpected output. They could also try to exploit the Linux kernel "
33660 "or qemu provided by the libguestfs appliance. They could use the network "
33661 "provided by the libguestfs appliance to bypass ordinary network partitions "
33662 "and firewalls. They could use the elevated privileges or different SELinux "
33663 "context of your program to their advantage."
33667 #: ../src/guestfs.pod:432
33669 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33670 "(a script which runs when the guest next boots normally), and to have this "
33671 "script run the commands you want in the normal context of the running guest, "
33672 "network security and so on. For information about other security issues, "
33673 "see L</SECURITY>."
33677 #: ../src/guestfs.pod:440
33679 "The two main API calls to run commands are L</guestfs_command> and L</"
33680 "guestfs_sh> (there are also variations)."
33684 #: ../src/guestfs.pod:443
33686 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33687 "shell globs, redirections, etc will work."
33691 #: ../src/guestfs.pod:446
33692 msgid "CONFIGURATION FILES"
33693 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33696 #: ../src/guestfs.pod:448
33698 "To read and write configuration files in Linux guest filesystems, we "
33699 "strongly recommend using Augeas. For example, Augeas understands how to "
33700 "read and write, say, a Linux shadow password file or X.org configuration "
33701 "file, and so avoids you having to write that code."
33705 #: ../src/guestfs.pod:453
33707 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
33708 "document Augeas itself here because there is excellent documentation on the "
33709 "L<http://augeas.net/> website."
33713 #: ../src/guestfs.pod:457
33715 "If you don't want to use Augeas (you fool!) then try calling L</"
33716 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33721 #: ../src/guestfs.pod:461
33726 #: ../src/guestfs.pod:463
33728 "We support SELinux guests. To ensure that labeling happens correctly in "
33729 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33733 #: ../src/guestfs.pod:471
33734 msgid "Before launching, do:"
33738 #: ../src/guestfs.pod:473
33741 " guestfs_set_selinux (g, 1);\n"
33744 " guestfs_set_selinux (g, 1);\n"
33748 #: ../src/guestfs.pod:477
33750 "After mounting the guest's filesystem(s), load the policy. This is best "
33751 "done by running the L<load_policy(8)> command in the guest itself:"
33755 #: ../src/guestfs.pod:481
33758 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33761 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33765 #: ../src/guestfs.pod:483
33767 "(Older versions of C<load_policy> require you to specify the name of the "
33772 #: ../src/guestfs.pod:488
33774 "Optionally, set the security context for the API. The correct security "
33775 "context to use can only be known by inspecting the guest. As an example:"
33779 #: ../src/guestfs.pod:492
33782 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33785 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33789 #: ../src/guestfs.pod:496
33790 msgid "This will work for running commands and editing existing files."
33794 #: ../src/guestfs.pod:498
33796 "When new files are created, you may need to label them explicitly, for "
33797 "example by running the external command C<restorecon pathname>."
33801 #: ../src/guestfs.pod:502
33806 #: ../src/guestfs.pod:504
33808 "Certain calls are affected by the current file mode creation mask (the "
33809 "\"umask\"). In particular ones which create files or directories, such as "
33810 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
33811 "either the default mode that the file is created with or modifies the mode "
33816 #: ../src/guestfs.pod:510
33818 "The default umask is C<022>, so files are created with modes such as C<0644> "
33819 "and directories with C<0755>."
33823 #: ../src/guestfs.pod:513
33825 "There are two ways to avoid being affected by umask. Either set umask to 0 "
33826 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
33827 "guestfs_chmod> after creating each file or directory."
33831 #: ../src/guestfs.pod:517
33832 msgid "For more information about umask, see L<umask(2)>."
33836 #: ../src/guestfs.pod:521
33838 "Libguestfs allows you to access Linux guests which have been encrypted using "
33839 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33840 "standard. This includes nearly all whole disk encryption systems used by "
33841 "modern Linux guests."
33845 #: ../src/guestfs.pod:527
33847 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33848 "returns the string C<crypto_LUKS>)."
33852 #: ../src/guestfs.pod:530
33854 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
33855 "will require the passphrase!"
33859 #: ../src/guestfs.pod:533
33861 "Opening a LUKS device creates a new device mapper device called C</dev/"
33862 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33863 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
33864 "from and encrypted to the underlying block device respectively."
33868 #: ../src/guestfs.pod:539
33870 "LVM volume groups on the device can be made visible by calling L</"
33871 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
33872 "(s) can now be mounted in the usual way."
33876 #: ../src/guestfs.pod:543
33878 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
33879 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33880 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
33881 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33882 "underlying encrypted block device)."
33886 #: ../src/guestfs.pod:550
33891 #: ../src/guestfs.pod:552
33893 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33894 "contains operating systems, an install CD or a live CD. (These APIs used to "
33895 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33896 "version 1.5.3 the most frequently used part of this library has been "
33897 "rewritten in C and moved into the core code)."
33901 #: ../src/guestfs.pod:559
33903 "Add all disks belonging to the unknown virtual machine and call L</"
33904 "guestfs_launch> in the usual way."
33908 #: ../src/guestfs.pod:562
33910 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
33911 "and certain heuristics, and returns a list of operating systems that were "
33912 "found. An empty list means none were found. A single element is the root "
33913 "filesystem of the operating system. For dual- or multi-boot guests, "
33914 "multiple roots can be returned, each one corresponding to a separate "
33915 "operating system. (Multi-boot virtual machines are extremely rare in the "
33916 "world of virtualization, but since this scenario can happen, we have built "
33917 "libguestfs to deal with it.)"
33921 #: ../src/guestfs.pod:571
33923 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33924 "to get additional details about that operating system. For example, call L</"
33925 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33926 "Windows and Linux-based operating systems respectively."
33930 #: ../src/guestfs.pod:577
33932 "Un*x-like and Linux-based operating systems usually consist of several "
33933 "filesystems which are mounted at boot time (for example, a separate boot "
33934 "partition mounted on C</boot>). The inspection rules are able to detect how "
33935 "filesystems correspond to mount points. Call "
33936 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
33937 "hash table like this example:"
33941 #: ../src/guestfs.pod:584
33944 " /boot => /dev/sda1\n"
33945 " / => /dev/vg_guest/lv_root\n"
33946 " /usr => /dev/vg_guest/lv_usr\n"
33949 " /boot => /dev/sda1\n"
33950 " / => /dev/vg_guest/lv_root\n"
33951 " /usr => /dev/vg_guest/lv_usr\n"
33955 #: ../src/guestfs.pod:588
33957 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33958 "filesystems as suggested."
33962 #: ../src/guestfs.pod:591
33964 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33965 "usr>). Sorting the keys of the hash by length, shortest first, should work."
33969 #: ../src/guestfs.pod:595
33971 "Inspection currently only works for some common operating systems. "
33972 "Contributors are welcome to send patches for other operating systems that we "
33973 "currently cannot detect."
33977 #: ../src/guestfs.pod:599
33979 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
33980 "for more details. The L</guestfs_inspect_os> function just ignores any "
33981 "encrypted devices."
33985 #: ../src/guestfs.pod:603
33987 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33988 "inspection and caches the results in the guest handle. Subsequent calls to "
33989 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33990 "read the disks. If you change the content of the guest disks, you can redo "
33991 "inspection by calling L</guestfs_inspect_os> again. (L</"
33992 "guestfs_inspect_list_applications> works a little differently from the other "
33993 "calls and does read the disks. See documentation for that function for "
33998 #: ../src/guestfs.pod:612
33999 msgid "INSPECTING INSTALL DISKS"
34003 #: ../src/guestfs.pod:614
34005 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
34010 #: ../src/guestfs.pod:617
34012 "Call L</guestfs_inspect_get_format> to return the format of the operating "
34013 "system, which currently can be C<installed> (a regular operating system) or "
34014 "C<installer> (some sort of install disk)."
34018 #: ../src/guestfs.pod:621
34020 "Further information is available about the operating system that can be "
34021 "installed using the regular inspection APIs like L</"
34022 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
34026 #: ../src/guestfs.pod:626
34028 "Some additional information specific to installer disks is also available "
34029 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
34030 "guestfs_inspect_is_multipart> calls."
34034 #: ../src/guestfs.pod:631
34035 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
34039 #: ../src/guestfs.pod:633
34041 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
34042 "ntfs-3g.org/> driver."
34046 #: ../src/guestfs.pod:636
34047 msgid "DRIVE LETTERS AND PATHS"
34048 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
34051 #: ../src/guestfs.pod:638
34053 "DOS and Windows still use drive letters, and the filesystems are always "
34054 "treated as case insensitive by Windows itself, and therefore you might find "
34055 "a Windows configuration file referring to a path like C<c:\\windows"
34056 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
34057 "might be referred to as C</WINDOWS/System32>."
34061 #: ../src/guestfs.pod:644
34063 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
34064 "L</guestfs_inspect_get_drive_mappings>)"
34068 #: ../src/guestfs.pod:647
34070 "Dealing with separator characters (backslash vs forward slash) is outside "
34071 "the scope of libguestfs, but usually a simple character replacement will "
34076 #: ../src/guestfs.pod:651
34078 "To resolve the case insensitivity of paths, call L</"
34079 "guestfs_case_sensitive_path>."
34083 #: ../src/guestfs.pod:654
34084 msgid "ACCESSING THE WINDOWS REGISTRY"
34085 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
34088 #: ../src/guestfs.pod:656
34090 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
34091 "files, through the library C<hivex> which is part of the libguestfs project "
34092 "although ships as a separate tarball. You have to locate and download the "
34093 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
34094 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
34095 "reg(1)> for more help on this issue."
34099 #: ../src/guestfs.pod:664
34100 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
34101 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
34104 #: ../src/guestfs.pod:666
34106 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
34107 "provide something which looks like a Linux symlink. The way it tries to do "
34108 "the rewriting is described here:"
34112 #: ../src/guestfs.pod:670
34114 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34117 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34121 #: ../src/guestfs.pod:672
34123 "The essential problem is that ntfs-3g simply does not have enough "
34124 "information to do a correct job. NTFS links can contain drive letters and "
34125 "references to external device GUIDs that ntfs-3g has no way of resolving. "
34126 "It is almost certainly the case that libguestfs callers should ignore what "
34127 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
34131 #: ../src/guestfs.pod:679
34133 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
34134 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
34135 "attribute, and read the raw reparse data from that (you can find the format "
34136 "documented in various places around the web)."
34140 #: ../src/guestfs.pod:684
34141 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
34145 #: ../src/guestfs.pod:686
34147 "There are other useful extended attributes that can be read from ntfs-3g "
34148 "filesystems (using L</guestfs_getxattr>). See:"
34152 #: ../src/guestfs.pod:689
34154 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34156 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34159 #: ../src/guestfs.pod:691
34160 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
34161 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
34164 #: ../src/guestfs.pod:693
34166 "Although we don't want to discourage you from using the C API, we will "
34167 "mention here that the same API is also available in other languages."
34171 #: ../src/guestfs.pod:696
34173 "The API is broadly identical in all supported languages. This means that "
34174 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
34175 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
34176 "OCaml. In other words, a straightforward, predictable isomorphism between "
34181 #: ../src/guestfs.pod:702
34183 "Error messages are automatically transformed into exceptions if the language "
34188 #: ../src/guestfs.pod:705
34190 "We don't try to \"object orientify\" parts of the API in OO languages, "
34191 "although contributors are welcome to write higher level APIs above what we "
34192 "provide in their favourite languages if they wish."
34196 #: ../src/guestfs.pod:711
34201 #: ../src/guestfs.pod:713
34203 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
34204 "identical to the C API. C++ classes and exceptions are not used."
34208 #: ../src/guestfs.pod:717
34213 #: ../src/guestfs.pod:719
34215 "The C# bindings are highly experimental. Please read the warnings at the "
34216 "top of C<csharp/Libguestfs.cs>."
34220 #: ../src/guestfs.pod:722
34225 #: ../src/guestfs.pod:724
34227 #| msgid "See L<guestfs-ruby(3)>."
34228 msgid "See L<guestfs-erlang(3)>."
34229 msgstr "Див. L<guestfs-ruby(3)>."
34232 #: ../src/guestfs.pod:726
34234 msgstr "B<Haskell>"
34237 #: ../src/guestfs.pod:728
34239 "This is the only language binding that is working but incomplete. Only "
34240 "calls which return simple integers have been bound in Haskell, and we are "
34241 "looking for help to complete this binding."
34245 #: ../src/guestfs.pod:732
34250 #: ../src/guestfs.pod:734
34252 "Full documentation is contained in the Javadoc which is distributed with "
34253 "libguestfs. For examples, see L<guestfs-java(3)>."
34257 #: ../src/guestfs.pod:737
34262 #: ../src/guestfs.pod:739
34263 msgid "See L<guestfs-ocaml(3)>."
34264 msgstr "Див. L<guestfs-ocaml(3)>."
34267 #: ../src/guestfs.pod:741
34272 #: ../src/guestfs.pod:743
34273 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
34274 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
34277 #: ../src/guestfs.pod:745
34282 #: ../src/guestfs.pod:747
34284 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
34285 "the php-libguestfs package for your distribution."
34289 #: ../src/guestfs.pod:750
34290 msgid "The PHP binding only works correctly on 64 bit machines."
34294 #: ../src/guestfs.pod:752
34299 #: ../src/guestfs.pod:754
34300 msgid "See L<guestfs-python(3)>."
34301 msgstr "Див. L<guestfs-python(3)>."
34304 #: ../src/guestfs.pod:756
34309 #: ../src/guestfs.pod:758
34310 msgid "See L<guestfs-ruby(3)>."
34311 msgstr "Див. L<guestfs-ruby(3)>."
34314 #: ../src/guestfs.pod:760
34315 msgid "B<shell scripts>"
34316 msgstr "B<скрипти оболонки>"
34319 #: ../src/guestfs.pod:762
34320 msgid "See L<guestfish(1)>."
34321 msgstr "Див. L<guestfish(1)>."
34324 #: ../src/guestfs.pod:766
34325 msgid "LIBGUESTFS GOTCHAS"
34329 #: ../src/guestfs.pod:768
34331 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34332 "system [...] that works in the way it is documented but is counterintuitive "
34333 "and almost invites mistakes.\""
34337 #: ../src/guestfs.pod:772
34339 "Since we developed libguestfs and the associated tools, there are several "
34340 "things we would have designed differently, but are now stuck with for "
34341 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
34342 "release, you can expect these to change. Beware of them."
34346 #: ../src/guestfs.pod:780
34347 msgid "Autosync / forgetting to sync."
34351 #: ../src/guestfs.pod:782
34353 "I<Update:> Autosync is enabled by default for all API users starting from "
34354 "libguestfs 1.5.24. This section only applies to older versions."
34358 #: ../src/guestfs.pod:785
34360 "When modifying a filesystem from C or another language, you B<must> unmount "
34361 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34362 "libguestfs handle. You can also call:"
34366 #: ../src/guestfs.pod:789
34369 " guestfs_set_autosync (g, 1);\n"
34372 " guestfs_set_autosync (g, 1);\n"
34376 #: ../src/guestfs.pod:791
34378 "to have the unmount/sync done automatically for you when the handle 'g' is "
34379 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
34383 #: ../src/guestfs.pod:795
34385 "If you forget to do this, then it is entirely possible that your changes "
34386 "won't be written out, or will be partially written, or (very rarely) that "
34387 "you'll get disk corruption."
34391 #: ../src/guestfs.pod:799
34393 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
34394 "guestfish scripts that forget to sync will work just fine, which can make "
34395 "this very puzzling if you are trying to debug a problem."
34399 #: ../src/guestfs.pod:803
34400 msgid "Mount option C<-o sync> should not be the default."
34404 #: ../src/guestfs.pod:805
34406 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
34407 "However C<-o sync> does not add any reliability benefit, but does have a "
34408 "very large performance impact."
34412 #: ../src/guestfs.pod:809
34414 "The work around is to use L</guestfs_mount_options> and set the mount "
34415 "options that you actually want to use."
34419 #: ../src/guestfs.pod:812
34420 msgid "Read-only should be the default."
34424 #: ../src/guestfs.pod:814
34426 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34427 "specify I<--rw> if you want to make changes to the image."
34431 #: ../src/guestfs.pod:817
34432 msgid "This would reduce the potential to corrupt live VM images."
34436 #: ../src/guestfs.pod:819
34438 "Note that many filesystems change the disk when you just mount and unmount, "
34439 "even if you didn't perform any writes. You need to use L</"
34440 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34444 #: ../src/guestfs.pod:823
34445 msgid "guestfish command line is hard to use."
34449 #: ../src/guestfs.pod:825
34451 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34452 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
34453 "exist, so it fails. In earlier versions of guestfish the error message was "
34454 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
34455 "we should have used C<guestfish -c command> to run commands."
34459 #: ../src/guestfs.pod:832
34460 msgid "guestfish megabyte modifiers don't work right on all commands"
34464 #: ../src/guestfs.pod:834
34466 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34467 "other modifiers). What guestfish actually does is to multiply the number "
34468 "part by the modifier part and pass the result to the C API. However this "
34469 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34470 "expecting some other unit (eg. megabytes)."
34474 #: ../src/guestfs.pod:841
34475 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
34479 #: ../src/guestfs.pod:843
34482 " lvcreate LV VG 100M\n"
34485 " lvcreate LV VG 100M\n"
34489 #: ../src/guestfs.pod:845
34491 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
34492 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34493 "megabytes * megabytes) logical volume. The error message you get from this "
34494 "is also a little obscure."
34498 #: ../src/guestfs.pod:850
34500 "This could be fixed in the generator by specially marking parameters and "
34501 "return values which take bytes or other units."
34505 #: ../src/guestfs.pod:853
34506 msgid "Ambiguity between devices and paths"
34510 #: ../src/guestfs.pod:855
34512 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34513 "sdb2>) and a similar pathname. A file might just happen to be called "
34514 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34518 #: ../src/guestfs.pod:860
34520 "In the current API we usually resolve this ambiguity by having two separate "
34521 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
34522 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34523 "detecting if the path supplied begins with C</dev/>."
34527 #: ../src/guestfs.pod:866
34529 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34530 "make paths/devices into structured names. One way to do this would be to "
34531 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34532 "aspect of grub. Another way would be to use a structured type, equivalent "
34533 "to this OCaml type:"
34537 #: ../src/guestfs.pod:872
34540 " type path = Path of string | Device of int | Partition of int * int\n"
34545 #: ../src/guestfs.pod:874
34546 msgid "which would allow you to pass arguments like:"
34550 #: ../src/guestfs.pod:876
34553 " Path \"/foo/bar\"\n"
34554 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
34555 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34556 " Path \"/dev/sdb2\" (* not a device *)\n"
34561 #: ../src/guestfs.pod:881
34563 "As you can see there are still problems to resolve even with this "
34564 "representation. Also consider how it might work in guestfish."
34568 #: ../src/guestfs.pod:886
34569 msgid "KEYS AND PASSPHRASES"
34570 msgstr "КЛЮЧІ І ПАРОЛІ"
34573 #: ../src/guestfs.pod:888
34575 "Certain libguestfs calls take a parameter that contains sensitive key "
34576 "material, passed in as a C string."
34580 #: ../src/guestfs.pod:891
34582 "In the future we would hope to change the libguestfs implementation so that "
34583 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34584 "swap. However this is I<not> done at the moment, because of the complexity "
34585 "of such an implementation."
34589 #: ../src/guestfs.pod:896
34591 "Therefore you should be aware that any key parameter you pass to libguestfs "
34592 "might end up being written out to the swap partition. If this is a concern, "
34593 "scrub the swap partition or don't use libguestfs on encrypted devices."
34597 #: ../src/guestfs.pod:901
34598 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34602 #: ../src/guestfs.pod:903
34604 "All high-level libguestfs actions are synchronous. If you want to use "
34605 "libguestfs asynchronously then you must create a thread."
34609 #: ../src/guestfs.pod:906
34611 "Only use the handle from a single thread. Either use the handle exclusively "
34612 "from one thread, or provide your own mutex so that two threads cannot issue "
34613 "calls on the same handle at the same time."
34617 #: ../src/guestfs.pod:910
34619 "See the graphical program guestfs-browser for one possible architecture for "
34620 "multithreaded programs using libvirt and libguestfs."
34624 #: ../src/guestfs.pod:913
34629 #: ../src/guestfs.pod:915
34631 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34636 #: ../src/guestfs.pod:918
34638 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34639 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34643 #: ../src/guestfs.pod:921
34645 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34646 "to change the directories that libguestfs will search in. The value is a "
34647 "colon-separated list of paths. The current directory is I<not> searched "
34648 "unless the path contains an empty element or C<.>. For example "
34649 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34650 "then C</usr/lib/guestfs>."
34654 #: ../src/guestfs.pod:928
34655 msgid "QEMU WRAPPERS"
34659 #: ../src/guestfs.pod:930
34661 "If you want to compile your own qemu, run qemu from a non-standard location, "
34662 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34667 #: ../src/guestfs.pod:934
34669 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34670 "last command in the shell script (so that qemu replaces the shell and "
34671 "becomes the direct child of the libguestfs-using program). If you don't do "
34672 "this, then the qemu process won't be cleaned up correctly."
34676 #: ../src/guestfs.pod:939
34678 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34683 #: ../src/guestfs.pod:942
34687 " qemudir=/home/rjones/d/qemu\n"
34688 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34692 " qemudir=/home/rjones/d/qemu\n"
34693 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34697 #: ../src/guestfs.pod:946
34699 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34700 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
34705 #: ../src/guestfs.pod:950
34708 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34711 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34715 #: ../src/guestfs.pod:952
34717 "Note that libguestfs also calls qemu with the -help and -version options in "
34718 "order to determine features."
34722 #: ../src/guestfs.pod:955
34723 msgid "ATTACHING TO RUNNING DAEMONS"
34724 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34727 #: ../src/guestfs.pod:957
34729 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34730 "babies. Use with caution."
34734 #: ../src/guestfs.pod:960
34736 "I<Note (2):> This section explains how to attach to a running daemon from a "
34737 "low level perspective. For most users, simply using virt tools such as "
34738 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34742 #: ../src/guestfs.pod:964
34743 msgid "Using guestfs_set_attach_method"
34744 msgstr "За допомогою guestfs_set_attach_method"
34747 #: ../src/guestfs.pod:966
34749 "By calling L</guestfs_set_attach_method> you can change how the library "
34750 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34751 "ARCHITECTURE> for some background)."
34755 #: ../src/guestfs.pod:970
34757 "The normal attach method is C<appliance>, where a small appliance is created "
34758 "containing the daemon, and then the library connects to this."
34762 #: ../src/guestfs.pod:973
34764 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34765 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34766 "daemon over the Unix domain socket."
34770 #: ../src/guestfs.pod:977
34772 "The normal use for this is to connect to a running virtual machine that "
34773 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34774 "files inside the live virtual machine."
34778 #: ../src/guestfs.pod:981
34779 msgid "Using guestfs_add_domain with live flag"
34780 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34783 #: ../src/guestfs.pod:983
34785 "L</guestfs_add_domain> provides some help for getting the correct attach "
34786 "method. If you pass the C<live> option to this function, then (if the "
34787 "virtual machine is running) it will examine the libvirt XML looking for a "
34788 "virtio-serial channel to connect to:"
34792 #: ../src/guestfs.pod:989
34799 " <channel type='unix'>\n"
34800 " <source mode='bind' path='/path/to/socket'/>\n"
34801 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34812 " <channel type='unix'>\n"
34813 " <source mode='bind' path='/path/to/socket'/>\n"
34814 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34822 #: ../src/guestfs.pod:1001
34824 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34825 "method to C<unix:/path/to/socket>."
34829 #: ../src/guestfs.pod:1004
34831 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34832 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34833 "to attach to and modify live virtual machines."
34837 #: ../src/guestfs.pod:1008
34839 "The virtual machine needs to have been set up beforehand so that it has the "
34840 "virtio-serial channel and so that guestfsd is running inside it."
34844 #: ../src/guestfs.pod:1012
34845 msgid "ABI GUARANTEE"
34846 msgstr "ГАРАНТІЯ ЩОДО ABI"
34849 #: ../src/guestfs.pod:1014
34851 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34852 "actions as outlined in this section. Although we will deprecate some "
34853 "actions, for example if they get replaced by newer calls, we will keep the "
34854 "old actions forever. This allows you the developer to program in confidence "
34855 "against the libguestfs API."
34859 #: ../src/guestfs.pod:1020
34860 msgid "BLOCK DEVICE NAMING"
34861 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34864 #: ../src/guestfs.pod:1022
34866 "In the kernel there is now quite a profusion of schemata for naming block "
34867 "devices (in this context, by I<block device> I mean a physical or virtual "
34868 "hard drive). The original Linux IDE driver used names starting with C</dev/"
34869 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
34870 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
34871 "for the old IDE driver (particularly for SATA devices) those devices also "
34872 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
34873 "paravirtualized drivers. This has created several different naming systems, "
34874 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34878 #: ../src/guestfs.pod:1034
34880 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34881 "Linux kernel to access block devices. We can run a variety of appliances "
34882 "based on a variety of Linux kernels."
34886 #: ../src/guestfs.pod:1038
34888 "This causes a problem for libguestfs because many API calls use device or "
34889 "partition names. Working scripts and the recipe (example) scripts that we "
34890 "make available over the internet could fail if the naming scheme changes."
34894 #: ../src/guestfs.pod:1043
34896 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
34897 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34898 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34899 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34903 #: ../src/guestfs.pod:1049
34905 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
34906 "L</guestfs_list_partitions> and similar calls return the true names of the "
34907 "devices and partitions as known to the appliance."
34911 #: ../src/guestfs.pod:1054
34912 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34916 #: ../src/guestfs.pod:1056
34918 "Usually this translation is transparent. However in some (very rare) cases "
34919 "you may need to know the exact algorithm. Such cases include where you use "
34920 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34921 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34925 #: ../src/guestfs.pod:1062
34927 "The algorithm is applied only to I<parameters> which are known to be either "
34928 "device or partition names. Return values from functions such as L</"
34929 "guestfs_list_devices> are never changed."
34933 #: ../src/guestfs.pod:1070
34934 msgid "Is the string a parameter which is a device or partition name?"
34938 #: ../src/guestfs.pod:1074
34939 msgid "Does the string begin with C</dev/sd>?"
34940 msgstr "Чи починається рядок з C</dev/sd>?"
34943 #: ../src/guestfs.pod:1078
34945 "Does the named device exist? If so, we use that device. However if I<not> "
34946 "then we continue with this algorithm."
34950 #: ../src/guestfs.pod:1083
34951 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34955 #: ../src/guestfs.pod:1085
34956 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34960 #: ../src/guestfs.pod:1087
34961 msgid "If that named device exists, use it. If not, continue."
34965 #: ../src/guestfs.pod:1091
34966 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34970 #: ../src/guestfs.pod:1093
34971 msgid "If that named device exists, use it. If not, return an error."
34975 #: ../src/guestfs.pod:1097
34976 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34980 #: ../src/guestfs.pod:1099
34982 "Although the standard naming scheme and automatic translation is useful for "
34983 "simple programs and guestfish scripts, for larger programs it is best not to "
34984 "rely on this mechanism."
34988 #: ../src/guestfs.pod:1103
34990 "Where possible for maximum future portability programs using libguestfs "
34991 "should use these future-proof techniques:"
34995 #: ../src/guestfs.pod:1110
34997 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34998 "device names, and then use those names directly."
35002 #: ../src/guestfs.pod:1113
35004 "Since those device names exist by definition, they will never be translated."
35008 #: ../src/guestfs.pod:1118
35010 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
35011 "filesystem labels."
35015 #: ../src/guestfs.pod:1123
35020 #: ../src/guestfs.pod:1125
35022 "This section discusses security implications of using libguestfs, "
35023 "particularly with untrusted or malicious guests or disk images."
35027 #: ../src/guestfs.pod:1128
35028 msgid "GENERAL SECURITY CONSIDERATIONS"
35029 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
35032 #: ../src/guestfs.pod:1130
35034 "Be careful with any files or data that you download from a guest (by "
35035 "\"download\" we mean not just the L</guestfs_download> command but any "
35036 "command that reads files, filenames, directories or anything else from a "
35037 "disk image). An attacker could manipulate the data to fool your program "
35038 "into doing the wrong thing. Consider cases such as:"
35042 #: ../src/guestfs.pod:1140
35043 msgid "the data (file etc) not being present"
35047 #: ../src/guestfs.pod:1144
35048 msgid "being present but empty"
35052 #: ../src/guestfs.pod:1148
35053 msgid "being much larger than normal"
35057 #: ../src/guestfs.pod:1152
35058 msgid "containing arbitrary 8 bit data"
35062 #: ../src/guestfs.pod:1156
35063 msgid "being in an unexpected character encoding"
35067 #: ../src/guestfs.pod:1160
35068 msgid "containing homoglyphs."
35072 #: ../src/guestfs.pod:1164
35073 msgid "SECURITY OF MOUNTING FILESYSTEMS"
35074 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
35077 #: ../src/guestfs.pod:1166
35079 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
35080 "(VFS) module can sometimes be escalated into exploits by deliberately "
35081 "creating a malicious, malformed filesystem. These exploits are very severe "
35082 "for two reasons. Firstly there are very many filesystem drivers in the "
35083 "kernel, and many of them are infrequently used and not much developer "
35084 "attention has been paid to the code. Linux userspace helps potential "
35085 "crackers by detecting the filesystem type and automatically choosing the "
35086 "right VFS driver, even if that filesystem type is obscure or unexpected for "
35087 "the administrator. Secondly, a kernel-level exploit is like a local root "
35088 "exploit (worse in some ways), giving immediate and total access to the "
35089 "system right down to the hardware level."
35093 #: ../src/guestfs.pod:1179
35095 "That explains why you should never mount a filesystem from an untrusted "
35096 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
35097 "inside a qemu virtual machine, usually running as a non-root user. The "
35098 "attacker would need to write a filesystem which first exploited the kernel, "
35099 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
35100 "the libguestfs protocol, and finally to be as serious as the host kernel "
35101 "exploit it would need to escalate its privileges to root. This multi-step "
35102 "escalation, performed by a static piece of data, is thought to be extremely "
35103 "hard to do, although we never say 'never' about security issues."
35107 #: ../src/guestfs.pod:1190
35109 "In any case callers can reduce the attack surface by forcing the filesystem "
35110 "type when mounting (use L</guestfs_mount_vfs>)."
35114 #: ../src/guestfs.pod:1193
35115 msgid "PROTOCOL SECURITY"
35116 msgstr "ЗАХИСТ ПРОТОКОЛУ"
35119 #: ../src/guestfs.pod:1195
35121 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
35122 "defined upper message size. However a program that uses libguestfs must "
35123 "also take care - for example you can write a program that downloads a binary "
35124 "from a disk image and executes it locally, and no amount of protocol "
35125 "security will save you from the consequences."
35129 #: ../src/guestfs.pod:1201
35130 msgid "INSPECTION SECURITY"
35134 #: ../src/guestfs.pod:1203
35136 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
35137 "directly from the guest, and these could contain any 8 bit data. Callers "
35138 "should be careful to escape these before printing them to a structured file "
35139 "(for example, use HTML escaping if creating a web page)."
35143 #: ../src/guestfs.pod:1209
35145 "Guest configuration may be altered in unusual ways by the administrator of "
35146 "the virtual machine, and may not reflect reality (particularly for untrusted "
35147 "or actively malicious guests). For example we parse the hostname from "
35148 "configuration files like C</etc/sysconfig/network> that we find in the "
35149 "guest, but the guest administrator can easily manipulate these files to "
35150 "provide the wrong hostname."
35154 #: ../src/guestfs.pod:1217
35156 "The inspection API parses guest configuration using two external libraries: "
35157 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
35158 "designed to be robust in the face of malicious data, although denial of "
35159 "service attacks are still possible, for example with oversized configuration "
35164 #: ../src/guestfs.pod:1223
35165 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
35166 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
35169 #: ../src/guestfs.pod:1225
35171 "Be very cautious about running commands from the guest. By running a "
35172 "command in the guest, you are giving CPU time to a binary that you do not "
35173 "control, under the same user account as the library, albeit wrapped in qemu "
35174 "virtualization. More information and alternatives can be found in the "
35175 "section L</RUNNING COMMANDS>."
35179 #: ../src/guestfs.pod:1231
35180 msgid "CVE-2010-3851"
35181 msgstr "CVE-2010-3851"
35184 #: ../src/guestfs.pod:1233
35185 msgid "https://bugzilla.redhat.com/642934"
35186 msgstr "https://bugzilla.redhat.com/642934"
35189 #: ../src/guestfs.pod:1235
35191 "This security bug concerns the automatic disk format detection that qemu "
35192 "does on disk images."
35196 #: ../src/guestfs.pod:1238
35198 "A raw disk image is just the raw bytes, there is no header. Other disk "
35199 "images like qcow2 contain a special header. Qemu deals with this by looking "
35200 "for one of the known headers, and if none is found then assuming the disk "
35201 "image must be raw."
35205 #: ../src/guestfs.pod:1243
35207 "This allows a guest which has been given a raw disk image to write some "
35208 "other header. At next boot (or when the disk image is accessed by "
35209 "libguestfs) qemu would do autodetection and think the disk image format was, "
35210 "say, qcow2 based on the header written by the guest."
35214 #: ../src/guestfs.pod:1248
35216 "This in itself would not be a problem, but qcow2 offers many features, one "
35217 "of which is to allow a disk image to refer to another image (called the "
35218 "\"backing disk\"). It does this by placing the path to the backing disk "
35219 "into the qcow2 header. This path is not validated and could point to any "
35220 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
35221 "\"holes\" in the qcow2 disk image, which of course is completely under the "
35222 "control of the attacker."
35226 #: ../src/guestfs.pod:1256
35228 "In libguestfs this is rather hard to exploit except under two circumstances:"
35232 #: ../src/guestfs.pod:1263
35233 msgid "You have enabled the network or have opened the disk in write mode."
35237 #: ../src/guestfs.pod:1267
35239 "You are also running untrusted code from the guest (see L</RUNNING "
35244 #: ../src/guestfs.pod:1272
35246 "The way to avoid this is to specify the expected disk format when adding "
35247 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
35248 "should always do this if the disk is raw format, and it's a good idea for "
35253 #: ../src/guestfs.pod:1277
35255 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
35256 "format is fetched from libvirt and passed through."
35260 #: ../src/guestfs.pod:1280
35262 "For libguestfs tools, use the I<--format> command line parameter as "
35267 #: ../src/guestfs.pod:1283
35268 msgid "CONNECTION MANAGEMENT"
35269 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
35272 #: ../src/guestfs.pod:1285
35273 msgid "guestfs_h *"
35274 msgstr "guestfs_h *"
35277 #: ../src/guestfs.pod:1287
35279 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
35280 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
35281 "handle and release all resources used."
35285 #: ../src/guestfs.pod:1291
35287 "For information on using multiple handles and threads, see the section L</"
35288 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
35292 #: ../src/guestfs.pod:1294
35293 msgid "guestfs_create"
35294 msgstr "guestfs_create"
35297 #: ../src/guestfs.pod:1296
35300 " guestfs_h *guestfs_create (void);\n"
35303 " guestfs_h *guestfs_create (void);\n"
35307 #: ../src/guestfs.pod:1298
35308 msgid "Create a connection handle."
35309 msgstr "Створити дескриптор з’єднання."
35312 #: ../src/guestfs.pod:1300
35314 "On success this returns a non-NULL pointer to a handle. On error it returns "
35319 #: ../src/guestfs.pod:1303
35321 "You have to \"configure\" the handle after creating it. This includes "
35322 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
35323 "handle at least once."
35327 #: ../src/guestfs.pod:1307
35328 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35332 #: ../src/guestfs.pod:1309
35334 "You may also want to configure error handling for the handle. See the L</"
35335 "ERROR HANDLING> section below."
35339 #: ../src/guestfs.pod:1312
35340 msgid "guestfs_close"
35341 msgstr "guestfs_close"
35344 #: ../src/guestfs.pod:1314
35347 " void guestfs_close (guestfs_h *g);\n"
35350 " void guestfs_close (guestfs_h *g);\n"
35354 #: ../src/guestfs.pod:1316
35355 msgid "This closes the connection handle and frees up all resources used."
35359 #: ../src/guestfs.pod:1318
35361 "If autosync was set on the handle and the handle was launched, then this "
35362 "implicitly calls various functions to unmount filesystems and sync the "
35363 "disk. See L</guestfs_set_autosync> for more details."
35367 #: ../src/guestfs.pod:1322
35368 msgid "If a close callback was set on the handle, then it is called."
35372 #: ../src/guestfs.pod:1324
35373 msgid "ERROR HANDLING"
35374 msgstr "ОБРОБКА ПОМИЛОК"
35377 #: ../src/guestfs.pod:1326
35379 "API functions can return errors. For example, almost all functions that "
35380 "return C<int> will return C<-1> to indicate an error."
35384 #: ../src/guestfs.pod:1329
35386 "Additional information is available for errors: an error message string and "
35387 "optionally an error number (errno) if the thing that failed was a system "
35392 #: ../src/guestfs.pod:1333
35394 "You can get at the additional information about the last error on the handle "
35395 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35396 "up an error handler with L</guestfs_set_error_handler>."
35400 #: ../src/guestfs.pod:1338
35402 "When the handle is created, a default error handler is installed which "
35403 "prints the error message string to C<stderr>. For small short-running "
35404 "command line programs it is sufficient to do:"
35408 #: ../src/guestfs.pod:1342
35411 " if (guestfs_launch (g) == -1)\n"
35412 " exit (EXIT_FAILURE);\n"
35415 " if (guestfs_launch (g) == -1)\n"
35416 " exit (EXIT_FAILURE);\n"
35420 #: ../src/guestfs.pod:1345
35422 "since the default error handler will ensure that an error message has been "
35423 "printed to C<stderr> before the program exits."
35427 #: ../src/guestfs.pod:1348
35429 "For other programs the caller will almost certainly want to install an "
35430 "alternate error handler or do error handling in-line like this:"
35434 #: ../src/guestfs.pod:1351
35437 " /* This disables the default behaviour of printing errors\n"
35439 " guestfs_set_error_handler (g, NULL, NULL);\n"
35444 #: ../src/guestfs.pod:1355
35447 #| " if (guestfs_launch (g) == -1) {\n"
35448 #| " /* Examine the error message and print it etc. */\n"
35449 #| " char *msg = guestfs_last_error (g);\n"
35450 #| " int errnum = guestfs_last_errno (g);\n"
35451 #| " fprintf (stderr, \"%s\\n\", msg);\n"
35456 " if (guestfs_launch (g) == -1) {\n"
35457 " /* Examine the error message and print it etc. */\n"
35458 " char *msg = guestfs_last_error (g);\n"
35459 " int errnum = guestfs_last_errno (g);\n"
35460 " fprintf (stderr, \"%s\", msg);\n"
35461 " if (errnum != 0)\n"
35462 " fprintf (stderr, \": %s\", strerror (errnum));\n"
35463 " fprintf (stderr, \"\\n\");\n"
35468 " if (guestfs_launch (g) == -1) {\n"
35469 " /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
35470 " char *msg = guestfs_last_error (g);\n"
35471 " int errnum = guestfs_last_errno (g);\n"
35472 " fprintf (stderr, \"%s\\n\", msg);\n"
35478 #: ../src/guestfs.pod:1366
35480 "Out of memory errors are handled differently. The default action is to call "
35481 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
35482 "guestfs_set_out_of_memory_handler>."
35486 #: ../src/guestfs.pod:1370
35488 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35489 "because there is no handle if this happens there is no way to get additional "
35490 "error information. However L</guestfs_create> is supposed to be a "
35491 "lightweight operation which can only fail because of insufficient memory (it "
35492 "returns NULL in this case)."
35496 #: ../src/guestfs.pod:1376
35497 msgid "guestfs_last_error"
35498 msgstr "guestfs_last_error"
35501 #: ../src/guestfs.pod:1378
35504 " const char *guestfs_last_error (guestfs_h *g);\n"
35507 " const char *guestfs_last_error (guestfs_h *g);\n"
35511 #: ../src/guestfs.pod:1380
35513 "This returns the last error message that happened on C<g>. If there has not "
35514 "been an error since the handle was created, then this returns C<NULL>."
35518 #: ../src/guestfs.pod:1384
35520 "The lifetime of the returned string is until the next error occurs, or L</"
35521 "guestfs_close> is called."
35525 #: ../src/guestfs.pod:1387
35526 msgid "guestfs_last_errno"
35527 msgstr "guestfs_last_errno"
35530 #: ../src/guestfs.pod:1389
35533 " int guestfs_last_errno (guestfs_h *g);\n"
35536 " int guestfs_last_errno (guestfs_h *g);\n"
35540 #: ../src/guestfs.pod:1391
35541 msgid "This returns the last error number (errno) that happened on C<g>."
35545 #: ../src/guestfs.pod:1393
35546 msgid "If successful, an errno integer not equal to zero is returned."
35550 #: ../src/guestfs.pod:1395
35552 "If no error, this returns 0. This call can return 0 in three situations:"
35556 #: ../src/guestfs.pod:1402
35557 msgid "There has not been any error on the handle."
35561 #: ../src/guestfs.pod:1406
35563 "There has been an error but the errno was meaningless. This corresponds to "
35564 "the case where the error did not come from a failed system call, but for "
35565 "some other reason."
35569 #: ../src/guestfs.pod:1412
35571 "There was an error from a failed system call, but for some reason the errno "
35572 "was not captured and returned. This usually indicates a bug in libguestfs."
35576 #: ../src/guestfs.pod:1418
35578 "Libguestfs tries to convert the errno from inside the applicance into a "
35579 "corresponding errno for the caller (not entirely trivial: the appliance "
35580 "might be running a completely different operating system from the library "
35581 "and error numbers are not standardized across Un*xen). If this could not be "
35582 "done, then the error is translated to C<EINVAL>. In practice this should "
35583 "only happen in very rare circumstances."
35587 #: ../src/guestfs.pod:1426
35588 msgid "guestfs_set_error_handler"
35589 msgstr "guestfs_set_error_handler"
35592 #: ../src/guestfs.pod:1428
35595 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35597 " const char *msg);\n"
35598 " void guestfs_set_error_handler (guestfs_h *g,\n"
35599 " guestfs_error_handler_cb cb,\n"
35600 " void *opaque);\n"
35603 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35605 " const char *msg);\n"
35606 " void guestfs_set_error_handler (guestfs_h *g,\n"
35607 " guestfs_error_handler_cb cb,\n"
35608 " void *opaque);\n"
35612 #: ../src/guestfs.pod:1435
35614 "The callback C<cb> will be called if there is an error. The parameters "
35615 "passed to the callback are an opaque data pointer and the error message "
35620 #: ../src/guestfs.pod:1439
35622 "C<errno> is not passed to the callback. To get that the callback must call "
35623 "L</guestfs_last_errno>."
35627 #: ../src/guestfs.pod:1442
35629 "Note that the message string C<msg> is freed as soon as the callback "
35630 "function returns, so if you want to stash it somewhere you must make your "
35635 #: ../src/guestfs.pod:1446
35636 msgid "The default handler prints messages on C<stderr>."
35640 #: ../src/guestfs.pod:1448
35641 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35645 #: ../src/guestfs.pod:1450
35646 msgid "guestfs_get_error_handler"
35647 msgstr "guestfs_get_error_handler"
35650 #: ../src/guestfs.pod:1452
35653 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35654 " void **opaque_rtn);\n"
35657 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35658 " void **opaque_rtn);\n"
35662 #: ../src/guestfs.pod:1455
35663 msgid "Returns the current error handler callback."
35667 #: ../src/guestfs.pod:1457
35668 msgid "guestfs_set_out_of_memory_handler"
35669 msgstr "guestfs_set_out_of_memory_handler"
35672 #: ../src/guestfs.pod:1459
35675 #| " typedef void (*guestfs_abort_cb) (void);\n"
35676 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35677 #| " guestfs_abort_cb);\n"
35680 " typedef void (*guestfs_abort_cb) (void);\n"
35681 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35682 " guestfs_abort_cb);\n"
35685 " typedef void (*guestfs_abort_cb) (void);\n"
35686 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35687 " guestfs_abort_cb);\n"
35691 #: ../src/guestfs.pod:1463
35693 "The callback C<cb> will be called if there is an out of memory situation. "
35694 "I<Note this callback must not return>."
35698 #: ../src/guestfs.pod:1466
35699 msgid "The default is to call L<abort(3)>."
35703 #: ../src/guestfs.pod:1468
35705 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
35709 #: ../src/guestfs.pod:1471
35710 msgid "guestfs_get_out_of_memory_handler"
35711 msgstr "guestfs_get_out_of_memory_handler"
35714 #: ../src/guestfs.pod:1473
35717 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35720 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35724 #: ../src/guestfs.pod:1475
35725 msgid "This returns the current out of memory handler."
35729 #: ../src/guestfs.pod:1477
35731 msgstr "ВИКЛИКИ API"
35734 #: ../src/guestfs.pod:1481
35739 #: ../src/guestfs.pod:1483
35744 #: ../src/guestfs.pod:1485
35745 msgid "AVAILABILITY"
35746 msgstr "ДОСТУПНІСТЬ"
35749 #: ../src/guestfs.pod:1487
35750 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35751 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35754 #: ../src/guestfs.pod:1489
35756 "Using L</guestfs_available> you can test availability of the following "
35757 "groups of functions. This test queries the appliance to see if the "
35758 "appliance you are currently using supports the functionality."
35762 #: ../src/guestfs.pod:1494
35763 msgid "@AVAILABILITY@"
35764 msgstr "@AVAILABILITY@"
35767 #: ../src/guestfs.pod:1496
35768 msgid "GUESTFISH supported COMMAND"
35772 #: ../src/guestfs.pod:1498
35774 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35775 "prints out the available groups and whether they are supported by this build "
35776 "of libguestfs. Note however that you have to do C<run> first."
35780 #: ../src/guestfs.pod:1503
35781 msgid "SINGLE CALLS AT COMPILE TIME"
35785 #: ../src/guestfs.pod:1505
35787 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35788 "function, such as:"
35792 #: ../src/guestfs.pod:1508
35795 " #define LIBGUESTFS_HAVE_DD 1\n"
35798 " #define LIBGUESTFS_HAVE_DD 1\n"
35802 #: ../src/guestfs.pod:1510
35803 msgid "if L</guestfs_dd> is available."
35807 #: ../src/guestfs.pod:1512
35809 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35810 "function is available at compile time, we recommended using build tools such "
35811 "as autoconf or cmake. For example in autotools you could use:"
35815 #: ../src/guestfs.pod:1517
35818 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35819 " AC_CHECK_FUNCS([guestfs_dd])\n"
35822 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35823 " AC_CHECK_FUNCS([guestfs_dd])\n"
35827 #: ../src/guestfs.pod:1520
35829 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35834 #: ../src/guestfs.pod:1523
35835 msgid "SINGLE CALLS AT RUN TIME"
35839 #: ../src/guestfs.pod:1525
35841 "Testing at compile time doesn't guarantee that a function really exists in "
35842 "the library. The reason is that you might be dynamically linked against a "
35843 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
35844 "This situation unfortunately results in a segmentation fault, which is a "
35845 "shortcoming of the C dynamic linking system itself."
35849 #: ../src/guestfs.pod:1532
35851 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35852 "in this example program (note that you still need the compile time check as "
35857 #: ../src/guestfs.pod:1536
35860 " #include <stdio.h>\n"
35861 " #include <stdlib.h>\n"
35862 " #include <unistd.h>\n"
35863 " #include <dlfcn.h>\n"
35864 " #include <guestfs.h>\n"
35867 " #include <stdio.h>\n"
35868 " #include <stdlib.h>\n"
35869 " #include <unistd.h>\n"
35870 " #include <dlfcn.h>\n"
35871 " #include <guestfs.h>\n"
35875 #: ../src/guestfs.pod:1542
35880 " #ifdef LIBGUESTFS_HAVE_DD\n"
35882 " int has_function;\n"
35887 " #ifdef LIBGUESTFS_HAVE_DD\n"
35889 " int has_function;\n"
35893 #: ../src/guestfs.pod:1548
35896 " /* Test if the function guestfs_dd is really available. */\n"
35897 " dl = dlopen (NULL, RTLD_LAZY);\n"
35899 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35900 " exit (EXIT_FAILURE);\n"
35902 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35908 #: ../src/guestfs.pod:1557
35911 " if (!has_function)\n"
35912 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35914 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35915 " /* Now it's safe to call\n"
35916 " guestfs_dd (g, \"foo\", \"bar\");\n"
35920 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35927 #: ../src/guestfs.pod:1570
35929 "You may think the above is an awful lot of hassle, and it is. There are "
35930 "other ways outside of the C linking system to ensure that this kind of "
35931 "incompatibility never arises, such as using package versioning:"
35935 #: ../src/guestfs.pod:1575
35938 " Requires: libguestfs >= 1.0.80\n"
35943 #: ../src/guestfs.pod:1577
35944 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35948 #: ../src/guestfs.pod:1579
35950 "A recent feature of the API is the introduction of calls which take optional "
35951 "arguments. In C these are declared 3 ways. The main way is as a call which "
35952 "takes variable arguments (ie. C<...>), as in this example:"
35956 #: ../src/guestfs.pod:1584
35959 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35962 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35966 #: ../src/guestfs.pod:1586
35968 "Call this with a list of optional arguments, terminated by C<-1>. So to "
35969 "call with no optional arguments specified:"
35973 #: ../src/guestfs.pod:1589
35976 " guestfs_add_drive_opts (g, filename, -1);\n"
35979 " guestfs_add_drive_opts (g, filename, -1);\n"
35983 #: ../src/guestfs.pod:1591
35984 msgid "With a single optional argument:"
35988 #: ../src/guestfs.pod:1593
35991 " guestfs_add_drive_opts (g, filename,\n"
35992 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35996 " guestfs_add_drive_opts (g, filename,\n"
35997 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36002 #: ../src/guestfs.pod:1597
36007 #: ../src/guestfs.pod:1599
36010 " guestfs_add_drive_opts (g, filename,\n"
36011 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36012 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36016 " guestfs_add_drive_opts (g, filename,\n"
36017 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36018 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36023 #: ../src/guestfs.pod:1604
36025 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
36030 #: ../src/guestfs.pod:1607
36031 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
36035 #: ../src/guestfs.pod:1609
36037 "The second variant has the same name with the suffix C<_va>, which works the "
36038 "same way but takes a C<va_list>. See the C manual for details. For the "
36039 "example function, this is declared:"
36043 #: ../src/guestfs.pod:1613
36046 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36047 " va_list args);\n"
36050 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36051 " va_list args);\n"
36055 #: ../src/guestfs.pod:1616
36056 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
36060 #: ../src/guestfs.pod:1618
36062 "The third variant is useful where you need to construct these calls. You "
36063 "pass in a structure where you fill in the optional fields. The structure "
36064 "has a bitmask as the first element which you must set to indicate which "
36065 "fields you have filled in. For our example function the structure and call "
36070 #: ../src/guestfs.pod:1624
36073 " struct guestfs_add_drive_opts_argv {\n"
36074 " uint64_t bitmask;\n"
36076 " const char *format;\n"
36079 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36080 " const struct guestfs_add_drive_opts_argv *optargs);\n"
36083 " struct guestfs_add_drive_opts_argv {\n"
36084 " uint64_t bitmask;\n"
36086 " const char *format;\n"
36089 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36090 " const struct guestfs_add_drive_opts_argv *optargs);\n"
36094 #: ../src/guestfs.pod:1633
36095 msgid "You could call it like this:"
36099 #: ../src/guestfs.pod:1635
36102 " struct guestfs_add_drive_opts_argv optargs = {\n"
36103 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36104 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36105 " .readonly = 1,\n"
36106 " .format = \"qcow2\"\n"
36110 " struct guestfs_add_drive_opts_argv optargs = {\n"
36111 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36112 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36113 " .readonly = 1,\n"
36114 " .format = \"qcow2\"\n"
36119 #: ../src/guestfs.pod:1642
36122 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36125 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36129 #: ../src/guestfs.pod:1650
36130 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
36134 #: ../src/guestfs.pod:1655
36135 msgid "You do not need to fill in all fields of the structure."
36139 #: ../src/guestfs.pod:1659
36141 "There must be a one-to-one correspondence between fields of the structure "
36142 "that are filled in, and bits set in the bitmask."
36146 #: ../src/guestfs.pod:1664
36147 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
36151 #: ../src/guestfs.pod:1666
36153 "In other languages, optional arguments are expressed in the way that is "
36154 "natural for that language. We refer you to the language-specific "
36155 "documentation for more details on that."
36159 #: ../src/guestfs.pod:1670
36160 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
36164 #: ../src/guestfs.pod:1672
36165 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
36169 #: ../src/guestfs.pod:1674
36171 "B<Note:> This section documents the generic event mechanism introduced in "
36172 "libguestfs 1.10, which you should use in new code if possible. The old "
36173 "functions C<guestfs_set_log_message_callback>, "
36174 "C<guestfs_set_subprocess_quit_callback>, "
36175 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
36176 "C<guestfs_set_progress_callback> are no longer documented in this manual "
36177 "page. Because of the ABI guarantee, the old functions continue to work."
36181 #: ../src/guestfs.pod:1683
36183 "Handles generate events when certain things happen, such as log messages "
36184 "being generated, progress messages during long-running operations, or the "
36185 "handle being closed. The API calls described below let you register a "
36186 "callback to be called when events happen. You can register multiple "
36187 "callbacks (for the same, different or overlapping sets of events), and "
36188 "individually remove callbacks. If callbacks are not removed, then they "
36189 "remain in force until the handle is closed."
36193 #: ../src/guestfs.pod:1691
36195 "In the current implementation, events are only generated synchronously: that "
36196 "means that events (and hence callbacks) can only happen while you are in the "
36197 "middle of making another libguestfs call. The callback is called in the "
36202 #: ../src/guestfs.pod:1696
36204 "Events may contain a payload, usually nothing (void), an array of 64 bit "
36205 "unsigned integers, or a message buffer. Payloads are discussed later on."
36209 #: ../src/guestfs.pod:1700
36210 msgid "CLASSES OF EVENTS"
36214 #: ../src/guestfs.pod:1704
36215 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
36219 #: ../src/guestfs.pod:1707
36221 "The callback function will be called while the handle is being closed "
36222 "(synchronously from L</guestfs_close>)."
36226 #: ../src/guestfs.pod:1710
36228 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
36229 "handles that are open when the program exits. This means that this callback "
36230 "might be called indirectly from L<exit(3)>, which can cause unexpected "
36231 "problems in higher-level languages (eg. if your HLL interpreter has already "
36232 "been cleaned up by the time this is called, and if your callback then jumps "
36233 "into some HLL function)."
36237 #: ../src/guestfs.pod:1717
36239 "If no callback is registered: the handle is closed without any callback "
36244 #: ../src/guestfs.pod:1720
36245 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
36249 #: ../src/guestfs.pod:1723
36251 "The callback function will be called when the child process quits, either "
36252 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
36253 "corresponds to a transition from any state to the CONFIG state)."
36257 #: ../src/guestfs.pod:1727 ../src/guestfs.pod:1736 ../src/guestfs.pod:1853
36258 msgid "If no callback is registered: the event is ignored."
36262 #: ../src/guestfs.pod:1729
36263 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
36267 #: ../src/guestfs.pod:1732
36269 "The callback function will be called when the child process becomes ready "
36270 "first time after it has been launched. (This corresponds to a transition "
36271 "from LAUNCHING to the READY state)."
36275 #: ../src/guestfs.pod:1738
36276 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
36280 #: ../src/guestfs.pod:1741
36282 "Some long-running operations can generate progress messages. If this "
36283 "callback is registered, then it will be called each time a progress message "
36284 "is generated (usually two seconds after the operation started, and three "
36285 "times per second thereafter until it completes, although the frequency may "
36286 "change in future versions)."
36290 #: ../src/guestfs.pod:1747
36292 "The callback receives in the payload four unsigned 64 bit numbers which are "
36293 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
36297 #: ../src/guestfs.pod:1750
36299 "The units of C<total> are not defined, although for some operations C<total> "
36300 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36301 "or megabytes), and C<position> may be the portion which has been transferred."
36305 #: ../src/guestfs.pod:1755
36306 msgid "The only defined and stable parts of the API are:"
36310 #: ../src/guestfs.pod:1761
36312 "The callback can display to the user some type of progress bar or indicator "
36313 "which shows the ratio of C<position>:C<total>."
36317 #: ../src/guestfs.pod:1766
36318 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36322 #: ../src/guestfs.pod:1770
36324 "If any progress notification is sent during a call, then a final progress "
36325 "notification is always sent when C<position> = C<total> (I<unless> the call "
36326 "fails with an error)."
36330 #: ../src/guestfs.pod:1774
36332 "This is to simplify caller code, so callers can easily set the progress "
36333 "indicator to \"100%\" at the end of the operation, without requiring special "
36334 "code to detect this case."
36338 #: ../src/guestfs.pod:1780
36340 "For some calls we are unable to estimate the progress of the call, but we "
36341 "can still generate progress messages to indicate activity. This is known as "
36342 "\"pulse mode\", and is directly supported by certain progress bar "
36343 "implementations (eg. GtkProgressBar)."
36347 #: ../src/guestfs.pod:1785
36349 "For these calls, zero or more progress messages are generated with "
36350 "C<position = 0> and C<total = 1>, followed by a final message with "
36351 "C<position = total = 1>."
36355 #: ../src/guestfs.pod:1789
36357 "As noted above, if the call fails with an error then the final message may "
36358 "not be generated."
36362 #: ../src/guestfs.pod:1794
36364 "The callback also receives the procedure number (C<proc_nr>) and serial "
36365 "number (C<serial>) of the call. These are only useful for debugging "
36366 "protocol issues, and the callback can normally ignore them. The callback "
36367 "may want to print these numbers in error messages or debugging messages."
36371 #: ../src/guestfs.pod:1800
36372 msgid "If no callback is registered: progress messages are discarded."
36376 #: ../src/guestfs.pod:1802
36377 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36381 #: ../src/guestfs.pod:1805
36383 "The callback function is called whenever a log message is generated by qemu, "
36384 "the appliance kernel, guestfsd (daemon), or utility programs."
36388 #: ../src/guestfs.pod:1808
36390 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
36391 "guestfs_launch>) then additional debug messages are generated."
36395 #: ../src/guestfs.pod:1811 ../src/guestfs.pod:1825
36397 "If no callback is registered: the messages are discarded unless the verbose "
36398 "flag is set in which case they are sent to stderr. You can override the "
36399 "printing of verbose messages to stderr by setting up a callback."
36403 #: ../src/guestfs.pod:1816
36404 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36408 #: ../src/guestfs.pod:1819
36410 "The callback function is called whenever a log message is generated by the "
36411 "library part of libguestfs."
36415 #: ../src/guestfs.pod:1822
36417 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36418 "messages are generated."
36422 #: ../src/guestfs.pod:1830
36423 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36427 #: ../src/guestfs.pod:1833
36429 "The callback function is called whenever a trace message is generated. This "
36430 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36434 #: ../src/guestfs.pod:1836
36436 "If no callback is registered: the messages are sent to stderr. You can "
36437 "override the printing of trace messages to stderr by setting up a callback."
36441 #: ../src/guestfs.pod:1840
36442 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
36446 #: ../src/guestfs.pod:1843
36448 "The callback function is called whenever a libguestfs function is entered."
36452 #: ../src/guestfs.pod:1846
36454 "The payload is a string which contains the name of the function that we are "
36455 "entering (not including C<guestfs_> prefix)."
36459 #: ../src/guestfs.pod:1849
36461 "Note that libguestfs functions can call themselves, so you may see many "
36462 "events from a single call. A few libguestfs functions do not generate this "
36467 #: ../src/guestfs.pod:1857
36468 msgid "guestfs_set_event_callback"
36472 #: ../src/guestfs.pod:1859
36475 " int guestfs_set_event_callback (guestfs_h *g,\n"
36476 " guestfs_event_callback cb,\n"
36477 " uint64_t event_bitmask,\n"
36479 " void *opaque);\n"
36484 #: ../src/guestfs.pod:1865
36486 "This function registers a callback (C<cb>) for all event classes in the "
36487 "C<event_bitmask>."
36491 #: ../src/guestfs.pod:1868
36493 "For example, to register for all log message events, you could call this "
36494 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
36495 "To register a single callback for all possible classes of events, use "
36496 "C<GUESTFS_EVENT_ALL>."
36500 #: ../src/guestfs.pod:1874
36501 msgid "C<flags> should always be passed as 0."
36505 #: ../src/guestfs.pod:1876
36507 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
36508 "it for any purpose."
36512 #: ../src/guestfs.pod:1879
36514 "The return value is the event handle (an integer) which you can use to "
36515 "delete the callback (see below)."
36519 #: ../src/guestfs.pod:1882
36521 "If there is an error, this function returns C<-1>, and sets the error in the "
36522 "handle in the usual way (see L</guestfs_last_error> etc.)"
36526 #: ../src/guestfs.pod:1885
36528 "Callbacks remain in effect until they are deleted, or until the handle is "
36533 #: ../src/guestfs.pod:1888
36535 "In the case where multiple callbacks are registered for a particular event "
36536 "class, all of the callbacks are called. The order in which multiple "
36537 "callbacks are called is not defined."
36541 #: ../src/guestfs.pod:1892
36542 msgid "guestfs_delete_event_callback"
36546 #: ../src/guestfs.pod:1894
36549 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36554 #: ../src/guestfs.pod:1896
36556 "Delete a callback that was previously registered. C<event_handle> should be "
36557 "the integer that was returned by a previous call to "
36558 "C<guestfs_set_event_callback> on the same handle."
36562 #: ../src/guestfs.pod:1900
36563 msgid "guestfs_event_callback"
36567 #: ../src/guestfs.pod:1902
36570 " typedef void (*guestfs_event_callback) (\n"
36573 " uint64_t event,\n"
36574 " int event_handle,\n"
36576 " const char *buf, size_t buf_len,\n"
36577 " const uint64_t *array, size_t array_len);\n"
36582 #: ../src/guestfs.pod:1911
36584 "This is the type of the event callback function that you have to provide."
36588 #: ../src/guestfs.pod:1914
36590 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36591 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36592 "handle, and C<flags> which in the current API you should ignore."
36596 #: ../src/guestfs.pod:1918
36598 "The remaining parameters contain the event payload (if any). Each event may "
36599 "contain a payload, which usually relates to the event class, but for future "
36600 "proofing your code should be written to handle any payload for any event "
36605 #: ../src/guestfs.pod:1923
36607 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36608 "there is no message buffer). Note that this message buffer can contain "
36609 "arbitrary 8 bit data, including NUL bytes."
36613 #: ../src/guestfs.pod:1927
36615 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
36616 "moment this is only used for progress messages."
36620 #: ../src/guestfs.pod:1930
36621 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36625 #: ../src/guestfs.pod:1932
36627 "One motivation for the generic event API was to allow GUI programs to "
36628 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
36629 "unconditionally to C<stderr>."
36633 #: ../src/guestfs.pod:1936
36635 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36636 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
36637 "messages are not events; you must capture error messages separately)."
36641 #: ../src/guestfs.pod:1941
36643 "Programs have to set up a callback to capture the classes of events of "
36648 #: ../src/guestfs.pod:1944
36652 " guestfs_set_event_callback\n"
36653 " (g, message_callback,\n"
36654 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36655 " GUESTFS_EVENT_TRACE,\n"
36656 " 0, NULL) == -1)\n"
36657 " if (eh == -1) {\n"
36658 " // handle error in the usual way\n"
36664 #: ../src/guestfs.pod:1954
36666 "The callback can then direct messages to the appropriate place. In this "
36667 "example, messages are directed to syslog:"
36671 #: ../src/guestfs.pod:1957
36675 " message_callback (\n"
36678 " uint64_t event,\n"
36679 " int event_handle,\n"
36681 " const char *buf, size_t buf_len,\n"
36682 " const uint64_t *array, size_t array_len)\n"
36684 " const int priority = LOG_USER|LOG_INFO;\n"
36685 " if (buf_len > 0)\n"
36686 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36692 #: ../src/guestfs.pod:1972
36693 msgid "CANCELLING LONG TRANSFERS"
36697 #: ../src/guestfs.pod:1974
36699 "Some operations can be cancelled by the caller while they are in progress. "
36700 "Currently only operations that involve uploading or downloading data can be "
36701 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36702 "parameters in the generator)."
36706 #: ../src/guestfs.pod:1979
36707 msgid "guestfs_user_cancel"
36711 #: ../src/guestfs.pod:1981
36714 " void guestfs_user_cancel (guestfs_h *g);\n"
36719 #: ../src/guestfs.pod:1983
36721 "C<guestfs_user_cancel> cancels the current upload or download operation."
36725 #: ../src/guestfs.pod:1986
36727 "Unlike most other libguestfs calls, this function is signal safe and thread "
36728 "safe. You can call it from a signal handler or from another thread, without "
36729 "needing to do any locking."
36733 #: ../src/guestfs.pod:1990
36735 "The transfer that was in progress (if there is one) will stop shortly "
36736 "afterwards, and will return an error. The errno (see L</"
36737 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36738 "out if the operation was cancelled or failed because of another error."
36742 #: ../src/guestfs.pod:1996
36744 "No cleanup is performed: for example, if a file was being uploaded then "
36745 "after cancellation there may be a partially uploaded file. It is the "
36746 "caller's responsibility to clean up if necessary."
36750 #: ../src/guestfs.pod:2000
36751 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36755 #: ../src/guestfs.pod:2002
36757 "In an interactive text-based program, you might call it from a C<SIGINT> "
36758 "signal handler so that pressing C<^C> cancels the current operation. (You "
36759 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36760 "receive the C<^C> signal)."
36764 #: ../src/guestfs.pod:2007
36766 "In a graphical program, when the main thread is displaying a progress bar "
36767 "with a cancel button, wire up the cancel button to call this function."
36771 #: ../src/guestfs.pod:2011
36772 msgid "PRIVATE DATA AREA"
36776 #: ../src/guestfs.pod:2013
36778 "You can attach named pieces of private data to the libguestfs handle, fetch "
36779 "them by name, and walk over them, for the lifetime of the handle. This is "
36780 "called the private data area and is only available from the C API."
36784 #: ../src/guestfs.pod:2018
36785 msgid "To attach a named piece of data, use the following call:"
36789 #: ../src/guestfs.pod:2020
36792 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36795 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36799 #: ../src/guestfs.pod:2022
36801 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36802 "pointer (which can be C<NULL>). Any previous item with the same key is "
36807 #: ../src/guestfs.pod:2026
36809 "You can use any C<key> you want, but your key should I<not> start with an "
36810 "underscore character. Keys beginning with an underscore character are "
36811 "reserved for internal libguestfs purposes (eg. for implementing language "
36812 "bindings). It is recommended that you prefix the key with some unique "
36813 "string to avoid collisions with other users."
36817 #: ../src/guestfs.pod:2032
36818 msgid "To retrieve the pointer, use:"
36822 #: ../src/guestfs.pod:2034
36825 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36828 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36832 #: ../src/guestfs.pod:2036
36834 "This function returns C<NULL> if either no data is found associated with "
36835 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36840 #: ../src/guestfs.pod:2040
36842 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36843 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
36844 "all. In particular, libguestfs does I<not> try to free the data when the "
36845 "handle is closed. If the data must be freed, then the caller must either "
36846 "free it before calling L</guestfs_close> or must set up a close callback to "
36847 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36851 #: ../src/guestfs.pod:2047
36852 msgid "To walk over all entries, use these two functions:"
36856 #: ../src/guestfs.pod:2049
36859 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36864 #: ../src/guestfs.pod:2051
36867 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36872 #: ../src/guestfs.pod:2053
36874 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36875 "not have any particular meaning -- keys are not returned in any defined "
36876 "order). A pointer to the key is returned in C<*key_rtn> and the "
36877 "corresponding data pointer is returned from the function. C<NULL> is "
36878 "returned if there are no keys stored in the handle."
36882 #: ../src/guestfs.pod:2059
36884 "C<guestfs_next_private> returns the next key, pointer pair. The return "
36885 "value of this function is also C<NULL> is there are no further entries to "
36890 #: ../src/guestfs.pod:2063
36891 msgid "Notes about walking over entries:"
36895 #: ../src/guestfs.pod:2069
36897 "You must not call C<guestfs_set_private> while walking over the entries."
36901 #: ../src/guestfs.pod:2074
36903 "The handle maintains an internal iterator which is reset when you call "
36904 "C<guestfs_first_private>. This internal iterator is invalidated when you "
36905 "call C<guestfs_set_private>."
36909 #: ../src/guestfs.pod:2080
36910 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36914 #: ../src/guestfs.pod:2082
36917 " guestfs_set_private (g, key, NULL);\n"
36922 #: ../src/guestfs.pod:2084
36923 msgid "then that C<key> is not returned when walking."
36927 #: ../src/guestfs.pod:2088
36929 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36930 "C<guestfs_next_private> or C<guestfs_set_private>."
36934 #: ../src/guestfs.pod:2094
36936 "The following example code shows how to print all keys and data pointers "
36937 "that are associated with the handle C<g>:"
36941 #: ../src/guestfs.pod:2097
36944 " const char *key;\n"
36945 " void *data = guestfs_first_private (g, &key);\n"
36946 " while (data != NULL)\n"
36948 " printf (\"key = %s, data = %p\\n\", key, data);\n"
36949 " data = guestfs_next_private (g, &key);\n"
36955 #: ../src/guestfs.pod:2105
36957 "More commonly you are only interested in keys that begin with an application-"
36958 "specific prefix C<foo_>. Modify the loop like so:"
36962 #: ../src/guestfs.pod:2108
36965 " const char *key;\n"
36966 " void *data = guestfs_first_private (g, &key);\n"
36967 " while (data != NULL)\n"
36969 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36970 " printf (\"key = %s, data = %p\\n\", key, data);\n"
36971 " data = guestfs_next_private (g, &key);\n"
36977 #: ../src/guestfs.pod:2117
36979 "If you need to modify keys while walking, then you have to jump back to the "
36980 "beginning of the loop. For example, to delete all keys prefixed with "
36985 #: ../src/guestfs.pod:2121
36988 " const char *key;\n"
36991 " data = guestfs_first_private (g, &key);\n"
36992 " while (data != NULL)\n"
36994 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36996 " guestfs_set_private (g, key, NULL);\n"
36997 " /* note that 'key' pointer is now invalid, and so is\n"
36998 " the internal iterator */\n"
37001 " data = guestfs_next_private (g, &key);\n"
37007 #: ../src/guestfs.pod:2137
37009 "Note that the above loop is guaranteed to terminate because the keys are "
37010 "being deleted, but other manipulations of keys within the loop might not "
37011 "terminate unless you also maintain an indication of which keys have been "
37016 #: ../src/guestfs.pod:2142 ../src/guestfs.pod:2147
37021 #: ../src/guestfs.pod:2144
37023 "<!-- old anchor for the next section --> <a name="
37024 "\"state_machine_and_low_level_event_api\"/>"
37026 "<!-- old anchor for the next section --> <a name="
37027 "\"state_machine_and_low_level_event_api\"/>"
37030 #: ../src/guestfs.pod:2149
37031 msgid "ARCHITECTURE"
37032 msgstr "АРХІТЕКТУРА"
37035 #: ../src/guestfs.pod:2151
37037 "Internally, libguestfs is implemented by running an appliance (a special "
37038 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
37039 "process of the main program."
37043 #: ../src/guestfs.pod:2155
37046 " ___________________\n"
37048 " | main program |\n"
37050 " | | child process / appliance\n"
37051 " | | __________________________\n"
37053 " +-------------------+ RPC | +-----------------+ |\n"
37054 " | libguestfs <--------------------> guestfsd | |\n"
37055 " | | | +-----------------+ |\n"
37056 " \\___________________/ | | Linux kernel | |\n"
37057 " | +--^--------------+ |\n"
37058 " \\_________|________________/\n"
37060 " _______v______\n"
37063 " | disk image |\n"
37064 " \\______________/\n"
37069 #: ../src/guestfs.pod:2175
37071 "The library, linked to the main program, creates the child process and hence "
37072 "the appliance in the L</guestfs_launch> function."
37076 #: ../src/guestfs.pod:2178
37078 "Inside the appliance is a Linux kernel and a complete stack of userspace "
37079 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
37080 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
37081 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
37082 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
37083 "attached to the qemu process which translates device access by the "
37084 "appliance's Linux kernel into accesses to the image."
37088 #: ../src/guestfs.pod:2187
37090 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
37091 "Although the disk image you are attached to might also be used by some "
37092 "virtual machine, libguestfs doesn't know or care about this. (But you will "
37093 "care if both libguestfs's qemu process and your virtual machine are trying "
37094 "to update the disk image at the same time, since these usually results in "
37095 "massive disk corruption)."
37099 #: ../src/guestfs.pod:2194
37100 msgid "STATE MACHINE"
37101 msgstr "СКІНЧЕННИЙ АВТОМАТ"
37104 #: ../src/guestfs.pod:2196
37105 msgid "libguestfs uses a state machine to model the child process:"
37109 #: ../src/guestfs.pod:2198
37113 " guestfs_create\n"
37121 " / | \\ \\ guestfs_launch\n"
37122 " / | _\\__V______\n"
37124 " / | | LAUNCHING |\n"
37125 " / | \\___________/\n"
37127 " / | guestfs_launch\n"
37129 " ______ / __|____V\n"
37130 " / \\ ------> / \\\n"
37131 " | BUSY | | READY |\n"
37132 " \\______/ <------ \\________/\n"
37137 #: ../src/guestfs.pod:2220
37139 "The normal transitions are (1) CONFIG (when the handle is created, but there "
37140 "is no child process), (2) LAUNCHING (when the child process is booting up), "
37141 "(3) alternating between READY and BUSY as commands are issued to, and "
37142 "carried out by, the child process."
37146 #: ../src/guestfs.pod:2225
37148 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
37149 "asynchronously at any time (eg. due to some internal error), and that causes "
37150 "the state to transition back to CONFIG."
37154 #: ../src/guestfs.pod:2229
37156 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
37157 "issued when in the CONFIG state."
37161 #: ../src/guestfs.pod:2232
37163 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
37164 "L</guestfs_launch> blocks until the child process is READY to accept "
37165 "commands (or until some failure or timeout). L</guestfs_launch> internally "
37166 "moves the state from CONFIG to LAUNCHING while it is running."
37170 #: ../src/guestfs.pod:2238
37172 "API actions such as L</guestfs_mount> can only be issued when in the READY "
37173 "state. These API calls block waiting for the command to be carried out (ie. "
37174 "the state to transition to BUSY and then back to READY). There are no non-"
37175 "blocking versions, and no way to issue more than one command per handle at "
37180 #: ../src/guestfs.pod:2244
37182 "Finally, the child process sends asynchronous messages back to the main "
37183 "program, such as kernel log messages. You can register a callback to "
37184 "receive these messages."
37188 #: ../src/guestfs.pod:2248
37193 #: ../src/guestfs.pod:2250
37194 msgid "APPLIANCE BOOT PROCESS"
37198 #: ../src/guestfs.pod:2252
37200 "This process has evolved and continues to evolve. The description here "
37201 "corresponds only to the current version of libguestfs and is provided for "
37202 "information only."
37206 #: ../src/guestfs.pod:2256
37208 "In order to follow the stages involved below, enable libguestfs debugging "
37209 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
37213 #: ../src/guestfs.pod:2261
37215 #| msgid "C<appliance>"
37216 msgid "Create the appliance"
37217 msgstr "C<appliance>"
37220 #: ../src/guestfs.pod:2263
37222 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
37223 "initrd and the appliance."
37227 #: ../src/guestfs.pod:2266
37229 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
37230 "directory if C<TMPDIR> is set)."
37234 #: ../src/guestfs.pod:2269
37236 "For a complete description of how the appliance is created and cached, read "
37237 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
37241 #: ../src/guestfs.pod:2273
37242 msgid "Start qemu and boot the kernel"
37246 #: ../src/guestfs.pod:2275
37247 msgid "qemu is invoked to boot the kernel."
37251 #: ../src/guestfs.pod:2277
37252 msgid "Run the initrd"
37256 #: ../src/guestfs.pod:2279
37258 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
37259 "appliance. The purpose of the initrd is to load enough kernel modules in "
37260 "order that the appliance itself can be mounted and started."
37264 #: ../src/guestfs.pod:2283
37266 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
37271 #: ../src/guestfs.pod:2286
37273 "When the initrd has started you will see messages showing that kernel "
37274 "modules are being loaded, similar to this:"
37278 #: ../src/guestfs.pod:2289
37281 " febootstrap: ext2 mini initrd starting up\n"
37282 " febootstrap: mounting /sys\n"
37283 " febootstrap: internal insmod libcrc32c.ko\n"
37284 " febootstrap: internal insmod crc32c-intel.ko\n"
37289 #: ../src/guestfs.pod:2294
37290 msgid "Find and mount the appliance device"
37294 #: ../src/guestfs.pod:2296
37296 "The appliance is a sparse file containing an ext2 filesystem which contains "
37297 "a familiar (although reduced in size) Linux operating system. It would "
37298 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
37302 #: ../src/guestfs.pod:2300
37304 "The regular disks being inspected by libguestfs are the first devices "
37305 "exposed by qemu (eg. as C</dev/vda>)."
37309 #: ../src/guestfs.pod:2303
37311 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
37312 "there was only one regular disk)."
37316 #: ../src/guestfs.pod:2306
37318 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
37319 "and switch root into the appliance, and run C</init> from the appliance."
37323 #: ../src/guestfs.pod:2310
37324 msgid "If this works successfully you will see messages such as:"
37328 #: ../src/guestfs.pod:2312
37331 " febootstrap: picked /sys/block/vdb/dev as root device\n"
37332 " febootstrap: creating /dev/root as block special 252:16\n"
37333 " febootstrap: mounting new root on /root\n"
37334 " febootstrap: chroot\n"
37335 " Starting /init script ...\n"
37340 #: ../src/guestfs.pod:2318
37342 "Note that C<Starting /init script ...> indicates that the appliance's init "
37343 "script is now running."
37347 #: ../src/guestfs.pod:2321
37348 msgid "Initialize the appliance"
37352 #: ../src/guestfs.pod:2323
37354 "The appliance itself now initializes itself. This involves starting certain "
37355 "processes like C<udev>, possibly printing some debug information, and "
37356 "finally running the daemon (C<guestfsd>)."
37360 #: ../src/guestfs.pod:2327
37362 #| msgid "C<daemon>"
37367 #: ../src/guestfs.pod:2329
37369 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
37374 #: ../src/guestfs.pod:2332
37377 #| " set-verbose true|false\n"
37380 " verbose daemon enabled\n"
37383 " set-verbose true|false\n"
37387 #: ../src/guestfs.pod:2334
37389 "The daemon expects to see a named virtio-serial port exposed by qemu and "
37390 "connected on the other end to the library."
37394 #: ../src/guestfs.pod:2337
37396 "The daemon connects to this port (and hence to the library) and sends a four "
37397 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
37398 "protocol (see below)."
37402 #: ../src/guestfs.pod:2343
37403 msgid "COMMUNICATION PROTOCOL"
37407 #: ../src/guestfs.pod:2345
37409 "Don't rely on using this protocol directly. This section documents how it "
37410 "currently works, but it may change at any time."
37414 #: ../src/guestfs.pod:2348
37416 "The protocol used to talk between the library and the daemon running inside "
37417 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
37418 "1014, RFC 1832, RFC 4506)."
37422 #: ../src/guestfs.pod:2352
37424 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
37425 "this file is automatically generated)."
37429 #: ../src/guestfs.pod:2355
37431 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
37432 "and C<FileOut> parameters, which are handled with very simple request/reply "
37433 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
37434 "parameters, which use the same request and reply messages, but they may also "
37435 "be followed by files sent using a chunked encoding."
37439 #: ../src/guestfs.pod:2362
37440 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
37444 #: ../src/guestfs.pod:2364
37445 msgid "For ordinary functions, the request message is:"
37449 #: ../src/guestfs.pod:2366
37452 " total length (header + arguments,\n"
37453 " but not including the length word itself)\n"
37454 " struct guestfs_message_header (encoded as XDR)\n"
37455 " struct guestfs_<foo>_args (encoded as XDR)\n"
37460 #: ../src/guestfs.pod:2371
37462 "The total length field allows the daemon to allocate a fixed size buffer "
37463 "into which it slurps the rest of the message. As a result, the total length "
37464 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
37465 "effective size of any request is limited to somewhere under this size."
37469 #: ../src/guestfs.pod:2377
37471 "Note also that many functions don't take any arguments, in which case the "
37472 "C<guestfs_I<foo>_args> is completely omitted."
37476 #: ../src/guestfs.pod:2380
37478 "The header contains the procedure number (C<guestfs_proc>) which is how the "
37479 "receiver knows what type of args structure to expect, or none at all."
37483 #: ../src/guestfs.pod:2384
37485 "For functions that take optional arguments, the optional arguments are "
37486 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
37487 "arguments. A bitmask in the header indicates which optional arguments are "
37488 "meaningful. The bitmask is also checked to see if it contains bits set "
37489 "which the daemon does not know about (eg. if more optional arguments were "
37490 "added in a later version of the library), and this causes the call to be "
37495 #: ../src/guestfs.pod:2392
37496 msgid "The reply message for ordinary functions is:"
37500 #: ../src/guestfs.pod:2394
37503 " total length (header + ret,\n"
37504 " but not including the length word itself)\n"
37505 " struct guestfs_message_header (encoded as XDR)\n"
37506 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37511 #: ../src/guestfs.pod:2399
37513 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
37514 "functions that return no formal return values."
37518 #: ../src/guestfs.pod:2402
37520 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
37524 #: ../src/guestfs.pod:2405
37526 "In the case of an error, a flag is set in the header, and the reply message "
37527 "is slightly changed:"
37531 #: ../src/guestfs.pod:2408
37534 " total length (header + error,\n"
37535 " but not including the length word itself)\n"
37536 " struct guestfs_message_header (encoded as XDR)\n"
37537 " struct guestfs_message_error (encoded as XDR)\n"
37542 #: ../src/guestfs.pod:2413
37544 "The C<guestfs_message_error> structure contains the error message as a "
37549 #: ../src/guestfs.pod:2416
37550 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
37554 #: ../src/guestfs.pod:2418
37556 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
37557 "The normal request message is sent (see above). However this is followed by "
37558 "a sequence of file chunks."
37562 #: ../src/guestfs.pod:2422
37565 " total length (header + arguments,\n"
37566 " but not including the length word itself,\n"
37567 " and not including the chunks)\n"
37568 " struct guestfs_message_header (encoded as XDR)\n"
37569 " struct guestfs_<foo>_args (encoded as XDR)\n"
37570 " sequence of chunks for FileIn param #0\n"
37571 " sequence of chunks for FileIn param #1 etc.\n"
37576 #: ../src/guestfs.pod:2430
37577 msgid "The \"sequence of chunks\" is:"
37581 #: ../src/guestfs.pod:2432
37584 " length of chunk (not including length word itself)\n"
37585 " struct guestfs_chunk (encoded as XDR)\n"
37586 " length of chunk\n"
37587 " struct guestfs_chunk (encoded as XDR)\n"
37589 " length of chunk\n"
37590 " struct guestfs_chunk (with data.data_len == 0)\n"
37595 #: ../src/guestfs.pod:2440
37597 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
37598 "is set in the final chunk to indicate either successful completion or early "
37603 #: ../src/guestfs.pod:2444
37605 "At time of writing there are no functions that have more than one FileIn "
37606 "parameter. However this is (theoretically) supported, by sending the "
37607 "sequence of chunks for each FileIn parameter one after another (from left to "
37612 #: ../src/guestfs.pod:2449
37614 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
37615 "transfer. The library does this by sending a chunk with a special flag set "
37616 "to indicate cancellation. When the daemon sees this, it cancels the whole "
37617 "RPC, does I<not> send any reply, and goes back to reading the next request."
37621 #: ../src/guestfs.pod:2455
37623 "The daemon may also cancel. It does this by writing a special word "
37624 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
37625 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
37626 "cancel chunk). The special word is chosen so that even if cancellation "
37627 "happens right at the end of the transfer (after the library has finished "
37628 "writing and has started listening for the reply), the \"spurious\" cancel "
37629 "flag will not be confused with the reply message."
37633 #: ../src/guestfs.pod:2464
37635 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
37636 "limit), and also files where the size is not known in advance (eg. from "
37637 "pipes or sockets). However the chunks are rather small "
37638 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
37639 "to keep much in memory."
37643 #: ../src/guestfs.pod:2470
37644 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
37648 #: ../src/guestfs.pod:2472
37650 "The protocol for FileOut parameters is exactly the same as for FileIn "
37651 "parameters, but with the roles of daemon and library reversed."
37655 #: ../src/guestfs.pod:2475
37658 " total length (header + ret,\n"
37659 " but not including the length word itself,\n"
37660 " and not including the chunks)\n"
37661 " struct guestfs_message_header (encoded as XDR)\n"
37662 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37663 " sequence of chunks for FileOut param #0\n"
37664 " sequence of chunks for FileOut param #1 etc.\n"
37669 #: ../src/guestfs.pod:2483
37670 msgid "INITIAL MESSAGE"
37674 #: ../src/guestfs.pod:2485
37676 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
37677 "which indicates that the guest and daemon is alive. This is what L</"
37678 "guestfs_launch> waits for."
37682 #: ../src/guestfs.pod:2489
37683 msgid "PROGRESS NOTIFICATION MESSAGES"
37687 #: ../src/guestfs.pod:2491
37689 "The daemon may send progress notification messages at any time. These are "
37690 "distinguished by the normal length word being replaced by "
37691 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
37695 #: ../src/guestfs.pod:2495
37697 "The library turns them into progress callbacks (see L</"
37698 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
37703 #: ../src/guestfs.pod:2499
37705 "The daemon self-limits the frequency of progress messages it sends (see "
37706 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
37711 #: ../src/guestfs.pod:2503
37712 msgid "LIBGUESTFS VERSION NUMBERS"
37716 #: ../src/guestfs.pod:2505
37718 "Since April 2010, libguestfs has started to make separate development and "
37719 "stable releases, along with corresponding branches in our git repository. "
37720 "These separate releases can be identified by version number:"
37724 #: ../src/guestfs.pod:2510
37727 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
37728 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37734 " | `-------- sub-version\n"
37736 " `------ always '1' because we don't change the ABI\n"
37741 #: ../src/guestfs.pod:2521
37742 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37746 #: ../src/guestfs.pod:2523
37748 "As time passes we cherry pick fixes from the development branch and backport "
37749 "those into the stable branch, the effect being that the stable branch should "
37750 "get more stable and less buggy over time. So the stable releases are ideal "
37751 "for people who don't need new features but would just like the software to "
37756 #: ../src/guestfs.pod:2529
37757 msgid "Our criteria for backporting changes are:"
37761 #: ../src/guestfs.pod:2535
37763 "Documentation changes which don't affect any code are backported unless the "
37764 "documentation refers to a future feature which is not in stable."
37768 #: ../src/guestfs.pod:2541
37770 "Bug fixes which are not controversial, fix obvious problems, and have been "
37771 "well tested are backported."
37775 #: ../src/guestfs.pod:2546
37777 "Simple rearrangements of code which shouldn't affect how it works get "
37778 "backported. This is so that the code in the two branches doesn't get too "
37779 "far out of step, allowing us to backport future fixes more easily."
37783 #: ../src/guestfs.pod:2552
37785 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37786 "exceptional case: the new feature is required in order to implement an "
37787 "important bug fix."
37791 #: ../src/guestfs.pod:2558
37793 "A new stable branch starts when we think the new features in development are "
37794 "substantial and compelling enough over the current stable branch to warrant "
37795 "it. When that happens we create new stable and development versions 1.N.0 "
37796 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
37797 "stable at this point, but by backporting fixes from development, that branch "
37798 "will stabilize over time."
37802 #: ../src/guestfs.pod:2566
37803 msgid "EXTENDING LIBGUESTFS"
37807 #: ../src/guestfs.pod:2568
37808 msgid "ADDING A NEW API ACTION"
37812 #: ../src/guestfs.pod:2570
37814 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37815 "documentation) are generated, and this makes it easy to extend the "
37820 #: ../src/guestfs.pod:2574
37821 msgid "To add a new API action there are two changes:"
37825 #: ../src/guestfs.pod:2580
37827 "You need to add a description of the call (name, parameters, return type, "
37828 "tests, documentation) to C<generator/generator_actions.ml>."
37832 #: ../src/guestfs.pod:2583
37834 "There are two sorts of API action, depending on whether the call goes "
37835 "through to the daemon in the appliance, or is serviced entirely by the "
37836 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
37837 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
37838 "an example of the latter, since a trace flag is maintained in the handle and "
37839 "all tracing is done on the library side."
37843 #: ../src/guestfs.pod:2591
37845 "Most new actions are of the first type, and get added to the "
37846 "C<daemon_functions> list. Each function has a unique procedure number used "
37847 "in the RPC protocol which is assigned to that action when we publish "
37848 "libguestfs and cannot be reused. Take the latest procedure number and "
37853 #: ../src/guestfs.pod:2597
37855 "For library-only actions of the second type, add to the "
37856 "C<non_daemon_functions> list. Since these functions are serviced by the "
37857 "library and do not travel over the RPC mechanism to the daemon, these "
37858 "functions do not need a procedure number, and so the procedure number is set "
37863 #: ../src/guestfs.pod:2605
37864 msgid "Implement the action (in C):"
37868 #: ../src/guestfs.pod:2607
37870 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37871 "C<daemon/> directory."
37875 #: ../src/guestfs.pod:2610
37877 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37878 "(note: double underscore) in the C<src/> directory."
37882 #: ../src/guestfs.pod:2613
37883 msgid "In either case, use another function as an example of what to do."
37887 #: ../src/guestfs.pod:2617
37888 msgid "After making these changes, use C<make> to compile."
37892 #: ../src/guestfs.pod:2619
37894 "Note that you don't need to implement the RPC, language bindings, manual "
37895 "pages or anything else. It's all automatically generated from the OCaml "
37900 #: ../src/guestfs.pod:2623
37901 msgid "ADDING TESTS FOR AN API ACTION"
37905 #: ../src/guestfs.pod:2625
37907 "You can supply zero or as many tests as you want per API call. The tests "
37908 "can either be added as part of the API description (C<generator/"
37909 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37910 "into C<regressions/>. Note that adding a script to C<regressions/> is "
37911 "slower, so if possible use the first method."
37915 #: ../src/guestfs.pod:2631
37917 "The following describes the test environment used when you add an API test "
37918 "in C<generator_actions.ml>."
37922 #: ../src/guestfs.pod:2634
37923 msgid "The test environment has 4 block devices:"
37927 #: ../src/guestfs.pod:2638
37928 msgid "C</dev/sda> 500MB"
37929 msgstr "C</dev/sda> 500 МБ"
37932 #: ../src/guestfs.pod:2640
37933 msgid "General block device for testing."
37937 #: ../src/guestfs.pod:2642
37938 msgid "C</dev/sdb> 50MB"
37939 msgstr "C</dev/sdb> 50 МБ"
37942 #: ../src/guestfs.pod:2644
37944 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37949 #: ../src/guestfs.pod:2647
37950 msgid "C</dev/sdc> 10MB"
37951 msgstr "C</dev/sdc> 10 МБ"
37954 #: ../src/guestfs.pod:2649
37955 msgid "Used in a few tests where two block devices are needed."
37959 #: ../src/guestfs.pod:2651
37960 msgid "C</dev/sdd>"
37961 msgstr "C</dev/sdd>"
37964 #: ../src/guestfs.pod:2653
37965 msgid "ISO with fixed content (see C<images/test.iso>)."
37969 #: ../src/guestfs.pod:2657
37971 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37972 "appliance and block devices are reused between tests. So don't try testing "
37973 "L</guestfs_kill_subprocess> :-x"
37977 #: ../src/guestfs.pod:2661
37979 "Each test starts with an initial scenario, selected using one of the "
37980 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
37981 "initialize the disks mentioned above in a particular way as documented in "
37982 "C<generator_types.ml>. You should not assume anything about the previous "
37983 "contents of other disks that are not initialized."
37987 #: ../src/guestfs.pod:2667
37989 "You can add a prerequisite clause to any individual test. This is a run-"
37990 "time check, which, if it fails, causes the test to be skipped. Useful if "
37991 "testing a command which might not work on all variations of libguestfs "
37992 "builds. A test that has prerequisite of C<Always> means to run "
37997 #: ../src/guestfs.pod:2673
37999 "In addition, packagers can skip individual tests by setting environment "
38000 "variables before running C<make check>."
38004 #: ../src/guestfs.pod:2676
38007 " SKIP_TEST_<CMD>_<NUM>=1\n"
38012 #: ../src/guestfs.pod:2678
38013 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
38017 #: ../src/guestfs.pod:2680
38022 #: ../src/guestfs.pod:2682
38025 " SKIP_TEST_<CMD>=1\n"
38030 #: ../src/guestfs.pod:2684
38031 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
38035 #: ../src/guestfs.pod:2686
38036 msgid "Packagers can run only certain tests by setting for example:"
38040 #: ../src/guestfs.pod:2688
38043 " TEST_ONLY=\"vfs_type zerofree\"\n"
38048 #: ../src/guestfs.pod:2690
38050 "See C<capitests/tests.c> for more details of how these environment variables "
38055 #: ../src/guestfs.pod:2693
38056 msgid "DEBUGGING NEW API ACTIONS"
38060 #: ../src/guestfs.pod:2695
38061 msgid "Test new actions work before submitting them."
38065 #: ../src/guestfs.pod:2697
38066 msgid "You can use guestfish to try out new commands."
38070 #: ../src/guestfs.pod:2699
38072 "Debugging the daemon is a problem because it runs inside a minimal "
38073 "environment. However you can fprintf messages in the daemon to stderr, and "
38074 "they will show up if you use C<guestfish -v>."
38078 #: ../src/guestfs.pod:2703
38079 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
38083 #: ../src/guestfs.pod:2705
38085 "Our C source code generally adheres to some basic code-formatting "
38086 "conventions. The existing code base is not totally consistent on this "
38087 "front, but we do prefer that contributed code be formatted similarly. In "
38088 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
38089 "indentation level, and other than that, follow the K&R style."
38093 #: ../src/guestfs.pod:2711
38095 "If you use Emacs, add the following to one of one of your start-up files (e."
38096 "g., ~/.emacs), to help ensure that you get indentation right:"
38100 #: ../src/guestfs.pod:2714
38103 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
38104 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
38105 " (add-hook 'find-file-hook\n"
38106 " '(lambda () (if (and buffer-file-name\n"
38107 " (string-match \"/libguestfs\\\\>\"\n"
38108 " (buffer-file-name))\n"
38109 " (not (string-equal mode-name \"Change Log\"))\n"
38110 " (not (string-equal mode-name \"Makefile\")))\n"
38111 " (setq indent-tabs-mode nil))))\n"
38116 #: ../src/guestfs.pod:2724
38119 " ;;; When editing C sources in libguestfs, use this style.\n"
38120 " (defun libguestfs-c-mode ()\n"
38121 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
38123 " (c-set-style \"K&R\")\n"
38124 " (setq c-indent-level 2)\n"
38125 " (setq c-basic-offset 2))\n"
38126 " (add-hook 'c-mode-hook\n"
38127 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
38128 " (buffer-file-name))\n"
38129 " (libguestfs-c-mode))))\n"
38134 #: ../src/guestfs.pod:2736
38135 msgid "Enable warnings when compiling (and fix any problems this finds):"
38139 #: ../src/guestfs.pod:2739
38142 " ./configure --enable-gcc-warnings\n"
38145 " ./configure --enable-gcc-warnings\n"
38149 #: ../src/guestfs.pod:2741
38150 msgid "Useful targets are:"
38154 #: ../src/guestfs.pod:2743
38157 " make syntax-check # checks the syntax of the C code\n"
38158 " make check # runs the test suite\n"
38163 #: ../src/guestfs.pod:2746
38164 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
38168 #: ../src/guestfs.pod:2748
38170 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
38171 "which are used to do shell quoting."
38175 #: ../src/guestfs.pod:2753
38180 #: ../src/guestfs.pod:2755
38182 "Simple shell quoted string. Any spaces or other shell characters are "
38187 #: ../src/guestfs.pod:2758
38192 #: ../src/guestfs.pod:2760
38194 "Same as C<%Q> except the string is treated as a path which is prefixed by "
38199 #: ../src/guestfs.pod:2767
38202 " asprintf (&cmd, \"cat %R\", path);\n"
38207 #: ../src/guestfs.pod:2769
38208 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
38212 #: ../src/guestfs.pod:2771
38214 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
38215 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
38216 "they are not passed via the shell (instead, straight to exec). You probably "
38217 "want to use the C<sysroot_path()> function however."
38221 #: ../src/guestfs.pod:2777
38222 msgid "SUBMITTING YOUR NEW API ACTIONS"
38226 #: ../src/guestfs.pod:2779
38228 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
38229 "libguestfs> and CC to L<rjones@redhat.com>."
38233 #: ../src/guestfs.pod:2783
38234 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
38238 #: ../src/guestfs.pod:2785
38239 msgid "We support i18n (gettext anyhow) in the library."
38243 #: ../src/guestfs.pod:2787
38245 "However many messages come from the daemon, and we don't translate those at "
38246 "the moment. One reason is that the appliance generally has all locale files "
38247 "removed from it, because they take up a lot of space. So we'd have to readd "
38248 "some of those, as well as copying our PO files into the appliance."
38252 #: ../src/guestfs.pod:2793
38254 "Debugging messages are never translated, since they are intended for the "
38259 #: ../src/guestfs.pod:2796
38260 msgid "SOURCE CODE SUBDIRECTORIES"
38264 #: ../src/guestfs.pod:2802
38265 msgid "The libguestfs appliance, build scripts and so on."
38269 #: ../src/guestfs.pod:2804
38270 msgid "C<capitests>"
38271 msgstr "C<capitests>"
38274 #: ../src/guestfs.pod:2806
38275 msgid "Automated tests of the C API."
38279 #: ../src/guestfs.pod:2808
38284 #: ../src/guestfs.pod:2810
38286 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
38291 #: ../src/guestfs.pod:2813
38296 #: ../src/guestfs.pod:2815
38298 "Safety and liveness tests of components that libguestfs depends upon (not of "
38299 "libguestfs itself). Mainly this is for qemu and the kernel."
38303 #: ../src/guestfs.pod:2818
38305 msgstr "C<contrib>"
38308 #: ../src/guestfs.pod:2820
38309 msgid "Outside contributions, experimental parts."
38313 #: ../src/guestfs.pod:2822
38318 #: ../src/guestfs.pod:2824
38320 "The daemon that runs inside the libguestfs appliance and carries out actions."
38324 #: ../src/guestfs.pod:2827
38329 #: ../src/guestfs.pod:2829
38330 msgid "L<virt-df(1)> command and documentation."
38334 #: ../src/guestfs.pod:2831
38339 #: ../src/guestfs.pod:2833
38340 msgid "L<virt-edit(1)> command and documentation."
38344 #: ../src/guestfs.pod:2835
38345 msgid "C<examples>"
38346 msgstr "C<examples>"
38349 #: ../src/guestfs.pod:2837
38350 msgid "C API example code."
38351 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
38354 #: ../src/guestfs.pod:2839
38359 #: ../src/guestfs.pod:2841
38361 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
38362 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
38363 "L<virt-tar-out(1)>."
38367 #: ../src/guestfs.pod:2845
38372 #: ../src/guestfs.pod:2847
38374 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
38378 #: ../src/guestfs.pod:2849
38379 msgid "C<generator>"
38380 msgstr "C<generator>"
38383 #: ../src/guestfs.pod:2851
38385 "The crucially important generator, used to automatically generate large "
38386 "amounts of boilerplate C code for things like RPC and bindings."
38390 #: ../src/guestfs.pod:2854
38395 #: ../src/guestfs.pod:2856
38396 msgid "Files used by the test suite."
38400 #: ../src/guestfs.pod:2858
38401 msgid "Some \"phony\" guest images which we test against."
38405 #: ../src/guestfs.pod:2860
38406 msgid "C<inspector>"
38407 msgstr "C<inspector>"
38410 #: ../src/guestfs.pod:2862
38411 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
38415 #: ../src/guestfs.pod:2864
38420 #: ../src/guestfs.pod:2866
38421 msgid "Logo used on the website. The fish is called Arthur by the way."
38425 #: ../src/guestfs.pod:2868
38430 #: ../src/guestfs.pod:2870
38431 msgid "M4 macros used by autoconf."
38435 #: ../src/guestfs.pod:2872
38440 #: ../src/guestfs.pod:2874
38441 msgid "Translations of simple gettext strings."
38442 msgstr "Переклади простих рядків gettext."
38445 #: ../src/guestfs.pod:2876
38447 msgstr "C<po-docs>"
38450 #: ../src/guestfs.pod:2878
38452 "The build infrastructure and PO files for translations of manpages and POD "
38453 "files. Eventually this will be combined with the C<po> directory, but that "
38454 "is rather complicated."
38458 #: ../src/guestfs.pod:2882
38459 msgid "C<regressions>"
38460 msgstr "C<regressions>"
38463 #: ../src/guestfs.pod:2884
38464 msgid "Regression tests."
38465 msgstr "Тести на регресії."
38468 #: ../src/guestfs.pod:2886
38473 #: ../src/guestfs.pod:2888
38474 msgid "L<virt-rescue(1)> command and documentation."
38478 #: ../src/guestfs.pod:2890
38483 #: ../src/guestfs.pod:2892
38484 msgid "Source code to the C library."
38488 #: ../src/guestfs.pod:2894
38493 #: ../src/guestfs.pod:2896
38494 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
38498 #: ../src/guestfs.pod:2898
38499 msgid "C<test-tool>"
38500 msgstr "C<test-tool>"
38503 #: ../src/guestfs.pod:2900
38505 "Test tool for end users to test if their qemu/kernel combination will work "
38510 #: ../src/guestfs.pod:2903
38515 #: ../src/guestfs.pod:2905
38520 #: ../src/guestfs.pod:2907
38522 msgstr "C<haskell>"
38525 #: ../src/guestfs.pod:2909
38530 #: ../src/guestfs.pod:2911
38535 #: ../src/guestfs.pod:2913
38540 #: ../src/guestfs.pod:2915
38545 #: ../src/guestfs.pod:2917
38550 #: ../src/guestfs.pod:2919
38555 #: ../src/guestfs.pod:2921
38556 msgid "Language bindings."
38557 msgstr "Прив’язки до мов програмування."
38560 #: ../src/guestfs.pod:2925
38561 msgid "MAKING A STABLE RELEASE"
38565 #: ../src/guestfs.pod:2927
38567 "When we make a stable release, there are several steps documented here. See "
38568 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
38573 #: ../src/guestfs.pod:2935
38575 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
38579 #: ../src/guestfs.pod:2940
38580 msgid "Finalize RELEASE-NOTES."
38584 #: ../src/guestfs.pod:2944
38585 msgid "Update ROADMAP."
38589 #: ../src/guestfs.pod:2948
38590 msgid "Run C<src/api-support/update-from-tarballs.sh>."
38594 #: ../src/guestfs.pod:2952
38595 msgid "Push and pull from Transifex."
38599 #: ../src/guestfs.pod:2954
38604 #: ../src/guestfs.pod:2956
38612 #: ../src/guestfs.pod:2958
38613 msgid "to push the latest POT files to Transifex. Then run:"
38617 #: ../src/guestfs.pod:2960
38625 #: ../src/guestfs.pod:2962
38626 msgid "which is a wrapper to pull the latest translated C<*.po> files."
38630 #: ../src/guestfs.pod:2966
38632 "Create new stable and development directories under L<http://libguestfs.org/"
38637 #: ../src/guestfs.pod:2971
38638 msgid "Create the branch in git:"
38642 #: ../src/guestfs.pod:2973
38645 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
38646 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
38647 " git branch stable-1.XX\n"
38648 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
38653 #: ../src/guestfs.pod:2980
38658 #: ../src/guestfs.pod:2982
38659 msgid "PROTOCOL LIMITS"
38660 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
38663 #: ../src/guestfs.pod:2984
38665 "Internally libguestfs uses a message-based protocol to pass API calls and "
38666 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
38667 "plenty more detail about this). The maximum message size used by the "
38668 "protocol is slightly less than 4 MB. For some API calls you may need to be "
38669 "aware of this limit. The API calls which may be affected are individually "
38670 "documented, with a link back to this section of the documentation."
38674 #: ../src/guestfs.pod:2992
38676 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
38677 "a simple string. Because this string is at some point internally encoded as "
38678 "a message, the maximum size that it can return is slightly under 4 MB. If "
38679 "the requested file is larger than this then you will get an error."
38683 #: ../src/guestfs.pod:2998
38685 "In order to transfer large files into and out of the guest filesystem, you "
38686 "need to use particular calls that support this. The sections L</UPLOADING> "
38687 "and L</DOWNLOADING> document how to do this."
38691 #: ../src/guestfs.pod:3002
38693 "You might also consider mounting the disk image using our FUSE filesystem "
38694 "support (L<guestmount(1)>)."
38698 #: ../src/guestfs.pod:3005
38699 msgid "MAXIMUM NUMBER OF DISKS"
38703 #: ../src/guestfs.pod:3007
38704 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38708 #: ../src/guestfs.pod:3010
38710 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38711 "slots. However febootstrap only understands disks with names C</dev/vda> "
38712 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38717 #: ../src/guestfs.pod:3015
38719 "We are working to substantially raise this limit in future versions but it "
38720 "requires complex changes to qemu."
38724 #: ../src/guestfs.pod:3018
38726 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38727 "disks (add and remove disks after calling L</guestfs_launch>). This also "
38728 "requires changes to qemu."
38732 #: ../src/guestfs.pod:3022
38733 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38737 #: ../src/guestfs.pod:3024
38738 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38742 #: ../src/guestfs.pod:3026
38744 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
38745 "vda>, and C</dev/vda1> through C</dev/vda15>)."
38749 #: ../src/guestfs.pod:3029
38751 "If you attach a disk with more than 15 partitions, the extra partitions are "
38752 "ignored by libguestfs."
38756 #: ../src/guestfs.pod:3032
38757 msgid "MAXIMUM SIZE OF A DISK"
38761 #: ../src/guestfs.pod:3034
38762 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38766 #: ../src/guestfs.pod:3036
38768 "We have tested block devices up to 1 exabyte (2**60 or "
38769 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38774 #: ../src/guestfs.pod:3040
38776 "Although libguestfs probably does not impose any limit, the underlying host "
38777 "storage will. If you store disk images on a host ext4 filesystem, then the "
38778 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38779 "TB). If you store disk images as host logical volumes then you are limited "
38780 "by the maximum size of an LV."
38784 #: ../src/guestfs.pod:3046
38786 "For the hugest disk image files, we recommend using XFS on the host for "
38791 #: ../src/guestfs.pod:3049
38792 msgid "MAXIMUM SIZE OF A PARTITION"
38796 #: ../src/guestfs.pod:3051
38798 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38799 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
38800 "address a partition located beyond 2 TB on the disk."
38804 #: ../src/guestfs.pod:3055
38806 "It is recommended that you use GPT partitions on disks which are larger than "
38807 "this size. GPT uses 64 bit sector numbers and so can address partitions "
38808 "which are theoretically larger than the largest disk we could support."
38812 #: ../src/guestfs.pod:3060
38813 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38817 #: ../src/guestfs.pod:3062
38819 "This depends on the filesystem type. libguestfs itself does not impose any "
38820 "known limit. Consult Wikipedia or the filesystem documentation to find out "
38821 "what these limits are."
38825 #: ../src/guestfs.pod:3066
38826 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38830 #: ../src/guestfs.pod:3068
38832 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38833 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38834 "uploads and downloads."
38838 #: ../src/guestfs.pod:3072
38839 msgid "INSPECTION LIMITS"
38843 #: ../src/guestfs.pod:3074
38845 "The inspection code has several arbitrary limits on things like the size of "
38846 "Windows Registry hive it will read, and the length of product name. These "
38847 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38848 "memory and disk space on the host, and should not be reached in practice. "
38849 "See the source code for more information."
38853 #: ../src/guestfs.pod:3100
38855 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
38856 "effect as calling C<guestfs_set_verbose (g, 1)>."
38860 #: ../src/guestfs.pod:3112
38862 "Set the path that libguestfs uses to search for a supermin appliance. See "
38863 "the discussion of paths in section L</PATH> above."
38867 #: ../src/guestfs.pod:3121
38868 msgid "See also L</QEMU WRAPPERS> above."
38872 #: ../src/guestfs.pod:3125
38874 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
38875 "effect as calling C<guestfs_set_trace (g, 1)>."
38879 #: ../src/guestfs.pod:3143
38881 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
38882 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
38883 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
38884 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
38885 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)"
38886 ">, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, "
38887 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
38888 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://"
38889 "libguestfs.org/>."
38893 #: ../src/guestfs.pod:3174
38895 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38896 "(8)>, L<disktype(1)>."
38900 #: ../src/guestfs.pod:3181 ../tools/virt-make-fs.pl:553
38901 #: ../tools/virt-win-reg.pl:761
38906 #: ../src/guestfs.pod:3183
38907 msgid "To get a list of bugs against libguestfs use this link:"
38909 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38913 #: ../src/guestfs.pod:3185
38915 "L<https://bugzilla.redhat.com/buglist.cgi?"
38916 "component=libguestfs&product=Virtualization+Tools>"
38918 "L<https://bugzilla.redhat.com/buglist.cgi?"
38919 "component=libguestfs&product=Virtualization+Tools>"
38922 #: ../src/guestfs.pod:3187
38923 msgid "To report a new bug against libguestfs use this link:"
38924 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38927 #: ../src/guestfs.pod:3189
38929 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38930 "component=libguestfs&product=Virtualization+Tools>"
38932 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38933 "component=libguestfs&product=Virtualization+Tools>"
38936 #: ../src/guestfs.pod:3191
38937 msgid "When reporting a bug, please check:"
38941 #: ../src/guestfs.pod:3197
38942 msgid "That the bug hasn't been reported already."
38946 #: ../src/guestfs.pod:3201
38947 msgid "That you are testing a recent version."
38951 #: ../src/guestfs.pod:3205
38952 msgid "Describe the bug accurately, and give a way to reproduce it."
38956 #: ../src/guestfs.pod:3209
38958 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38963 #: ../test-tool/libguestfs-test-tool.pod:5
38964 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
38968 #: ../test-tool/libguestfs-test-tool.pod:9
38971 " libguestfs-test-tool [--options]\n"
38976 #: ../test-tool/libguestfs-test-tool.pod:13
38978 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
38979 "to check basic libguestfs functionality is working. This is needed because "
38980 "libguestfs occasionally breaks for reasons beyond our control: usually "
38981 "because of changes in the underlying qemu or kernel packages, or the host "
38986 #: ../test-tool/libguestfs-test-tool.pod:19
38987 msgid "If you suspect a problem in libguestfs, then just run:"
38991 #: ../test-tool/libguestfs-test-tool.pod:21
38994 " libguestfs-test-tool\n"
38999 #: ../test-tool/libguestfs-test-tool.pod:23
39000 msgid "It will print lots of diagnostic messages."
39004 #: ../test-tool/libguestfs-test-tool.pod:25
39005 msgid "If it runs to completion successfully, you will see this near the end:"
39009 #: ../test-tool/libguestfs-test-tool.pod:27
39012 " ===== TEST FINISHED OK =====\n"
39017 #: ../test-tool/libguestfs-test-tool.pod:29
39018 msgid "and the test tool will exit with code 0."
39022 #: ../test-tool/libguestfs-test-tool.pod:31
39024 "If it fails (and/or exits with non-zero error code), please paste the "
39025 "I<complete, unedited> output of the test tool into a bug report. More "
39026 "information about reporting bugs can be found on the L<http://libguestfs.org/"
39031 #: ../test-tool/libguestfs-test-tool.pod:42
39032 msgid "Display short usage information and exit."
39036 #: ../test-tool/libguestfs-test-tool.pod:44
39038 #| msgid "I<--qemu qemu_binary>"
39039 msgid "B<--qemu qemu_binary>"
39040 msgstr "I<--qemu виконуваний_файл_qemu>"
39043 #: ../test-tool/libguestfs-test-tool.pod:46
39045 "If you have downloaded another qemu binary, point this option at the full "
39046 "path of the binary to try it."
39050 #: ../test-tool/libguestfs-test-tool.pod:49
39052 #| msgid "I<--qemu qemu_binary>"
39053 msgid "B<--qemudir qemu_source_dir>"
39054 msgstr "I<--qemu виконуваний_файл_qemu>"
39057 #: ../test-tool/libguestfs-test-tool.pod:51
39059 "If you have compiled qemu from source, point this option at the source "
39060 "directory to try it."
39064 #: ../test-tool/libguestfs-test-tool.pod:54
39069 #: ../test-tool/libguestfs-test-tool.pod:56
39071 #| msgid "I<--timeout N>"
39072 msgid "B<--timeout N>"
39073 msgstr "I<--timeout N>"
39076 #: ../test-tool/libguestfs-test-tool.pod:58
39078 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
39079 "minutes) which does not usually need to be adjusted."
39083 #: ../test-tool/libguestfs-test-tool.pod:63
39084 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
39088 #: ../test-tool/libguestfs-test-tool.pod:65
39090 "If you have compiled another version of qemu from source and would like to "
39091 "try that, then you can use the I<--qemudir> option to point to the qemu "
39092 "source directory."
39096 #: ../test-tool/libguestfs-test-tool.pod:69
39098 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
39099 "option to point to the binary."
39103 #: ../test-tool/libguestfs-test-tool.pod:72
39105 "Note when using these options, you can ignore the business of qemu wrapper "
39106 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
39107 "wrapper script for you if one is needed."
39111 #: ../test-tool/libguestfs-test-tool.pod:76
39112 msgid "TRYING OUT A DIFFERENT KERNEL"
39116 #: ../test-tool/libguestfs-test-tool.pod:78
39118 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
39119 "libguestfs tries. You do this by setting the environment variables "
39120 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
39124 #: ../test-tool/libguestfs-test-tool.pod:82
39126 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
39131 #: ../test-tool/libguestfs-test-tool.pod:85
39132 msgid "SELF-DIAGNOSIS"
39136 #: ../test-tool/libguestfs-test-tool.pod:87
39138 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
39139 "produced by libguestfs-test-tool and/or possible errors."
39143 #: ../test-tool/libguestfs-test-tool.pod:92
39145 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
39146 "I<1> if there was an error."
39150 #: ../test-tool/libguestfs-test-tool.pod:97
39152 "For the full list of environment variables which may affect libguestfs, "
39153 "please see the L<guestfs(3)> manual page."
39157 #: ../test-tool/libguestfs-test-tool.pod:102
39158 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
39162 #: ../tools/virt-list-filesystems.pl:32
39164 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
39168 #: ../tools/virt-list-filesystems.pl:36
39171 " virt-list-filesystems [--options] domname\n"
39176 #: ../tools/virt-list-filesystems.pl:38
39179 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
39184 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
39186 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
39191 #: ../tools/virt-list-filesystems.pl:45
39193 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
39194 "are contained in a virtual machine or disk image."
39198 #: ../tools/virt-list-filesystems.pl:49
39200 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
39201 "functionality. For more complex cases you should look at the L<guestfish(1)"
39206 #: ../tools/virt-list-filesystems.pl:112
39208 "With this option, C<virt-list-filesystems> displays the type of each "
39209 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
39213 #: ../tools/virt-list-filesystems.pl:119
39215 #| msgid "B<-a image>"
39217 msgstr "B<-a образ>"
39220 #: ../tools/virt-list-filesystems.pl:123
39222 "Normally we only show mountable filesystems. If this option is given then "
39223 "swap devices are shown too."
39227 #: ../tools/virt-list-filesystems.pl:197
39229 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
39230 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
39231 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39233 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
39234 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
39235 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39238 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
39239 msgid "Copyright (C) 2009 Red Hat Inc."
39240 msgstr "© Red Hat Inc., 2009"
39243 #: ../tools/virt-list-partitions.pl:32
39245 "virt-list-partitions - List partitions in a virtual machine or disk image"
39249 #: ../tools/virt-list-partitions.pl:36
39252 " virt-list-partitions [--options] domname\n"
39255 " virt-list-partitions [--параметри] назва_домену\n"
39259 #: ../tools/virt-list-partitions.pl:38
39262 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
39265 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
39269 #: ../tools/virt-list-partitions.pl:45
39271 "C<virt-list-partitions> is a command line tool to list the partitions that "
39272 "are contained in a virtual machine or disk image. It is mainly useful as a "
39273 "first step to using L<virt-resize(1)>."
39277 #: ../tools/virt-list-partitions.pl:50
39279 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
39280 "functionality. For more complex cases you should look at the L<guestfish(1)"
39285 #: ../tools/virt-list-partitions.pl:113
39286 msgid "Show sizes in human-readable form (eg. \"1G\")."
39290 #: ../tools/virt-list-partitions.pl:123
39292 "With this option, C<virt-list-partitions> displays the type and size of each "
39293 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
39297 #: ../tools/virt-list-partitions.pl:130
39302 #: ../tools/virt-list-partitions.pl:132
39304 #| msgid "B<-t> | B<--total>"
39306 msgstr "B<-t> | B<--total>"
39309 #: ../tools/virt-list-partitions.pl:134
39311 "Display the total size of each block device (as a separate row or rows)."
39315 #: ../tools/virt-list-partitions.pl:267
39317 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39318 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39319 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39321 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39322 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39323 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39326 #: ../tools/virt-list-partitions.pl:283
39327 msgid "Copyright (C) 2009-2010 Red Hat Inc."
39328 msgstr "© Red Hat Inc., 2009–2010"
39331 #: ../tools/virt-make-fs.pl:37
39332 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
39336 #: ../tools/virt-make-fs.pl:41
39339 " virt-make-fs [--options] input.tar output.img\n"
39344 #: ../tools/virt-make-fs.pl:43
39347 " virt-make-fs [--options] input.tar.gz output.img\n"
39352 #: ../tools/virt-make-fs.pl:45
39355 " virt-make-fs [--options] directory output.img\n"
39360 #: ../tools/virt-make-fs.pl:49
39362 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
39363 "archive or some files in a directory. It is similar to tools like L<mkisofs"
39364 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
39365 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
39366 "you want to attach these filesystems to existing virtual machines (eg. to "
39367 "import large amounts of read-only data to a VM)."
39371 #: ../tools/virt-make-fs.pl:57
39372 msgid "Basic usage is:"
39376 #: ../tools/virt-make-fs.pl:59
39379 " virt-make-fs input output\n"
39384 #: ../tools/virt-make-fs.pl:61
39386 "where C<input> is either a directory containing files that you want to add, "
39387 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
39388 "C<output> is a disk image. The input type is detected automatically. The "
39389 "output disk image defaults to a raw ext2 image unless you specify extra "
39390 "flags (see L</OPTIONS> below)."
39394 #: ../tools/virt-make-fs.pl:67
39395 msgid "EXTRA SPACE"
39399 #: ../tools/virt-make-fs.pl:69
39401 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
39402 "the files that it contains, but might have extra space. Depending on how "
39403 "you are going to use the output, you might think this extra space is wasted "
39404 "and want to minimize it, or you might want to leave space so that more files "
39405 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
39406 "but you can use the I<--size> flag to leave space in the filesystem if you "
39411 #: ../tools/virt-make-fs.pl:77
39413 "An alternative way to leave extra space but not make the output image any "
39414 "bigger is to use an alternative disk image format (instead of the default "
39415 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
39416 "image format (check your hypervisor supports this before using it). This "
39417 "allows you to choose a large I<--size> but the extra space won't actually be "
39418 "allocated in the image until you try to store something in it."
39422 #: ../tools/virt-make-fs.pl:85
39424 "Don't forget that you can also use local commands including L<resize2fs(8)> "
39425 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
39426 "to build another image from scratch."
39430 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
39431 #: ../tools/virt-make-fs.pl:142
39436 #: ../tools/virt-make-fs.pl:91
39439 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39442 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39446 #: ../tools/virt-make-fs.pl:93
39447 msgid "FILESYSTEM TYPE"
39448 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
39451 #: ../tools/virt-make-fs.pl:95
39453 "The default filesystem type is C<ext2>. Just about any filesystem type that "
39454 "libguestfs supports can be used (but I<not> read-only formats like "
39455 "ISO9660). Here are some of the more common choices:"
39459 #: ../tools/virt-make-fs.pl:101
39464 #: ../tools/virt-make-fs.pl:103
39466 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
39467 "you are not going to use the filesystem in a way that requires the journal, "
39468 "then this is just wasted overhead."
39472 #: ../tools/virt-make-fs.pl:107
39473 msgid "I<ntfs> or I<vfat>"
39474 msgstr "I<ntfs> або I<vfat>"
39477 #: ../tools/virt-make-fs.pl:109
39478 msgid "Useful if exporting data to a Windows guest."
39482 #: ../tools/virt-make-fs.pl:111
39484 "I<Note for vfat>: The tar archive or local directory must only contain files "
39485 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
39486 "program running within libguestfs is unable to change the ownership of non-"
39487 "root files, since vfat itself does not support this."
39491 #: ../tools/virt-make-fs.pl:116
39496 #: ../tools/virt-make-fs.pl:118
39498 "Lower overhead than C<ext2>, but certain limitations on filename length and "
39499 "total filesystem size."
39503 #: ../tools/virt-make-fs.pl:125
39506 " virt-make-fs --type=minix input minixfs.img\n"
39511 #: ../tools/virt-make-fs.pl:127
39512 msgid "TO PARTITION OR NOT TO PARTITION"
39516 #: ../tools/virt-make-fs.pl:129
39517 msgid "Optionally virt-make-fs can add a partition table to the output disk."
39521 #: ../tools/virt-make-fs.pl:131
39523 "Adding a partition can make the disk image more compatible with certain "
39524 "virtualized operating systems which don't expect to see a filesystem "
39525 "directly located on a block device (Linux doesn't care and will happily "
39526 "handle both types)."
39530 #: ../tools/virt-make-fs.pl:136
39532 "On the other hand, if you have a partition table then the output image is no "
39533 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
39534 "directly on a partitioned disk image. (However libguestfs tools such as "
39535 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
39539 #: ../tools/virt-make-fs.pl:144
39540 msgid "Add an MBR partition:"
39544 #: ../tools/virt-make-fs.pl:146
39547 " virt-make-fs --partition -- input disk.img\n"
39552 #: ../tools/virt-make-fs.pl:148
39554 "If the output disk image could be terabyte-sized or larger, it's better to "
39555 "use an EFI/GPT-compatible partition table:"
39559 #: ../tools/virt-make-fs.pl:151
39562 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
39567 #: ../tools/virt-make-fs.pl:179
39568 msgid "Enable debugging information."
39569 msgstr "Увімкнути виведення діагностичних даних."
39572 #: ../tools/virt-make-fs.pl:185
39573 msgid "B<--size=E<lt>NE<gt>>"
39574 msgstr "B<--size=E<lt>NE<gt>>"
39577 #: ../tools/virt-make-fs.pl:187
39578 msgid "B<--size=+E<lt>NE<gt>>"
39579 msgstr "B<--size=+E<lt>NE<gt>>"
39582 #: ../tools/virt-make-fs.pl:189
39583 msgid "B<-s E<lt>NE<gt>>"
39584 msgstr "B<-s E<lt>NE<gt>>"
39587 #: ../tools/virt-make-fs.pl:191
39588 msgid "B<-s +E<lt>NE<gt>>"
39589 msgstr "B<-s +E<lt>NE<gt>>"
39592 #: ../tools/virt-make-fs.pl:193
39594 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
39598 #: ../tools/virt-make-fs.pl:196
39600 "If this option is I<not> given, then the output image will be just large "
39601 "enough to contain all the files, with not much wasted space."
39605 #: ../tools/virt-make-fs.pl:199
39607 "To choose a fixed size output disk, specify an absolute number followed by b/"
39608 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39609 "Petabytes or Exabytes. This must be large enough to contain all the input "
39610 "files, else you will get an error."
39614 #: ../tools/virt-make-fs.pl:204
39616 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
39617 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39618 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
39619 "the input files, and (approximately) an extra 200 MB free space."
39623 #: ../tools/virt-make-fs.pl:210
39625 "Note that virt-make-fs estimates free space, and therefore will not produce "
39626 "filesystems containing precisely the free space requested. (It is much more "
39627 "expensive and time-consuming to produce a filesystem which has precisely the "
39628 "desired free space)."
39632 #: ../tools/virt-make-fs.pl:219
39633 msgid "B<--format=E<lt>fmtE<gt>>"
39637 #: ../tools/virt-make-fs.pl:221
39638 msgid "B<-F E<lt>fmtE<gt>>"
39642 #: ../tools/virt-make-fs.pl:223
39643 msgid "Choose the output disk image format."
39647 #: ../tools/virt-make-fs.pl:225
39648 msgid "The default is C<raw> (raw disk image)."
39652 #: ../tools/virt-make-fs.pl:227
39654 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
39655 "that would really make sense here is C<qcow2>."
39659 #: ../tools/virt-make-fs.pl:234
39660 msgid "B<--type=E<lt>fsE<gt>>"
39664 #: ../tools/virt-make-fs.pl:236
39665 msgid "B<-t E<lt>fsE<gt>>"
39669 #: ../tools/virt-make-fs.pl:238
39670 msgid "Choose the output filesystem type."
39674 #: ../tools/virt-make-fs.pl:240
39675 msgid "The default is C<ext2>."
39676 msgstr "Типовим значенням є C<ext2>."
39679 #: ../tools/virt-make-fs.pl:242
39681 "Any filesystem which is supported read-write by libguestfs can be used here."
39685 #: ../tools/virt-make-fs.pl:249
39686 msgid "B<--partition>"
39687 msgstr "B<--partition>"
39690 #: ../tools/virt-make-fs.pl:251
39691 msgid "B<--partition=E<lt>parttypeE<gt>>"
39695 #: ../tools/virt-make-fs.pl:253
39697 "If specified, this flag adds an MBR partition table to the output disk image."
39701 #: ../tools/virt-make-fs.pl:256
39703 "You can change the partition table type, eg. I<--partition=gpt> for large "
39708 #: ../tools/virt-make-fs.pl:259
39710 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
39711 "might consider the next parameter to be the partition type. For example:"
39715 #: ../tools/virt-make-fs.pl:263
39718 " virt-make-fs --partition input.tar ...\n"
39723 #: ../tools/virt-make-fs.pl:265
39725 "would cause virt-make-fs to think you wanted to use a partition type of "
39726 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
39727 "dash) between options and the input file argument:"
39731 #: ../tools/virt-make-fs.pl:269
39734 " virt-make-fs --partition -- input.tar ...\n"
39737 " virt-make-fs --partition -- input.tar ...\n"
39741 #: ../tools/virt-make-fs.pl:541
39743 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39744 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39745 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39747 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39748 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39749 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39752 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
39754 "When reporting bugs, please enable debugging and capture the I<complete> "
39759 #: ../tools/virt-make-fs.pl:558
39762 " export LIBGUESTFS_DEBUG=1\n"
39763 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39766 " export LIBGUESTFS_DEBUG=1\n"
39767 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39771 #: ../tools/virt-make-fs.pl:561
39773 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
39778 #: ../tools/virt-tar.pl:33
39779 msgid "virt-tar - Extract or upload files to a virtual machine"
39783 #: ../tools/virt-tar.pl:37
39786 " virt-tar [--options] -x domname directory tarball\n"
39791 #: ../tools/virt-tar.pl:39
39794 " virt-tar [--options] -u domname tarball directory\n"
39799 #: ../tools/virt-tar.pl:41
39802 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39807 #: ../tools/virt-tar.pl:43
39810 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39815 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39820 #: ../tools/virt-tar.pl:47
39822 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
39823 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
39827 #: ../tools/virt-tar.pl:52
39828 msgid "Download C</home> from the VM into a local tarball:"
39832 #: ../tools/virt-tar.pl:54
39835 " virt-tar -x domname /home home.tar\n"
39840 #: ../tools/virt-tar.pl:56
39843 " virt-tar -zx domname /home home.tar.gz\n"
39848 #: ../tools/virt-tar.pl:58
39849 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39853 #: ../tools/virt-tar.pl:60
39856 " virt-tar -u domname uploadstuff.tar /tmp\n"
39861 #: ../tools/virt-tar.pl:62
39864 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39869 #: ../tools/virt-tar.pl:66
39871 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39872 "virtual machines. If you do this, you risk disk corruption in the VM. "
39873 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39877 #: ../tools/virt-tar.pl:71
39879 "You can use I<-x> (extract) on live virtual machines, but you might get "
39880 "inconsistent results or errors if there is filesystem activity inside the "
39881 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
39882 "work, but the only way to guarantee consistent results is if the virtual "
39883 "machine is shut down."
39887 #: ../tools/virt-tar.pl:79
39889 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39890 "parts of a guest filesystem. There are many possibilities: making backups, "
39891 "uploading data files, snooping on guest activity, fixing or customizing "
39896 #: ../tools/virt-tar.pl:84
39898 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
39899 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
39900 "should look at the L<guestfish(1)> tool."
39904 #: ../tools/virt-tar.pl:88
39906 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39907 "its contents (recursively) from the virtual machine into a local tarball. "
39908 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39909 "virtual machine. You cannot use these two options together."
39913 #: ../tools/virt-tar.pl:94
39915 "In addition, you may need to use the I<-z> (gZip) option to enable "
39916 "compression. When uploading, you have to specify I<-z> if the upload file "
39917 "is compressed because virt-tar won't detect this on its own."
39921 #: ../tools/virt-tar.pl:98
39923 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
39924 "example it cannot do PKZip files or bzip2 compression. If you want that "
39925 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
39926 "the L<libguestfs(3)> API)."
39930 #: ../tools/virt-tar.pl:160
39932 #| msgid "B<--format>"
39933 msgid "B<--extract>"
39934 msgstr "B<--format>"
39937 #: ../tools/virt-tar.pl:162
39939 #| msgid "download"
39940 msgid "B<--download>"
39944 #: ../tools/virt-tar.pl:164
39949 #: ../tools/virt-tar.pl:166
39951 #| msgid "B<-u> | B<--upload>"
39952 msgid "B<--upload>"
39953 msgstr "B<-u> | B<--upload>"
39956 #: ../tools/virt-tar.pl:168
39958 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39963 #: ../tools/virt-tar.pl:171
39965 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
39966 "Please read the L</WARNING> section above before using this option."
39970 #: ../tools/virt-tar.pl:175
39971 msgid "You must specify exactly one of these options."
39975 #: ../tools/virt-tar.pl:181
39980 #: ../tools/virt-tar.pl:183
39982 #| msgid "B<-z> | B<--gzip>"
39984 msgstr "B<-z> | B<--gzip>"
39987 #: ../tools/virt-tar.pl:185
39988 msgid "Specify that the input or output tarball is gzip-compressed."
39992 #: ../tools/virt-tar.pl:298
39994 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39995 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39996 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39999 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40000 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40001 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40005 #: ../tools/virt-win-reg.pl:37
40007 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
40011 #: ../tools/virt-win-reg.pl:41
40014 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
40019 #: ../tools/virt-win-reg.pl:43
40022 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
40027 #: ../tools/virt-win-reg.pl:45
40030 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
40035 #: ../tools/virt-win-reg.pl:47
40038 " virt-win-reg --merge domname [input.reg ...]\n"
40043 #: ../tools/virt-win-reg.pl:49
40046 " virt-win-reg [--options] disk.img ... # instead of domname\n"
40051 #: ../tools/virt-win-reg.pl:53
40053 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
40054 "virtual machines. If you do this, you I<will> get irreversible disk "
40055 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
40056 "but doesn't catch all cases."
40060 #: ../tools/virt-win-reg.pl:58
40062 "Modifying the Windows Registry is an inherently risky operation. The format "
40063 "is deliberately obscure and undocumented, and Registry changes can leave the "
40064 "system unbootable. Therefore when using the I<--merge> option, make sure "
40065 "you have a reliable backup first."
40069 #: ../tools/virt-win-reg.pl:65
40071 "This program can export and merge Windows Registry entries from a Windows "
40076 #: ../tools/virt-win-reg.pl:68
40078 "The first parameter is the libvirt guest name or the raw disk image of a "
40083 #: ../tools/virt-win-reg.pl:71
40085 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
40086 "exported (recursively). For example:"
40090 #: ../tools/virt-win-reg.pl:74
40093 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
40098 #: ../tools/virt-win-reg.pl:76
40100 "You can also display single values from within registry keys, for example:"
40104 #: ../tools/virt-win-reg.pl:79
40107 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
40108 " $ virt-win-reg Windows7 $cvkey ProductName\n"
40109 " Windows 7 Enterprise\n"
40114 #: ../tools/virt-win-reg.pl:83
40116 "With I<--merge>, you can merge a textual regedit file into the Windows "
40121 #: ../tools/virt-win-reg.pl:86
40124 " $ virt-win-reg --merge Windows7 changes.reg\n"
40129 #: ../tools/virt-win-reg.pl:90
40131 "This program is only meant for simple access to the registry. If you want "
40132 "to do complicated things with the registry, we suggest you download the "
40133 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
40134 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
40135 "L<hivexregedit(1)>."
40139 #: ../tools/virt-win-reg.pl:159
40141 msgstr "B<--merge>"
40144 #: ../tools/virt-win-reg.pl:161
40146 "In merge mode, this merges a textual regedit file into the Windows Registry "
40147 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
40148 "displays or exports Registry entries instead."
40152 #: ../tools/virt-win-reg.pl:165
40154 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
40155 "result in disk corruption. However exporting (without this flag) is always "
40160 #: ../tools/virt-win-reg.pl:173
40161 msgid "B<--encoding> UTF-16LE|ASCII"
40165 #: ../tools/virt-win-reg.pl:175
40167 "When merging (only), you may need to specify the encoding for strings to be "
40168 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
40169 "(3)/ENCODING STRINGS>."
40173 #: ../tools/virt-win-reg.pl:179
40175 "The default is to use UTF-16LE, which should work with recent versions of "
40180 #: ../tools/virt-win-reg.pl:186
40181 msgid "B<--unsafe-printable-strings>"
40185 #: ../tools/virt-win-reg.pl:188
40187 "When exporting (only), assume strings are UTF-16LE and print them as strings "
40188 "instead of hex sequences. Remove the final zero codepoint from strings if "
40193 #: ../tools/virt-win-reg.pl:192
40195 "This is unsafe and does not preserve the fidelity of strings in the original "
40196 "Registry for various reasons:"
40200 #: ../tools/virt-win-reg.pl:199
40202 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
40203 "other encodings will be corrupted by this transformation."
40207 #: ../tools/virt-win-reg.pl:204
40209 "Assumes that everything which has type 1 or 2 is really a string and that "
40210 "everything else is not a string, but the type field in real Registries is "
40215 #: ../tools/virt-win-reg.pl:210
40217 "Loses information about whether a zero codepoint followed the string in the "
40222 #: ../tools/virt-win-reg.pl:215
40224 "This all happens because the Registry itself contains no information about "
40225 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
40229 #: ../tools/virt-win-reg.pl:219
40231 "You should only use this option for quick hacking and debugging of the "
40232 "Registry contents, and I<never> use it if the output is going to be passed "
40233 "into another program or stored in another Registry."
40237 #: ../tools/virt-win-reg.pl:556
40238 msgid "SUPPORTED SYSTEMS"
40242 #: ../tools/virt-win-reg.pl:558
40244 "The program currently supports Windows NT-derived guests starting with "
40245 "Windows XP through to at least Windows 7."
40249 #: ../tools/virt-win-reg.pl:561
40250 msgid "The following Registry keys are supported:"
40254 #: ../tools/virt-win-reg.pl:565
40255 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
40259 #: ../tools/virt-win-reg.pl:567
40260 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
40264 #: ../tools/virt-win-reg.pl:569
40265 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
40269 #: ../tools/virt-win-reg.pl:571
40270 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
40274 #: ../tools/virt-win-reg.pl:573
40275 msgid "C<HKEY_USERS\\.DEFAULT>"
40279 #: ../tools/virt-win-reg.pl:575
40280 msgid "C<HKEY_USERS\\I<SID>>"
40284 #: ../tools/virt-win-reg.pl:577
40285 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
40289 #: ../tools/virt-win-reg.pl:579
40290 msgid "C<HKEY_USERS\\I<username>>"
40294 #: ../tools/virt-win-reg.pl:581
40296 "where I<username> is a local user name (this is a libguestfs extension)."
40300 #: ../tools/virt-win-reg.pl:585
40302 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
40307 #: ../tools/virt-win-reg.pl:588
40309 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
40310 "supported (there is no \"current user\")."
40314 #: ../tools/virt-win-reg.pl:591
40319 #: ../tools/virt-win-reg.pl:593
40321 "C<virt-win-reg> expects that regedit files have already been reencoded in "
40322 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
40323 "style line endings. Since Windows regedit files are often in UTF-16LE with "
40324 "Windows-style line endings, you may need to reencode the whole file before "
40325 "or after processing."
40329 #: ../tools/virt-win-reg.pl:599
40331 "To reencode a file from Windows format to Linux (before processing it with "
40332 "the I<--merge> option), you would do something like this:"
40336 #: ../tools/virt-win-reg.pl:602
40339 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
40344 #: ../tools/virt-win-reg.pl:604
40346 "To go in the opposite direction, after exporting and before sending the file "
40347 "to a Windows user, do something like this:"
40351 #: ../tools/virt-win-reg.pl:607
40354 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
40359 #: ../tools/virt-win-reg.pl:609
40360 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
40364 #: ../tools/virt-win-reg.pl:611
40366 "If you are unsure about the current encoding, use the L<file(1)> command. "
40367 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
40368 "style (CRLF) line endings, like this:"
40372 #: ../tools/virt-win-reg.pl:615
40375 " $ file software.reg\n"
40376 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
40377 " with CRLF line terminators\n"
40382 #: ../tools/virt-win-reg.pl:619
40383 msgid "This file would need conversion before you could I<--merge> it."
40387 #: ../tools/virt-win-reg.pl:621
40388 msgid "CurrentControlSet etc."
40392 #: ../tools/virt-win-reg.pl:623
40394 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
40395 "Registry at the level of the hive file, and therefore you cannot modify "
40400 #: ../tools/virt-win-reg.pl:627
40402 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
40403 "circumstances it might refer to another control set. The way to find out is "
40404 "to look at the C<HKLM\\SYSTEM\\Select> key:"
40408 #: ../tools/virt-win-reg.pl:631
40411 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
40412 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
40413 " \"Current\"=dword:00000001\n"
40414 " \"Default\"=dword:00000001\n"
40415 " \"Failed\"=dword:00000000\n"
40416 " \"LastKnownGood\"=dword:00000002\n"
40421 #: ../tools/virt-win-reg.pl:638
40422 msgid "\"Current\" is the one which Windows will choose when it boots."
40426 #: ../tools/virt-win-reg.pl:640
40428 "Similarly, other C<Current...> keys in the path may need to be replaced."
40432 #: ../tools/virt-win-reg.pl:643
40433 msgid "WINDOWS TIPS"
40437 #: ../tools/virt-win-reg.pl:645
40439 "Note that some of these tips modify the guest disk image. The guest I<must> "
40440 "be shut off, else you will get disk corruption."
40444 #: ../tools/virt-win-reg.pl:648
40445 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
40449 #: ../tools/virt-win-reg.pl:650
40451 "Prepare a DOS batch script, VBScript or executable. Upload this using "
40452 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
40453 "is uploaded into C<C:\\>:"
40457 #: ../tools/virt-win-reg.pl:654
40460 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
40465 #: ../tools/virt-win-reg.pl:656
40466 msgid "Prepare a regedit file containing the registry change:"
40470 #: ../tools/virt-win-reg.pl:658
40473 " cat > test.reg <<'EOF'\n"
40474 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
40475 " \"Test\"=\"c:\\\\test.bat\"\n"
40481 #: ../tools/virt-win-reg.pl:663
40483 "In this example we use the key C<RunOnce> which means that the script will "
40484 "run precisely once when the first user logs in. If you want it to run every "
40485 "time a user logs in, replace C<RunOnce> with C<Run>."
40489 #: ../tools/virt-win-reg.pl:667
40490 msgid "Now update the registry:"
40494 #: ../tools/virt-win-reg.pl:669
40497 " virt-win-reg --merge WindowsGuest test.reg\n"
40502 #: ../tools/virt-win-reg.pl:671
40503 msgid "INSTALLING A SERVICE"
40507 #: ../tools/virt-win-reg.pl:673
40509 "This section assumes you are familiar with Windows services, and you either "
40510 "have a program which handles the Windows Service Control Protocol directly "
40511 "or you want to run any program using a service wrapper like SrvAny or the "
40516 #: ../tools/virt-win-reg.pl:678
40518 "First upload the program and optionally the service wrapper. In this case "
40519 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
40523 #: ../tools/virt-win-reg.pl:682
40526 " guestfish -i -d WindowsGuest <<EOF\n"
40527 " upload rhsrvany.exe /rhsrvany.exe\n"
40528 " upload test.exe /test.exe\n"
40534 #: ../tools/virt-win-reg.pl:687
40536 "Prepare a regedit file containing the registry changes. In this example, "
40537 "the first registry change is needed for the service itself or the service "
40538 "wrapper (if used). The second registry change is only needed because I am "
40539 "using the RHSrvAny service wrapper."
40543 #: ../tools/virt-win-reg.pl:692
40546 " cat > service.reg <<'EOF'\n"
40547 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
40548 " \"Type\"=dword:00000010\n"
40549 " \"Start\"=dword:00000002\n"
40550 " \"ErrorControl\"=dword:00000001\n"
40551 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
40552 " \"DisplayName\"=\"RHSrvAny\"\n"
40553 " \"ObjectName\"=\"NetworkService\"\n"
40558 #: ../tools/virt-win-reg.pl:701
40561 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
40562 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
40563 " \"PWD\"=\"c:\\\\Temp\"\n"
40569 #: ../tools/virt-win-reg.pl:712
40571 "For use of C<ControlSet001> see the section above in this manual page. You "
40572 "may need to adjust this according to the control set that is in use by the "
40577 #: ../tools/virt-win-reg.pl:718
40579 "C<\"ObjectName\"> controls the privileges that the service will have. An "
40580 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
40581 "privileged account."
40585 #: ../tools/virt-win-reg.pl:724
40587 "For the meaning of the magic numbers, see this Microsoft KB article: "
40588 "L<http://support.microsoft.com/kb/103000>."
40592 #: ../tools/virt-win-reg.pl:729
40593 msgid "Update the registry:"
40597 #: ../tools/virt-win-reg.pl:731
40600 " virt-win-reg --merge WindowsGuest service.reg\n"
40605 #: ../tools/virt-win-reg.pl:735
40607 "Be careful when passing parameters containing C<\\> (backslash) in the "
40608 "shell. Usually you will have to use 'single quotes' or double backslashes "
40609 "(but not both) to protect them from the shell."
40613 #: ../tools/virt-win-reg.pl:739
40614 msgid "Paths and value names are case-insensitive."
40618 #: ../tools/virt-win-reg.pl:748
40620 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
40621 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
40622 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40626 #: ../tools/virt-win-reg.pl:766
40629 " export LIBGUESTFS_DEBUG=1\n"
40630 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
40635 #: ../tools/virt-win-reg.pl:769
40637 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
40641 #~ msgid "I<--help>"
40642 #~ msgstr "I<--help>"
40644 #~ msgid "EXIT CODE"
40645 #~ msgstr "КОД ВИХОДУ"
40647 #~ msgid "B<-a> | B<--all>"
40648 #~ msgstr "B<-a> | B<--all>"
40650 #~ msgid "B<-x> | B<--extract> | B<--download>"
40651 #~ msgstr "B<-x> | B<--extract> | B<--download>"